Creating a component in Flash CS5

Hi,
How can I create a component using Flash CS5? I have tried to follow various documents I have found on google and went about it in the following way:
1. I created an empty FLA.
2. I created a MovieClip containing some graphics, and named the MovieClip "MyTestComponent" in the Library.
3. I selected the MovieClip's properties in the Library and selected "Export for Actionscript", and made the MovieClip inherit from fl.core.UIComponent.
4. I saved the FLA in the directory "C:\Program Files (x86)\Adobe\Adobe Flash CS5\Common\Configuration\Components" and restarted Flash. At this point I would expect that the MyTestComponent component would show up in the Components panel, but it did not.
5. I tried to publish the FLA as an SWC file and place the SWC file in the same file as above. According to my understanding, both this and the step above should have worked, but it did not.
So, what am I missing?
Also, where can I find an up-to-date documentation on how to create components to be used in Flash CS5?

I managed to get it work at the end...
First, the components directory was at this location:
C:\Users\<username>\AppData\Local\Adobe\Flash CS5\en_US\Configuration\Components
Then, to make a component out of a MovieClip, right click on the MovieClip in the library and select "Component Definition" and check the checkbox "Display in Components Panel". What I did then was to right click on the MovieClip and selected export swc file, and saved it in the directory above. This exported only one Component, which was fine for me. Probably it would be possible to do something similar to save a library of components as a .fla or .scw or so, but I don't know the details.

