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
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
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
.
-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
.
-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
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
[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
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
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
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,
.
- 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
: [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
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
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
[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
:
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
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
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
:
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
: [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
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
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
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
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 '
24 matches
Mail list logo