Flex to Flash -- Flash to Flex

I created a SWC in Flex. linked to it in Flash and my classes
don't show up.
there's no error. nothing is visible. WTF?

I've been looking for this for a while now ... it's funny how the most obvious stuff in Flex/Flash are so hard to accomplish.

Similar Messages

  • Is this a bug in Flash Player or Flex?

    Compile and run this code (it is generated when you select New MXML Application) with FlashBuilder4.5:
    <?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" minWidth="955" minHeight="600">
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    </s:Application>
    If you are using IE, you will see a blue player control panel. But there should be nothing displayed because there is no
    visual components in the code above.
    If you are using FireFox, there is nothing displayed.
    Same behaves for mx:Application.
    I think it is a bug with Flash Player or Flex. How can Flex behave differently with different browsers?

    This is what I see in IE 9.0.8112.16421, but not in FF.

  • [Urgent]Please tell me if this project should be done in Flex or in Flash ActionScript ?

    Hi,
    I have a project and I need to know if I should do it using Flash Builder and Flex or just using Flash and ActionScript
    (I Know Nothing About Flash Builder And Flex)
    The project is:
    Mp3 Player
    - Streaming Mp3's
    - Ads inside each song
    - XML driven
    - skins and color themes for it
    - playlist
    - drag and drop from outside the player(from normal html)
    - Should communicate with Php files all the time for transferring ad Id's
    Now please let me know if this will be better done with ActionScript or Flex
    I'm also read in somewhere that the Flex empty file is about 200KB which made me a little scared to use it
    So can you please tell me what size do you expect for such a player (Assets will not be embedded)
    I need to tell my boss today my decision whether to use which one, So please help

    For the file size, you could have done it yourself (3min of time).
    platform : Flash Builder 4.5 on Mac
    1) empty Flex Web project
    below the result of loading it into a browser (the .swf file is 44kB); there are also some other .swz file providing the flex and spark framework but they are only loaded once on the client side and shared accross all web site needing it (stored in the flash cache, not the browser one)
    2) empty Web ActionScript project
    the .swf file is 4kB

  • Can i use flex components in flash?

    hi all,
    i recently downloaded flex and saw that the components have a
    much better feel than the components which ship with flash 8 pro.
    is there a way to use flex components in flash?
    any help would be appreciated.
    thanks,
    gaurav

    "rritchey" <[email protected]> wrote in
    message
    news:g8ua6d$qu6$[email protected]..
    > bump: Was I not clear in my question? Or does no-one
    know the answer?
    You might want to try in the flexCoders Yahoo! group.

  • Flash components in Flex

    I have built an interface in Flash CS3 and now have the need
    to port it over to Flex. I am trying to do it with as little
    re-build as possible, so I need to port the Flash components over
    with it. I exported a SWC with all of the components I am using,
    and added it to the Library Path of an AS project.
    The build gives me no errors, but I do get a #2007 at
    runtime. The error seems to be stemming from a Yahoo ASTRA Flash
    component, which was included in the SWC.
    TypeError: Error #2007: Parameter child must be non-null.
    at flash.display::DisplayObjectContainer/addChildAt()
    at fl.controls::BaseButton/drawBackground()
    at fl.controls::LabelButton/draw()
    at fl.controls::Button/draw()
    at
    com.yahoo.astra.fl.controls.tabBarClasses::TabButton/draw()
    at fl.core::UIComponent/drawNow()
    at com.yahoo.astra.fl.controls::TabBar/drawButtons()
    at com.yahoo.astra.fl.controls::TabBar/draw()
    at fl.core::UIComponent/callLaterDispatcher()
    I have been searching around the net, and the majority of
    people are saying that this happens when the skins aren't included
    (so you need to set them before the component is added to the
    stage). I am using customized programmatic skins, for which the
    source files are included in the build, and the styles get set
    before the component is added to the stage (I actually replaced the
    default ones in the class).
    Does anyone have any other ideas as to how I could fix this?
    PS - It is an ASTRA TabBar component that is giving me
    issues. I know that Flex has a TabBar and TabNavigator, but I can't
    find any documentation on how to use these from an AS project (no
    MXML). I will simply rebuild using the native Flex controls if
    necessary, and if possible, but would prefer to fix the issue as it
    currently stands. (I might go back to Flash at some point, and
    don't want to tie myself to a particular solution, considering I
    can't use Flex components in Flash).
    PPS - If you are wondering why I am porting to Flex right
    now, especially if I am considering taking it back to Flash in the
    future, it is because I have the need to begin building in
    FlashPlayer 10 functionality, and the only way you can build to
    FP10 right now (as its in beta) is with a nightly build of
    Flex.

    "rritchey" <[email protected]> wrote in
    message
    news:g8ua6d$qu6$[email protected]..
    > bump: Was I not clear in my question? Or does no-one
    know the answer?
    You might want to try in the flexCoders Yahoo! group.

  • Using Flex components within Flash CS3

    I'm new to Flex and I enjoy all of the components that it has
    to offer, but I am wondering about their availability within Flash.
    My plan is to make a highly animated and interactive menu and
    I have reached a point where I have to ask two questions:
    1. Is is possible to use any of the Flex components within
    Flash CS3?
    2. If the first is not possible, then if I make my menu and
    specify "containers" within the Flash file then is it possible to
    populate these "containers" with Flex components by making the
    Flash (.swf) file of my menu into a Flex component itself?

    No, Flex components cannot be used in Flash 8.

  • Too small window size in standalone flash player in FLEX

    Hello,
    I have unchecked the option "generate html wrapper file" so I
    don't have to bother about closing the browser tab each time I make
    a small change to the code and rerun the application.
    This works fine as the standalone flash player closes when I
    terminate the application from Flex. However, the standalone flash
    player always starts in a fixed window size smaller than my
    application size so that I cannot see the whole application. So I
    have to enlarge the window size of the standalone flash player each
    time which is annoying!
    Is there a better solution?
    Maybe get Flex to close the browser tab after I terminate the
    application. I still prefer to use the standalone flash player
    during development as my application doesn't depend on the browser
    though.

    Adobe Newsbot hopes that the following resources helps you.
    NewsBot is experimental and any feedback (reply to this post) on
    its utility will be appreciated:
    Flex 3 - About the Flex development tools:
    Adobe Flex Software Development Kit (SDK) primarily provide
    XML files that you use ... When you use the debugger version of
    Flash Player or start your AIR
    Link:
    http://livedocs.adobe.com/flex/3/html/building_overview_2.html
    Adobe - Flex 3:
    While Flex applications can be built using only the free Flex
    SDK, developers can use ... Alert This content requires Flash.
    Download Flash Player now
    Link:
    http://www.adobe.com/products/flex/
    Flex.org - Rich Internet Application Development:
    I would like to extract data from my Flex application to a
    CSV file for loading into Excel. However, the current Flash player
    does not allow direct access
    Link:
    http://flex.org/
    Adobe - Flex Developer Center:
    Supports visual and code-centric development, code hinting,
    visual debugging, and so forth. Includes the Flex 3 SDK and Flash
    Player 9.
    Link:
    http://www.adobe.com/devnet/flex/
    moockblog: Flash Player 9, Flex 2, ActionScript 3.0: A Survey
    of:
    Flash Player 9's main new feature is full support for
    ActionScript 3.0 (but older ... Flex Builder 2 also includes a
    development framework known as the Flex
    Link:
    http://www.moock.org/blog/archives/000189.html
    Disclaimer: This response is generated automatically by the
    Adobe NewsBot based on Adobe
    Community
    Engine.

  • Latest flex sdk for Flash Builder 4

    HI,
    We bought Flash Builder 4 Premium and installed it.
    Now I want to use the latest flex sdk to use with it (I am working on a project using TLF 2).
    What is the version I should install, is it sdk 4.1 or 4.5(Hero).
    In Flex 4.1 there are about three variations http://opensource.adobe.com/wiki/display/flexsdk/Downloads. Which one should I download if using 4.1 ?
    Please explain.
    Thanks

    Thanks Chris.
    in sdk 4.1 download there are 3 download types. Can you please tell me the difference of 'Free Adobe Flex SDK' and 'Open Source Flex SDK' and which one should I use?
    Thank you very much

  • Flash migration to Flex

    Hey there,
    Is there anyway to migrate existing applications built in Flash to Flex without having to rewrite everything over again? I've heard something about the Flex Component Kit that says it allows you to build Flex components in Flash but that doesn't sound like what I am looking for.
    Thanks!

    If you build a pure as3 project you can migrate it easily. But if you 
    don't you can embed the compiled flash app within a Flex app using 
    SWFLoader for instance.
    Sincerely,
    Michael
    Sent from my iPhone
    El 17/07/2009, a las 11:43, Tereno10 <[email protected]> escribió:
    >
    Hey there,
    >
    Is there anyway to migrate existing applications built in Flash to 
    Flex without having to rewrite everything over again? I've heard 
    something about the Flex Component Kit that says it allows you to 
    build Flex components in Flash but that doesn't sound like what I am 
    looking for.
    >
    Thanks!
    >

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

  • Flex object in Flash file

    Hello. I have a Flash website template (.fla). I would like to use Flex components and datagrids, populated with dynamic content, on some of the pages in the Flash website. Others on my team are using the Flash Builder 4 IDE. I will eventually have to integrate with them. Do I begin with Flex or with Flash? How do I integrate the two? Resources? Tutorials? Thank you in advance.

    Help??? any one???

  • How to use Flex Components with Flash?

    Hi!!
    I found a lot of very useful components in the web, but they are all for  Flex, is it possible to use Flex Components with Flash IDE?
    Thanks !!!
    jenry
    PS: this is one of the components I need to use (a tree with checkbox  nodes)
    http://www.sephiroth.it/file_detail.php?pageNum_comments=30&id=151
    another one:
    http://www.darronschall.com/weblog/2006/09/a-flex-2-checked-tree-control-component.cfm

    Flex components are delivered as SWCs just like Flash components, but the
    SWC format is incompatible with the Flash IDE.
    Also, the default fl.. components in the Flash IDE are incompatible with
    Flex components.
    You should be able to load a Flex SWF into a Flash SWF as long as you aren't
    using fl.. components in the Flash SWF.  If the Flex SWF overlays things
    in your Flash SWF then it might block interaction, but otherwise it
    shouldn't.  I don't think the statement you quoted is true for all
    configurations.
    But loading a Flex SWF into a Flash SWF isn't going to help you use those
    Flex components from your Flash IDE.  Try Flash Builder 4 to build out the
    Flex portion of your application.  I haven't tried it myself, but it I think
    it is supposed to have better integration with Flash.

  • Converting Flex classes to Flash

    Hi,
    I am working on a project that is implemented in Flash CS3
    (AS3) but needs some utility classes previously developed in Flex2.
    Are there any guidelines/libraries/etc that I can use to convert
    the Flex classes to Flash. As an example, some of the core classes
    of the Flex application use IUIComponent. What is the equivalent in
    Flash CS3, can I somehow not change anything and, say, add the Flex
    components to my Flash application.
    If you have a working solution please let me know.
    Best regards.

    Just my opinion, but I would ask this in the Flex
    forum...

  • Using a swf generated by Flex from a Flash component

    I know you can include and control a swf generated by Flash
    within a Flex component. But can you do the inverse? Can you use a
    swf generated by Flex within a Flash project/component?
    We plan to develop a "core" module that would be used in a
    lot of other Flash and Flex components we'll develop in the future.
    This core would be a package of classes that could be easily
    re-used by the components. There would be nothing visual in it,
    only standard classes.
    Even if this core would not contain any visual components, we
    would like to develop it using Flex since we prefere Flex Builder
    to the Flash editor to code and debug.
    But I'm not sure if:
    1) A core module like this, developped in Flex, could be used
    by our Flash components or only by other Flex components?
    2) If we use Flex to generated this core, will the resulting
    .swf be bigger than if we would have used Flash to develop it?
    Since there will be no Flex visual components in it, maybe it will
    be as small? Is there a compiler parameter to tell Flex to only
    include the minimum things possible in the generated .swf?
    Any help or link about this would be really appreciated!
    Thanks you in advance!
    P.S. I apologize to those aware that this message was also
    posted on another Flex related forum, but I received no reply on
    it!

    try this. for me it has worked.
    import flash.net.URLRequest;
    import flash.utils.Timer;
    var loader:Loader = new Loader();
    var timer:Timer;
    var myclip:MovieClip;
    //load the Flex Component
    loader.load(new URLRequest("IS.swf"));
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    loaderDone);
    addChild(loader);
    function loaderDone(e:Event) {
    timer = new Timer(100);
    timer.addEventListener(TimerEvent.TIMER, handleTimer)
    timer.start();
    function handleTimer(event:TimerEvent):void {
    //cast the loader.content into MovieClip to access
    currentFrame.
    myclip = loader.content as MovieClip;
    if (myclip.currentFrame == 2)
    however, i need to access properties of IS.mxml..
    any data member would work..
    or if i could dispatch an event in IS.mxml and catch it in
    flash through IS.swf, it would work.
    Pls somebody suggest.

  • Import Flash components into Flex

    Hy,
    I'm trying to create an AIR application. Until now I've watched and read a lot of tutorials but none had the answer I was looking for. So I have a few animations made in Flash as MovieClip symbols. They should react depending on the user's intentions. How can I import those symbols and control them with "gotoAnd" commands (i know how to use the AS in Flex but not how to import animations)? I'm starting to think Flex can't do this because I only found about skins or images or things not even close to what I want. If you know a way I would really apreciate a nice tutorial or a code sample.
    Many thanks !

    I think that what you're looking for is the Flex Component Kit for Flash CS3.
    By installing this kit you are able to export any movie clip from flash as a flex component.
    Then, you have full access to the objects inside the component by writing code in your Flex application.
    you can find it here : http://www.adobe.com/go/flex3_cs3_swfkit

  • Flash Builder and Flex 4 Press Coverage

    Could someone post some links to some of the  BIG BANG press coverage of the Flash Builder and Flex 4 releases ?

    What is an example of the code that is the source of the error?

Maybe you are looking for

  • Is there a Google Sync Alternative for sync'ing Exchange Calendar with iCal?

    Previously, I was using Google Sync (one-way) to sync calender events between my microsoft outlook calendar and google calendar which I then had sync'd with my iphone.  I had to format my computer and now when I try looking for the software (Google S

  • Budget version in CO is not showing up on _ALR_87013326  report. Why?

    Hi, This is something strange: i have 9 budget versions in my company code. I created them all and loaded budget nubmers identically! I can't understand the problem: When i execute report S_ALR_87013326 - "plan" number show up for versiona 1-8, but n

  • How to serialize the IDoc of DEBMAS by time sequence?

    Hi experts, We want to transfer customer master data from one client to the other. We have carried out the serialization distribution for message type DEBMAS and actived the change point. Scenario: time 1 : We created one "NEW" customer 100436. time

  • Unable to unlock tag; causes error and crash!

    I am running InDesign CS3 and newly installed OSX 10.6.4 on a GS5 Quad-Core Intel. I'm having difficulties with a multipage file that I created and tagged. It has produced an error message during packaging. And if I continue to package the file for p

  • Reg: pernr and reguh table

    hi guru's. iam fetching bank details for employess from reguh and regup using the field pernr,since pernr is not a key field in reguh,it gets more time to fetch( around 45mins ).is there any method to make it fast?????very very urgent .....plz help..