Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-02-2012, 11:35 PM   #1
Registered User
Join Date: Jun 2012
Posts: 35
Default Errors with URLLoader/URLRequest

Hi, I am trying to import data from a text file and have come across a tutorial on loading data from external documents on the Adobe Help Resource Center for Flex 3.0. I have followed the instructions on their tutorial and oddly when I type the code in one way I get no errors but when typed another, equally valid way, I get errors. I am wondering why this is happening because I find things like this extremely annoyning. ;-)

Here are the two code formats:

This example works fine:
var loader:URLLoader = new URLLoader(new URLRequest("params.txt"));
This code gives the error "1120: Access of undefined property loader"
                    var request:URLRequest = new URLRequest("params.txt");
                    var loader:URLLoader = new URLLoader();
tnel is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 11:36 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.