PDA

View Full Version : to pass parameters between swf's


jaymesanches
11-24-2009, 09:57 PM
Hello everyone,
I created a swf in swf where I have a video and also instantiate another swf using a loader. That other swf reads a xml (RSS) and displays a text with marquee at the bottom end ...
What is wanted by main swf, pass parameters to another swf, being more specific, I want to pass the address (URL) of the RSS to be displayed. Can anyone help me?
Thanks, Jayme.

RogerClark
11-24-2009, 11:28 PM
Put a public function in your RSS reader swf

e.g.

public function setRSSURL(theURL:URL):void
{
// etc

Then call the function from your main swf

e.g.
if the instance name of your rss reader swf is myRSSReader

myRSSReader.setRSSURL(theURL);