Thanks, Preran. But where do I put it?
I have a 1920x1080 compostion. I want that iframe opens after clicking a button, in a top layer with 1280x720. Where do I need to put the iframe code?
1 person found this helpful
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 ';
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> ';
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
Thanks! It worked beautifuly!