Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 87055

Re: How can I load an swf file, using an iframe?

$
0
0

if your trying to open an iframe code in a its own layer to play after you have clicked it. you have to place it in a symbol.

 

convert what ever you want clicked to a symbol. name it "something"

with in something create a square/div the size of your iframe.name it 'something2'

now with in the symbol, click on 'something's  main stage code selection.the top layer with in the symbol.

click creation complete and past this code below.

 

replace iframe code goes here with your iframe code

 

 

           var container = sym.$('something2');

            var (something) = 'iframe code goes here ';

            container.html(something);

 

 

and thats should be it. hopefully i explained it good.. then you can go back to main time line and finish animating it how ever you want while the iframe stay with in that div on the stage.

 

EXAMPLE:

 

 

var container = sym.$('scbox');

 

var sc = '<iframe width="100%" height="450" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/users/176066&auto_play=f alse&hide_related=false&show_comments=true&show_user=true&show_reposts=false&visual=true"></iframe> ';

container.html(sc);

 

this is how ive gotten my mailing list iframe code to work with in a swoop down window on my website. see example here www.trebaltek.ca will only load in chrome and safari.  hopefully this helped


Viewing all articles
Browse latest Browse all 87055

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>