Flex SWC Library in Flash CS3

I have created a few SWC libraries in Flex and I would like
to distribute them so that they can be used in Flash CS3.
Is this possible at all?
None of the classes in my libraries contain any Flex-only
classes ( i.e. anything in the mx.* packages ). There doesn't seem
to be any options available in Flash CS3 to allow it to reference
classes stored in SWC files though. :(
Thanks.

Thank but It does not seem to work with Flex 3.0. I've tried
with the compiler "-compute-digest=false" option as suggested but
no luck. Do you have any idea?
Thanks

Similar Messages

  • Flex swc library in Flash CS3 project

    Is it possible to use a swc library created in Flex in a
    Flash CS3 project?

    Thank but It does not seem to work with Flex 3.0. I've tried
    with the compiler "-compute-digest=false" option as suggested but
    no luck. Do you have any idea?
    Thanks

  • Comunication and events: Flex Builder 2 with Flash CS3

    Hey hello...well, my question is: how can i comunicate Flex
    Builder 2 with Flash CS3?
    this is my code on Flex Builder 2:
    <mx:Script>
    <![CDATA[
    import mx.controls.*;
    import mx.events.*;
    public function CargaCompleta(e:Event):void
    try
    e.target.content.objeto_salida.addEventListener(Event.COMPLETE,uno);
    catch(er:Error) { Alert.show(er.message,"Error"); }
    public function uno(e:Event):void
    try
    s1.content["objeto_salida"].removeEventListener(MouseEvent.CLICK,s1.content["Finaliza"]);
    s1.source = null;
    s1.source = "recursos/reactivos/208M-1R.swf";
    catch(er:Error) { Alert.show(er.message,"Error"); }
    ]]>
    </mx:Script>
    <mx:SWFLoader id="s1" width="278" height="251"
    complete="CargaCompleta(event)"
    source="recursos/interactivos/208M-1I.swf">
    </mx:SWFLoader>
    and when it change from one file to another, on the event
    "Complete" for the SWFLodar, an error happend
    TypeError: Error #1009: No se puede acceder a una propiedad o
    a un método de una referencia a un objeto nulo.
    at 208M_fla::MainTimeline/frame1()
    Hope somebody can help me...for your time thanks...

    "Jorge EdOardo" <[email protected]> wrote in
    message
    news:gfcfcr$9s2$[email protected]..
    > Hey hello...well, my question is: how can i comunicate
    Flex Builder 2 with
    > Flash CS3?
    >
    > this is my code on Flex Builder 2:
    > <mx:Script>
    > <![CDATA[
    > import mx.controls.*;
    > import mx.events.*;
    > public function CargaCompleta(e:Event):void
    > {
    > try
    > {
    >
    e.target.content.objeto_salida.addEventListener(Event.COMPLETE,uno);
    > }
    > catch(er:Error) { Alert.show(er.message,"Error"); }
    > }
    > public function uno(e:Event):void
    > {
    > try
    > {
    >
    >
    s1.content["objeto_salida"].removeEventListener(MouseEvent.CLICK,s1.content["Fin
    > aliza"]);
    > s1.source = null;
    > s1.source = "recursos/reactivos/208M-1R.swf";
    > }
    > catch(er:Error) { Alert.show(er.message,"Error"); }
    > }
    > ]]>
    > </mx:Script>
    > <mx:SWFLoader id="s1" width="278" height="251"
    > complete="CargaCompleta(event)"
    > source="recursos/interactivos/208M-1I.swf">
    > </mx:SWFLoader>
    >
    > and when it change from one file to another, on the
    event "Complete" for
    > the
    > SWFLodar, an error happend
    >
    > TypeError: Error #1009: No se puede acceder a una
    propiedad o a un m?todo
    > de
    > una referencia a un objeto nulo.
    > at 208M_fla::MainTimeline/frame1()
    >
    > Hope somebody can help me...for your time thanks...
    http://weblogs.macromedia.com/pent/archives/2007/04/using_actionscr_1.html

  • How to import swc into Adobe Flash CS3 ?

    I use following command to create a swc file,such as test.swc, there is a file named test.swf in myapp directory
    compc -include-sources myapp -output test.swc
    then I copy test.swc into Adobe Flash CS3\zh_cn\Configuration\Components directory, Then I restart Adobe Flash CS3,and create a file and press ctrl+f7, but I don't find test.swc!  Why? Where is wrong? How to import swc into Adobe Flash cs3?
    Thanks

    If you want to embed videos in your muse site, without using a service like youtube or vimeo, then you will need to manually upload the video files on the server and use them via the video tag available in html5, HTML5 Video
    To insert the video tags in your muse pages, you will need to use the 'Object -> Insert HTML' option.
    Since this option is not available in Muse, out of the box, I will recommend that you post this on our ideas section over here, https://forums.adobe.com/community/muse/ideas, and let our devs team know of this requirement.
    - Abhishek Maurya

  • 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.

  • 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

  • How to use flex SDK library in flash

    Halo.
    I would like to use BitmapAsset class inside CS3 or CS5.
    I know that the class is somewhere inside flexSDK library (I use version 4.1). So is it possible to use flexSDK for "flash purposes" ?
    Regards

    Thanks! You were right
    The solution is:
    For flash CS4 and CS5 one should specify path to the FlexSDK library (File/Publish Settings).
    For example:
    C:\.........\flex_sdk_4.1\framework\libs
    My mistake was that I was trying to find the exact package.
    Regards

  • Using Flex SWC in Flash CS3 (ADOBE EXPERT NEEDED)

    I've searched everywhere, and there is not one good answer to
    the question: "How do I use a Flex AS3 Class Library in Flash CS3?"
    So I decided to come to the source :)
    This question has also been asked on this forum twice, but
    got no answer.
    Any help on this topic will be greatly appreciated
    - Oz

    If you're using Flex 2, there's a solution using a
    manifest.xml file. Tim Walling details it on
    his
    blog, but I haven't found a way to get it to work for Flex
    3.

  • Embed fonts in Flash CS3 and load in Flex at runtime

    Hi,
    I want to embed fonts in the library of Flash CS3, compile it into a SWF and load it in my flex up at runtime and register the embedded font.
    I'm able to get the linked class in Flex but the font doesn't show.
    The FLA has a font called Viner Hand embedded as a library item, with linkage VinerHand and baseclass as flash.text.Font
    Here's the code in flex to register the font -
    var FontLibrary:Class = ApplicationDomain((event.target as LoaderInfo).applicationDomain).getDefinition('VinerHand') as Class;
    Font.registerFont(FontLibrary);
    When I do Font.enumerateFonts after this, I see [Font VinerHand] in the array but the textField doesn't show the font embedded.
    Nishant

    Hi there,
    Try taking a look at the following links:
    http://www.trajiklyhip.com/blog/index.cfm/2007/7/18/Embedding-Fonts-in-Flex
    http://blog.flexexamples.com/2007/10/25/embedding-fonts-from-a-flash-swf-file-into-a-flex- application/
    Hope it helps.
    With best regards,
    Barna Biro

  • Flash8 or Flash CS3 determine what frames and objects use a given library object

    I am doing cleanup on a FLA file(a large fla file). I am
    looking for an easy way to determine where each library item
    may be used in the given flash document and at what frame and
    layer it may be used at.
    Yes I have updated the use counts by selecting "update use
    counts". Which is really nice. Becuase I can then
    easily delete all the unneeded objects(note: I was also
    guaranteed they(library items) were not called into the FLA file
    dynamically by action script, Which was a relief).
    So what I am looking for is a way to run a report for one
    object or for the entire library to show me where
    a given symbol, button,swf, flv or picture is being used in
    the parent or it's chidren or in another library item.
    Here is an example of the report I am looking for.
    Library Item "logo.jpg":
    ocurrence #1> _root;layer8,frame 25
    ocurrence #2> _root;layer(showlogo),frame 25(imageframe)
    ocurrence #3> _root;layer(showfinishpage),frame
    125(exitpage)
    occurence #4> LIBRARYITEM(logoTween),frame23,layer2
    Does anyone know how this can be done...?
    Additional search item references
    ==============================
    report library items
    Flash 8 library report
    Flash MX library report
    Flash CS3 librarry report
    Flash Library objects usage counts
    Keep use counts updated
    update use counts now
    determine where library items are used in a give fla file
    flash library "update use counts" objects frames report
    flash "library use" objects frames report
    flash 8 fla library usage where are they being used

    Will Edit > Find and Replace help?
    I don't know of any report, other than Generate size report
    (found in publish settings under Flash), but you could probably
    write a .jsfl script to do it for you I imagine.

  • Flex obselete with the release of Flash CS3?

    Flash cs3 and its new components feature pretty much give the
    same functionality as flex's components.
    The only reason why i used flex was because of the
    components, ive only created a few applications but i cant see why
    i couldnt just make them with CS3 now?

    You could certainly make that attempt. Our goal is to give
    you as much choice as possible. Some people like the Flash IDE,
    others like Flex because you can use any text editor, not just Flex
    Builder. With Flash CS3, you need the Flash IDE to work with the
    FLA files.
    When you choose to work with Flex you can put your source
    files into a source code control system - you can do that with
    FLAs, but you lose change management. In other words, every time
    you edit your FLA, it changes so it is always going back into
    source code repository. With Flex and MXML and AS files, you save
    only those files which have changed.
    Flex provides a more traditional way to build SWFs. You can
    use Flash to supplement it. You'll find with Flex 3 that the
    reverse will be true, too - use Flex to supplement Flash.
    Anyway you want to do it, that makes you comfortable and
    successful, is the best way to go. We're glad to be able to offer
    you choices.

  • 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???

  • Problem with using swc files in Flash Player 10

    I have two Actionscript projects in Flex. One is using Flash Player 9 the other is using 10.  Both projects use the fl classes specifically FLVPlayback.
    In the Flash Player 10 project I am using the recently released version 2.5.  Both players use individual controls instead of a complete skin swf.  So the code goes something like video_player.playPauseButton = playPauseBtn.  All the swc files are imported through properties-ActionScript Build Path-Library path-add swc.  This all works great in both projects exept in the Flash Player 10 project the volumeBar swc does not load properly.  In the debug variables for a break point at the function below in FLVPlayback.as the variables handleLeftMargin, handleRightMargin, handleLinkageID and handleY are missing even though they are all in the original fla used to compile the swc.  I have tried compiling swc in both Flash CS3 and 4.  I have tried moving the Actionscript inside the fla files but nothing changes. This leads me to believe it is a bug in the Flash Player 10 or the version 10 playerglobal.swc since this part of FLVPlayback.as is identical in versions 2 and 2.5. The result is that only the volume bar renders but no handle. Debugging all through fl.video.UIManager.as handle_mc remains null?
           public function set volumeBar(s:Sprite):void {
                uiMgr.setControl(UIManager.VOLUME_BAR, s);
    In the Actionscript 9 project all the variables are accounted for so the volume bar and handle render and work fine.

    Further info for anyone who can help!
    I am opening a session from a server via the following sql
    statement:-
    http://servername/virtualdirectoryname?sql=SELECT
    * FROM table1 for XML auto&root=root"
    I only get the popup window when trying it out from our
    webserver?
    The server is MS SQLServer
    The virtualdirectory is created with access set as Windows,
    and always log on set as "myusername" + "mypassword"
    So I thought (hoped) I could pass the "myusername" +
    "mypassword"
    bits into the above sql statement (maybe appended at the
    end?)
    If I type the above sql statement into a browser it works
    perfectly with the xml returned in a web page,
    also as I state above, when I run it from within my flash
    prog on my local machine it runs OK and returns the results into
    the text area specified within the flash prog.
    BUT - When I upload my flash prog to the webserver and try it
    from there, I get a windows popup asking me for username + password
    + domainname.
    any ideas please?

  • Flash CS3 Components

    What is the best way (and fastest) to change the size of the
    Flash CS3 radio button compoent? I feel so dumb.

    "jkpritchard" <[email protected]> wrote in
    message
    news:gmsi5e$icm$[email protected]..
    > Hi,
    >
    > Is there a straight-forward way to scale Flex Components
    created in Flash
    > CS3
    > dynamically, while maintaining the aspect ratio of the
    component? I'm
    > trying to
    > account for resizing of the application window (AIR) or
    browser window,
    > while
    > maintaining the general appearance of the UI (kind of
    how a flash
    > projector
    > will scale itself uniformly with the proper scale mode
    setting).
    >
    > I know scaleX and scaleY do not work, but is there
    workaround for this
    > type of
    > scaling (rather than adding listeners to the stage
    resizing and figuring
    > out
    > all the new height and width parameters on each
    component?).
    >
    > Any help is appreciated. Thanks very much.
    http://www.adobe.com/devnet/flash/articles/flex_component_workflow_04.html
    Near the bottom of the page.

  • Simple data inventory using flash cs3

    is it possible to create very simple data inventory for
    example for a library using flash cs3?
    This is not for online purpose... the application contain a
    form where users can enter data about the books like date returned
    and so on..

    you're welcome :)
    1) that is correct. unfortunately, we can't 'write' to an xml
    file from Flash, one needs to parse the data sent from Flash using
    a server-side script such as php to perform the actual writing of
    the file and store it to a directory location. so in this sense, it
    may be 'easier' to use a local database and server (running on the
    same machine) and use a intermediary 'helper' interface such as
    amfphp.
    2) Flash does contain several classes to work with xml data
    internally, and is quite powerful in that regard. however, if you
    opt to use a system like a DB and amfphp, it can use 'regular'
    Flash objects to send and receive data and handles the conversion
    automatically, so would ultimately be both simpler to implement and
    very very fast. some basics on amfphp can be found here:
    http://www.gotoandlearn.com/play?id=78
    (don't worry about your English, it's just fine :)

Maybe you are looking for