Gustavo,

You can't assume that the file is loaded at the moment you ask for it (the
code does not stop and wait). You must add an event listener and wait for it
to be triggered. See the Actionscript 3.0 "View examples" section:

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/URLLoader.html#includeExamplesSummary

On Tue, May 20, 2008 at 3:27 PM, Gustavo Duenas <
[EMAIL PROTECTED]> wrote:

> Hi I'm trying to so some thing on as3, this one is very simple.
>
> I'm trying to read an external file but it seems that I'm doing something
> wrong.
>
> this is my code:
>
> var loader:URLLoader = new URLLoader(new URLRequest("http://
> leftandrightsolutions.com/txt/whoweare.txt"));
> loaderText.text= loader;
>
>
> thanks :)
>
>
> Gustavo
>
>
>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
-jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to