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

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

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?? -Oorspronkelijk bericht- Van

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 Omar Fouad
. -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

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
[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] Custom MovieClip Classes yeah I know flash

RE: [Flashcoders] Custom MovieClip Classes

2008-03-23 Thread Cor
the latest version and look 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: I

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 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 Muzak
. - Original Message - From: Steven Sacks [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com 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

Re: [Flashcoders] Custom MovieClip Classes

2008-03-23 Thread Omar Fouad
: [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 Stage Instances. It's the worst thing in the world and causes many people headaches. Turn it off. It's the dumbest thing

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

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

Re: [Flashcoders] Custom MovieClip Classes

2008-03-22 Thread Muzak
[EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com 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.MovieClip; public class RegistrationPanel

Re: [Flashcoders] Custom MovieClip Classes

2008-03-22 Thread jonathan howe
: class: amlak.ui.RegistrationPanel base class: flash.display.MovieClip regards, Muzak - Original Message - From: Omar Fouad [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Saturday, March 22, 2008 2:09 AM Subject: Re: [Flashcoders] Custom MovieClip

Re: [Flashcoders] Custom MovieClip Classes

2008-03-22 Thread Omar Fouad
regards, Muzak - Original Message - From: Omar Fouad [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Saturday, March 22, 2008 2:09 AM Subject: Re: [Flashcoders] Custom MovieClip Classes Nope look at this. package amlak.ui

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
: 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

Re: [Flashcoders] Custom MovieClip Classes

2008-03-22 Thread Omar Fouad
: [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: Seems like the most important part is when Muzak wrote this: Linkage

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

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

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

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 '