Re: [Flashcoders] Custom MovieClip Classes

2008-03-24 Thread jonathan howe
Here's another reason why I found using that setting to be troublesome. I haven't confirmed it but I believe it interferes with inheritance. For example, let's say I make a symbolA and link it to class SuperClass. Inside symbolA I have a TextField called _txt Then I make a symbolB based on symbolA,

Re: [Flashcoders] Custom MovieClip Classes

2008-03-24 Thread Steven Sacks
Beginners should not be coding AS3. It's really that simple. AS3 requires a whole new level of strict coding practices and is not for beginners. Null pointer exceptions are extremely important to catch because they can cause a Flash app to crash, and the foresight to know where and how those

Re: [Flashcoders] Custom MovieClip Classes

2008-03-23 Thread Rich Shupe
It's a good idea to declare them yourself because both you--and more importantly the compiler--know what every instance is. This may not be 100% on point, but there is a common problem with upcasting, for example, when Strict Mode is on. Here's a scenario. On the stage, you create a movie clip an

Re: [Flashcoders] Custom MovieClip Classes

2008-03-23 Thread Rich Shupe
The other thing is that not everyone is an advanced coder. Steven did say something to the effect of when writing classes, but automatic declaration is a backward-compatible feature that allows beginners to code in the timeline the same way they used to. In AS3, whether you use your own document c

Re: [Flashcoders] Custom MovieClip Classes

2008-03-23 Thread Omar Fouad
quot;Flash Coders List" > Sent: Sunday, March 23, 2008 11:03 PM > Subject: Re: [Flashcoders] Custom MovieClip Classes > > > > The issue is that in Flash you are using the terrible awful > > why-did-Adobe-put-it-in-there publish option of "Automatically Declare > &g

Re: [Flashcoders] Custom MovieClip Classes

2008-03-23 Thread Muzak
y agree, most annoying feature ever. - Original Message - From: "Steven Sacks" <[EMAIL PROTECTED]> To: "Flash Coders List" Sent: Sunday, March 23, 2008 11:03 PM Subject: Re: [Flashcoders] Custom MovieClip Classes The issue is that in Flash you are using the te

Re: [Flashcoders] Custom MovieClip Classes

2008-03-23 Thread Steven Sacks
The issue is that in Flash you are using the terrible awful why-did-Adobe-put-it-in-there publish option of "Automatically Declare Stage Instances". It's the worst thing in the world and causes many people headaches. Turn it off. It's the dumbest thing Adobe could have ever made. SHIFT+F12

RE: [Flashcoders] Custom MovieClip Classes

2008-03-23 Thread Cor
you have to set your class path in FD -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Omar Fouad Verzonden: zondag 23 maart 2008 13:45 Aan: Flash Coders List Onderwerp: Re: [Flashcoders] Custom MovieClip Classes Cor i AM USING Flex 3 Final. And one

RE: [Flashcoders] Custom MovieClip Classes

2008-03-23 Thread Cor
-Oorspronkelijk bericht- > > Van: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Namens Omar Fouad > > Verzonden: zaterdag 22 maart 2008 16:16 > > Aan: Flash Coders List > > Onderwerp: Re: [Flashcoders] Custom MovieClip Classes > > > > Note:

Re: [Flashcoders] Custom MovieClip Classes

