| Ultrashock Forums
• [AS3] Imported swf won't stop looping |
|||
![]() |
||||
| Search this Thread | Thread Tools | Display Modes |
|
|
|||||||||||||||||||||||||
![]() |
Ultrashock Member Comments:
|
2008-08-04
#2 |
||
|
|
2008-08-05
#3 |
||
|
Thank you for your suggestion. I had considered doing it this way (as you are right, it solves the problem i was having), but i need to create multiple instances of the loaded swf, which i dont believe is possible using a URLRequest ?
|
|
|
2008-08-05
#4 |
||
|
If it works fine when run on its own and breaks when loaded into parent then it sounds like a scope problem. Have you tried dropping 'this.' and just use 'stop();' on frame 1 of the child swf?
|
|
Creative Assets
|
2008-08-05
#5 |
||
|
Hey D, you can in fact make as many instances as you want. lets say you have finished loading your swf into a loader call movieLoader. Don't add movieLoader as a child in stead do this. Code:
var clip1:MoiveClip = movieLoader.content; var clip2:MoiveClip = movieLoader.content; var clip3:MoiveClip = movieLoader.content; var clip4:MoiveClip = movieLoader.content; var clip5:MoiveClip = movieLoader.content; addChild(clip1); addChild(clip2); addChild(clip3); addChild(clip4); addChild(clip4); if you are doing it dynamically use an array to store the refrences to the clips, and there you go, multiple instances of a loaded swf. |
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|


4 comments
| 1870 views



Creative Assets
Linear Mode
Look it up in here: http://www.iheartactionscript.com/lo...al-swf-in-as3/
Hope it works
Harry.