Flash to Flex Conversion Issues

I have this project that worked perfectly in Flash, and my client needs it transfered into Flex. The Flash project was a single .fla file and a .as document class.
I recreated all of the buttons, text areas, etc. in a single .mxml file. I replaced a movieclip progress loader with a progressBar, and changed the code accordingly.
I changed "public class RecognitionApp extends MovieClip" to "public class RecognitionApp extends spark.components.Application"
I included the Class in the .mxml file using:
<fx:Script>
        <![CDATA[
            import com.RecognitionApp;
        ]]>
    </fx:Script>
Finally, I added "applicationComplete='RecognitionApp()'" to to the <s:Application> tag.
However, I get 161 errors, all of them "1120: Access of undefined property _______". I have put the correct IDs on all of the buttons. They exist in the .mxml file. Why am I getting this problem?

It seems kind of strange that you have:
RecognitionApp extends spark.components.Application
because I think you can only have one Flex application object. You can load another Flex app using SWFLoader though.
Can you give an outline of your app, something like this:
MainApp
    - MyComp1 (custom component extending VBox created with MXML custom tag)
    - MyComp2 (custom component extending HBox created in ActionScript)
etc.

Similar Messages

  • Posing a question for those well versed in flash and flex

    I would like to start an off-line communication chat with those of you who are well versed in Flash and Flex.
    I've worked with Cold Fusion but I am not up to date on all the technologies available.  This seems like the perfect forum for this question.
    I simply want to build an application (web or desktop is unknown) in which a person can learn a foreign language, in this case English.
    I need some technical advice as to whether Flash, Flex, or a combination of technologies (Cold Fusion for server side functionality) is the best choice for this application.  I do not understand the technical aspects of Flash or Flex in building applications so I need the advice of you experts.
    As with most foreign language textbooks, audio, or foreign language video training, the material is not interesting, not pertinent to daily life, and is great for late night insomnia.  I've never seen any type of foreign language training that is interesting, fun, or uses current events as part of the curriculum.
    I would like to illustrate my idea with an example.  I want to use an existing English beginners textbook (for kids), scan the images in the textbook, store the content (rules of grammar) in a database and store example sentences in a database.
    I would like to record basic audio sentences from the textbook (Do you know tomorrow's weather), incorporate some animation (baseball player hitting a home run), incorporate some basic video (purchasing an item at the grocery store), add a quiz, test question or puzzles, etc..
    In addition, since this is a classroom setting and the kids are split into groups, I would like to store a seating chart with the kids names and pictures in a database.  After the first segment is finished (e.g. purchasing a toy at the store) the kids next perform an activty.  I want to use a combination of audio, video, and animation to explain the activity, give instructions, split the class into groups,and perform the activity.
    As I mentioned before, I would like to start an off-line discusion for those of you who are willing to share some of you knowledge and experience with both Flash and Flex.  Since you are extremely busy, maybe you might be able to point me in the right direction.
    Hopefully, some of you can provide some sound technical advice.
    Thanks in advance
    Michael Poplawski

    This is an abitious project even for some-one well versed in flex/flash, i have to give you points for outstanding courage on this .
    You need to cover quite a few areas in a project like this both for the client and the back end, you need a strong understanding of animation(either through code or the flash timeline), data parsing, logic trees for the quiz/test elements and a lot more before the first line of code would be written.
    In Australia there are already a few companies using flex for online educational applications and at least 1 state educational Authority. A search on the internet will find several sites pertaining to flash/flex based online education software and this would be a starting point to give you an idea of the strength flex has in this area.
    Beyond this it is not the sort of project that 'help' would be readily available for unless it was relating to very specific issues you could readily define. Also this is not the best forum to request this type of help as the forum is more about testing a beta product. I am sure that if you start learning about flex and have trouble understanding different aspects of how things work there will be plenty of support from the flex community.
    Message was edited by: David_F57
    by forum I don't mean the whole forum just this branch.

  • Flash in flex nightmare

    Hi All
    So I am building a simple flex site wich loads a flash swf
    file into it. In the real site that file is a photo gallery that I
    have. for debugging I have created a simple flash file. I have ran
    accross a few wierd bugs.
    the movie is very simple two buttons. A movie loads in at
    start using loadMovie(). Then I have two buttons that load
    additional Movies when pressed. the code is really simple
    this.createEmptyMovieClip("mcLoader",100);
    mcLoader.loadMovie("move.swf")
    mybtn.onPress = function() {
    mcLoader.loadMovie("move2.swf")
    mybtn2.onPress = function() {
    mcLoader.loadMovie("move.swf")
    this works great on its own
    http://www.rubberduckymedia.com/projects/mi/load.swf
    now the problems come when I load this in flex
    one issue is that the button press does not always get called
    I press any of the buttons once it kills the loaded movie I press
    it again it reloads it WIERD
    even wierder is that on a mac the buttons dont work at all. I
    thought that flash was supposed to be platform browser indepandent.
    I am stuck and frustrated as this app works great in any
    browser windows except for the buttons not alwasy working but I
    just did a onPress and onRelease to execute the same button code
    and that solves that issue. Not the best solution but it works. I
    am just frustrated with the mac issue
    Dave
    One

    It might be a player version issue. Can you verify that the
    PC and Mac Flash Players are the same revision? You can also grab
    the one on Adobe labs (
    http://labs.adobe.com/technologies/flashplayer9/)
    and try it with that. This way we can eliminate any player version
    issues. We might have a bug in the Mac player and it would be good
    to resolve it quickly.
    How are you loading the "main" Flash SWF (load.swf) with
    Flex? Like this:
    <mx:SWFLoader source="load.swf" />
    ??

  • Switching from Flash to Flash Catalyst/Flex

    For the last few years I have been developing applications for project reporting. To explain this in simplest terms, my clients give me hundreds of reports and supporting documents, graphics, videos, etc. which I then condense and reorganize into a presentation/application in Flash. The project is then published as an .exe to be burned to CD ROM or DVD along with any supporting files and is then distributed to project stake holders, investors, etc.
    I'm considering the possibility of a switch from Flash to Flash Catalyst/Flex and want to outline what my needs are, here in the forum, in hopes that others now using Catalyst/Flex can help me decide if this is an appropriate move.
    Features needed:
    1. Basic animation, transitions, etc.
    2. Full Navigation (up to 3 levels) for up to 300 slides.
    3. Keyboard navigation (PageUp/PageDown) to navigate sequentially through the entire presentation.
    4. Linking into other applications and documents - Word, Excel, Power Point, etc.
    5. Full Screen Mode
    6. Slide Show Mode
    7. Search Features
    8. Slide sharing (via email)
    9. Video and audio w/controls
    10. Pan and Zoom w/controls (panning and zooming of graphics and .swf files)
    11. Scrolling (scrolling of text, graphics and .swf files)
    12. Interactive forms
    Can anyone please comment specifically on these features and wether or not they are possible using Catalyst and/or Catalyst/Flex in combination.
    Thank you all for any insight or suggestions.
    John

    With the exception of making fre-form animations (like a cartoon for example), everything you can do in Flash can be done in Flex considerably faster.
    The downside is that Flex applications (especially ones designed in Catalyst) are generally larger, and consume more memory. Personally, I never publish anything made in Catalyst without optimizing it in Flash Builder first.
    If the drop in operating performance isn't a deal breaker (most of the time you can't even notice it), then I would certainly consider moving to Flex going forward on new projects.

  • Mac OSX: Flash CS3 Font Install Issues

    Hi,
    I have a Mac Powerbook G4 with OS X installed and Adobe CS3.
    I've installed a font. The font works in Photoshop and Illustrator
    but not in Flash CS3. Why? I've put the font in the Library/Fonts
    folder and the User/Fonts folder and it still doesn't show up in
    Flash. Apparently this is a problem for a number of people see
    another forum here:
    MAC
    OSX: Flash CS3 Font Install Issues Forum
    Please let me know what to do to fix this. I need to be able
    to work with the font in all three applications Flash, Photoshop
    and Illustrator.

    Hi davidd61713525,
    Sorry for not getting back to you sooner.
    Unfortunately, it looks like something is wrong with the file system and the installer can't see the root drive to install to.  A Google search returns numerous results affecting various products and the recurring theme is that something is wrong with the disk.  There are many recommendations from various sources, but nothing definitive.
    Here's a similar thread over on the Apple forums:
    Broken Installer Permissions | Apple Support Communities
    And a similar older one:
    http://forums.macrumors.com/showthread.php?t=1203509
    I would try the following options:
    Try using the PKG installer. This is used Mac SysAdmins to install Flash Player within their organization and uses a slightly different installer path, which may or may not work.
    Some people have had success with disk and permissions repair some have not.  You can try running a disk and permissions repair.  After the disk and permissions repair is complete, reboot the system and try to install again using either the online installer (get.adobe.com/flashplayer) or the offline installer, posted at the bottom of the Installation problems | Flash Player | Mac page in the ‘Still having problems’ section.
    If these options do not work, I'd reach out to Apple support to see if they have a suggestion.  If you do find a resolution to this, please let me know.  I'll be happy to share it with people that encounter the problem in the future.
    Maria

  • Conversion issue in encoding in PI

    Hi,
      I am having a problem in conversion issue for encoding. Let's have a detailed look into the scenario first.
    Scenario: SNC->PI (through Proxy)->MQ (through Receiver JMS adapter)->SeeBeyond (It's a middleware system).
                   Here from SNC, data are coming into PI as in UTF-8 encoding, whereas all the systems shown in the above flow are of ISO 8859_1 format. Hence UTF-8 needs to be converted into ISO 8859_1. PI does this conversion in Receiver JMS adapter. CCSID has been set to 00819 which is for ISO 8859_1 encoding. But the beginning of the xml, it remains still UTF-8, like below:-
      <?xml version="1.0" encoding="utf-8" ?>
    Whereas the content of the xml has already been converted into ISO 8859_1 by Receiver JMS adapter. Now let's see the problem now.
    Problem: After the data been passed in SeeBeyond, the mapping fails in SeeBeyond, since SeeBeyond tries to look at the XML tag from the beginning and it found it's in UTF-8 as per he tag above. Then it tries to map it in UTF-8 format whereas the content is in ISO 8859_1, so mapping fails in SeeBeyond. Please note, here allthe systems except SeeBeyond are just bypassing the data, no mapping been introduced in anywhere in the systems except SeeBeyond.
    Workaround: Is there any other chance where we can change the tag header from UTF-8 to ISO 8859_1 in Receiver JMS adapter itself in PI like this:-
    <?xml version="1.0" encoding="iso 8859_1" ?>
    This might resolve our problem I think. Any suggestions would be appreciated.
    Thanks and Regards
    Soumya

    Hi Stefan,
                Thanks for your reply. I have gone through the link you have specified. Ya, that's the other way to resolve that issue in that case. But here we have asked the receiver system (SeeBeyond) to change the encoding part in their mapping. Because changing the coding part in SeeBeyond is less time consuming than adding a new Bean in JMS adapter. Our problem got resolved by changing the mapping in Receiver end. Thanks anyway for your valuable reply.
    Thanks
    Soumya

  • Umlaut Conversion issue in Sender communication channel SAP PI

    Hi Gurus,
    We are facing issue while conversion.
    umlaut Conversion issue in Sender communication channel that is reason channel not able to pic the file from the path.
    Sender CC error:
    Value of incoming field is too large. Segment:'IMD', Field:'7008', MaxLength:'35', value:'Plssvvkbecher Lübzer 0,4 (1280Stk p' DESCRIPTION: The length of the field value is too big !
    Actually field contains 35 Chars only the value is  : 'Plssvvkbecher Lübzer 0,4 (1280Stk p'
    We tried with “ISO-8859-1” if the field value is less than 35 characters it is able to converting.
    Please help me out from this issue.
    Thank you.
    Regards,
    Jittu.

    Hi Jittu,
    Have you tried using the codepageconversion bean in the modules under the sender?  It would be like:
    AF_Modules/TextCodepageConversionBean with a parameter of Conversion.charset and a value of utf-8.
    Regards,
    Ryan Crosby

  • How to tell a swf file in web was made by flash or flex?

    the swf file in web, how to tell it was made by Flash or
    Flex? accurately!

    Im not sure, but I would think that right now the main way to
    tell the difference would be to find out if it requires Flash
    Player 8.5 or not. Currently, Flash swfs only go to 8.0. Another
    way is to look at the source of the HTML file. I notice that Flex
    puts an incredible amount of code into the HTML file.
    Thia

  • Flex Module issue with Panel

    Hello everyone. I have the following problem.
    In my application I have several modules and each of them have components CollapsableTitleWindow (extends Panel). After opening the window it is added to the container which is in the main application (CollapsableTitleWindowContainer). In these windows you can open another window (and so on).
    Now, what is the problem. When I change (reload) any module and I want to open a new window (sub window) with the already loaded window I get this error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.containers::Panel/layoutChrome()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\containers\Panel.as:1405]
    at com::CollapsableTitleWindow/layoutChrome()[D:\Flex 3 Workspace\WesobCrm\src\com\CollapsableTitleWindow.as:216]
    at mx.core::Container/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:2867] (...)
    Indicates that the main applications have object Panel
    Please help.
    P.S. I found a similar problem on http://www.nabble.com/Flex-Module-issue-with-Panel-td20168053.html
    ADDED: I extendes the Panel class and do something like that:
    override protected function layoutChrome(unscaledWidth:Number, unscaledHeight:Number):void
                    use namespace mx_internal;
                    if(!(mx_internal::titleBarBackground is TitleBackground)) {
                            mx_internal::titleBarBackground = new TitleBackground();
                    super.layoutChrome(unscaledWidth, unscaledHeight);                     
    But now i had something like that: Before After
    You can see that it loos style declaration.H

    Thanks for the anserw.
    I don't exacly understand all but i found a solution for my problem and it works.
    Could you tell me if this is ok ?
    I Add in my main app
    public function getProductWindow():ProductWindow {
        return new ProductWindow();
    And in the module i change
    From var productWindow:ProductWindow = new ProductWindow();
    To var productWindow:ProductWindow = Application.application.getProductWindow();

  • Language conversion issue in PI7.1

    Hi,
    My sceanrio is file to Idoc. Am facing language conversion issues.
    For example one of the field in the source file is having the value "Différence sur net". And in the IDOC field the value is appearing as "Différence sur net".
    With the same data I have done file to file scenario with and without content conversion and the output is coming correctly as "Différence sur net".
    I have enabled Unicode check box in RFC destination also in XI server. But still its coming "Différence sur net" . Please advice how can I get the target field value same as that of the source field vale.
    Can anyone help me to sort out this issue?
    Thanks.
    Dinesh

    Hi,
    In Channel try with using the File type: text and encoding : UTF-8.
    I think this will solve your issue.
    Thank you,
    Siva

  • Why change from flash to flex?

    hi everyone
    I'd like to know why is flex a better alternative to build
    RIA applications then flash itself, because i can't find anywhere
    the reasons to change, since flash can do almost anything that flex
    can to, so please explain it to me. thanks

    Let me try a short answer: I think Adobe targets two
    different audiences with Flash and Flex: Flash is the authoring
    tool for the design-oriented web artist. Flex on the other hand is
    a powerful IDE for the application-oriented software developer.
    Since both products share ActionScript and the SWF file format I'm
    sure both sides will benefit from each other in the future.

  • Same fonts used in Flash and FLEX are different

    Fonts used in Flash and Flex differs in appearance even though they are same. It lacks the anti alias property and shows pixelated in flex even if it appears normal in flash. Please see attachment.

    There can be several reasons for that.  First make sure the font is embedded properly.  Rotate the object and see how it looks.  It is also possible that in Flex the fonts are being captured as a bitmap which can turn off AA at times.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Flash or Flex on Android Flash 10.1

    Hi
    I've a question regarding the performance of the video playback of the Flash Player 10.1 on the Android 2.2 with regards to the H.264: Is the performance the same with the use of Flash or Flex? Is there a difference in performance of the resulting application if I use the Flex SDK instead of Flash?
    Thx
    Stefan

    I dont think there is a lot of difference in the performance on using flash or flex sdk,since both convert teh video player to similar swfs that pay on same flash player

  • What is the "Language Reference" difference between AS, Flash, and FLEX?

    I'm fairly new to the world of Flash9 / Flex2 / ActionScript3
    development environment.
    As I was reading through tutorial for FLEX/AS, I was
    introduced to Language Reference for FLEX 2.0.
    At the same time, I noticed in FLASH9 / AS3 there is also
    Language Reference page. For a moment, I thought these 2 Language
    Reference shared the same API / Language components.
    As I have found out, when I was looking up Language Reference
    for "Button" class for FLE2.0, it provided
    - mx.controls.Button
    But for Language Reference for "Button" class for FLASH9 /
    AS3, it provided different package
    - fl.controls.Butoon
    Why are there 2 sets of packages for the class Button?
    Shouldn't there just be one package for class Button?
    thanks,
    Ming

    Hello,
    The names can be confusing, especially since IE identifies Flash Player as Shockwave Flash Object in 'Manage Add-ons'.  They are, in fact, two different programs, as noted in your Programs and Features screenshot. Flash Player plays web content created using Flash Professional, Flex, or Flash Builder (ActionScript programming language).  Adobe Shockwave Player plays web content that has been created using Adobe Director.  They are not interchageable.  Web content created using ActionScript requires Flash Player and web content created with Adobe Director requires Shockwave Player.
    More info:
    Adobe Director
    Adobe Shockwave Player
    Flash Player | Adobe Flash Player | Overview
    HTH.
    Maria

  • Integrating Flash and Flex

    Hello,
    I am new to Flex but an experienced programmer. I have a Flash movie that has been saved as an .swc file. This movie shows doors open and close in response to real time events obtained through a messaging service. I would like to be able to place this movie into a flex applicaiton so that I can respond to these events. My question is, is it even possible to interact with a Flash movie clip in Flex? I was assuming that this was the whole point of Flex (Flash Builder). Am I wrong about that? Are Flex and Flash two completely different and incompatible products?

    https://iamjosh.wordpress.com/2008/04/09/embedding-flash-in-flex/
    Yep. You have the right idea. Flex is a framework (targeted at developers) for developing Flash applications.

Maybe you are looking for

  • How to convert xml utf 16 to utf 8

    Is it possible to convert xml file with UTF16 to UTF8 using ABAP? I am using ECC 6.0 Appreciated your inputs.

  • Function/Subrutine and where clause

    Hi,   Is it possible to define a subroutine.function and use it in the SQL where clause in ABAP??   If so, any reference code?? Regards, Kit

  • Where is the documentation on SQL Loader

    I am trying to use the SQL loader and don't know how to create a control file. Can somebody direct me to the right documentation?

  • How to find cost center assigned to a work center

    Hi Guys,              I need to find cost center assigned to work center. from Which table I should to get it. Cheers S Kumar

  • Move columns in table at runtime

    Hi, Can anyone tell me how to do the application which is having the following functionalities.. 1)moving the columns in the table at run time... 2)drag and drop option at runtime..(i.e if one table having items and 2nd table is empty if we drag and