moock.org is supported in part by


September 10, 2003

source code for v2 components

just in case you didn't notice, macromedia included the source code for the v2 components that shipped with 2004. the source is a bit buried though.

you can find the source code for the components in the following folders
(on mac substitute everything before "Macromedia" with: HD:/Users/yourname/Application Support/).

* most of the UI components:
c:/Documents and Settings/yourname/Local Settings/Application Data/Macromedia/Flash MX 2004/en/Configuration/Classes/mx/controls/

* container components such as ScrollPane and Window:
c:/Documents and Settings/yourname/Local Settings/Application Data/Macromedia/Flash MX 2004/en/Configuration/Classes/mx/containers/

* core classes, including UIObject and UIComponent:
c:/Documents and Settings/yourname/Local Settings/Application Data/Macromedia/Flash MX 2004/en/Configuration/Classes/mx/core/

* various utilities including focus and depth management:
c:/Documents and Settings/yourname/Local Settings/Application Data/Macromedia/Flash MX 2004/en/Configuration/Classes/mx/managers/

*.fla files for the components:
c:/Documents and Settings/fritz/Local Settings/Application Data/Macromedia/Flash MX 2004/en/Configuration/ComponentFLA

(note that if you're not using an english language version of flash, you'll need to change "/en/" to the language code you're using)

Posted by moock at September 10, 2003 01:12 PM
Comments

although, i've contact with Flash MX 2004 about 2 weeks, but everything is really wonderful........

Posted by: Nguyen Hoa Bac at October 21, 2003 08:50 AM

Scrollbar is inside other components..

Posted by: Justtodo at October 20, 2003 11:13 AM

YEK! Thats really incredible.
Im reading the Using Components.pdf for Flash 2004 and Flash 2004 Professional. In that electronical book I found a great explanation on how to se the ScrollBar component. What a pity it does not exists in the component panel.
This is not a prof work.

Posted by: Silvano at September 15, 2003 07:47 AM

Hi!
At Macromedia, people like complicated life!
Was it a too much great effort to put that damned scrollbar component as in the previous Flash Version?
Ok...its easy to change the skins of each element, but why Open-Save as-export for AS etc etc for such a simple component like a scrollbar?

Uhm...thinking...thinking...

Posted by: Silvano at September 14, 2003 11:37 AM

the scrollbar is now part of scrollpane and textarea. mm expects you to use one of those components rather than use the scrollbar directly...however, it is possible to rip the scrollbar out of the component set and make it a standalone component. i might post info on that one day (too busy with the launch of Unity 2 right now).

Posted by: colin at September 11, 2003 10:43 AM

There are 2 bugs also:

Button.setEnabled() -> if its turned to unable turning back to enable is not possible.

TextInput never looses focus.

Fernando

Posted by: Fernando at September 10, 2003 11:56 PM

is it just me or is there no scrollbar component?

Posted by: anon at September 10, 2003 11:20 PM