Re: [Flashcoders] Plssssssss Help!!!!!1 - AS3.0 text field problem
Rajiv - I posted the answer earlier, but in case you missed it: test.text=this.loaderInfo.parameters.uName; In other words, look for the loaderInfo member of your document class. It is of type LoaderInfo. LoaderInfo has a property called 'parameters'. That is a dynamic object which holds all the parameters passed via FlashVars. HTH, Ian On Sat, Nov 22, 2008 at 5:32 PM, Rajiv Seth (Pixelated) <[EMAIL PROTECTED]> wrote: > Hi Cor, > > Thanks. > Actually I just want to pass some value using querystring in my ASP page > where I will embed the swf. And I want to use flashvars to do the same. It > was working properly in flash AS2.0. > Regards > > Rajiv Seth > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Plssssssss Help!!!!!1 - AS3.0 text field problem
Hi Cor, Thanks. Actually I just want to pass some value using querystring in my ASP page where I will embed the swf. And I want to use flashvars to do the same. It was working properly in flash AS2.0. Regards Rajiv Seth On Sat, Nov 22, 2008 at 5:42 PM, Ian Thomas <[EMAIL PROTECTED]> wrote: > test.text=this.loaderInfo.parameters.uName; > > Should do it. > > HTH, > > Ian > > On Sat, Nov 22, 2008 at 12:03 PM, Rajiv Seth (Pixelated) > <[EMAIL PROTECTED]> wrote: > > Hi, > > How can I pass variable value using flashvars, if I am coding flash using > > AS3.0. > > > > I am simply using > > - > > import fl.video.MetadataEvent; > > import flash.text.*; > > > > var uName:String; > > test.text = uName; > > -- > > > > "test" is a dynamic text input. And I am using > > > > http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0 > " > > width="550" height="420"> > > > > > > > > > pluginspage=" > > > http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash > " > > type="application/x-shockwave-flash" width="550" height="420"> > > > > - > > But "uName" value is not coming to flash. > > > > Please help. > > > > Regards > > > > Rajiv Seth > > ___ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Plssssssss Help!!!!!1 - AS3.0 text field problem
This works with 2 external text files: 1. extern.txt: Type some text in it, whatever you like. 2. The second example works with value-pairs in a txt file extern1.txt wich looks like this: datum=20 april 2004&stelling=Your text, etc. // Don't put spaces between varname and =-sign In Flash: //AS30 in the first frame of your main timeline var url:String; var req:URLRequest = new URLRequest(); var ldr:URLLoader = new URLLoader(); ldr.addEventListener(Event.COMPLETE, ldrLoaded); function ldrLoaded (e:Event):void { if(e.target.dataFormat == URLLoaderDataFormat.TEXT){ updated_txt.text = "" ; stelling_txt.text = e.target.data; }else{ updated_txt.text = e.target.data.datum ; stelling_txt.text = e.target.data.stelling ; } } stelling_btn.addEventListener(MouseEvent.CLICK, showStelling); function showStelling (e:MouseEvent):void { ldr.dataFormat = URLLoaderDataFormat.TEXT; req.url= "extern.txt" ldr.load(req); } variabelen_btn.addEventListener(MouseEvent.CLICK, showVariabelen); function showVariabelen (e:MouseEvent):void { ldr.dataFormat = URLLoaderDataFormat.VARIABLES; req.url= "extern1.txt" ldr.load(req); } Kind regards Cor ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Plssssssss Help!!!!!1 - AS3.0 text field problem
test.text=this.loaderInfo.parameters.uName; Should do it. HTH, Ian On Sat, Nov 22, 2008 at 12:03 PM, Rajiv Seth (Pixelated) <[EMAIL PROTECTED]> wrote: > Hi, > How can I pass variable value using flashvars, if I am coding flash using > AS3.0. > > I am simply using > - > import fl.video.MetadataEvent; > import flash.text.*; > > var uName:String; > test.text = uName; > -- > > "test" is a dynamic text input. And I am using > > http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"; > width="550" height="420"> > > > > pluginspage=" > http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"; > type="application/x-shockwave-flash" width="550" height="420"> > > - > But "uName" value is not coming to flash. > > Please help. > > Regards > > Rajiv Seth > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Plssssssss Help!!!!!1 - AS3.0 text field problem
Hi, How can I pass variable value using flashvars, if I am coding flash using AS3.0. I am simply using - import fl.video.MetadataEvent; import flash.text.*; var uName:String; test.text = uName; -- "test" is a dynamic text input. And I am using http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"; width="550" height="420"> http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"; type="application/x-shockwave-flash" width="550" height="420"> - But "uName" value is not coming to flash. Please help. Regards Rajiv Seth ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders