Skinning Flash CS3 component

I posted this in General but haven't gotten a reply, and now
I'm beginning to wonder if this must be accomplised with
ActionScript.
It's great that you can double click a component, open it up,
and put your own artwork right in there and set the 9-slice scaling
guides so it behaves properly. Lightyears better than trying to
skin in any previous version of Flash.
But, the rendered SWF does not seem to respect my artwork
dimensions. For instance, I have a Slider component for which the
default track is about 3px tall. I have my own artwork which is
about 6px tall. While I can put my artwork in the skin and it
scales perfectly, it squashes it down to 3px tall when rendered.
Likewise, my 9x12 thumb gets scaled when rendered to 13x13(which is
the default skin's thumb size) when rendered. Although the graphics
appear the right size in Flash authoring, it appears to get scaled
at runtime.
How do I avoid this? How do I define the base dimensions for
the skin graphics?
Thanks for any advice.
Post in General forum:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=194&threadid=1324684

Changing the avatar size doesn't seem to have any affect. Do
you know what the Avatar is for? It appears to be a bounding box of
some sort, but resizing it doesn't seem to change anything.
Actually, I notice that if I open the avatar, it says it is
22x80, although the scaled version in the Slider is 3x80. It seems
to be some sort of shared component. If I resize the contents of
the avatar, all my buttons change, but the sliders don't actually
change. Sadly, it seems like "3" is a hard coded value somewhere in
the source. Blah.

Similar Messages

  • Use Flash CS3 component in Flex

    As a bit of a n00b, this may be a stupid question...
    If I were to get a component made for use with "Flash CS3",
    once it's compiled to a swf & fla, is it entirely usable in
    Flex [Builder] 3 ? Say I didn't want to re-skin it, and it was
    fully programable via AS?
    Is this a "it depends"? Is it a "absolutely, you just need
    CS3 to compile it first"?
    Thanks in advance,
    AJ

    "GuinnessIsGoodness" <[email protected]>
    wrote in message
    news:gbe131$c20$[email protected]..
    > As a bit of a n00b, this may be a stupid question...
    >
    > If I were to get a component made for use with "Flash
    CS3", once it's
    > compiled
    > to a swf & fla, is it entirely usable in Flex
    [Builder] 3 ? Say I didn't
    > want
    > to re-skin it, and it was fully programable via AS?
    >
    > Is this a "it depends"? Is it a "absolutely, you just
    need CS3 to compile
    > it
    > first"?
    I think you need to either use it as an as file or compile it
    as a swc,
    unless you want to load it into a swfloader.
    HTH;
    Amy

  • Flash CS3 Component Help?

    I have a menu component I've created in Flash CS3. I'm
    running into a small problem. Currently, in Flash, I create an
    array in the first frame of the movie and then assign a
    "menu_items" property (an array) on my menu object as that array.
    The array is an array of specialized menu item objects that is
    defined in a separate class. In Flex, I would like to do this:
    <mxml:macMenu>
    <mxml:macMenuItem image="btn1.png" click="{clickHandler}"
    />
    <mxml:macMenuItem image="btn2.png" click="{clickHandler}"
    />
    .....etc
    </mxml:macMenu>
    I'm not quite sure how I can get my object to realize the
    children should be part of the array inside of macMenu called
    "menu_item" and at the same time make sure they are an instance of
    my menu item class.
    I have posted the full AS3/Flash CS3 source of my menu at
    http://www.adambergman.com/as3/macMenu.html
    Any help or ideas are appreciated!!!

    Hi Rajesh,
    I've seen your query all over the internet, so I should warn you I don't believe it's possible to disable a List Item.
    For that you should use Josh Tynjala's open source Advanced List (http://code.google.com/p/flextoolbox/downloads/list).
    Best Regards,
    Filipe.

  • Creating flash cs3 component

    Hi,
    There is great and easy way to create flash based component
    in flash cs3 using action script 3.0.
    I am going to make a simple My button component which will
    behave likely same as flash native button component.
    You can modify this according your requirement this is just
    you give an idea about how we can go for creating a component in
    flash cs3.
    Follow these steps…
    1. Create a fla file and save this file with any name
    2. Create a movieClip and draw a rectangle shape on first
    frame.
    3. Right click on movieclip in library, select linkage
    4. Provide class name in text field area [MyButton] (you can
    use any name here which should matched with your class)
    5. Click Ok button
    6. Write class [MyButton]
    (you can copy and use this)
    * author @ sanjeev rajput
    * [email protected]
    * A flash action script 3.0 based component without extending
    UIComponent class
    package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.events.MouseEvent;
    import flash.events.Event;
    import fl.motion.Color;
    public class MyButton extends Sprite{
    private var _tf:TextField;
    private var _Label:String="My Button";
    private var _bgColor:uint=0xCCCCCC;
    private var _rollOverColor:uint=0xFFCCCC;
    private var _borderColor:uint=0x000000;
    private var _borderThickness:int=1;
    private var _width:Number = 100;
    private var _height:Number =100;
    private var _background:Sprite;
    public function MyButton() {
    init();
    createChildren();
    initEventListeners();
    draw();
    //-------------property section [Start]
    [Inspectable]
    public function set Label(lbl:String){
    _Label=lbl;
    draw();
    public function get Label(){
    return _Label
    [Inspectable]
    public function set bgColor(color:uint):void{
    _bgColor=color;
    draw();
    [Inspectable]
    public function set borderColor(color:uint):void{
    _borderColor=color;
    draw();
    [Inspectable]
    public function set borderThickness(thickness:int):void{
    _borderThickness=thickness;
    [Inspectable]
    public function set rollOverColor(color:uint):void{
    _rollOverColor=color;
    //-------------property section [End]
    private function init():void {
    trace('welcome');
    _width = width;
    _height = height;
    scaleX = 1;
    scaleY = 1;
    removeChildAt(0);
    private function initEventListeners():void{
    addEventListener(MouseEvent.MOUSE_OVER, eventHandler);
    addEventListener(MouseEvent.MOUSE_OUT, eventHandler);
    private function eventHandler(event:Event):void{
    if(event.type == MouseEvent.MOUSE_OVER){
    toggleColor(_rollOverColor);
    if(event.type == MouseEvent.MOUSE_OUT){
    toggleColor(_bgColor)
    private function createChildren():void {
    _background = new Sprite();
    _tf = new TextField();
    _tf.autoSize = "center";
    _tf.selectable=false;
    addChild(_background);
    addChild(_tf);
    protected function draw():void {
    toggleColor(_bgColor);
    _tf.text = _Label;
    _tf.x = Math.floor((_width - _tf.width)/2);
    _tf.y = Math.floor((_height - _tf.height)/2);
    //width = _tf.width;
    private function toggleColor(color:uint):void{
    _background.graphics.clear();
    _background.graphics.beginFill(color, 1);
    _background.graphics.lineStyle(_borderThickness,
    _borderColor, 1);
    _background.graphics.drawRoundRect(0, 0, _width, _height,
    10, 10);
    _background.graphics.endFill();
    public function setSize(w:Number, h:Number):void {
    _width = w;
    _height = h;
    draw();
    7. Now right click again on your movieclip in library and
    select component definition.
    8. In class name text field provide same class name
    [MyButton]
    9. Click on ok button
    10. Right click again on movieClip in library and select
    Export SWC file.
    11. Same your exported SWC file in (For window only)
    [c:\Documents and Settings\$user\Local Settings\Application
    Data\Adobe\Flash CS3\en\Configuration\Commands\
    12. Now just open another new flash file open component
    panel/window reload component you will your component in component
    panel with MyButton name.
    13. Drag your custom component on stage provide inputs form
    property window and text it.
    Enjoy!

    Lt.CYX[UGA] wrote:
    > if anyone is using Flash CS3, try creating a flash
    movie, using the FLVPlayer
    > component to play an flv video and make it an executable
    projector. Run it
    > fullscreen and watch how the screen just stays black
    when the video should
    > appear. If you stay windowed, it works fine.
    >
    >
    steps to reproduce:
    > 1. create flash movie
    > 2. put an FLVPlayer component on a frame that's not the
    first (for testing
    > purposes)
    > 3. before the projector reaches the frame with the
    FLVPlayer component, change
    > it to fullscreen (by script or CTRL+F)
    >
    >
    observed behaviour:
    > not only the video doesn't play, but the whole screen is
    black until the
    > player goes back to windowed mode
    >
    >
    expected behaviour:
    > video should play
    >
    >
    remarks:
    > if you skip step 3, video plays correctly
    >
    Works just fine.
    Made new movie, on frame 2 places Full screen action, on
    frame 5 placed video component
    and stop(); action attached to frame. Projector pops large
    following by video playing
    just fine.
    I tried variety, first frame, many frames, all on one. Not
    able to reproduce your problem.
    Works on first go.
    Best Regards
    Urami
    Beauty is in the eye of the beer holder...
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • How to build a custom Flash CS3 component

    I just googled in the hope to find some resources about how
    to build custom Flash CS3 components, but nothing turned up. I also
    couldn't find any info on Adobe's Flash developers center.
    Do you know of any resource that sheds some light on this
    subject?
    If not then I'll have to try to find my way around custom
    components by learning from the ones that came with Flash CS3 I
    guess.

    Flash CS3 has been out for a few weeks. At this point, your
    best bet is Amazon books or Barnes & Noble. I've read a few
    books that should shed light on the subject. Otherwise, you'll need
    to wait a few more weeks while people start hashing it out and
    posting it to blogs and other sites.

  • Customizing DataGrid component in Flash CS3 using AS3

    Can anyone please explain how to customize the DataGrid
    component in Flash CS3 using AS3???
    How do you remove/change the grid lines for the rows and
    colums?
    How do you remove/change the border?
    My day has been lost searching for this answer. Flash
    Documentation is worthless and Google finds nothing with regards to
    AS3. ASDGRH.
    Thanks in advance,
    TedWeb

    I hope you've found a resolution to this by now, but I just noticed the discussion title when posting a captioning issue.
    In a nutshell, create a listener on your FLVPlayback module with a VideoEvent.SKIN_LOADED event. You'll also need to set the showCaptions in your FLVPlaybackCaptioning object to true. Apparently, if the captions are set to false when the player object loads the skin, the captions aren't recognized and your captions toggle will require an extra click to activate the captions.
    Here's the link to another discussion on the same topic with all of the details:
    http://kb2.adobe.com/cps/402/kb402452.html
    Also, have you had any issues with the caption button in the FLVPlayback skin not showing up? That's my current issue. Here's the discussion for it:
    http://forums.adobe.com/thread/796423?tstart=0

  • Flex skin in Flash CS3

    Hi!
    I have installed the Flex Skin Design Extensions and
    Flex Component Kit for Flash CS3. But i cannot find the flex skin item under File > New > Templates > Flex Skins in flash. How can i find the items? I have tried everything. Restarting my computer, try to install it in another computer and installed the plugin files again. But non of it work for me. Is really getting my nervs.. Please.. can some one help me???

    Help??? any one???

  • Flash 8 component not working in flash cs3

    Hi, I have a flash 8 component (well, it was written for
    flash 8 but it claims to be compatible with flash 7+).... which I
    am trying to get to show up in the components panel in Flash CS3
    trial version. I have the flash CS3 extension manager, it shows up
    in there, but it doesn't show up in my components window in flash
    cs3. What do I need to do to get the flash 8 component to show up
    in flash CS3??

    Hi,
    When you open a new file in Flash CS3, you got the option to
    choose either AS2 file or AS3 file, the components are different on
    each one.

  • Flex Component Kit for Flash CS3

    Hi,
    I created a flex component using the component kit for Flash
    CS3. The component contains a vector image wrapped as a MovieClip.
    In my flex application I add the component as child to a
    Canvas. It works well if i add it like -
    <mx:Canvas id="container" >
    <local:MyComponent />
    </mx:Canvas>
    or like -
    container.addChild (new MyComponent()); //DISPLAYED
    However, the component is not displayed when I do the
    following -
    var array:Array = new Array(new MyComponent());
    container.addChild(array[0]); //NOT DISPLAYED
    Can somebody tell me why this is so?
    I would also like to know if such components can be
    instantiated using flash.utils.getDefinitionByName.
    I tried it but I get Error #1065: Variable 'componentName' is
    not defined
    Could somebody please tell me what is going on?

    Hi bolaughlin,
    Thanks for you reply.
    Error 1065:
    import MyComponent;
    var comp:MyComponent = new MyComponent(); //Error 1065
    //Where MyComponent is the Flash CS3 clip that was converted
    to Flex component
    I have a workaround for this -
    I first add the component as an Mxml tag with visibility
    false and then remove the component
    with actionscript. Now all instantiations work normally (this
    includes all components in the SWC).
    <mx:Canvas id="container" >
    <local:MyComponent visible="false" />
    </mx:Canvas>
    and in <mx:Script>
    container.removeAllChildren();
    var comp:MyComponent = new MyComponent(); //Works
    var anotherComp:MyOtherComponent = new MyOtherComponent();
    //From the same swc; This also works.
    I have a feeling this problem is similar to the 'shared
    fonts' problem that
    existed with Flash MX and below.
    Anyway, even though I don't really know whats happening, my
    project can
    move ahead. Hopefully some Guru will explain this.
    Until then...thank you very much.

  • Problems With List Component Flash Cs3

    Hello Friends,
    I am working in Flash Cs3.
    I am having a List component in my application.
    I added 10 items into my list component. Now out of those 10 items, i want to disable particular list items like Item 4, Item 8, Item 9. How to do this using flash cs3 or flash 8.0.
    Item1   --  Enabled state
    Item2   --  Enabled state
    Item3   --  Enabled state
    Item4   --  Disabled state
    Item5   --  Enabled state
    Item6   --  Enabled state
    Item7   --  Enabled state
    Item8   --  Disabled state
    Item9   --  Disabled state
    Item10 --  Enabled state
    Any suggestions/ideas would be really appreciated.
    Regards,
    Rajesh

    Hello Friends,
    I got a partial solution for this. Now i can able to disable a particular list item using flash cs3. I achived this. But it was happening only after clicking the item values....
    But i need in a diff way like, as soon as you run the flash file it has to disable. how is this possible in flash cs3.
    this is the code :
        import fl.controls.List;
        import fl.controls.listClasses.CellRenderer;
        import fl.controls.listClasses.ListData;
        import fl.events.ListEvent;
        import flash.display.Sprite;
        import flash.events.Event;
        import flash.text.TextField;
            var sampleItem1:Object = { label:"John Alpha" };
            var sampleItem2:Object = { label:"Mary Bravo" };
            var sampleItem3:Object = { label:"Trevor Gamma" };
            var sampleItem4:Object = { label:"Susan Delta" };       
            var myList:List;
            var tf:TextField;
      ListDataExample()
             function ListDataExample() {
                createList();
                tf = new TextField();
                tf.x = 10;
                tf.y = 125;
                addChild(tf);
             function createList():void {
                myList = new List();
                myList.move(10,10);
                myList.addItem(sampleItem1);
                myList.addItem(sampleItem2);
                myList.addItem(sampleItem3);
                myList.addItem(sampleItem4);
                myList.rowCount = 4;
                myList.addEventListener(ListEvent.ITEM_CLICK,listItemSelected);
                addChild(myList);
             function listItemSelected(e:ListEvent):void {
                var cr:CellRenderer = myList.itemToCellRenderer(e.item) as CellRenderer;
                var listData:ListData = cr.listData;
       if(cr.listData.row == 2) {
        cr.enabled  = false
                tf.text = "Row selected: " + listData.row;
    waiting for your replies.
    Regards,
    Rajesh

  • Can't play mp4s using flash playback component CS3 after reinstall

    I had to reinstall my flash cs3 and now application I made that played mp4 videos using the flvplayback component won't play anymore I get a video error
    VideoError: 1005: Invalid xml: URL: "videos/Logo Animation WEB.mp4" No root node found; if url is for an flv it must have .flv extension and take no parameters
        at fl.video::SMILManager/http://www.adobe.com/2007/flash/flvplayback/internal::xmlLoadEventHandler()
        at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at flash.net::URLLoader/flash.net:URLLoader::onComplete()
    I dont know whats wrong. I have all the latest updates. Does anybody know whats the solution and why after a reinstall I would be experiencing this problem.

    Hi-
    Referring to this post:
    "The AIC codec is installed by iMovie HD and is just what its name implies. Intermediate (temporary conversion from one file format to another).
    Your G4 will not be able to play the file past a few frames per second because of the large dimensions and high data rate even if you did find the codec. You'll find editing it using QuickTime or iMovie a frustrating experience because of those facts."
    I'm a little confused-- do you mean that the G4 computer is just not strong enough to edit HD files "even if I did find the codec"? I was planning to edit it with Final Cut Pro (have never edited a HD project before), but is my computer not adequate? Let me know if there is any way for me to tackle an HD project with my current laptop-- otherwise I guess I really need to look into a new one.
    -shc

  • Creating flv skins in cs3 and using them in Flash 8

    We created a custom skin in flash cs3 but we want to
    implement the custom skin into some flash 8 projects. We have been
    having problems and when we exported with actionscript 2.0 all hell
    broke loose.
    Any ideas on how to get this to work??
    thank

    this code works
    var tf:TextField = new TextField();
    var tfor:TextFormat = new TextFormat();
    tfor.font = new _TrebushetMS().fontName;
    tfor.italic = true;
    tf.width = 300;
    tf.height = 200;
    tf.embedFonts = true;
    tf.border = true;
    tf.defaultTextFormat = tfor ;
    tf.text = "this is a test";
    this.addChild(tf);
    This code does not work
    var tf:TextField = new TextField();
    var tfor:TextFormat = new TextFormat();
    tfor.font = new _TrebushetMS().fontName;
    tfor.italic = true;
    tf.width = 300;
    tf.height = 200;
    tf.embedFonts = true;
    tf.border = true;
    tf.setTextFormat(tfor) ;
    tf.text = "this is a test";
    this.addChild(tf);
    i don't know why

  • FLVplayback component mod help (Flash CS3, as3)

    can anyone help me with the actionscript needed to
    dynamically call a flv video into cs3's default
    flvplaybackcomponent with a variable?
    i have it working on as2 but the scripting must be different
    in as3 cause it dosnt work there.
    my as2 code is as follows:
    stop();
    var passed:String = video;
    player.contentPath= video;
    this allows me to use videoplayer.swf?video=[video].flv
    but i need this to work in cs3 flash9 player with the
    fullscreen support
    any help would be greatly appreciated.

    which version of flash cs3 do you have?

  • DateChooser Component for Flash CS3, AS3.0

    Where and how do I get the datechooser for Flash CS3, AS3.0?

    which version of flash cs3 do you have?

  • Problem Installing Flex Component Kit for Flash CS3

    i have downloaded the mxp files from here:
    http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex_skins
    And installed them using the extension manager (flash cs4) but i don't get the new commands added (rebooted flash cs4, of course...)
    Any ideas please?

    Would you mind posting your question on the Flex Kit for
    Flash CS3 discussion page on Adobe Labs? This way the engineers
    developing the kit can respond.
    Here's the link:
    Flex
    Kit Discussion

Maybe you are looking for

  • Display filename in text field

    Hi, A simple question; how can I insert the pdf filename (without the file path) as a read only value in a text field. As this is not available as a Runtime property is there a script for this? Thanks! Sam

  • Transfer mail accounts in lion

    Old hard drive got loaded up so I transferred my system to a new hard drive using Migration Assistant. Everything worked fine: users, applications, etc except no mail accounts. I have a number of emails for work, home, school, etc so I don't really w

  • Word "Logo" Appears on Titles When Exporting as Windows Media File

    Whenever exporting as a windows media file, the title pages are obscured by the word "logo" in large type across the screen. Is there a rendering step or other problem I am overlooking? It doesn't seemed to be a problem with other export formats -- b

  • Burn movies / music videos

    I purchased some movies and music videos on ITunes. I need to burn them into discs. Please guide me how to do it as when I click on BURN DISC it comes out like burning audio CD. There isn't an option for burning VCD or DVD...and I fail to do the job.

  • Imac runs slower and disk drive no longer supported

    I am not tech savvy.  I am writing this for help.  My 2009 imac has been upgraded each year.  Now that I have Yosemite, things run slower. I thought keeping current was a good thing, but now I realize it might not be. Also, why has apple discontinued