PDA

View Full Version : problems using flash cs3 fl.* classes in flex 3


Daedalus
03-05-2008, 10:05 PM
Hello All,

I'm try to get the flash cs3 fl.* classes to work in FB3 but i've run into a few problems.

I have copied all the classes from >

Adobe Flash CS3\en\Configuration\ActionScript 3.0\Classes\fl

and

C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\Component Source\ActionScript 3.0\User Interface\fl

and put them all in one fl folder and then set it as a source folder in flex.

Flex finds the classes and when I start typing fl.core it comes up with UIComponent and when I control-click on "UIComponent" text on the line>

public class myComponent extends UIComponent


it opens up the source for the UIComponent class in a new tab so I ended up thinking all was well.

However when I compile I get an error saying>

1017: The definition of base class UIComponent was not found.

Even tho Flex knows the path to it and will open up the implementation when I control click on the class!

It also comes up with override errors

1020: Method marked override must override another method.

What I dont get is that it can detect the path and the class on the import and when I control click on the class yet it says it can't see it when I compile!

I tried putting all the UIComponets from flash in a swc and setting flex to use the classes in the swc as the flash User interface Components extend from UIComponent anway but it made no difference.



Has anybody else had this sort of problem and found a solution?

Daedalus
03-05-2008, 10:34 PM
Ok i've managed so solve the problem but I still dont understand why it screwed up in the first place.

Normally when you modify a class file and press save it re compiles the project, however I have a feeling there was a build problem. Maybe a corrupted build or something.

Anyways I pressed clean.. on the project menu and then did a rebuild and all the errors went away.

Three hours of work time wasted because of a silly build problem!
Flex really pisses me off sometimes!

yagogak
05-30-2008, 02:14 PM
Hello,

Same problem for me, but the errors comes with a lot of other errors of type :
"Invalid Embeded directive in stylesheet"

A strange workaround allow me to build, but i have to make a fake modification and save the file to solve this.

Each time i make a clean errors reappears...

Any ideas ?