code conversion from Flex to Flash Builder 4

I have a code that has been created in a primitive version of Flex that I am trying to bring in Flash Builder 4.  The project will not build.  There seems to be a problem with some the MXML.

I am well known in ActionScript 3.0, well that is just beginning to work with Flex and Flash Builder framework, so the MXML is still not clear to me.

Flash shows Builder an error on this line:

"< local: GeocentricView id ="geocentricView"orb ="GCOrbSlider. {} " value }"/>

... error stating: "'local' prefix for the element" local: GeocentricView "is not related."

The full code file is located here (I'm fairly certain that the problem is not with the code ActionScript, why have not included):

<? XML version = "1.0" encoding = "utf-8"? >

< s:WindowedApplication ' 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:components ="components.*"xmlns:custom ="custom.*">

          < fx:Script >

               <! [CDATA]

               

/ / a bunch of ActionScript 3.0...


               ]]>

          < / fx:Script >

          

< fx:Declarations >

<!-< mx:Style source = "AION.css" / >-->

          

" < mx:ApplicationControlBar width ="100%""">

"" < mx:Label text = "AION" color ="0xFFFFFF" fontWeight = "bold" fontSize ="20"/ >

< / mx:ApplicationControlBar >

          

          < mx:Spacer height = "5""/ >

          

"" " < mx:VDividedBox width ="100%"height ="100%"liveDragging ="true"dividerPress ='realPause=" dividerRelease = "falsebreak=">

"" " < mx:HDividedBox id ="hd"width ="100%"height ="100%"liveDragging ="true"dividerPress = 'realPause=" dividerRelease ="falsebreak=">

"" " < custom: AIONPanel id ="geocentricPanel"title ="view geocentric"width ="100%"height ="100%"reset ="resetPanelSizes()"maximize ='timelinePanel.height = 0; heliocentricPanel.width = 0"""> "

" < local: GeocentricView id ="geocentricView"orb ="GCOrbSlider. {} " value }"/>

"" "" < mx:HSlider id = "GCOrbSlider" value ="2" minimum = "0" "maximum ="10"low ="10"left ="10"liveDragging ="true"showDataTip ="fake"" visible = "fake"/ >

                    < / custom: AIONPanel >

"" " < mx:VBox minWidth ="175"maxWidth ="175"height ="100%"horizontalAlign ="center"horizontalCenter ="true">

"" < mx:Tile id = "checkBoxesTile" height ="100%" width = "100%">

                         < / mx:Tile >

                         

<!-< mx:Label id = "dateLabel" width = "100%" color = "0xFFFFFF" fontSize = "13" horizontalCenter = "true" textAlign = "center" / >

< = mx:DateField id = "dateField" change "date = dateField.selectedDate" width = "0" visible = "false" includeInLayout = "false" / >-> "

" < mx:HSlider id ="speedSlider"change ="speed=speedSlider. " value"liveDragging ="true"/ >

                         < mx:Spacer height = "7""/ >

                    < / mx:VBox >

"" " < custom: AIONPanel id ="heliocentricPanel"title ="view heliocentric"width ="100%"height ="100%"reset ="resetPanelSizes()"maximize ='timelinePanel.height = 0; geocentricPanel.width = 0"""> "

" < local: HeliocentricView id ="heliocentricView"zoom ="HCZoomSlider. {} " value }"/>

"" "" < mx:HSlider id = "HCZoomSlider" value ="1" minimum = "0.6" "maximum ="25"low ="10"right ="10"liveDragging ="true"showDataTip ="fake"/ > "

                    < / custom: AIONPanel >

< / mx:HDividedBox >

"" " < custom: AIONPanel id ="timelinePanel"title ="timeline"maximize = 'hd.height = 0" width ="100%" height = "100%" reset ="resetPanelSizes()"""/ > "

< / mx:VDividedBox >

          < mx:Image source = "{fpsTimer}""/ >

< / fx:Declarations >

< / s:WindowedApplication >

The contents of the GeocentricView.mxml file is here:

<? XML version = "1.0" encoding = "utf-8"? >

