View Full Version : New linkage usage in CS3?
awflasher
April 27th, 2007, 05:12 AM
Though I prefer the AS-creating way more, I wanna check out the new API as "MorphShape" and "StaticText" .
so with the IDE's toolbar, I draw something to the stage and create a Text(Static). I selected them all and then press F8 to convert them to a MovieClip, with a linkage-class name :"TextContainedMC"
But the complier always tell me that there is an undefined call to the class(TextContainedMC)
"1120: Access of undefined property TextContainedMC."
I saved the fla and as file together in the same folder and set the Classpath to "./" So .. it's really strange that how can I meet up with this ....
Is there any good example of implementation of accessing the IDE's resources to AS (MorphShape and Static Textfield) ?
Thanks very much in advance.
awflasher
April 27th, 2007, 05:28 AM
I think I have solved it myself.
It's due to the miss of a "public" infront of the class...
So ... Still I think I need some hints on the series of modifiers,especially the new modifiers and those ones on class.
I read some topics about "protected" "private" changes from as2 to as3, but more about "dynamically" or something new is needed to know better ...
thanks ^_^
mathew.er
April 27th, 2007, 06:13 AM
Protected means that it is visible in the same and derived classes. internal was also added. That specifies that a member is visible to classes in the same package. public, static, private and dynamic didn't change I think. The dynamic keyword only specifies that members can be added to the class instance at runtime. E.g. that foo.bar = "whatever" won't throw an error.
TheCanadian
April 27th, 2007, 05:28 PM
Protected means that it is visible in the same and derived classes. internal was also added. That specifies that a member is visible to classes in the same package. public, static, private and dynamic didn't change I think. The dynamic keyword only specifies that members can be added to the class instance at runtime. E.g. that foo.bar = "whatever" won't throw an error.Private changed a bit, now it can't be accessed by sub classes.
Rezmason
September 4th, 2007, 01:56 AM
Is there any good example of implementation of accessing the IDE's resources to AS (MorphShape and Static Textfield) ?
I was just wondering about those, particularly MorphShape. I have a hunch that Flash doesn't actually morph shapes in real time, and that the shape tweens you make in the authoring program are converted into a pile of keyframes. (Publishing a Flash animation that contains a solitary shape tween reveals that the file size increases with the duration of the tween.) This might also be why complex easing does not exist for shape tweens. I'm already aware that Flash chops up for motion tweens that use a motion guide for the same reason. (I think that's bogus; it would be much cooler if Flash generated piecewise x and y tweens for these situations.)
If something is done in Flash this way, you can assume that an API for it is a long way off. Adobe would first need to develop a new shape tweening system that could morph vectors dynamically.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.