Re: Load External File

2016-09-30 Thread Lane
Works like a charm.  Thanks.

Lane.

-Original Message- 
From: Alex Harui 
Sent: Thursday, September 29, 2016 6:39 PM 
To: users@flex.apache.org 
Subject: Re: Load External File 

For FlexJS, HTTPService has a send() method.  You would set the url
property before calling send().

HTH,
-Alex

On 9/29/16, 1:23 AM, "Lane" <lanefrie...@hotmail.com> wrote:

>I'm wanting to load an external file, as in:
>
>var myTextLoader:URLLoader = new URLLoader();
>
>myTextLoader.addEventListener(Event.COMPLETE, onComplete);
>myTextLoader.load(new URLRequest("myFile.html"));
>
>It appears that there is no 'load' option yet activated under URLLoader
>on 
>FlexJS. Is there a way to do this, other than using URLLoader and then
>load?
>
>Thanks,
>
>Lane. 
>
>
>---
>This email has been checked for viruses by Avast antivirus software.
>https://www.avast.com/antivirus
>


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Load External File

2016-09-29 Thread Alex Harui
For FlexJS, HTTPService has a send() method.  You would set the url
property before calling send().

HTH,
-Alex

On 9/29/16, 1:23 AM, "Lane"  wrote:

>I'm wanting to load an external file, as in:
>
>var myTextLoader:URLLoader = new URLLoader();
>
>myTextLoader.addEventListener(Event.COMPLETE, onComplete);
>myTextLoader.load(new URLRequest("myFile.html"));
>
>It appears that there is no 'load' option yet activated under URLLoader
>on 
>FlexJS. Is there a way to do this, other than using URLLoader and then
>load?
>
>Thanks,
>
>Lane. 
>
>
>---
>This email has been checked for viruses by Avast antivirus software.
>https://www.avast.com/antivirus
>



RE: Load External File

2016-09-29 Thread Kessler CTR Mark J
You can use FileReference[1] to load a file.  Browse for the file, load it.  
Once the complete event is dispatched you should be able to use the "data" 
property to access the file data.

If you need to you can convert the ByteArray to string just by casting it.



[1] 
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/FileReference.html


-Mark

-Original Message-
From: Lane [mailto:lanefrie...@hotmail.com]
Sent: Thursday, September 29, 2016 4:23 AM
To: users@flex.apache.org
Subject: [Non-DoD Source] Load External File

I'm wanting to load an external file, as in:

var myTextLoader:URLLoader = new URLLoader();

myTextLoader.addEventListener(Event.COMPLETE, onComplete);
myTextLoader.load(new URLRequest("myFile.html"));

It appears that there is no 'load' option yet activated under URLLoader on
FlexJS. Is there a way to do this, other than using URLLoader and then load?

Thanks,

Lane.


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus