Kerry, See if you can find the stage from any stage-member instance and get its loaderinfo parameters.
Otherwise, you could test with the barest-bone HTML code possible to see if the embedding code is the culprit. Google flash sate for the simplest object code, losing the classids and conditionals. I can't copy/paste code or test any of the theories right now, because I'm nowhere near an actual computer, but I'll do it in the morning if you're still stuck (maybe best to do something else for a while). Actually, why am I still awake? It's 2 am! Karina On 1 May 2012, at 01:00, Kerry Thompson <[email protected]> wrote: > Thanks, Karina and Jason. > > Jason, I've traced out the url, and it's not in that. For the time being, > I'm running locally, and the URL just points to the swf. > > Karina, I've tried it the way you suggest, with no luck. I've looked at > loaderInfo.parameters in the debugger, in the constructor, and parameters > is an object, but it has no properties. It should have at least one > parameter--I'm declaring 5 parameters in the HTML, but it's showing none of > them. I'm wondering if the problem has to do with the object's parameters, > and not specifically FlashVars. > > Cordially, > > Kerry Thompson > > On Mon, Apr 30, 2012 at 7:27 PM, Karina Steffens > <[email protected]>wrote: > >> Hey Kerry, >> >> I think it's because you assigned the event to loaderinfo - not the Main >> class instance, and then you're asking for the loaderinfo's loaderinfo, >> when it's the Main's loaderinfo that you need. >> >> Also I don't think you need any event at all. You should be able to access >> the flashvars from the Main function's constructor (loaderinfo.parameters) >> >> Cheers, >> >> Karina >> >> On 30 Apr 2012, at 23:46, Kerry Thompson <[email protected]> wrote: >> >>> Flash Builder 4 AS3 project, Windows 7, Firefox 12.0. >>> >>> I can't access the FlashVars in the HTML file. I've been working on this >>> all day, and it's driving me crazy (crazier). Do you see anything in the >>> following code? >>> >>> In the constructor of my default AS3 file, I have this: >>> >>> this.loaderInfo.addEventListener(Event.COMPLETE, init); >>> >>> and in the init() function: >>> >>> var flashVars:Object; >>> >>> flashVars = this.loaderInfo.parameters; >>> >>> When I look at it in the debugger, flashVars is an object, but it has no >>> parameters. The relevant HTML is pretty straightforward: >>> >>> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" >>> width="100%" height="100%" id="RMK_Beta"> >>> <param name="movie" value="RMK_Beta.swf" /> >>> <param name=FlashVars value="appUrl=test" /> >>> <param name="quality" value="high" /> >>> <param name="bgcolor" value="#ffffff" /> >>> <param name="allowScriptAccess" value="sameDomain" /> >>> <param name="allowFullScreen" value="true" /> >>> <!--[if !IE]>--> >>> <object type="application/x-shockwave-flash" >>> data="RMK_Beta.swf" width="100%" height="100%"> >>> <param name=FlashVars value="appUrl=test" >>> /> >>> <param name="quality" value="high" /> >>> <param name="bgcolor" value="#ffffff" /> >>> <param name="allowScriptAccess" value="sameDomain" /> >>> <param name="allowFullScreen" value="true" /> >>> <!--<![endif]--> >>> <!--[if gte IE 6]>--> >>> <p> >>> Either scripts and active content are not >> permitted >>> to run or Adobe Flash Player version >>> 10.0.0 or greater is not installed. >>> </p> >>> <!--<![endif]--> >>> <a href="http://www.adobe.com/go/getflashplayer"> >>> <img src=" >>> http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif >> " >>> alt="Get Adobe Flash Player" /> >>> </a> >>> <!--[if !IE]>--> >>> </object> >>> <!--<![endif]--> >>> </object> >>> _______________________________________________ >>> Flashcoders mailing list >>> [email protected] >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> _______________________________________________ >> Flashcoders mailing list >> [email protected] >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

