A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Flash CS4 SWC location - please help!

  1. #1
    flashguy
    Join Date
    May 2005
    Location
    In the mountains
    Posts
    341

    Unhappy Flash CS4 SWC location - please help!

    Hi!

    I am using Flash CS4 and have created a new SWC AS3 distributable class.
    The case is that after compile it without any error and get the SWC was generated, now I don't know where to put it in order to make it show up in the IDE components panel. I have browsed Google and found a few hints that didn't work for me.

    The hint that make more sense, was to drop my SWC at:

    Code:
    C:\Program Files\Adobe\Adobe Flash CS4\Common\Configuration\Components
    So I tried:

    Code:
    C:\Program Files\Adobe\Adobe Flash CS4\Common\Configuration\Components\mycomp.swc
    C:\Program Files\Adobe\Adobe Flash CS4\Common\Configuration\Components\Custom\mycomp.swc
    Then I closed and fully reloaded Flash but nothing happened (the SWC still doesn't show up). Also, I tried the 'reload' option at the components panel menu, and still not success. Any other clue about what I am doing wrong?
    Visit my business at http://www.ballooncreator.com - Software Tool For Party Balloons Online Design!

  2. #2
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    You need to fill out an XML file for the component. Then you open the Extension manager under "Help" in Flash and install the component.
    - The right of the People to create Flash movies shall not be infringed. -

  3. #3
    flashguy
    Join Date
    May 2005
    Location
    In the mountains
    Posts
    341
    Hummm.... I am confused, I have no idea what XML you are talking about, its format and where to put it!

    Also, I checked the Extension Manager, and the install option will look for a MXI file and not XML...

    Could you give me more details please????
    Visit my business at http://www.ballooncreator.com - Software Tool For Party Balloons Online Design!

  4. #4
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    You create a mxi file, which is xml. Here is a sample file. You give it the same name as you name the component with the mxi extension.
    PHP Code:
    <macromedia-extension
         name
    ="Componentname"
         
    version="1.0.0"
         
    type="flash component">

        <
    author name="John Doe" />

        <
    products>
            <
    product name="Flash" version="9" required="true" />
        </
    products>

        <
    description>
        <![
    CDATA[
         
    This Componentname can be used in combination with CSS stylesheetsImages are fully shownwhen they are at the end of the component.
        ]]>
        </
    description>

        <
    ui-access>
        <![
    CDATA[
        
    This "Componentname" will be available in the components menu.
        ]]>
        </
    ui-access>

        <
    files>
            <
    file source="Componentname.fla" destination="$flash/components" />
        </
    files>
    </
    macromedia-extension
    Then you place the file next to your fla and all the class files, which belong to the fla in case you have those. You click on the mxi file and the Extension manager opens and asks you to create an mxp file. You create that and put in the same folder. Then you click on the mxp file and you will be asked to install the component. And that's it. When you restart flash you will find the component in the component menu.
    - The right of the People to create Flash movies shall not be infringed. -

  5. #5
    flashguy
    Join Date
    May 2005
    Location
    In the mountains
    Posts
    341
    Hi Cancerinform,

    I have figured this out - actually I didnt need to deal with the MXI or the extensions manager!

    I found the folder where it should be dropped:
    C:\Documents and Settings\%username\Local Settings\Application Data\Adobe\Flash CS4\en\Configuration\Components\

    Also, I was forgetting to tag 'Show in the components panel' option.



    Anyway, now I am struggling on make embedded assets show up when class is instantiated - If you want to take a look in the new thread, it is at:

    http://board.flashkit.com/board/show...61#post4230861

    Thanks!
    Visit my business at http://www.ballooncreator.com - Software Tool For Party Balloons Online Design!

  6. #6
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    However, when you want to distribute your component you need to create the mxp file and the component will automatically go to the correct folder.
    - The right of the People to create Flash movies shall not be infringed. -

  7. #7
    flashguy
    Join Date
    May 2005
    Location
    In the mountains
    Posts
    341
    Sure!
    Visit my business at http://www.ballooncreator.com - Software Tool For Party Balloons Online Design!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center