• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pass xmldata from external actionscript to main.flv

#1
[eluser]alrightythen[/eluser]
Hi

So I have this RSS parser in een external actionscriptfile. Wich all works great the only problem I have is how I pass these retrieved rssData back to main.flv as a variable.

So in my main actionscript I would have something like this:
Code:
var rssLoader:RssLoader = new RssLoader;
var rssData = /* THIS IS WHERE I WANT MY RSS DATA TO COME */

This is the extarnel actionscript file...
Code:
package {
    import flash.events.IOErrorEvent;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.events.Event;
    import flash.display.Sprite;
    import flash.display.MovieClip;

    public class RSSLoader extends Sprite {

        public var loadedRSS:XML;
                        // accept parent        path to xml
        public function RSSLoader(mT:MovieClip, path:String):void {
            
            var rssLoader:URLLoader = new URLLoader();
            var rssURL:URLRequest = new URLRequest(path);
        
            // LOADING RSS //
            // =========== //
            rssLoader.addEventListener(Event.COMPLETE, rssLoaded);
            rssLoader.load(rssURL);

            function rssLoaded(evt:Event):void {
            
                loadedRSS = new XML(evt.target.data);
                rssLoader.removeEventListener(Event.COMPLETE, rssLoaded);
                rssLoader.removeEventListener(IOErrorEvent.IO_ERROR, onIOError);
                
                //mT.getRSS(loadedRSS); THIS IS TO CALL A FUNCTION IN MAIN.FLV BUT I NEED TO SOMEHOW FILL A PUBLIC VARIABLE SO THAT A VARIABLE IN MAIN.FLV CAN CALL THIS DATA.

            }
        
            
            function onIOError(evt:IOErrorEvent):void {
                
                trace("Error: " + evt.text);
                
            }
        }
    }
}

#2
[eluser]danmontgomery[/eluser]
You're asking for actionscript help on a forum for a PHP framework?

#3
[eluser]alrightythen[/eluser]
[quote author="noctrum" date="1281036638"]You're asking for actionscript help on a forum for a PHP framework?[/quote]

Yes I'm that desperate to know. No, codeigniter is the only forum I'm registered at.
I was hoping someone could answer this cause it seems like a simple problem to solve.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.