Hi all
If my statement is not clear , please  tell me .
Thanks
Winster
B.R.


On 6月10日, 下午4時54分, Winster <[email protected]> wrote:
> Hi all
> I have a simple problem and can't think out why it doesn't work,please
> give a hand.
> I have some code for loading a external  file.txt  and trace out a
> variable:String as following :
>
>         this.createTextField("textField", this.getNextHighestDepth(), 10, 10,
> 10, 10);
>         textField.autoSize = "left";
>                 var LV_load:LoadVars = new LoadVars();
>                 LV_load.load("file.txt");
>                 var linkURL:String;
>                 LV_load.onLoad = function(success:Boolean) {
>                         if (success){
>                                 textField.text = this.tContent ;
>                                 textField._visible = false;
>                                 linkURL = textField.text ;   //get file.txt' 
> s  URL
>                                 }
>                         else {
>                                 trace("no file exist or no response !") ;}
>                 };
>
>                 trace(linkURL);
>
> My problem  is
> I can trace the var linkURL  in  if(success)  block  but  fail in
> global as I wrote .Why and how can I use the var  linkURL in global ,
> thanks a lot .
>
> Winster
> B.R.
> 2009-06-10
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to