RE: [Flashcoders] can't access XML attributes with HTTPService

2008-09-29 Thread Kerry Thompson
Johan Nyberg wrote: > Hi, I don't know what I'm doing wrong. I'm trying to load an XML file > into my Flex app, but I can't seem to be able to display any data that > is residing as attributes in the XML file. > > What have I missed? > > And here is an abbreviated version of the xml file: > >

[Flashcoders] can't access XML attributes with HTTPService

2008-09-29 Thread Johan Nyberg
Hi, I don't know what I'm doing wrong. I'm trying to load an XML file into my Flex app, but I can't seem to be able to display any data that is residing as attributes in the XML file. What have I missed? Here is my sample app: http://www.adobe.com/2006/mxml"; layout="absolute" height="400"

Re: [Flashcoders] Can't access

2007-09-06 Thread Andy Herrman
My guess is that your "this" variable is getting mixed up. I'm not familiar with the "Delegate.function" usage, but that function may be being called with a scope you're not expecting. Try just using a regular function there. You've already set up the 'ref' member of the 'swfListen' object, so '

[Flashcoders] Can't access

2007-09-06 Thread Lee Marshall
I am trying to construct a class that loads in an external SWF. I have a movieclip in the external SWF called 'closer_mc' which I cannot get access to. I keep getting undefined in my output. Can anyone suggest anything? Cheers Code: class PopupIll { //Initialise variables

RE: [Flashcoders] Can't access mc

2006-08-11 Thread Mendelsohn, Michael
> Placing that code instead in the onLoad method makes sure that it will work. Great explanation, thanks Arul. - MM ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/l

Re: [Flashcoders] Can't access mc

2006-08-11 Thread Arul Prasad M L
But, Arul, what is the advantage of putting it in an onLoad function instead of the constructor? Just to be on the safer side, thats all :) Try this: add a trace each in the constructor and the onLoad. And test your movie. You'll see that the constructor gets called even before onLoad. Now, if

RE: [Flashcoders] Can't access mc

2006-08-11 Thread Mendelsohn, Michael
All the solutions worked perfectly, thanks everyone. But, Arul, what is the advantage of putting it in an onLoad function instead of the constructor? declare theClip as a member of the class linker. like, private var theClip:MovieClip; Also, try to keep ur code out of the constructor. Write

Re: [Flashcoders] Can't access mc

2006-08-11 Thread John Mark Hawley
AIL PROTECTED]> > Date: 2006/08/11 Fri AM 08:47:08 CDT > To: "Flashcoders mailing list" > Subject: [Flashcoders] Can't access mc > > Hi list... > > I'm trying to access a mc within a mc in my class as follows: > > class linker extends MovieClip

RE: [Flashcoders] Can't access mc

2006-08-11 Thread Merrill, Jason
lsohn, Michael >>Sent: Friday, August 11, 2006 9:47 AM >>To: Flashcoders mailing list >>Subject: [Flashcoders] Can't access mc >> >>Hi list... >> >>I'm trying to access a mc within a mc in my class as follows: >> >>class linker extends

Re: [Flashcoders] Can't access mc

2006-08-11 Thread julien castelain
hi micheal, you have to declare that property inside your class before you can access it class linker extends MovieClip { var theClip:MovieClip; function linker() { trace(theClip); } } cheers On 8/11/06, Mendelsohn, Michael <[EMAIL PROTECTED]> wrot

Re: [Flashcoders] Can't access mc

2006-08-11 Thread Shane Korin
I think it's because Flash thinks your trying to refer to a member variable of your class (which hasnt been declared) If you put like: class linker extends MovieClip { var theClip:MovieClip; function linker() { trace(theClip); } } It shouldn't give you an

Re: [Flashcoders] Can't access mc

2006-08-11 Thread Arul Prasad M L
declare theClip as a member of the class linker. like, private var theClip:MovieClip; Also, try to keep ur code out of the constructor. Write a onLoad function and put ur code in there. private function onLoad() { trace(theClip); } On 8/11/06, Mendelsohn, Michael <[EMAIL PROTECTED]> wrote: H

[Flashcoders] Can't access mc

2006-08-11 Thread Mendelsohn, Michael
Hi list... I'm trying to access a mc within a mc in my class as follows: class linker extends MovieClip { function linker() { trace(theClip); } } The linker clip is on the stage, and there's a mc within it called theClip. I get the error "There is no property wit