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
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
That's easy.only after busting my asss for an hour figuring it out..
...Variables are only local to the function
Jonathan try using j in your second for statementnot the letter i twice
Hope that helps...
Sent via BlackBerry from T-Mobile
-Original Message-
From: "jonathan howe" <[
jonathan howe wrote:
> I was hoping someone could explain why I get "Warning: 3596: Duplicate
> variable definition." warnings when I reuse an iterator variable.
> Example:
>
> for (var i:int = 0; i < someArray.length; i ++) {
> // do something cool
> }
>
> for (var i:int = 0; i < someOthe
Yeah, But WHY I have to Always Declare them By Myself?
On Mon, Mar 24, 2008 at 1:31 AM, Muzak <[EMAIL PROTECTED]> wrote:
> Just guessing, but I think it's required for the Flex Component Kit, when
> you create swc's to be used in Flex.
> Haven't really looked into it in much detail, but so far co
I was hoping someone could explain why I get "Warning: 3596: Duplicate
variable definition." warnings when I reuse an iterator variable.
Example:
for (var i:int = 0; i < someArray.length; i ++) {
// do something cool
}
for (var i:int = 0; i < someOtherArray.length; i ++) {
// do somet
Just guessing, but I think it's required for the Flex Component Kit, when you
create swc's to be used in Flex.
Haven't really looked into it in much detail, but so far couldn't get swc's to work if
"Declare..." was disabled.
Other than that, I totally agree, most annoying feature ever.
- O
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
Even if myButton is not static?
and even so, if in main
myButton.addEventListener(MouseEvent.CLICK, fun);
and in other Class
Main.myButton. << now what?
On Sun, Mar 23, 2008 at 3:52 PM, Cor <[EMAIL PROTECTED]> wrote:
> I noticed I didn't answer your question.
>
> In another class file you
Can Flash (AS2) import .rtf files and display in textbox so the doc appears
like the original??
Where would I look to find the procedure?
Thanks,
-Boyd
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/l
Hey!
I've just found out that MTASC compiles much faster if used classes are
imported explicitly.
That is
import com.togethersoft.util.Time
import com.togethersoft.util.Format
is much faster than
import com.togethersoft.util.*;
Provided there are many classes in com.togethersoft.util package.
D
Hi All,
I'm trying to come up with an efficient concept of animating dynamic objects
stacked upon each other. For example. Let's say I dynamically add an object
(That would be Object 1). Then I wanted to add another object, I want
object1 to move down one row, and the new object (object 2) to fade
I noticed I didn't answer your question.
In another class file you can trigger the button like this:
Main.myButton.whatever...
-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Omar Fouad
Verzonden: zondag 23 maart 2008 14:28
Aan: Flash Coders List
Onderwe
OK.
First of all try to think like this:
Every class is a black box and all the other classes do not really need to
know what's going on inside.
They have to know what to put into it and what to expect out of it in
return.
If your button is in the Main class it is always available in your whole
ap
look at this.
Main FLA Document Class
public class Main extends Sprite {
public function Main() {
myButton.addEventListener(MouseEvent.CLICK, fun)
}
public function fun(e:MouseEvent):void {
trace("Clicked");
}
}
Now supposed I need to call the function fun by some other
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 thing
If you give me some details I will setup a FD project for you.
Or I can create a generic example if you like?
Let me know
-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Omar Fouad
Verzonden: zondag 23 maart 2008 13:45
Aan: Flash Coders List
Onderwerp: Re:
Cor i AM USING Flex 3 Final.
And one thing
I am trying now a AS3 document class projct with FlasDevelop. I created a
FLA new Project in FD and I wrote the Main Document class. But FD is not
checking errors. it says "error while running AS3 syntax checking...
On Sun, Mar 23, 2008 at 2:33 PM, 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 Confo
yeah I know flash Develop. But I feel More Confortable with Flex. I used to
use FlashDevelop and I got the Beta 6 version of it. 1 Issue though, In
flex, when I use a Class that is associated to a movieClip in the FLA
library, and in this movieClip there are some components like text fields
and Oth
Oh, yes, I misunderstood you. When I read "ugly runtime errors", I
understood "a runtime action script error", like the ones are reported by
flash player debug version.
[]'s
andrei
On Sun, Mar 23, 2008 at 7:30 AM, Jeroen Beckers <[EMAIL PROTECTED]>
wrote:
> Hi Thomaz,
>
> Wouldn't that be the
Hi Thomaz,
Wouldn't that be the exact same thing as testing against the interface
references that's stored which each analyzer (as I suggested in my post) ?
Since there is no compile-time way to check this, i'm going to check all the
items with all the analyzers in the analyze() method and give a
FlashDevelop
In combination with Flex SDK to compile
All free and very lightweight, and a very nice auto-completion.
It will make your workload much more easy
-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Jesse Warden
Verzonden: zaterdag 22 maart 2008 21:
I also use Document Class and use FlashDevelop to write my Actionscript
I use Flash for compiling but you also could you the Flex SDK.
You should check out FlahDevelop, it has a very nice auto-completion!!
Be sure to download the latest version and look at the shortcut
possibilities.
-Oorspro
Yeah, and than the cash from Flash is flushed.
I also had some issues with this and noticed when restarting Flash (or
rebooting system for that matter)
it worked fine.
So now when I experience odd behavior, I restart Flash.
-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PRO
25 matches
Mail list logo