RE: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class

2007-07-13 Thread Sunil Jolly
@chattyfig.figleaf.com Subject: RE: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class Sorry, I wasn't clear about my theory. Let me try again. I think that you have to declare variables that represent stage instances as public because Flash CS3 automatically executes an assignment statement at runtime

Re: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class

2007-07-13 Thread Muzak
assets also become public in Flex and there's no way around it. sigh / regards, Muzak - Original Message - From: Sunil Jolly [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, July 13, 2007 11:11 AM Subject: RE: [Flashcoders] Accessing MovieClips on a timeline from

Re: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class

2007-07-13 Thread elibol
on stage, those assets also become public in Flex and there's no way around it. sigh / regards, Muzak - Original Message - From: Sunil Jolly [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, July 13, 2007 11:11 AM Subject: RE: [Flashcoders] Accessing MovieClips

Re: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class

2007-07-12 Thread Hans Wichman
Hi, reserver keyword maybe? greetz JC On 7/12/07, Matt Muller [EMAIL PROTECTED] wrote: I feel like a bit of an idiot asking this, but I keep getting errors. I'm creating some custom player skin templates and have some ui elements which are MovieClips on the stage. Bearing in mind, this will

Re: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class

2007-07-12 Thread Hans Wichman
sorry typo, i meant *reserved* On 7/12/07, Hans Wichman [EMAIL PROTECTED] wrote: Hi, reserver keyword maybe? greetz JC On 7/12/07, Matt Muller [EMAIL PROTECTED] wrote: I feel like a bit of an idiot asking this, but I keep getting errors. I'm creating some custom player skin templates

RE: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class

2007-07-12 Thread Sunil Jolly
15:34 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class Hi, reserver keyword maybe? greetz JC On 7/12/07, Matt Muller [EMAIL PROTECTED] wrote: I feel like a bit of an idiot asking this, but I keep getting errors. I'm creating

Re: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class

2007-07-12 Thread Matt Muller
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hans Wichman Sent: 12 July 2007 15:34 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class Hi, reserver keyword maybe? greetz JC On 7/12/07, Matt Muller [EMAIL PROTECTED] wrote: I

RE: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class

2007-07-12 Thread Sunil Jolly
Does that work? I'm getting a namespace conflict. Sunil -Original Message- Thanks all, I ended up with something like this... package com.foo.view.playerSkins { import flash.display.MovieClip; import com.sky.view.playerSkins.*; public class SkinInventory extends

Re: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class

2007-07-12 Thread elibol
I've been declaring classes extending MovieClip as dynamic. Using this to get the child seems to work. this.fullScreen; And to get the object to cast to the proper type, I've had to have it in the code. FullScreen; trace(this.fullScreen); //should trace [object FullScreen] FYI, I've been

Re: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class

2007-07-12 Thread Jim Kremens
I've been declaring classes extending MovieClip as dynamic. They claim that you'll lose speed by doing this. Jim ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

RE: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class

2007-07-12 Thread Laurie Jensen
Hi Matt, I spent an embarrassing amount of time recently playing with ways to import common classes and libraries in AS3, so your post drew my attention. Then I ran the class from your first post and had no error: your fullScreen variable traces as null, as expected. So then I read the

RE: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class

2007-07-12 Thread Francis Cheng
Systems Incorporated -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sunil Jolly Sent: Thursday, July 12, 2007 9:51 AM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class Does that work? I'm

Re: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class

2007-07-12 Thread Muzak
] To: flashcoders@chattyfig.figleaf.com Sent: Thursday, July 12, 2007 11:02 PM Subject: RE: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class It looks to me like Matt avoided the namespace conflict by using a private variable that differs from the instance name in case only. Note that he

Re: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class

2007-07-12 Thread Muzak
] To: flashcoders@chattyfig.figleaf.com Sent: Friday, July 13, 2007 2:45 AM Subject: RE: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class I'm guessing that the odd reason has something to do with the behavior of the private attribute in AS2 versus AS3. As most of you are aware

Re: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class

2007-07-12 Thread Helen Triolo
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Thursday, July 12, 2007 5:21 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class This means that you either have to declare the variables

RE: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class

2007-07-12 Thread Francis Cheng
] To: flashcoders@chattyfig.figleaf.com Sent: Thursday, July 12, 2007 11:02 PM Subject: RE: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class It looks to me like Matt avoided the namespace conflict by using a private variable that differs from the instance name in case only. Note

RE: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class

2007-07-12 Thread Francis Cheng
: Francis Cheng [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, July 13, 2007 2:45 AM Subject: RE: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class I'm guessing that the odd reason has something to do with the behavior of the private attribute in AS2 versus

Re: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class

2007-07-12 Thread Muzak
{ public var my_btn:Button; } } Now, how silly is that.. regards, Muzak - Original Message - From: Helen Triolo [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, July 13, 2007 3:10 AM Subject: Re: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class

Re: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class

2007-07-12 Thread Muzak
to understand the why of it). regards, Muzak - Original Message - From: Francis Cheng [EMAIL PROTECTED] To: flashcoders@chattyfig.figleaf.com Sent: Friday, July 13, 2007 3:34 AM Subject: RE: [Flashcoders] Accessing MovieClips on a timeline from an AS3 class Sorry, I wasn't clear about my