Similar Messages

  • Workflow for creating Flex components in Flash CS5 needs work

    Am I missing something? I thought things were supposed to be easier.
    I'm creating an AIR application for a client with heavy embedded video.
    I have chewed up days on trying to get stuff to work, mostly creating a graphics heavy component that I can use in the AIR (Flex) app.
    Just clicking the magic "Convert Symbol to Flex Component" command won't do it if you have created your own .as class for the symbol, because it won't compile unless you extend the UIMovieClip class. Good luck trying to find it in the namespace.
    After hours I found where to download the Flex Component Kit that contains the swc that gives you the UIMovieClip class.
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1273 018#
    Notice the title of the page:  Flex Component Kit Alpha for Flex 2.0.1
    Shouldn't the need for this kit be ancient history? Shouldn't that swc be built in to the new SDK's and/or Flash Builder 4?
    Make my living on Adobe products, and love them, but this is sloppy. No documentation. No walk-throughs. Have burned many hours that I can't charge the client for because it make me look incompetent.
    Creating a Flex component in Flash with extended functionality SHOULD be a no brainer.
     

    I managed to get it work at the end...
    First, the components directory was at this location:
    C:\Users\<username>\AppData\Local\Adobe\Flash CS5\en_US\Configuration\Components
    Then, to make a component out of a MovieClip, right click on the MovieClip in the library and select "Component Definition" and check the checkbox "Display in Components Panel". What I did then was to right click on the MovieClip and selected export swc file, and saved it in the directory above. This exported only one Component, which was fine for me. Probably it would be possible to do something similar to save a library of components as a .fla or .scw or so, but I don't know the details.

  • Creating universal app using flash cs5

    Hi,
    I'm using Flash CS5 and I wanted to create an universal app (iphone + ipad).
    Then I click the "iphone IOS settings"  there is no device menu, so I can't choose the desired devices..
    I dont know why the device menu has disappeared?
    I saw on several video tutorials, that you can simply choose the desired device.
    But then I look at my own project and I click the "iphone IOS settings", I cant find any "device" menu by the "general" tab.
    Does anybody know how I can resolve that problem?

    The iPad support was added later. Get the 11.02 updater here:
    http://www.adobe.com/support/flash/downloads.html#flashCS5

  • How to create a preloader in Flash CS5?

    can someone help me with creatinga preloder in CS5?

    Here is the code.Create a movie clip and call it logo_mc    Inside that movie clip insert a text field.  Make it dynamic.  then lable it percent.  This will create a nice preloader.  Do not put this code in your current project.  Create a new file.  change "http://www.buttonbeats.com/images/pianonewSounds.swf" to the address of your flash app.
    var l:Loader = new Loader();
    l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop);
    l.contentLoaderInfo.addEventListener(Event.COMPLETE, done);
    l.load(new URLRequest("http://www.buttonbeats.com/images/pianonewSounds.swf"));
    function loop(e:ProgressEvent):void
        var perc:Number = e.bytesLoaded / e.bytesTotal;
        logo_mc.percent.text = Math.ceil(perc*100).toString()+"%";
    function done(e:Event):void
    //    for(var i:uint = 0; i < numChildren;i++){
    //        trace("CHILD:"+getChildAt(i).name);        
        removeChildAt(0); 
        addChild(l); 
        var movie:* = l.content; 
        movie.play(); 

  • Creating PDF thumbnails in Flash cs5.5 AIR

    I need a way to create a thumbnail of the first page of a PDF. I am downloading a pdf and saving it locally. I just don't know a way to get the contents of the first page to a bitmap, bitarray or jpg format.  I have been using jpgencoder for other image file type thumbnails but don't even know where to go for PDFs.
    Anyone have any ideas?

    No ~ I do answer questions if I know the answer even on the wrong forum.
    And I point to the right forum when I know which it is: this time I know nothing except this is the wrong one!
    Good luck

  • Seek Bar Component Flash CS5

    Hi, I've been trying to use the seek bar component in Flash CS5.
    I've managed to use create my own play and pause buttons using the following code:
    playbtn.addEventListener(MouseEvent.CLICK, fl_ClickToPlayVideo);
    function fl_ClickToPlayVideo(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component
              video.play();
    pausebtn.addEventListener(MouseEvent.CLICK, fl_ClickToPauseVideo);
    function fl_ClickToPauseVideo(event:MouseEvent):void
              // Replace video_instance_name with the instance name of the video component
              video.pause();
    I've dragged the SeekBar component onto the stage and given it an instance name of "mySeekBar".
    I have then referenced this in the Actionscript as follows:
    video.seekBar = mySeekBar;
    However, the seek bar doesn't work. It displays but there is no slider etc.
    Can anyone help me out as I have very little knowledge of Actionscript!
    Thanks.

    Hi, couldn't quite get everything in two screenshots:
    1. FLV & properties:
    http://gyazo.com/df0848ed58e3b86c15a9f3ea51cd13c0
    2. Seekbar selected & properties
    http://gyazo.com/c54da21cfc29727f2ea0a38f5d794926
    3. Actionscript in "Actions" layer
    http://gyazo.com/92bd65d25dff0c027a04bd3f1b62542a
    Thanks.

  • Project created in Flash CS3 & Flash CS5 crashes both Safari & Firefox

    I have a user with a brand new image including Snow Leopard 10.6.6 and the Adobe CS5.  When creating a project in Flash CS5 and then trying to view it in Safari & Firefox the plug-in crashes which then brings down the browser with it.  I went and installed Flash CS3 (as this is what he is used to using) and the problem still persists.
    Any ideas?

    anyone?

  • Jarsigner finding .p12 certs created by flash cs5 as 'wrong format' ??

    I have created an app using flash cs5 and a self signed cert using flash cs5
    I now must decompile the app, change the app id and recompile it.
    Then sign it using jarsigner.
    The problem I have is that when I point jarsigner to the cert I used it says that it is not formatted right.
    I know I am missing something, but what?
    Using any other cert will result in not being able to update my app.  This is bad I know but it is my last resort before unpublishing my paid app and publishing it again.
    A lesser option would be for me to reload an old flash extension for air ( probably released early in the air for android pre release ).  But I can not find it.
    Any help is much needed and thank you in advance.

    A .cer file doesn't include the private key, just the certificate that contains the public key.
    I suspect the problem is that you need to specify the alias for the private key in the keystore (which can contain more than one). Unfortunately, when AIR creates a cert, it doesn't assign this value, so you have to use the default for whatever tool you are working with. For jarsigner, this seems to be the distinguished name assigned to the cert/key, which is basically the values you used to create the cert, concatenated together.
    For example, I was able to sign a jar file with a self-signed cert/key pair generated with ADT using the following command:
    jarsigner -keystore file:\\\c:\certs\foo.p12 -storepass passwoord -storetype pkcs12 sudoku.jar "cn=charles ward,ou=learning resources,o=adobe systems\, inc.,c=us"
    That last, long bit in ""s is the alias. If I don't use it, then I get the same error you are reporting.
    I was also able to import the same keystore into a new Java keystore with the following command:
    keytool -importkeystore -srckeystore c:\certs\foo.p12 -srcstoretype pkcs12

  • Creating app in Flash CS5 issue!

    I've been creating an app in Flash CS5, but already early in the process I encountered a lag issue when I got it on my iPhone4. I've created a simple map, with few colors on it, where it's possible to zoom in/out (pinch) and move the map around using a single finger, when the map is zoomed in.
    When I start piching in/out it lags, and when I move the map it lags as well.
    I have already tried these things:
    - Different fps from 8 to 60
    - Fewer colors
    - Fewer object
    - Converting objects to symbols
    - Deleted unwanted layers
    - Rendered using both CPU and GPU
    - Tried fullscreen view and none fullscreen view
    Anyone who has an idea on how to reduce the lag issue?

    already early in the process I encountered a lag issue when I got it on my iPhone4.
    Surprise, surprise... this is one of the reasons why Apple recommends against using third-party development tools, instead of native ones.
    Quoted from Apple's "Thoughts on Flash":
    +"We know from painful experience that letting a third party layer of software come between the platform and the developer ultimately results in sub-standard apps and hinders the enhancement and progress of the platform."+
    You'd be better off asking in the Adobe developer forums for help with their development software.

  • Flash CS5.5[Publish Settings]: How to include custom Metadata tags in swf?

    In Flash CS5, the 'Publish Settings' for the fla had an 'Export SWC' checkbox that took care of that.
    The option is missing. Why was it removed and how can  that be done in 5.5?

    Thanks sinious, but, it doesn't work.
    Let me elaborate on what I want to do:
    I'm trying to create a swf in Flash CS5.5, that's using a flex library (swc) that relies on Metadata tags (anotations).
    I need to use the metadata tags in my as3 code (in the fla), and They need to be compiled into the swf (by Flash CS5.5 compiler...).
    Although, when I load that swf, the metadata tags aren't compiled into it (I'm using describeType to check if tags are available in the swf).
    In flex, I would use the '-kepp-as3-metadata+=' compiler setting to do that, in Flash CS4 & CS5 I used the 'Export SWC' in the publish settings, but that's removed (WHY???).
    Checking XMP Metadata didn't change that, the tags are still not included in the compiled swf.
    Anyone?

  • Loop then stop Flash CS3 vs Flash CS5

    I recently upgraded from Flash CS3 to CS5. I'm creating a banner in Flash CS5 using ActionScript 2.0. I want it to loop 3 times then stop. I'm using the same code as I did in CS3. When I view it using Flash Player, its fine but my client is saying it loops continuously when they view it. Has the code changed since CS3? Here is the code I'm currently using:
    ON FIRST FRAME I ENTERED:
    var count;
    if(!count){
         count = 0;
     THEN ON THE LAST FRAME I ENTERED:  
    count += 1;
    if(count == 3){
    stop();
    I'm Action Script challenged, so please be specific. Thank you in advance for your help.

    Hello kglad,
    Thanks for confirming that the script was fine. Seems like there was something wrong with the swf file, not the script. Thanks for ruling out the script as the problem source.
    Judy

  • [Flash CS5.5 / Air 2.6] Movieclips not showing when .air app is run on Mac

    Hello,
    I created an application in Flash CS5.5 using Adobe Air 2.6. When I test the app on my computer (where it was written) everything works fine. When I publish the application and run the .AIR on my computer everything works fine as well. The issues comes about when I attempt to install and run my AIR application on a Mac operating system. In this case when the application runs some graphics are visible while some aren't. Some movieclips/buttons are visible while others aren't. One example of this is the buttons. None of the buttons in the entire application are visible. When the user clicks the area where the button should be the button click event is fired and the app acts accordingly (i.e. the main menu button which can't be seen still sends the user to the main menu). What could be the problem?
    I had thought of just converting the application to strictly Flash without AIR but I require AIR for the file system api as well as a couple other api components.
    Thank you in advance,
    Noah

    Hi Noah,
    I don't think I've run across this before.  I'd be willing to give it a try on my system if you'd like (you can email me at [email protected]).  Though I suspect this is a project specific issue, it also can't hurt to open this as a new bug over at bugbase.adobe.com.
    Chris

  • Loading child SWFs with TLF content (from Flash CS5.5) generates reference errors in FB4.6

    I am currently producing e-learning content with our custom AS3-Framework.
    We normally create content files in Flash CS5.5 with dynamic text fields, which are set at runtime from our Framework (AS3 framework in FB4.6).
    Now we are in the progress of language versioning, and since one of the languages is Arabic we are changing the dynamic text fields to TLF fields.
    Then all my problems started.
    In Flash I have chosen to include the TLF engine and to export in frame 2.
    (see to: http://helpx.adobe.com/flash/kb/loading-child-swfs-tlf-content.html )
    I get this error:
    VerifyError: Error #1053: Illegal override of getEventMirror in flashx.textLayout.elements.FlowLeafElement.
                at flash.display::MovieClip/gotoAndPlay()
    I guess it is because our framework wants to gotoAndPlay before the TLF engine has been loaded.
    Can this be it?
    Any good suggestions on how to handle loading child SWFs with TLF content.

    Please refere to the following articles .. you may find some help.
    http://www.stevensacks.net/2010/05/28/flash-cs5-tlf-engine-causes-errors-with-loaded-swfs/
    http://www.adobe.com/devnet/flash/articles/preloading-tlf-rsl.html
    I also faced similar problem and posted a question at the following link, but, I still couldn't find the solution.
    http://forums.adobe.com/message/4367968#4367968

  • Flash CS5.5 - font outlines still get embeded while using runtime sharing

    I have a project where I use several SWFs and have the fonts outlines stored into a seperate SWF. Within the .fla file's I have checked the Import for runtime sharing with the various font definitions.
    In the library the linkage part shows for every font the Import: classname
    To get a correct idea how things look within the IDE, I've checked several character ranges within the font properties so the preview renders correctly.
    In Flash CS5 everything was working correctly; no font outline was included within the SWF. The size report also shows this.
    When I create the SWF with Flash CS5.5 font outlines of the selected ranges still get embedded into the SWF. The file size of the SWF is much larger and the font outline information shows up in the size report.
    Anyone has a solution for this problem?

    I've just stepped into the same problem. Quick analysis of SWF content showed that all "import" tags have been removed and replaced by "font" tags (sometimes empty (empty - meaning no glyphs are there), sometimes not). I am publishing SWFs for Flash 8/ AS 2.0, thus, the SWFs should be FULLY compatible with old players. Technically speaking, importing of fonts is totally busted in CS5.5 and makes the CS5.5 completely unusable for us.
    Seems VERY much like a nasty bug. I am going to play a bit more with it in order to find a workaround. If not - I'll go back to CS5. I really hope Adobe will fix this bug ASAP. I have submitted a bug report about this issue.
    A bit more info about repro the issue: create font.fla and export font $Font from it. Create the second fla (main.fla) that imports the font $Font from  the font.swf. Publish all the swfs. Look inside the main.swf and instead of "ImportAsset" tag for font you'll see the regular "Font" tag (like it was never imported). However, the "ExportAsset" tag exists in font.swf and it looks completely fine.
    AB: Added some info

  • Flash CS5 custom component

    Hello,
    I have a problem since I improved my version of Flash (CS3 to CS5). I created a component in which there are several parameters. My problem concerns parameters which are "Number" type. It appears to no longer be managed the same way since CS5. Indeed, if I pass a value greater than 1, the value retrieved in actionscript is 0. It seems that the values of "Number" type for CS5 should be as follows 0 <= x < 1.
    Is this a bug? How to pass a value greater than 1 (eg: 800) ?
    Thank you in advance.

    I would if we could - but we need support for unicode characters.  Our primary language is Nepali using the Devanagari script, which is not supported by Classic Text (the written language is all about complex ligatures - often up to five multibyte characters are rendered as one).

Maybe you are looking for

  • Can servlet talk to a GUI?

    Hi everybody, I am still new to java programming and I have a problem with a task and don't find any documentation on this specific subject. I have to write a program which is retrieving information from a database and displays this information in a

  • CRM 7.0 - Enhancement of Data Sources for interactive Reporting

    Hallo All, I would like to know whether anybody has positive experience with the enhancement of CRM Data Sources for interactive Reporting. I read that the enhancement of Customer fields should be possible (Those Data Sources below the Hierarchy node

  • Printing wirelessly from laptop but can't print from iPhone or iPad to officejet 6700

    On the Officejet 6700 I have it set up to print wirelessly from my laptop, but it does not print from the iPhone or iPad.  It locates the officejet and says it's preparing to print and even appears that it is going to print, but nothing prints.  Thou

  • ISO: a way to password protect a volume or drive

    Is there any EASY way to password protect a volume or drive either via the OS or by some utility? I'd like to have one drive with my sensitive docs that's password protected that I could carry with me and use on multiple systems. I see various encryp

  • Purchasing ringtones

    Hi All, For some reason, while trying to create a ringtone using iTunes, I can't get the "buy" button to appear on my screen (it's somewhere off to the right). I've tried changing around the view but still haven't been able to get the "buy" button to