Skip to main content
May 16, 2010
Answered

swf within swf

  • May 16, 2010
  • 1 reply
  • 1273 views

Hi.  I have two swf files.  I want to place one within the other.  Is there anyway I can set the dimensions of the swf I place within the other one?  I would have published it a smaller size, but it dont allow me to change the size in the settings of a swf, just the html version.

This topic has been closed for replies.
Correct answer kglad

No interaction needed.  All it needs to do is play the swf within another swf.  But this was messing up, which was why we moved to .flv.  But now the .flv file goes back to the beginning when the animation in the main swf is completed and looped.


are you trying to display a swf or an avi file??

1 reply

kglad
Community Expert
Community Expert
May 16, 2010

you should not import one swf into another.  you should load one swf into another.

among other benefits, this lets you more easily assign the loaded swf's width and height by targeting the load (or its content property) AFTER loading is complete.

May 16, 2010

So, within my swf, I created a new layer.  Added new symbol and made it a movie clip.  Went back to my main stage and drag a copy of this movie clip onto it.  Gave it an instance name called myClip.  I then created a new actions layer.  Now in this, should i just do

myMovie.addChild(myLoader);
May 16, 2010

Actually, forget that.  I got it to play using a normal loader and adding it to my stage.  Problem is, the swf being played back is messed up, and not how the original plays.  When I say messed up, frames are being played at wrong times, at will.  Why would this be happening and how can it be sorted?

cheers