Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-24-2009, 09:57 PM   #1
jaymesanches
Registered User
 
Join Date: Nov 2009
Posts: 1
Question to pass parameters between swf's

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.
jaymesanches is offline   Reply With Quote
Old 11-24-2009, 11:28 PM   #2
RogerClark
Senior Member
 
Join Date: Sep 2009
Location: Melbourne, Australia
Posts: 1,040
Default

Put a public function in your RSS reader swf

e.g.

ActionScript Code:
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

ActionScript Code:
myRSSReader.setRSSURL(theURL);
RogerClark is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:49 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.