panel
04-23-2007, 01:19 PM
Hi
My way to work with Flash and AS is to create graphics in Flash and linkage them to classes (this way I can easlny separate code from design). I am creating classes in Flex Builder becouse work goes faster with autocompletion system.
Few things changed between Flash CS3 vs Flash 9 Aplha. One of them is that when you linkage library symbol and create class with the same name you don't have to define all objects (MC's, Buttons and other objects that were created in Flash in this linkaged MC) as public class variables (In flash 9 alpha you have to define all of them as public or make class dynamic).
At firtst I liked this new 'feature' but after working a while working with it I see some disadvantages.
Flex builder dosen't even know that those variables exist, and show reference errors like this: (becouse part of class is in Flash and part is in code). (So when I makre real error may not see it instantly)
1119: Access of possibly undefined property playPause_mc through a reference with static type ControlerDecorator.
When I try to define those variables in class errors in Flex Builder dissapear but Flash Throws compilation Error
1151: A conflict exists with definition playPause_mc in namespace internal.
...becouse at this point Flash knows that this variable is defined...
Is there any way to show flex builder compiler that those variables really exist without define them? or have you got any other ideas? Mabye you have betther ways to join graphics and Code?
My way to work with Flash and AS is to create graphics in Flash and linkage them to classes (this way I can easlny separate code from design). I am creating classes in Flex Builder becouse work goes faster with autocompletion system.
Few things changed between Flash CS3 vs Flash 9 Aplha. One of them is that when you linkage library symbol and create class with the same name you don't have to define all objects (MC's, Buttons and other objects that were created in Flash in this linkaged MC) as public class variables (In flash 9 alpha you have to define all of them as public or make class dynamic).
At firtst I liked this new 'feature' but after working a while working with it I see some disadvantages.
Flex builder dosen't even know that those variables exist, and show reference errors like this: (becouse part of class is in Flash and part is in code). (So when I makre real error may not see it instantly)
1119: Access of possibly undefined property playPause_mc through a reference with static type ControlerDecorator.
When I try to define those variables in class errors in Flex Builder dissapear but Flash Throws compilation Error
1151: A conflict exists with definition playPause_mc in namespace internal.
...becouse at this point Flash knows that this variable is defined...
Is there any way to show flex builder compiler that those variables really exist without define them? or have you got any other ideas? Mabye you have betther ways to join graphics and Code?