Question on Flex Component

Hi,
I have two components and i am trying to display pre-defined component1 state from component2 when a button is clicked.
My Code in Component2 to acheive this:
private function displayComponent1():void
     var comp1:Component1;
     comp1.currentState = 'addState';
I get this run time exception:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
so i changed my code to
private function displayComponent1():void
     var comp1:Component1 = new Component1();
     comp1.currentState = 'addState';
I dont get any exceptions but its not displaying component1. Can any one please help me out.
Thanks,
csr

Hello,
     If I understand what you are looking, it sounds like you need to use the full domain path when setting the state.
For example:
private function displayComp():void {
     com.mycomps.comp1.currentState = 'addState';
This assumes that you have setup an XMLNS for you comps.
Kind regards,
Ivan Alexander
FlexAppsStore.com

Similar Messages

  • Flex component kit

    Hi,
    First off, I'm not sure if this is the right place to post
    this question.
    I've been using flash to create components for flex but I
    come across a problem. It works perfectly if you create a movie
    clip, and use the make flex component command, however, If I want
    to write the class myself and link it to the movie clip, i get
    nothing on the stage from flex. I see all my traces and also see
    the code hints for all of my public methods, etc, but nothing
    appears on the stage at all.
    Any idea what is wrong?
    Thanks

    Hi, thanks for the reply. Here is a simple sample that is not
    working:
    package{
    import mx.flash.UIMovieClip;
    public class Circle extends UIMovieClip{
    public function Circle(){
    trace('circle');
    I have a circle shaped MC on the stage and I used the make
    flex comp. command on it and it has the following properties:
    Class:Circle
    Base class: flash.display.MovieClip
    I bring it into flex, its finding it ok and even tracing from
    the constructor method, but I see no circle on the stage.
    Thanks for any further help.
    Brad

  • Flash Pro CS5  Convert to Flex Component and SWC export

    Hi,
    my question is about the Flash Pro CS5 and Flash Builder 4 (Flex 4) integration.
    My goal is simple - to make a simple graphic in a MovieClip and then export that for use in Flash Builder 4. I found out I have 2 ways of doing that:
    1) -> create the MovieClip with the graphic
        -> export it for ActionScript with a name of the class
        -> select the symbol in the library again and export SWC file. Total size of this SWC in my example is 24kb.
        -> put the SWC in the libs folder and use the class/component which should be put inside SpriteVisualContainer or UIMovieClip
    2) -> create the MovieClip with the graphic
        -> export it for ActionScript with a name of the class
        -> select it in the libraly and then select Commands -> Convert Symbol to Flex Component
    Now here we can do 2 things:
        -> select the symbol in the library and export SWC file. Total size here is 104kb.
        -> publish the whole project and use its SWC file.
    And last:
        -> put the SWC in the libs folder and use the class/component wherever you want because it's already extending UIMovieClip.
    So My point is that with the first way I need to use just one simple container to put my component into and I save like 80 kb. Why would I want to use the second way, just to be more comfortable or there are other reasons too?
    I was thinking that maybe I could put more flex converted components in the fla file so I would then export the swc with all of them being already flex components and that 80kb will be shared for all of them, which makes sense of using this feature, but if someone could confirm my thinking is right or there was some other better purpose or way of doing things in an optimised way, I will be glad to hear them. Thanks!

    Hi,
    I am using the first option while converting from flash to flex. Its easy and it saves lots of memory.

  • Creating a action script class for a flex component

    Hi,
    I am new to flex.
    I have designed a flex component into that I have 4 action script function. I have to write all those function in a separate action script class.
    Can anyone tell me how to do that?
    Thanks,
    Tushar

    I'm not sure I understand the question.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Flex component that does this

    I was wondering if there is a flex component that can do the following below.
    http://www.adobe.com/products/flashplayer/action/
    That can handle large images and dynamic data.

    Nothing out of the box in Flex can do that, but you should be able to roll your own.
    You'll need to be familiar with getting data, perhaps from an XML file via HTTPService, and also perhaps the Timer class, which will allow you to change the image and perhaps text every 15 seconds, 30 seconds, etc.
    Here are some links that can help you:
    http://blog.flexexamples.com/2008/03/29/dynamically-loading-xml-files-using-the-httpservic e-tag/
    http://www.adobe.com/devnet/flex/quickstart/httpservice/
    http://livedocs.adobe.com/flex/3/html/help.html?content=08_Dates_and_times_4.html
    http://livedocs.adobe.com/flex/3/html/help.html?content=16_Event_handling_7.html
    http://blog.flexexamples.com/2007/08/14/creating-a-simple-timer-in-flex-with-the-flashutil stimer-class/
    http://www.cs.vu.nl/~eliens/im/assets/flex3/langref/flash/utils/Timer.html
    If this post answered your question or helped, please mark it as such.

  • Using Flex Component Kit for FlashCS3 in Flash Builder

    Hi at all,
    i apologize for my english.
    I'm using Flash Builder 4 and i've created a movie clip symbol in Flash CS4.
    I convert the flash symbol in Flex Component but Flash Builder sends a "Verify Error" because the mx.flash.UIMovieClip class in the Flex Component Kit package is not updated at mx.flash.UIMovieClip in Flex4 library,
    Is there a updated version of Flex component kit? At this moment i'ive a 1.1.2 version.
    Thanks.
    F.

    You should be able to get version 2.0.0 of the MXP in the open source repository:
    http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks/flash-integration/

  • How does one define a default style for a custom Flex component?

    How does one define a default style for a custom Flex component?
    hello
    I created a new set of Flex component library slib.swc (Flex 4.5). Would also like to have a default style. defaults.css file, making it the default style of the component library.
    Like flex the builder install directory of sdks \ 4.5.0 \ frameworks out \ libs directory has a spark.swc file, open with Winrar will see defaults.css this file. Defaults.css file defines the default style of the flex spark components.
    How can it be achieved?
    As follows
    slib.swc contains a CLabelEx components, and a defaults.css file
    defaults.css source file as follows:
    @ namespace s "library :/ / ns.adobe.com / flex / spark";
    @ namespace mx "library :/ / ns.adobe.com / flex / mx";
    @ namespace cn "http://os.slib.cn";
    cn | CLabelEx
            styBackgroundAlpha: 1;
            styBackgroundColor: # 569CC0;
            styBorderAlpha: 1;
            styBorderColor: # 569CC0;
            styBorderWeight: 1;
            styCornerRadius: 3;
    In slib.swc the application MyLabel.mxml of the source file as follows:
    <? xml version = "1.0" encoding = "utf-8"?>
    <s: Application, the xmlns: fx = "http://ns.adobe.com/mxml/2009
                               xmlns: s = "library :/ / ns.adobe.com / flex / spark"
                               xmlns: mx = "library :/ / ns.adobe.com / flex / mx"
                               xmlns: cn = "http://os.slib.cn
                               the minWidth = "955" The minHeight = "600">
            <fxeclarations>
            </ fxeclarations>
            <cn:CLabelEx x="67" y="112"/>
    </ s: Application>
    I hope CLabelEx default use cn | CLabelEx, style to display its appearance.
    I refer to above approach, but failed to achieve. Can you please re-Detailed
    Thanks!

    dj is right. Any Folder can be a picture folder.
    Create a root level folder and add it to your Pictures Library in Windows.  It will show up with all the scattered pictures from other programs. It can even be a different dirve if you like.  You  can even specify one to be the default save location for pictures in this dialog.
    Navigate to Pictures in your Libraries in Windows Explorer Right Click and select Properties.
    Message was edited by: Rikk Flohr forgot the instructions...

  • Problem installing flex component kit

    Exercise: Skinning components graphically (PDF, 1,520K)
    I have trouble installing the flex component kit. It says the
    version of my product is incorrect. Is it because of the german
    version?

    There isn't. But the CS3 kit works for CS4 too.

  • Drag and drop external text into a Flex component

    Hi,
    is there any way to allow drag and drop of external text (for
    example, selected text from another browser or even from the
    address bar) into a Flex component like TextArea? I know how to
    drag and drop between two different Flex components but in this
    case, the source is external. There must be something I can do to
    TextArea like its dragdrop property to allow this feature... any
    help would be greatly appreciated.
    Thanks,
    Josh

    Short answer: Yes, as long as it is an AIR app.
    Browser-based Flex apps do not have access to
    ClipBoardFormats, so I'm not sure it is possible to do what I think
    you want to do -- have a web-based Flex app that allows you to drag
    and drop selected text from other apps. Most possibly because of
    the security sandbox that the Flash player runs in.
    However, if you wanted to do it in an AIR app, I built this
    as an example for you (you can view a "cleaner" version with proper
    indents at
    http://pastebin.com/f741cbac8
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="initDandD();" width="500" height="600">
    <mx:Script>
    <![CDATA[
    public function initDandD():void {
    addEventListener(NativeDragEvent.NATIVE_DRAG_ENTER,
    onDragIn);
    addEventListener(NativeDragEvent.NATIVE_DRAG_DROP,
    onDragDrop);
    private function onDragIn(e:NativeDragEvent):void {
    if(e.clipboard.hasFormat(ClipboardFormats.TEXT_FORMAT)) {
    NativeDragManager.acceptDragDrop(this);
    private function onDragDrop(e:NativeDragEvent):void {
    var myString:String =
    e.clipboard.getData(ClipboardFormats.TEXT_FORMAT) as String;
    myTextArea.text = myString;
    ]]>
    </mx:Script>
    <mx:TextArea id="myTextArea" width="326"
    height="262"/>
    </mx:WindowedApplication>

  • Insert flex component in flash .fla file

    hello,
    Is it possible to dynamically load a flex component, compiled as a swf file into a .fla file.
    Originally, this flex component can be loaded as a standalone flex application with parameters to connect to the appropriate server.
    But now a customer of mine wants to integrate this flex component (originally inserted in a flex application) in a custom flash application, thus in .fla file using Adobe Flash CS4.
    I've seen that it was possible to integrate a flash animation created with Adobe Flash CS4 in a flex application. But what I need to do is the opposite.
    thanks for your help,
    yohann

    I also have an odd behavior with parameters. I use a parameter to display a text area for logs. If this parameter is found, the text area is displayed, if it's not found, nothing is displayed. When I load my application with CTRL + ENTER in CS4, I can see my debug text area, but when I export it to swf, copy it to a local web server and visualize it in a browser, I see no debug text area.
    Here is the code I'm using:
    import flash.display.Loader;
    import flash.net.URLRequest;
    import flash.events.Event;
    var request:URLRequest = new URLRequest("http://1.2.3.4/callme.swf?server=1.2.3.4&caller=abc&callee=yohann.martineau");
    var loader:Loader = new Loader();
    loader.load(request);
    addChild(loader);
    This code is in a key frame of the fla animation.

  • JAVA 7u4 with Flex component.

    While Removing Tabbed Pane having Flex Component , on java 7u4 throws following exception.
    Note : it works fine with JAVA 6u32
    .... FlexServiceThread exited...
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at sun.java2d.ScreenUpdateManager.createScreenSurface(Unknown Source)
    at sun.java2d.d3d.D3DScreenUpdateManager.createScreenSurface(Unknown Source)
    at sun.awt.windows.WComponentPeer.createScreenSurface(Unknown Source)
    at sun.awt.windows.WComponentPeer.replaceSurfaceData(Unknown Source)
    at sun.awt.windows.WComponentPeer.replaceSurfaceData(Unknown Source)
    at sun.awt.windows.WComponentPeer.updateGraphicsData(Unknown Source)
    at java.awt.Component.updateGraphicsData(Unknown Source)
    at java.awt.Container.updateGraphicsData(Unknown Source)
    at java.awt.Container.updateGraphicsData(Unknown Source)
    at java.awt.Component.setGraphicsConfiguration(Unknown Source)
    at java.awt.Container.remove(Unknown Source)
    at javax.swing.JTabbedPane.removeTabAt(Unknown Source)
    at testing.test.myTabbedPane.*removeTabAt*(myTabbedPane.java:42)
    Please Help ?

    That's really weird!
    After digging around, reinstalling Flash CS3 again and doing
    multiple tests, I finally found the source of the problem:
    Two .swc files residing in the same folder where I was saving
    my tests files were avoiding the Flash compiler to successfully
    create new .swc files!? I cannot understand how this can be
    possible. As soon as I choosed a new folder for saving the test
    files, I could link to the .swc and access the component from Flex.
    Also as soon as I moved out the two culprid files I could again
    save in the previous folder...
    Does anyone has an idea how this can happen?
    For those interested in the case, you can download the 2
    culprid files
    here
    Best regards,

  • Do we have any third party FLEX component libraries to support accessibility feature for all the components(like: ViewStack, ToggleButtonBar, charts and etc..) ?

    I am working on FLEX 4.6 SDK it provides 35 components with built in accessibility support. My Application contains some components which have no built in accessibility support but I need to provide accessibility support for those components too. I have gone through the Flex docs to customize the non accessible components to support accessibility feature, But the docs where not clear. To customize a single component I have to overwrite lot of code in SDK level.
    and it takes lot of effort.
    So, I would like to use FLEX component libraries which provides accessibility support for all the component.
    Could you please guide me how can I provide accessibility support for other components with out putting more effort on it.
    Thanks in advance...

    There is already such thing in myfaces called "security context" [1]. You could find build of sandbox.jar [2]
    [1] http://myfaces.apache.org/sandbox/securityContext.html
    [2] http://people.apache.org/builds/myfaces/nightly/

  • Flex component explorer

    I have an application that I would like to develop that is
    basically like the flex component explorer. Any chance of getting
    this code?
    Thanx

    Hi, Peter. Yes, I found the link. I would like to see the
    source for the following link
    http://examples.adobe.com/flex3/componentexplorer/explorer.html
    for the "tree".
    Peter, you have at least 100 examples of trees, but none of
    them show how to link from the nodes to a new page in the panel on
    the right side. If you have the code for this zip it up and send to
    [email protected]
    Thanx

  • Flex Component Kit publish SWC not working with Flex 4

    I started this thread in the Flex forum and they are telling me that the SWC's I'm creating with Flash Professional CS5 and Flex Component Kit 2.0.0 are not linked with FCC for Flex 4.
    http://forums.adobe.com/thread/777789?tstart=0
    That means the problem is with my Flash Professional CS5 setup instead of my Flash Builder 4 setup. Can someone here help me fix my Flash setup? As I described in that thread I can't find anything wrong with my setup but apparenty I'm generating SWC's for the wrong version of Flex.
    Thanks,
    Ryan

    I unzipped my SWC and verified what Flex harUI in the Flex forum told me. My SWC seems to be linked with FCC 1 not FCC 2. I don't understand how this is possible. I am using Flash Professional CS5 and only FCC 2.0.0 is installed, FCC 1 is not even installed. Here are the contents of catalog.xml in my SWC file. How do I get Flash CS5 to generate an SWC for Flex 4?
    <?xml version="1.0" encoding ="utf-8"?>
    <swc xmlns="http://www.adobe.com/flash/swccatalog/9">
      <versions>
        <swc version="1.2" />
        <flash version="11.0" build="d485" platform="WIN" />
      </versions>
      <features>
        <feature-script-deps />
        <feature-files />
      </features>
      <libraries>
        <library path="library.swf">
          <script name="mx/core/mx_internal" mod="1146523398000" >
            <def id="mx.core:mx_internal" />
            <dep id="AS3" type="n" />
          </script>
          <script name="mx/core/IStateClient" mod="1185825125000" >
            <def id="mx.core:IStateClient" />
            <dep id="AS3" type="n" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/automation/IAutomationObject" mod="1182369703000" >
            <def id="mx.automation:IAutomationObject" />
            <dep id="flash.events:Event" type="s" />
            <dep id="AS3" type="n" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/core/IConstraintClient" mod="1188589376000" >
            <def id="mx.core:IConstraintClient" />
            <dep id="AS3" type="n" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/managers/IFocusManagerComponent" mod="1182369904000" >
            <def id="mx.managers:IFocusManagerComponent" />
            <dep id="AS3" type="n" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/core/IInvalidating" mod="1150233077000" >
            <def id="mx.core:IInvalidating" />
            <dep id="AS3" type="n" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/core/IChildList" mod="1149255249000" >
            <def id="mx.core:IChildList" />
            <dep id="flash.display:DisplayObject" type="s" />
            <dep id="flash.geom:Point" type="s" />
            <dep id="AS3" type="n" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/core/IFlexModuleFactory" mod="1185825071000" >
            <def id="mx.core:IFlexModuleFactory" />
            <dep id="AS3" type="n" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/core/ComponentDescriptor" mod="1149112409000" >
            <def id="mx.core:ComponentDescriptor" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/core/DragSource" mod="1149694704000" >
            <def id="mx.core:DragSource" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/events/PropertyChangeEventKind" mod="1149796273000" >
            <def id="mx.events:PropertyChangeEventKind" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/managers/IFocusManager" mod="1191005122000" >
            <def id="mx.managers:IFocusManager" />
            <dep id="mx.managers:IFocusManagerComponent" type="s" />
            <dep id="flash.display:InteractiveObject" type="s" />
            <dep id="mx.core:IUIComponent" type="s" />
            <dep id="flash.display:Sprite" type="s" />
            <dep id="AS3" type="n" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/managers/IFocusManagerContainer" mod="1150207146000" >
            <def id="mx.managers:IFocusManagerContainer" />
            <dep id="mx.managers:ISystemManager" type="s" />
            <dep id="flash.display:DisplayObject" type="s" />
            <dep id="mx.managers:IFocusManager" type="s" />
            <dep id="AS3" type="n" />
            <dep id="flash.events:IEventDispatcher" type="i" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/core/IFlexDisplayObject" mod="1149200749000" >
            <def id="mx.core:IFlexDisplayObject" />
            <dep id="flash.display:DisplayObjectContainer" type="s" />
            <dep id="flash.display:DisplayObject" type="s" />
            <dep id="AS3" type="n" />
            <dep id="flash.events:IEventDispatcher" type="i" />
            <dep id="flash.display:IBitmapDrawable" type="i" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/events/ResizeEvent" mod="1150087635000" >
            <def id="mx.events:ResizeEvent" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="flash.events:Event" type="i" />
          </script>
          <script name="mx/events/MoveEvent" mod="1150087695000" >
            <def id="mx.events:MoveEvent" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="flash.events:Event" type="i" />
          </script>
          <script name="mx/events/StateChangeEvent" mod="1149206364000" >
            <def id="mx.events:StateChangeEvent" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="flash.events:Event" type="i" />
          </script>
          <script name="mx/events/FlexEvent" mod="1182369867000" >
            <def id="mx.events:FlexEvent" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="flash.events:Event" type="i" />
          </script>
          <script name="mx/events/ToolTipEvent" mod="1150132131000" >
            <def id="mx.events:ToolTipEvent" />
            <dep id="mx.core:IToolTip" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="flash.events:Event" type="i" />
          </script>
          <script name="mx/events/PropertyChangeEvent" mod="1149879771000" >
            <def id="mx.events:PropertyChangeEvent" />
            <dep id="mx.events:PropertyChangeEventKind" type="e" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="flash.events:Event" type="i" />
          </script>
          <script name="mx/managers/ISystemManager" mod="1182369908000" >
            <def id="mx.managers:ISystemManager" />
            <dep id="mx.managers:IFocusManagerContainer" type="s" />
            <dep id="flash.text:TextFormat" type="s" />
            <dep id="flash.geom:Rectangle" type="s" />
            <dep id="flash.display:LoaderInfo" type="s" />
            <dep id="flash.display:Stage" type="s" />
            <dep id="flash.display:Sprite" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:IFlexModuleFactory" type="i" />
            <dep id="flash.events:IEventDispatcher" type="i" />
            <dep id="mx.core:IChildList" type="i" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/core/UIComponentDescriptor" mod="1149784081000" >
            <def id="mx.core:UIComponentDescriptor" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="mx.core:ComponentDescriptor" type="i" />
          </script>
          <script name="mx/managers/IToolTipManagerClient" mod="1146518802000" >
            <def id="mx.managers:IToolTipManagerClient" />
            <dep id="AS3" type="n" />
            <dep id="Object" type="i" />
            <dep id="mx.core:IFlexDisplayObject" type="i" />
          </script>
          <script name="mx/core/IUIComponent" mod="1188511099000" >
            <def id="mx.core:IUIComponent" />
            <dep id="mx.managers:ISystemManager" type="s" />
            <dep id="flash.display:DisplayObjectContainer" type="s" />
            <dep id="flash.geom:Rectangle" type="s" />
            <dep id="flash.display:DisplayObject" type="s" />
            <dep id="flash.display:Sprite" type="s" />
            <dep id="AS3" type="n" />
            <dep id="Object" type="i" />
            <dep id="mx.core:IFlexDisplayObject" type="i" />
          </script>
          <script name="mx/events/DragEvent" mod="1182369866000" >
            <def id="mx.events:DragEvent" />
            <dep id="flash.events:Event" type="s" />
            <dep id="mx.core:DragSource" type="s" />
            <dep id="mx.core:IUIComponent" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="flash.events:MouseEvent" type="i" />
          </script>
          <script name="mx/events/FlexMouseEvent" mod="1148318971000" >
            <def id="mx.events:FlexMouseEvent" />
            <dep id="flash.events:Event" type="s" />
            <dep id="flash.display:InteractiveObject" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="flash.events:MouseEvent" type="i" />
          </script>
          <script name="mx/core/IDeferredInstantiationUIComponent" mod="1149722730000" >
            <def id="mx.core:IDeferredInstantiationUIComponent" />
            <dep id="mx.core:UIComponentDescriptor" type="s" />
            <dep id="mx.core:IFlexDisplayObject" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:IUIComponent" type="i" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/core/IToolTip" mod="1149203558000" >
            <def id="mx.core:IToolTip" />
            <dep id="flash.geom:Rectangle" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:IUIComponent" type="i" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/flash/UIMovieClip" mod="1192596260000" >
            <def id="mx.flash:UIMovieClip" />
            <dep id="flash.ui:Keyboard" type="e" />
            <dep id="flash.events:Event" type="e" />
            <dep id="flash.display:DisplayObjectContainer" type="e" />
            <dep id="mx.events:FlexMouseEvent" type="e" />
            <dep id="Math" type="e" />
            <dep id="mx.core:IInvalidating" type="e" />
            <dep id="mx.events:ToolTipEvent" type="e" />
            <dep id="flash.display:InteractiveObject" type="e" />
            <dep id="mx.core:IUIComponent" type="e" />
            <dep id="flash.system:ApplicationDomain" type="e" />
            <dep id="mx.events:StateChangeEvent" type="e" />
            <dep id="mx.managers:ISystemManager" type="e" />
            <dep id="mx.events:ResizeEvent" type="e" />
            <dep id="mx.events:MoveEvent" type="e" />
            <dep id="flash.events:FocusEvent" type="e" />
            <dep id="mx.events:FlexEvent" type="e" />
            <dep id="mx.events:PropertyChangeEvent" type="e" />
            <dep id="mx.events:DragEvent" type="e" />
            <dep id="flash.events:Event" type="s" />
            <dep id="flash.display:DisplayObjectContainer" type="s" />
            <dep id="flash.geom:Rectangle" type="s" />
            <dep id="mx.core:UIComponentDescriptor" type="s" />
            <dep id="flash.display:InteractiveObject" type="s" />
            <dep id="mx.core:IUIComponent" type="s" />
            <dep id="mx.core:IFlexDisplayObject" type="s" />
            <dep id="mx.events:StateChangeEvent" type="s" />
            <dep id="mx.managers:ISystemManager" type="s" />
            <dep id="mx.events:ResizeEvent" type="s" />
            <dep id="mx.events:MoveEvent" type="s" />
            <dep id="flash.display:DisplayObject" type="s" />
            <dep id="flash.events:FocusEvent" type="s" />
            <dep id="flash.display:Sprite" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="mx.managers:IFocusManagerComponent" type="i" />
            <dep id="mx.core:IDeferredInstantiationUIComponent" type="i" />
            <dep id="flash.events:IEventDispatcher" type="i" />
            <dep id="mx.managers:IToolTipManagerClient" type="i" />
            <dep id="mx.core:IConstraintClient" type="i" />
            <dep id="flash.display:MovieClip" type="i" />
            <dep id="mx.automation:IAutomationObject" type="i" />
            <dep id="mx.core:IStateClient" type="i" />
          </script>
          <script name="BallComponent" mod="1295554958134" >
            <def id="BallComponent" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="BlueBall" mod="1295554958134" >
            <def id="BlueBall" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="Cam180Button" mod="1295554958134" >
            <def id="Cam180Button" />
            <dep id="flash.events:Event" type="e" />
            <dep id="flash.events:MouseEvent" type="e" />
            <dep id="CamButton" type="e" />
            <dep id="flash.display:MovieClip" type="e" />
            <dep id="flash.events:MouseEvent" type="s" />
            <dep id="flash.display:MovieClip" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="Cam360Button" mod="1295554958134" >
            <def id="Cam360Button" />
            <dep id="flash.events:Event" type="e" />
            <dep id="flash.events:MouseEvent" type="e" />
            <dep id="CamButton" type="e" />
            <dep id="flash.display:MovieClip" type="e" />
            <dep id="flash.events:MouseEvent" type="s" />
            <dep id="flash.display:MovieClip" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="CamButton" mod="1295554958134" >
            <def id="CamButton" />
            <dep id="flash.events:Event" type="e" />
            <dep id="flash.events:MouseEvent" type="e" />
            <dep id="flash.display:MovieClip" type="e" />
            <dep id="flash.events:MouseEvent" type="s" />
            <dep id="flash.display:MovieClip" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="ComponentButtons" mod="1295554958134" >
            <def id="ComponentButtons" />
            <dep id="flash.display:MovieClip" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="DeckButtons" mod="1295554958134" >
            <def id="DeckButtons" />
            <dep id="flash.events:Event" type="e" />
            <dep id="flash.events:MouseEvent" type="e" />
            <dep id="flash.events:MouseEvent" type="s" />
            <dep id="flash.display:MovieClip" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="DoorTest" mod="1295554958134" >
            <def id="DoorTest" />
            <dep id="flash.events:Event" type="e" />
            <dep id="flash.events:MouseEvent" type="e" />
            <dep id="flash.events:MouseEvent" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="LightButton" mod="1295554958134" >
            <def id="LightButton" />
            <dep id="flash.events:Event" type="e" />
            <dep id="flash.events:MouseEvent" type="e" />
            <dep id="flash.events:MouseEvent" type="s" />
            <dep id="flash.display:MovieClip" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="OrientationNavigator" mod="1295554958134" >
            <def id="OrientationNavigator" />
            <dep id="flash.events:Event" type="e" />
            <dep id="flash.events:MouseEvent" type="e" />
            <dep id="flash.events:MouseEvent" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="OrientationNavigatorComponent" mod="1295554958134" >
            <def id="OrientationNavigatorComponent" />
            <dep id="flash.events:Event" type="e" />
            <dep id="flash.events:MouseEvent" type="e" />
            <dep id="flash.events:MouseEvent" type="s" />
            <dep id="flash.display:MovieClip" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="mx/flash/ContainerMovieClip" mod="1186099503000" >
            <def id="mx.flash:ContainerMovieClip" />
            <dep id="mx.flash:FlexContentHolder" type="e" />
            <dep id="flash.display:DisplayObjectContainer" type="s" />
            <dep id="mx.flash:FlexContentHolder" type="s" />
            <dep id="flash.events:FocusEvent" type="s" />
            <dep id="mx.core:IUIComponent" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="mx/flash/FlexContentHolder" mod="1192597011000" >
            <def id="mx.flash:FlexContentHolder" />
            <dep id="flash.display:InteractiveObject" type="e" />
            <dep id="flash.display:DisplayObject" type="e" />
            <dep id="Math" type="e" />
            <dep id="flash.utils:getDefinitionByName" type="e" />
            <dep id="Error" type="e" />
            <dep id="flash.display:DisplayObjectContainer" type="s" />
            <dep id="mx.core:IUIComponent" type="s" />
            <dep id="Error" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="mx.flash:ContainerMovieClip" type="i" />
          </script>
        </library>
      </libraries>
      <files>
      </files>
    </swc>

  • Quality (aliasing) of downscaled flex component created in flash cs 5.5

    Hi!
    I have created a iPhone-Slider-Button in Flash. All vector graphics in Flash I've converted into bitmap data.
    For all these bitmaps I allowed smoothing in the library.
    Then I've converted the Flash MovieClip into a Flex component.
    Then I load the component in Flex with the <local: tag which works great! Because the component is too big I have to scale it down in the Flex Design view.
    Here is the result in 100% an an iPad:
    You can see the bad quality of the white text. It would be great to be free in choosing any component size (proportional scale) in Flex with a smoothed look.
    Who can help? Thanks a lot!

    Hi,
    For the flash only swc, you dont need the initialize functionality. As
    mentioned in the post, intialize() function is called when the
    FilePublisher component is added to a Flex container. In the flash only
    swc we have decoupled it from Flex and its mechanisms, and it required
    us to eliminate intialize functionality. So, calling
    filePublisher.subscribe() should instantiate all the needed variables.
    In summary, the thread you mentioned is Flex specific, and doesn't apply
    to the scenario you mentioned. Subscribing to the filePublisher manually
    might fix your issue.
    If you are still stuck, Can you post your code and debug logs if possible,
    Thanks
    Arun

Maybe you are looking for