RE: [Flashcoders] very easy question

2008-05-21 Thread Jesse Graupmann
http://www.kirupa.com/forum/showthread.php?p=1910480

Jonathan mentioned this before... you're goal isn't to set your text to
display what the loader is. Your goal is to display the content that is
loaded. In order to do that, you need to listen to the load event and get
the data out of there.

loader.addEventListener(Event.COMPLETE, stuffLoaded);
function stuffLoaded(event:Event):void 
{
var myStuff = loader.data;
//...
}


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gustavo
Duenas
Sent: Tuesday, May 20, 2008 1:09 PM
To: Flash Coders List
Subject: Re: [Flashcoders] very easy question

ok, when I trace this instead of the text it shows [target.object]
it is a html xml formatted page, it is supposed to show in other way  
right?


regards,

guatvo
On May 20, 2008, at 3:48 PM, Eduardo Omine wrote:

 Try this:

 var loader:URLLoader = new URLLoader();
 loader.load(new
 URLRequest(http://leftandrightsolutions.com/txt/whoweare.txt;));

 -- 
 Eduardo Omine
 http://blog.omine.net/
 http://www.omine.net/
 ___
 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] very easy question

2008-05-20 Thread jonathan howe
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
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
-jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] very easy question

2008-05-20 Thread Eduardo Omine
Try this:

var loader:URLLoader = new URLLoader();
loader.load(new
URLRequest(http://leftandrightsolutions.com/txt/whoweare.txt;));

-- 
Eduardo Omine
http://blog.omine.net/
http://www.omine.net/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] very easy question

2008-05-20 Thread Gustavo Duenas

ok, when I trace this instead of the text it shows [target.object]
it is a html xml formatted page, it is supposed to show in other way  
right?



regards,

guatvo
On May 20, 2008, at 3:48 PM, Eduardo Omine wrote:


Try this:

var loader:URLLoader = new URLLoader();
loader.load(new
URLRequest(http://leftandrightsolutions.com/txt/whoweare.txt;));

--
Eduardo Omine
http://blog.omine.net/
http://www.omine.net/
___
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