2008-03-23 Thread Omar Fouad
, Cor <[EMAIL PROTECTED]> wrote: > Have you installed the Flex SDK? > > -Oorspronkelijk bericht- > Van: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Namens Omar Fouad > Verzonden: zondag 23 maart 2008 13:28 > Aan: Flash Coders List > Onderwerp: Re: [Flashcoders

RE: [Flashcoders] Custom MovieClip Classes

2008-03-23 Thread Cor
Have you installed the Flex SDK? -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Omar Fouad Verzonden: zondag 23 maart 2008 13:28 Aan: Flash Coders List Onderwerp: Re: [Flashcoders] Custom MovieClip Classes yeah I know flash Develop. But I feel More

Re: [Flashcoders] Custom MovieClip Classes

2008-03-23 Thread Omar Fouad
ok at the shortcut > possibilities. > > > -Oorspronkelijk bericht- > Van: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Namens Omar Fouad > Verzonden: zaterdag 22 maart 2008 16:16 > Aan: Flash Coders List > Onderwerp: Re: [Flashcoders] Custom MovieClip Classes > > Note:

RE: [Flashcoders] Custom MovieClip Classes

2008-03-23 Thread Cor
. -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Omar Fouad Verzonden: zaterdag 22 maart 2008 16:16 Aan: Flash Coders List Onderwerp: Re: [Flashcoders] Custom MovieClip Classes Note: I am working with Flash and Document Class. Classes are written in Flex (Actionscript

RE: [Flashcoders] Custom MovieClip Classes

2008-03-23 Thread Cor
PROTECTED] Namens Omar Fouad Verzonden: zaterdag 22 maart 2008 16:15 Aan: Flash Coders List Onderwerp: Re: [Flashcoders] Custom MovieClip Classes Nope. Just Restarted Flash. On Sat, Mar 22, 2008 at 4:13 PM, Cor <[EMAIL PROTECTED]> wrote: > Cleared the cash?? > > -Oorspro

Re: [Flashcoders] Custom MovieClip Classes

2008-03-22 Thread Omar Fouad
> Aan: Flash Coders List > Onderwerp: Re: [Flashcoders] Custom MovieClip Classes > > Hey!!! It worked Now I can Extend the APanel Class.. But how come? I > changed Nothing(??) > > On Sat, Mar 22, 2008 at 12:52 PM, jonathan howe <[EMAIL PROTECTED]> > wrote: > &

Re: [Flashcoders] Custom MovieClip Classes

2008-03-22 Thread Omar Fouad
t;[EMAIL PROTECTED]> wrote: > > > Cleared the cash?? > > > > -Oorspronkelijk bericht- > > Van: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Namens Omar Fouad > > Verzonden: zaterdag 22 maart 2008 14:56 > > Aan: Flash Coders List > >

RE: [Flashcoders] Custom MovieClip Classes

2008-03-22 Thread Cor
Cleared the cash?? -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Omar Fouad Verzonden: zaterdag 22 maart 2008 14:56 Aan: Flash Coders List Onderwerp: Re: [Flashcoders] Custom MovieClip Classes Hey!!! It worked Now I can Extend the APanel Class

Re: [Flashcoders] Custom MovieClip Classes

2008-03-22 Thread Omar Fouad
ot;RegistrationPanel" in library: > > > > class: amlak.ui.RegistrationPanel > > base class: flash.display.MovieClip > > > > regards, > > Muzak > > > > - Original Message - > > From: "Omar Fouad" <[EMAIL PROTECTED]>

Re: [Flashcoders] Custom MovieClip Classes

2008-03-22 Thread jonathan howe
egards, > Muzak > > ----- Original Message - > From: "Omar Fouad" <[EMAIL PROTECTED]> > To: "Flash Coders List" > Sent: Saturday, March 22, 2008 2:09 AM > Subject: Re: [Flashcoders] Custom MovieClip Classes > > >

Re: [Flashcoders] Custom MovieClip Classes

2008-03-22 Thread Muzak
nal Message - From: "Omar Fouad" <[EMAIL PROTECTED]> To: "Flash Coders List" Sent: Saturday, March 22, 2008 2:09 AM Subject: Re: [Flashcoders] Custom MovieClip Classes Nope look at this. package amlak.ui { import flash.text.*; import flash.display.Movi

Re: [Flashcoders] Custom MovieClip Classes

2008-03-21 Thread Omar Fouad
Nope look at this. package amlak.ui { import flash.text.*; import flash.display.MovieClip; public class RegistrationPanel extends APanel { public function RegistrationPanel(){ } } } 5000: The class 'amlak.ui.RegistrationPanel' must subclass ' flash.display.

Re: [Flashcoders] Custom MovieClip Classes

2008-03-21 Thread Steven Sacks
Do you want to inherit some or all? If you want to inherit all, have RegistrationPanel extend APanel. If you want to inherit some, have RegistrationPanel instantiate APanel and have proxy methods to just the ones you want. -Steven Omar Fouad wrote: List, I have a MovieClip in my Flash Lib

Re: [Flashcoders] Custom MovieClip Classes

2008-03-21 Thread Mark Winterhalder
> Now I would the like to let RegistrationPanel inherit some behaviours from > APanel. But it allready extends MovieClip... How can I do this ? You can have RegistrationPanel extend APanel. You need to inherit from MovieClip, but you don't have to do it directly. APanel extends MovieClip, so wh

Re: [Flashcoders] Custom MovieClip Classes

2008-03-21 Thread Glen Pike
I would maybe use Composition to do this. Have RegistrationPanel contain an instance of APanel and call on it: http://www.moock.org/eas2/compositionVSinheritance.html HTH Glen Omar Fouad wrote: List, I have a MovieClip in my Flash Library with Class Name APanel. The class obviously exten