Help! Components between Flex and Flash!? Uggghh

Hi All,

I used to post on these forums when I last used flash (MX2004), and it seems that things have changed a bit in the world of flash. I’m very happy to discover that, mainly because I used to hate using MX2k4. Now I can use AS3 to program everything and generate swfs.

Anyway, I’m trying to code a dynamic ad slot picker. As a starting point, I want to get a play/pause button, and a progress slider on the stage. The slider is meant to move with the mp3, and then if the user drags it, the position of the song will change appropriately.

:hang: So heres where my problem comes in. I’m using flex 3, and I want this project to be comletely AS3. I’d prefer to be coding in linux, but I couldn’t quite figure out how to get the mxmlc compiler working. Regardless, I want everything to be born of AS3. I tried using mx.controls.sliderClasses.Slider, as well as fl.controls.Slider. In flex, I added the mx and fl libraries to the project’s build path, and I get no errors.

When I compile and view the swf, I don’t see the sliders. I tried using something like fl.something.textArea and that showed up, but the slider won’t. Very confusing for me, at the moment. I’m kinda apalled that there isn’t a shared library of some sort between flex, flash, and actionscript.

So, kirupans, any suggestions? Should I just code it in Flash cs3, or do something while in Flex? I’d rather not code buttons and sliders from scratch (why reinvent the wheel).

Any help is appreciated.

Thanks a ton.

-Chris

[edit] one more thing – I’m also importing fl.controls.Button, and when i set myButton.label = “i has a label”; the label shows up in the swf… weirdness…