how to pass and get data from external swf?

  • johnix
  • Newbie
  • Newbie
  • johnix
  • Posts: 10

Post 3+ Months Ago

how to pass and get data from external swf when the swf is loaded to flash? for example is i will have the first.swf and second.swf then i will going to load the first.swf into the second.swf, how to get and pass data between that two swf files? thanks in advance
  • classified
  • Expert
  • Expert
  • User avatar
  • Posts: 540
  • Loc: Bahrain

Post 3+ Months Ago

passing data ?

once you load an external SWF into your movie holder that is placed on your root then you can do this ...

_root.movieHolder.loadedswf.yourVariable ...

or you can use the my_mc._lockroot = true ...
have a good look :)

http://livedocs.adobe.com/flash/mx2004/ ... 02017.html
  • krismeister
  • Graduate
  • Graduate
  • krismeister
  • Posts: 202

Post 3+ Months Ago

Its nothing that special just treat them like regular movie clips.

If your 2 clips are swf1 and swf2
from swf1
Code: [ Select ]
trace(this._parent.swf2.myVariableFoo);
  • johnix
  • Newbie
  • Newbie
  • johnix
  • Posts: 10

Post 3+ Months Ago

[quote="classified"]
_root.movieHolder.loadedswf.yourVariable ...

what is that movieHolder? is that a function inside a flash?
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

movie holder is the target you provided when you did a loadMovie IE
Code: [ Select ]
loadMovie("urltoswf",targetClip);
Your loaded swf takes on the name of the target clip and you can use the target clip's instance name to refer to your loaded swf

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: No registered users and 10 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.