Thanks
I have fixed it

On Wed, Oct 8, 2008 at 4:34 PM, Tim Hoff <[EMAIL PROTECTED]> wrote:

>
> No import statement?
>
> -TH
>
>
> --- In [email protected] <flexcoders%40yahoogroups.com>,
> "anuj181" <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> > I am simply trying to load external XML file but the builder is not
> > recognizing one of my variable named urlLoader of type URLLoader. it
> > is saying "Access of undefined property urlLoader, urlRequest and
> > completeListener. Does anyone has any idea what's going on.
> >
> > Thanks
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> > layout="absolute">
> > <mx:Panel title="Login" id="loginPanel"
> > horizontalScrollPolicy="off" verticalScrollPolicy="off"
> > horizontalCenter="1" verticalCenter="1">
> > <mx:Form id="loginForm">
> > <mx:FormItem label="Username:" id="username">
> > <mx:TextInput/>
> > </mx:FormItem>
> > <mx:FormItem label="Password:" id="password">
> > <mx:TextInput/>
> > </mx:FormItem>
> > <mx:FormItem label="Domain:" id="formitem1">
> > </mx:FormItem>
> > </mx:Form>
> > <mx:ControlBar>
> > <!-- Use the LinkButton control to change to
> > the Register view state. -->
> > <mx:LinkButton label="Forgot your password?"
> > id="registerLink"
> > click="currentState='Recover';"/>
> > <mx:Spacer width="100%" id="spacer1"/>
> > <mx:Button label="Login" id="loginButton"/>
> > </mx:ControlBar>
> > </mx:Panel>
> >
> > <mx:Script>
> > <![CDATA[
> > import flash.net.*;
> > import flash.display.*;
> > import flash.xml.*;
> > import flash.events.*;
> >
> > private var xmlData:XML;
> > var urlLoader:URLLoader;
> >
> > //Creating XML Loader
> > var urlRequest:URLRequest=new
> > URLRequest("LoginAuthenticatedUsers.xml");
> > urlLoader=new URLLoader();
> > urlLoader.addEventListener(Event.COMPLETE,completeListener);
> > urlLoader.load(urlRequest);
> >
> > private function completeListener(e:Event):void
> > {
> > xmlData=new XML(urlLoader.data);
> > trace(xmlData.toString());
> > }
> >
> > ]]>
> > </mx:Script>
> >
> > </mx:Application>
> >
>
>  
>

Reply via email to