"" " < mx:UIComponent xmlns:mx ="http://www.adobe.com/2006/mxml"creationComplete ="init()"width ="100%"height ="100%"resize = 'onResize()"> .

< mx:Script >

          <! [CDATA]

               

/ / a bunch of ActionScript 3.0...


          ]]>

< / mx:Script >

< / mx:UIComponent >

Glimpses of what the problem and the solution is?

You must add the local namespace in your MXML. Do the same with components

xmlns:components = "components. " "--> xmlns:local ="com.yourpathtotheview."

C

Tags: Flex

Similar Questions

  • When I save an illustrator SVG format file, I want to get the SVG code but open Illustrator Adobe Flash Builder, I just want to open a browser, NO FLASH BUILDER, how do I do that?

    When I save an illustrator SVG format file, I want to get the SVG code but open Illustrator Adobe Flash Builder, I just want to open a browser, NO FLASH BUILDER, how do I do that?

    You say 'illustrator opens Flash Builder'. So what is she doing?

    * When you save

    * When you try to open it from the inside of Illustrator (open in the file Menu)

    * When you try to open it with double click

    * Something else?

  • Runtime error 1009 after conversion from Flex 3.6 to 4.5.1

    I am trying to convert my SDK 3.6 application 4.5.1.  Process goes smoothly through many resources out there including Greg Lafrance http://www.adobe.com/devnet/flex/articles/migrating-flex-apps-part1.html series

    Now, I get an error while the application is loading in the browser.  The error text is:

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    hand / initApp ()...

    The error occurs in the code AS where I'm looking to get the URL of the player using the mx.utils.URLUtil library.  In particular, I'll put a global variable in my application to the URL of the visitor.  The specific code for this is:

    this.stServerName = URLUtil.getServerName (mainApp.url);

    URLUtil is still in use in Flex 4.5.1?  If not, is there another way to get the name of the server on the host?

    Thank you!

    Lee

    URLUtil still exists.  I would check that's null.

  • Flash Builder 4.5.1 - compilation problem version release Flex Mobile

    I am building a mobile application from flex using Flash Builder 4.5.1. The application works very well on the device (Nexus S) and office in debug mode however, whenever I export the Release version of what the app is not automatically installed on the device. When I manually install .apk it fails also (get the message from the Application that is not installed with the green check mark). Any thoughts?

    The problem was with signing of certificate (.p12). As soon as I created a new certificate, everything worked took place.

  • Flex/Flash Builder development vs. others?

    Generation of application Flex/Flash Builder development has one advantage over the others? The bit I picked up appears to show that it can create an Android, IOS and Blackberry app in a project (of course specific build need to be addressed). I have not seen all up-to-date ways to learn Flex via Flash Builder 4.7. Everything I find seems to be 3 to 4 years. Still working with the material, I can say that it is somewhat outdated. Understand what he does, it seems to be a good platform to learn, but I wonder why the lack of attention to the basis of learning?

    Yes, everything you do in Flash can be done in the Air, most of the time with 100% of the same code. I recommend you to download FlashDevelop (its free, Windows only) and play with some examples of micro. After that, create a new project for mobile with FlashDevelop templates and reuse your code for mobile and compare the results.

    It's really easy once you understand the structure of the project basis and Air vs Flash. I think that the Setup is a bit difficult to understand if you are new to this, but after awhile, it will be a piece of cake.

  • Destroy... What would cause a Flash Builder crashing repeatedly on the same. MXML file?

    Hello

    I'm building a pretty simple application and I changed something in a .mxml file pretty simple and all of a sudden whenever I open the file for editing, Flash Builder crashes and dies horribly.

    If I have all the code in comment and reopen Flash Builder, I can open and edit the file correctly. I can even put all the original in the code and test the application successfully.

    But...

    When I put all the code back in and then go back to edit the file, Flash Builder exterminates in a sort of permanent and irrevocable while I comment on all the code to make it work again...

    I tried to export, delete, import to reset the project, but the problem is recurring.

    Then...

    It is clear that I wrote something in my .mxml file that sends Flash Builder in an infinite loop of godawful or another dead end, but I'm at a loss to say what, as it is very MXML very base and direct without (far as I can tell) something unusual... and I've been professional programming with Flex for a number of years and built some _big_ Meanwhile applications...

    If someone has experienced something similar? Any ideas what I could do?

    Thank you

    G

    Found the little git.

    Somehow, I had marked "Enable design mode" and the designer was attempting to make a wide range of custom controls that she had no idea what to do with.

    I think, I _may_ have tried the design mode for about five minutes about five years ago and decided it wasn't for me... If so, this opinion still stands.

    I have "Enable design mode" Unflagged and suddenly everything plays well again.

    G

  • Flash pro CS55 vs. Flash Builder 45

    Dear Adobe community,

    I'm a programmer Flash Pro (AS3) for some time, but since the advent of the Adobe Air for Android and iOS this year, I saw increasing the amount of movement in the use of Flex and Flash Builder 4.5. For moderators/experts Adobe as well as community members, what in your opinion and your experience, are the benefits of a stay with Flash Pro to develop mobile applications with the help of Flash Builder 4.5?

    Thank you for your advice,

    Alex

    I love Flash Pro.

    If you want to do something that is more about the components and fluid patterns, the same application can be published quickly for different screens on the web, iOS, Android and PlayBook, then perhaps that Flash Builder would be good. Especially if you like more technical IDEs and most of what you do is AS3 code based package.

    If you are more on the use of components, graphics, animations, and completely free ways of working (even if you work with AS3 package approaches if you want), then Flash Pro is always a lot of fun to use.

  • Documentation for Flash Builder 4 offline?

    Is it possible for me to have a documentation offline for Flash Builder 4? It's because I'm not constantly online and new to Flex and Flash Builder bewing altogether, I'm still at a loss whenever I'm doing something that's why offline documentation would really really handy! Note that the unit where I develop with Flash Builder has an internet connection, so I can't update the local documentation via the internet.

    Thank you very much for those which would...

    Hello

    I can help answer. There are two ways to get the documentation for Flash Builder 4 for offline use:

    Hope this helps,

    Mallika

    Flex team doc

  • Why I can't install Flash Builder 4.6 in my creative cloud subscription?

    I have an active subscription to CC, but Flash Builder 4.6 does not appear as an available Adobe Application Manager upgrade.  I see it on the Adobe web site, but when I try to install it does not accept my serial number CC.

    Thank you

    Can you confirm if you have a previous version of flash builder (version 4.5) on your machine.

    If this is the case, please uninstall the flash builder 4.5 of your machine and run the Installer 4.6 and your serial key.

    You can download Flash Builder 4.6 here:

    http://www.Adobe.com/cfusion/TDRC/index.cfm?product=flash_builder

    If you still get the same error.

    Please use the Creative Suites cleaning tool

    http://www.Adobe.com/support/contact/cscleanertool.html

    http://helpx.Adobe.com/Creative-Suite/KB/CS5-cleaner-tool-installation-problems.html

    to remove entires for Flash builder [this would deal with licensing issues] and try reinstalling Flash builder 4.6

    If you have Creative suites already installed Flash builder would automatically pick your serial number

    the basic steps would therefore be

    -Uninstall Flash builder

    -use the cleaner tool erase content specifically for flash builder only.

    -reboot the Machine

    -remove any left over files from installation of Flash builder.

    -reinstall Flash builder 4.6

    Post edited by: Mallika Yelandur

  • Flash Builder - launch failed

    Hello

    I am new to Flash Builder and Action Script so this may be something obvious to others...

    Flash Builder is not re - generate swf and html files in the Bin-debug folder and therefore fails with the message "unable to launch. Here are the steps to reproduce the behavior:

    • Using Flash Builder 4 on Vista
    • create the folder NomMonProjet
    • File-> new-> ActionScriptProject (provide NomMonProjet)
    • Project-> build the project (creates html and swf files in bin-debug correctly)
    • Go to Flash Debug perspective and start the debugger; Browse the 'empty' OK code
    • Close project, close Flash Builder
    • Add the code AS
    • Open Flash Builder
    • Refresh (F5) file system
    • Project build
    • The debugger steps as if the FORMER Action Script code is in the file!
    • Project and build own workspace
    • All bin-debug files are deleted, but are NOT re-created.
    • Launching fails (they are a no files in the bin-debug folder)

    I made sure that the ActionScript compiler settings are "checked" to generate wrappers, system restarted, looked at the process in Windows Task Manager, searched the web, but all to no avail. I am convinced that there must be something simple I'm missing preventing a good compilation of my project (unless there is a serious bug on a part of the Adobe...)

    A big thank you to all those who care for help!

    Nick

    Hello

    Can you check the view of problems (below) to see if there are compilation errors?

    Or you can edit your hand LIKE file here and we can take a look.

    Thank you

    Rémy

  • Version of Flash Builder 4 laboratories.

    I downloaded the new version of flex, mm, flash builder labs but have a ton of namespace errors when importing an old project. Someone at - it a link that talks about the changes to CSS after halo and how to upgrade a project existing at 4?

    Thank you.

    You might want to take a look at http://www.adobe.com/devnet/flex/articles/flex3and4_differences.html

    Thank you

    Gaurav Jain

    Flex SDK Team

  • Publish video to ios app from the app in flash builder 4.6 flex flex

    Hi, I publish my video stream live from the flex like this application

    ns_out. Publish ("livestream", "live");

    and receive the product of flex mobile application (IOS)

    ns_in.receiveVideo (true);

    ns_in. Play ("liveStream");

    but I don't even get anything on my Simulator, but meanwhile when I publish my video from flash media live encoder, my flex ios app it goes smoothy... :))

    I use Adobe Flash Builder for this development...

    Any help is appreciated!

    Thank you

    Yes!

    I got the answer, I need to encode the video in H.264 format and then publish.

    Cheers!

  • Upgrade from Flex 3 to Flash Builder 4

    Hello

    I have an iMac running Leopard, Zend AMF, MAMP, Flex 3, Adobe CS3.

    (a) is it possible to run Flash Builder 4 on a machine having Flex 3? There will be interference any between the two?

    It is essential that my Flex 3 work of the project agreement and are not lost or affected to upgrade.

    (b) if I upgraded to CS3 Web Premium CS5 Web Premium, what happens to Flex 3? It get deleted?

    Thank you

    -Laxmidi

    Hello

    Flex projects with older versions of flex are run without problem in Flex Builder 4,.

    because you can choose your frame to FB4. The 3.5 framework is built, if you are using older frameworks, you need to download them.

    I build a Flex Application from 3.5 in my FB 4 right now.

    But of course, you can't use flex 4 components in a flex 3.5 project!

    F4E

  • RSL error 1 of 1, Error #2032, 3.6 A Flex, Flash Builder 4.6

    We are in transition from Flex 3. 1 to 3.6 a. Everything worked well for years under 3.1. We tested under 3.6 for a month under HTTP, and everything works. When weinstall to our staging server and run under HTTPS, we get this error and NO OTHER INFORMATION.

    We test under Flash Builder but build production SWF and swc using the MXMLC and COMPC command-line tools. We use the Framework RSL and copy the swf/swz files on our servers as part of the installation.

    Display the MXMLC to compile signup.mxml:

    Loading configuration file C:\Program Files (x 86) \Adobe\Adobe Flash Builder 4.6\sdks\3.6.0\frameworks\flex-config.xml

    D:\Develop\CSM\PractiCal\Flex\null1709033641.xml loading configuration file

    D:\Develop\CSM\PractiCal\Flex\build\signup.swf (174148 bytes)

    Contents of the configuration file "null1709033641.xml":

    <>flex-config

    < compiler >

    false < debug > < / debug >

    < library-path append = "true" >

    element < path > D:\Develop\CSM/CSMCommonFlex/build/CSMCommonFlex.swc < / path element >

    < / library path >

    < / compiler >

    <-static link-TIME-shared-libraries > false < / static-link-TIME-shared-Library >

    < use-network > true < / use-network >

    true <-digestions check > < / check-abstracts >

    < runtime-shared-library-path >

    < element > path C:\Program Files (x 86) \Adobe\Adobe Flash Builder 4.6\sdks\3.6.0/frameworks/libs/framework.swc < / path element >

    Flash/framework_3.6.0.21751.SWZ < rsl - url > < / rsl - url >

    < policy-file-url / >

    Flash/framework_3.6.0.21751.swf < rsl - url > < / rsl - url >

    < policy-file-url / >

    < / DURATION-shared-library-path >

    < / flex-config >

    It's everything I could find on the web:

    1. Make sure that the web server includes extension .swz as type MIME "application/x-shockwave-flash".
      Fact.

    2. Add a "crossdomain.xml" file to the root of the web server and make sure that it can be read.
      Trying the two secure = "true" and secure = "false".

    <? XML version = "1.0"? >

    < ! DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd" > ""

    < cross-domain-policy >

    < allow-access-from domain = "" * "secure ="true"/ >"

    < / cross-domain-policy >

    As I said, everything works well under 3.1.

    I am dead stuck and have no idea what to try next.

    Please, please, help.

    In the Flex 3 documentation for the MXMLC Compiler, the rsl-url of the option attribute is described as

    "You specify the location of the SWF file to the location of the application deployment.

    For example, if you store a file named library.swf in the web_root/libraries directory on the

    Web server and application in the root web, you specify libraries/library.swf. »

    This clearly indicates that the URL of the library is relative to the swf file.

    The documentation for the rsl-url of the runtime-shared-library-path option attribute is not so clear, however:

    "Rsl - url argument is the URL of the RSL that will be used to load the RSL during execution.
    The compiler does not check the existence of the SWF file at this location at compile time.
    It stores this string in the application, however, and he uses at run time. As a result, the
    SWF file must be available at run time, but not necessarily at compile time. »

    Obviously, both rsl-url attribute should contain a URL to the swf app and the 3.1 Flex MXMLC was store the URL as relative to the web root. I offset this in my config 3.1 files by providing a URL relative to the root, but without the leading slash (/). This bug has been fixed somewhere between 3.1 and 3.6 so my relative to the root URL were now be saved correctly, as app-parent.

    Adding a bar leading slash (/) to my relative to the root URL solves the problem.

    I know - he should be here in the first place.

  • Flash builder 4 check load useful integerity: failed with code 1

    where to install flash builder 4 on windows 2003 32 x servers

    had this error

    ------------------------------------------------------------------------------------------

    Exit code: 7


    -------------------------------------- Summary --------------------------------------


    -0 fatal Error (s), 2 error (s), 2 warning (s)


    ATTENTION: Payload {7E5AA19B-0B85-4f44-BA26-728851489200} Adobe Flash Player 10 ActiveX is already installed and the payload of the session {5EE868D6-7B6B-49ee-AF60-09B1358AFFD7} Adobe Flash Player 10 ActiveX has no relationship between/conflict with it.


    ATTENTION: Payload {40F95A03-885A-45fb-9A14-486BEFEDDF34} Adobe Flash Player 10 Plugin is already installed and load the session useful {FB7F30B6-BFBF-4d2c-9F61-B5533659ACBE} Adobe Flash Player 10 Plugin has no relationship between/conflict with it.


    ERROR: Check the payload integerity: failed with code 1


    ERROR: Could not get the root of inChildPath
    ------------------------------------------------------------------------------------------ ------------

    who can help me, I will thank you very much

    Hello

    Please, deselect the option of Flash Player in Setup before you begin the installation and see if the installation is successful. (Please uninstall Flash Builder and restart the computer before trying to reinstall)

    If this does not help, please run the cleaning of CS5 with option to uninstall Flash player and FB, restart after having cleaned and now reinstall FB (selection also the Flash Player)

    CS5 tool can be downloaded from http://www.adobe.com/support/contact/cs5clean.html

    Please let us know if this helps you.

    Thank you

    Deeptika

Maybe you are looking for