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:
>
>
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"
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 '
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
> 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
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
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
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
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
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
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
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
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
13 matches
Mail list logo