Using SWC Component in Flex

After creating a MovieClips symbol in flash CS3 and
converting it to flex component, I succeeded in exporting it
to SWC and included it in the flex mxml file. However, when I
run the applications, the MovieClips failed to display. Did anyone
have similar experiences?

>>You will need to put a little code here to better
understand, but as a guess, you might not have wrapped the
MovieClip in a UIComponent before adding it to the Flex display
list.
No. If the symbol in Flash was converted to a Flex Component,
this step is already taken care of.
Follow the example by Peter Ent to check if you have setup
the symbol in Flash correctly.
http://weblogs.macromedia.com/pent/archives/2007/04/example_of_the.html

Similar Messages

  • Using Jumpeye Component in Flex

    Hi,
    has anyone successfully used Jumpeye's Drop Down Tree Menu
    Component V3 in Flex 3? It's a great component to use in flash, the
    submenus open and close on rollover/rollout (something I have not
    been able to acheive with the Flex menubar). I used the flex
    component kit to export the Jumpeye component from flash and
    imported the swc into flex builder (I also imported the relevant
    classes etc, inc faking an instance of mx.core.UIComponent(as per a
    document I found on afcomponent's site). It works great on a simple
    level (i.e. using defaults) but fails when I try to set any style
    properties (these are done via an xml file with tags predefined by
    Jumpeye in the component shim). I'm pretty new to Flex and am
    obviously doing something very wrong, however, Jumpeye were not
    able to help me as their focus is flash, although they commented
    that clients of theirs have used the component successfully within
    Flex.
    Any help would be greatly appreciated.
    Julie

    >>You will need to put a little code here to better
    understand, but as a guess, you might not have wrapped the
    MovieClip in a UIComponent before adding it to the Flex display
    list.
    No. If the symbol in Flash was converted to a Flex Component,
    this step is already taken care of.
    Follow the example by Peter Ent to check if you have setup
    the symbol in Flash correctly.
    http://weblogs.macromedia.com/pent/archives/2007/04/example_of_the.html

  • Using SWC's during development

    Right now I am part of a team that is making a base framework
    for a single Flex application. When the framework is complete, less
    experience programmers will make the actual screens for the
    application using the standard components and architecture we have
    made. We want to encapsulate the framework into an .swc so that the
    developers aren't tempted to modify the source or otherwise meddle
    with the framework (that is our job). I have made an .swc and
    registered it with a project just to see how this will go (all
    using Flex Builder) but am extremely distraught to see that there
    are no code hints for the classes contained in the .swc. I can
    still access them and use them and compile a sample application
    with them, but FlexBuilder doesn't acknowledge them the way it did
    when it was just raw source code. I have read the docs and they are
    heavily bent towards preaching RSL--but we do NOT want to use RSL.
    What am I doing wrong? Surely there is a way to register the
    .swc to be used in place of source code (.as and .mxml) in Flex
    Builder, right?
    Are there any tutorials that deal specifically with Flex
    Builder?

    quote:
    Originally posted by:
    JeffreyGong
    Did you create your swc as a "Flex Library Project"?
    Jeffrey
    Hi, thanks for the reply.
    Yes I created it using the "Flex Library Project"... I
    couldn't see any other way to create the swc in FlexBuilder.
    I then copied the .swc file to a template project and
    implemented it via "Properties"->"Flex Build Path"-> "Library
    Path" -> "Add SWC".
    Since it is in the actual project folder, the path was
    simply: "ApplicationFramework.swc".
    I have only used SWC before with Flex 1.5 which was basically
    the same as Flex 2.0 data services. I am not too savvy with the new
    implementation (before I made .swc's in Flash IDE).
    Currently, we are not using FDS, just the SDK and Flex
    Builder. I can't help but suspect you are using the FDS? Would this
    problem be the difference between using the "Basic" project and the
    "Flex Data Services" project in Flex Builder?

  • How to use FC to make a sub-component for Flex

    Most of the examples and tutorials I've seen so far assume you are creating the app itself in FC.
    However, what I need to do is create a custom component that will be a "screen" in a large Flex app, like a page in a Wizard.
    So if I was doing this without FC, I'd make a new mxml component in Flex, e.g. "WizardStep.mxml" and then in the main app,
    <mx:ViewStack>
         <h:WizardStep id="one" label="Step One" />
         <h:WizardStep id="two" label="Step Two" />
    </mx:ViewStack>
    For example, assuming I have set up the namespace "h" to like "com.handycam.*"
    How would I accomplish this scenario if "WizardStep" is what I have been building in FC?

    Thanks for your answer!
    Unfortunately it still doesn't work.
    In FC I used the file menu item "publish as swf" ( or however it's called in English -
    I'm also struggling with the -unwanted- German workspace terms). This generated
    the deploy-to-web and run-local folders. In Flex3, I imported haupt.swf (=main.swf)
    from the run-local folder.
    When I use the imported file in the Image tag with the
    loadForCompatibily attribute set to "true",the application compiles,
    opens the IE, the remaining LinkBar buttons are not affected - they
    show/run the Flash Pro .swfs and their controls,
    but the attempt to access the .swf in question produces:
    VerifyError: Error #1053: Illegal override of z in mx.core.UIComponent.
    at flash.display::MovieClip/nextFrame()
    at mx.managers::SystemManager/deferredNextFrame()[C:\autobuild\3.2.0\frameworks\projects\fra mework\src\mx\managers\SystemManager.as:319]
    at mx.managers::SystemManager/preloader_initProgressHandler()[C:\autobuild\3.2.0\frameworks\ projects\framework\src\mx\managers\SystemManager.as:2945]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.preloaders::Preloader/timerHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\ src\mx\preloaders\Preloader.as:398]
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()
    The alternative approach:
    <mx:SWFLoader x="3" y="35" width="970" height="425" loadForCompatibility="true" source="insets/haupt.swf"/>
    produces:
    VerifyError: Error #1014: Class flash.text.engine::TextLine could not be found.
    at global$init()
    If I code the SWFLoader tag as:
    <mx:SWFLoader x="3" y="35" width="970" height="425" loadForCompatibility="true" source="
    @Embed(source='insets/Haupt.swf')"/>
    I get the same errors as I did for the Image tag approach.
    Hope this helps.

  • How to use flex 4 component inside Flex 3 custom component

    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"   >
    // I would like to use the namespaces below so that I can use some of the Flex 4 components in this mx:VBox component.
    // Note that this is a custom component and not the application file.
    xmlns="http://ns.adobe.com/mxml/2009"
        xmlns:fx="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/halo"
    </mx:VBox>
    Thanks.

    Alex, I was looking forward to your reply to one of my posts that you answered a couple of days ago. It has not been resolved, even though it said "answered," here is the post:
    http://forums.adobe.com/thread/445779?tstart=0
    Regarding this post, I am getting some errors with the code I posted above; give it a go and you will see.
    Thanks.

  • How to set multiple styles on a single component in flex ?

    Hi ,
    I would like to know how to set multiple styles on a single component in flex.
    Can anyone give me an example as to how to set multiple styles for a single component ?
    Thanks ,
    Regards,
    Ajantha

    Hi tuliptaurus,
    You can setStyleName property for chnaging the external css dynamically by using the setStyle() method ...
    btn.setStyle("styleName","blendButtonSkinOther");
    You can change the external css by using the styleaName property with setStyle method..the line in blue..where blendButtonSkinOther is another css class..
    blendButtonSkin {
        fontFamily: Arial;
        fontSize: 11;
        color: #F1F1F1;
        textRollOverColor: #F1F1F1;
        textSelectedColor: #F1F1F1;
        horizontal-align:center;
        width:150;
        height:30;
        cornerRadius:5;
        upSkin:ClassReference('assets.skins.BlendButtonSkin');
        downSkin:ClassReference('assets.skins.BlendButtonSkin');
        overSkin:ClassReference('assets.skins.BlendButtonSkin');
        disabledSkin:ClassReference('assets.skins.BlendButtonSkin');
        selected-up-skin: ClassReference('assets.skins.BlendButtonSkin');
        selected-down-skin: ClassReference('assets.skins.BlendButtonSkin');
        selected-over-skin: ClassReference('assets.skins.BlendButtonSkin');
    blendButtonSkinOther {
        fontFamily: Arial;
        fontSize: 11;
        color: #F1F1F1;
        textRollOverColor: #F1F1F1;
        textSelectedColor: #F1F1F1;
        horizontal-align:center;
        width:150;
        height:30;
        cornerRadius:5;
        upSkin:ClassReference('assets.skins.BlendButtonSkin');
        downSkin:ClassReference('assets.skins.BlendButtonSkin');
        overSkin:ClassReference('assets.skins.BlendButtonSkin');
        disabledSkin:ClassReference('assets.skins.BlendButtonSkin');
        selected-up-skin: ClassReference('assets.skins.BlendButtonSkin');
        selected-down-skin: ClassReference('assets.skins.BlendButtonSkin');
        selected-over-skin: ClassReference('assets.skins.BlendButtonSkin');
    Thanks,
    Bhasker Chari

  • How to create a SWC file in flex

    Can any one help me giving step by step information of how to create .swc file in flex..Iam a starter to this...Pls reply

    You need to create Flex Library project & after compilation you will find project_name.SWC in bin-debug folder.
    referr
    http://www.adobe.com/devnet/flex/articles/flex_swc.html
    http://www.daveoncode.com/2009/04/07/deploy-and-work-with-flex-swc-library/
    http://kennethsutherland.com/2009/06/12/simple-tip-3-utility-swc-library-project/
    *If this information is useful, then mark this post as such.

  • Template Component in Flex 4

         I need to use a  component several times, in various states of my application.
    This component has to be dynamic is the same structure, but  will change somewhat from one state to another of my application.
    I heard that using the template will facilitate my life!
    Does anyone know how to do this?
    Can  you give me an example of the use of Template in Flex 4?
    hugs

         I need to use a  component several times, in various states of my application.
    This component has to be dynamic is the same structure, but  will change somewhat from one state to another of my application.
    I heard that using the template will facilitate my life!
    Does anyone know how to do this?
    Can  you give me an example of the use of Template in Flex 4?
    hugs

  • Is it possible to call a function in a parent component from a child component in Flex 3?

    This is probably a very basic question but have been wondering this for a while.
    I need to call a function located in a parent component and make the call from its child component in Flex 3. Is there a way to access functions in a parent component from the child component? I know I can dispatch an event in the child and add a listener in the parent to call the function, but just wanted to know if could also directly call a parent function from a child (similar to how you can call a function in the main mxml file using Application.application). Thanks

    There are no performance issues, but it is ok if you are using the child component in only one class. Suppose if you want to use the same component as a child to some bunch of parents then i would do like the following
    public interface IParentImplementation{
         function callParentMethod();
    and the parent class should implement this 'IParentImplementation'
    usually like the following line
    public class parentClass extends Canvas implements IParentImplementation{
              public function callParentMethod():void{
         //code
    in the child  you should do something like this.
    (this.parent as IParentImplementation).callParentMethod();
    Here using the Interfaces, we re decoupling the parent and the child
    If this post answers your question or helps, please mark it as such.

  • Tree component in Flex 4

    Are there any known issues with the <mx:Tree component in Flex 4?
    We have upgraded from Flex 3 builder to Flex 4 builder. Everything works except any where we have used a tree component the data is no longer showing. Has there been a change in how to populate the Tree component? We populate the tree by setting the dataProvider with an ArrayCollection.

    @travr,
    I'm not aware of any big known issues in mx:Tree between Flex 3.x and Flex 4.x. What problems are you seeing, and can you reproduce the issue with a simple test case (if so, please post the simple test case here and we can take a look).
    This works in Flex 3.5:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
        <mx:ApplicationControlBar dock="true">
            <mx:Button id="sdkVer" initialize="sdkVer.label = mx_internal::VERSION;" click="System.setClipboard(sdkVer.label);" />
        </mx:ApplicationControlBar>
        <mx:Tree id="tr" labelField="name" width="200" x="20" y="20">
            <mx:dataProvider>
                <mx:ArrayCollection>
                    <mx:Object name="1. One">
                        <mx:children>
                            <mx:Object name="1.1 One" />
                            <mx:Object name="1.2 Two" />
                        </mx:children>
                    </mx:Object>
                    <mx:Object name="2. Two">
                        <mx:children>
                            <mx:Object name="2.1 One" />
                        </mx:children>
                    </mx:Object>
                </mx:ArrayCollection>
            </mx:dataProvider>
        </mx:Tree>
    </mx:Application>
    And this seems to work in Flex 4.5/Hero beta:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx">
        <s:controlBarContent>
            <s:Button id="sdkVer" initialize="sdkVer.label = mx_internal::VERSION;" click="System.setClipboard(sdkVer.label);" />
        </s:controlBarContent>
        <mx:Tree id="tr" labelField="name" width="200" x="20" y="20">
            <mx:dataProvider>
                <s:ArrayCollection>
                    <fx:Object name="1. One">
                        <fx:children>
                            <fx:Object name="1.1 One" />
                            <fx:Object name="1.2 Two" />
                        </fx:children>
                    </fx:Object>
                    <fx:Object name="2. Two">
                        <fx:children>
                            <fx:Object name="2.1 One" />
                        </fx:children>
                    </fx:Object>
                </s:ArrayCollection>
            </mx:dataProvider>
        </mx:Tree>
    </s:Application>
    Peter

  • CF Component in Flex problems

    Hi. I am new to ColdFusion, and I am trying to get it working
    with Flex 3 and MySQL. Everything works fine if I use HTTP and a
    CFM file. Now I am trying to use a RemoteObject with a CF Component
    as the source. I know the CFC is configured correctly because I can
    call it from a CFM file and get data back from the database. But
    when I use the RemoteObject in Flex, I get this error:
    [MessagingError message='The MessageAgent's destination must
    be set to send messages.']
    Where do I set up this MessageAgent, and should this be
    necessary? Thanks for any help!

    Sorry to tell you but the Application Wizards for CF are
    Windows only. I recall some previous forum posts/responses back
    around the release of Flex 3 indicating that the application
    wizards were written in Windows code that requires DLLs (or some
    such). It didn't sound like these extensions were coming to those
    of us on Mac or Linux anytime soon, as it would entail an entire
    rewrite of the application.
    If you really need to use these wizards you can do it with a
    "little" workaround:
    1. Install Windows XP (or Vista) on your Mac either via Boot
    Camp or one of the virtualization applications (VMWare Fusion or
    Parallels for Mac).
    2. Download Flex Builder 3 for Windows (when you buy Flex,
    Adobe gives you the option to download versions either major
    platform)
    3. Install CF and Flex Builder 3 on your Windows machine
    4. Connect to your datasource
    5. Run the wizard
    6. Export the code to your Mac drive (zip, copy, FTP,
    whatever you like)
    7. Import the project into your Mac Flex Builder
    I certainly don't recommend this option but it is available
    if you feel you need the generated applications.
    I don't think there would be a licensing issue with Adobe for
    this setup since you're using the application locally on your
    machine but don't quote me on that.
    HTH!
    Craig

  • Is it possible to do SLOW REWIND/FORWARD using videoDisplay component?

    I am working on a flash player and I want to know whether it is possible to do slow rewind and slow forward using videoDisplay component. Or do I have to use netstream?I am using  Flex 4.
    Thanks in advance.

    You can only change the speed etc. of clips that are in a Project not while they are just in an Event.
    More information here:
    http://help.apple.com/imovie/mac/10.0/#mov6c442b2eb
    Reverse/Replay information here:
    http://help.apple.com/imovie/mac/10.0/#mov584384e12
    Matt
    Message was edited by: Matthew Morgan

  • Opening of PDF using PAR component

    Hello
    I'm trying to display a pdf in the portal. The data for the pdf has to come from  the backend. My question is as follows:
    We've developed a ADOBE print form in R/3 and developed a FM which calls this form.
    1. What should be the data type of the parameter that is returned to the portal after executing the FM. Should it be XSTRING or something else?
    2. How do we open the pdf in portal.
    There are certain posts from Detlev and Prakash Singh which speaks on this. But I could not figure it out. Can somebody please give a sample CODE for opening the pdf?
    Note: I'm  using PAR component for the display.
    There is a mention of some weblog of Prakash :
    Create an excel file from JAVA using HSSF api
    But I'm unable to locate this weblog. Can anybody please help me out as I'm stuck.

    Forgot to mention that I dont want to use iText api's.
    Thanks
    Aditya

  • How can I use EJB component on Weblogic 8.1 server ?

    hi,dear sir:
    How can I use EJB component on Weblogic 8.1 server ?
    It need client jar to invoke ejb,but what will I to do for this jar file? what does it contain? format ?
    If my EJB module contain 100 session bean and 50 Entity bean,but I want invoke 20 session beans in my module, how can I to do?
    thank you...

    Hi,
    This forum is exclusively for Creator. please post this on appropriate forum
    regards
    CreatorTeam

  • How can i use a component twice in the same movie clip

    Excuse me am a beginner in this as2
    below is the script used:
    PeelIt is a component.
    /////////////////////////////////////////////////1st frame contains the below:
    PeelIt._visible = false;
    PeelIt.init();
    PeelIt.Peel();
    ///////////////////////////////////////////////// then on 2 different buttons:
    on (release){
        this._parent.PeelIt._visible = true;
        this._parent.PeelIt.Stick();
    and
    on (release){
        this._parent.PeelIt.Peel();
    1st problem: i need this component to work when the swf loads instead of (on release),
    2nd problem: i need to introduce several frames with different movieclips using the component, how can i do so.
    thank you

    use:
    PeelIt.init();
    PeelIt.Peel();PeelIt._visible = true;
    PeelIt.Stick();
    PeelIt.Peel();
    and just add the component to each movieclip.

Maybe you are looking for

  • Remote for powerpc mini?

    Do apple sell the frontrow remote/reciever as an optional extra for older macs? i have a powerpc g4 1.5ghz mini and wanted to know if I could get a remote for it. Originally I didn't think i was missing much by not having it but i recently got a macb

  • How can I rename my iPad 2?

    How can I rename my iPad 2?

  • The volume to my laptop just completely, how do i get this started again?

    I have a silver HP Windows 7 Premium  laptop with intel core i5 and beat audio. The volume of my computer completely stopped. I have tried everything to restore its original settings- not sure what was changed! I can hear the log-in sound but my comp

  • I need to create a flag  in D2k

    HI , I need to create a flag in oracle d2k , the requirement is when the flag is yes , then it has to display only certain pushbutton that are need to be displayed in the report . here how can i go with that.

  • Date format in meeting request responses appears to be hardcoded to US format

    Hi When a room mailbox declines a meeting request that exceeds the booking window in days a response like this is returned. The end date of this series of repeating meetings is too far in the future. This resource can only be scheduled up to 180 days