[Flashcoders] Using "Copy Motion to Actionscript 3.0" & Document Class

2008-08-07 Thread Ed Haack
Ok, I'm a little slow to adopt all of the nifty cool features of CS3 -- just
now taking advantage of "Copy Motion to Actionscript 3.0" where it gens the
Animator AS3 code for you. Nice.

It works if you place the code on the timeline/frame. Fantastic.

But to really put this to use, I need it to work in a class... So, I created
a simple fla, with a document class (I know it's wired up correctly, with a
trace("crack") in the constructor, which is coming back. Added the public
var for the clip on the stage "mcTest" -- and just under the trace("crack"),
added mcText.alpha = 1; (it's alpha 0 on the stage)... and that worked... so
I know the doc class is wired to the stage instance. (BTW: AS3 settings,
"Auto declare stage instances" : unchecked)  so we're all good

Now the fun part: paste the same Animator code into the constructor,
verifying the correct instance name on the stage -- (making sure to execute
the play method... duh) and the animation *does not play*.

Then I stumbled on this from :
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/motion/Animator.html

"If you plan to call methods of the Animator class within a function,
declare the Animator instance outside of the function so the scope of the
object is not restricted to the function itself. If you declare the instance
within a function, Flash Player deletes the Animator instance at the end of
the function as part of Flash Player's routine "garbage collection" and the
target object will not animate."

So that's it! The animator instance must be a global member to the class...
and presto! It works.

Hope this helps others...
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Flash/Flex Application Developers - C#... Java... Actionscript?

2006-12-19 Thread Ed Haack
For all those reading this that are Flash Application Developers... and
have C# and/or Java coders in-house...
 
How do you deal with not being disrespected and discounted merely as a
CREATIVE? Creatives are 50% of the project, and Developers the other
50%. But, how do you communicate with the rest of your company what it
is you do, and in fact, the classes and structure of a Flash Application
are just as, if not more, complex than anything C# or Java can dish up.
 
As both a C# and AS coder, I'm finding it very frustrating to face daily
questions about what the differences are between creative/designers and
developers. My rule of thumb is this:
 
1. Creatives: Make things look pretty.
2. Developers: Make things work.


Problem is, I'm accused of not being very "PC" with this statement...
but do I just give up, and make components for creatives to use? Who
would just wind up asking more questions about how to use the
component.. and I'd have to wire up the events anyway.
 
 
What are your solutions to dealing with this real life problem?
 
- EH
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] FDT weirdness

2006-05-09 Thread Ed Haack
I just thought I'd make a quick comment about using VSS in your favorite
AS Editor...
 
I use SEPY and created a tutorial and downloadable scripts on how to
integrate VSS and SOS (SourceOffSite) with Sepy, using the User Toolset.
 
It can also be used with the new Workspace panel (vey similar to
Eclipse)...
 
Here's the link: http://www.sephiroth.it/phpBB/showthread.php?t=6004
 
edHAACK

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com