New to Flash Builder / Basic Syntax Qestion

I am a seasoned PHP/MySQL programmer that recently has moved over to Flash (about a week ago), more specifically Flash Builder.  My Question is after calling data from an external xml file, how can you take the event handler value and store it into a usuable number variable (the xml values are numbers).  I have a function and would like to use the retrieved value throughout the document and not just bind it to one location.
protected function retrieveData(event:FlexEvent):void
     getDataResult.token = your_file.getData();
<fx:Declararations>
     <s:CallResponder id="getDataResult"/>
     <your_file:Your_file id="your_file"
                    fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)"
                    showBusyCursor="true"/>
     </fx:Declarations>
I have tried various methods unsecessfully to store the value in a usuable number vairable with no success.  It will eventuall go in the following among other places
timeline.append( TweenLite.to(meter_fill, .8, {y:"-290"}));

What option do I select for “Application Type.” Web or Desktop? During the project I will have to test so does this matter?
It looks like you are using an older version of Flash Builder. The new version (4.7) allows you build a "ActionScript Mobile Air" project.
I'd recommend updating to get all the latest mobile upgrades.

Similar Messages

  • Flash Builder improvements, Syntax coloring, Custom format, Auto close

    Hello,
    I'm trying Flash Builder 4.7 but I see there is missing features in the Softaware.
    I didn't found this important features in the preferences and I think you could add this new features in the new version of FB:
    Syntax coloring like Flash Professional: Coloring the AS3 keywords properties and methods like (addChild, x, y, width, height, etc.)
    Custom format code. In FB 4.7 there no way to custom the format code in AS3 but you can do it for Java.
    AutoClose : Inserts matching bracket, paren, brace or quote
    A list of color themes
    I hope it will help to improve this software.
    Cheers.

    I've always had the feel/assumption that Flash is more of a priority to Adobe than Flex / FlashBuilder evere was/is. Try using FlashDevelop with Flash to compile.
    If by action we can assume answer then the following I would assume:
    Adobe: Don't fix old bugs in FlashBuilder even when it was still named Flex, only seen updates to major / critical bugs
    Assumed reasoning for this: Low priority product, not enough resource allocated to product development, no development time assigned to enhancing / correcting the old components, eclipse product enhancement is beyond their skill set, or just simply don't care...... pick one and go with it.
    Joe Public: Requested better code colouring, syntax highlighting, language recognition (many years ago)
    Adobe: Added new commands to intelisense and informational popups when they arrived but apart from that not much else has been done.
    Assumed reasoning for this: Low priority product, not enough resource allocated to product development, no development time assigned to enhancing / correcting the old components, eclipse product enhancement is beyond their skill set, or just simply don't care...... pick one and go with it.
    Joe public: Left to hoping Eclipse plugins can help with this

  • New to flash builder 4

    I have recenlty downloaded the flash builder 4, and I would like to develop an application in facebook. I have created an app on facebook, I mean only the apps name. I would like to develop a chess application using flash builder 4, but I don't know where to start. Should I use a native app or HTML 5/ mobile app? Which is better? I really want to learn with proper guidance. And i don't know what is SDK facebook, and what is its role on developing a fb app.
    Thank you,
    rahstame    
    Lyrics

    A good introduction to Flash Builder is Flex in a week: http://www.adobe.com/devnet/flex/videotraining.html .
    You might also consider looking at http://www.learningactionscript3.com/ .
    I think that learning Flex is a very big ask for someone who has done no programming at all before. My gut feeling is that you should learn some programming basics before attempting to learn Flex. You won't be building any significant Flex applications in the very immediate future you have to learn programming basics first.
    Good luck!

  • What is new in Flash Builder 4.7 Game Development beta 2

    I just installed it, I thought it would include some version of monocle.
    Are there any changes other than a support for a product not available yet through labs?
    If Not, when will we get monocle to test with it?

    In this build you can create SWFs that support profiling with Monocle, but you will need to download Monocle separately as it is not a part of Flash Builder.
    The telemetry API usage via monocle is possible only with the AIR SDK 3.4, so out of the box AS3 projects would support creating SWFs that can be used with monocle. To make it work with MXML (or rather Flex) would will need to overlay the Flex 4.6 SDK with the AIR 3.4 runtime.
    Thanks
    Arijit

  • Installing Flex SDK into Flash Builder 4.7 problems

    Hi,
    Im completely new to Flash Builder, today I have installed Flash Builder 4.7 & Flash CS6 from Creative Cloud for my son to start to learn game programming (with my help), I have used simple coding in web design however this terminology is new to me.
    I bought my son the latest 'Foundation Game Design with ActionScript 3.0' book on recommendation but it was written when FB was version 4.5 so im guessing this might be the problem.
    The book is very easy to follow but have hit problems at the beginning of the tutorials, the book talks about Flex SDK but it seems that FB 4.7 uses AIR SDK ?
    So the first project called HelloWorld, we got up to:
    Got an exclamation mark which said
    'The import flash.display.Sprite is not used
    locally'
    Continuing with the rest of the project the exclamation mark disappeared:
    However on selecting run- Debug we got a blank Flash Player window  ('generate HTML wrapper file' was deselected)
    So either we've done something wrong, or the book and FB version are not compatible?
    Any advice would be great!
    Thank you
    Latest ...
    I thought that installing Flex SDK may solve the problem but after following instructions I have the error message, see image below. Really stumped now!

    Sorry, if I went a little overboard. After re-reading your post, perhaps I should back up a little.
    First, there are little things that Flash Builder (FB) will complain about. Having extra import statements in your code doesn't hurt anything. If I'm trying different solutions and then commenting out the code, the import statements will hang around, FB will complain, but just ignore it. If you see a little icon on the left edge of your code editor and its a red circle with an X in it, then that is something that will have to be fixed.
    When you create an app in FB or Flash you can choose to create a web app which means it will run in a browser window. The project can optionally create an HTML wrapper, or web page that will load your app. In Flash Pro you can choose File->Publish Settings and there will be a checkbox on the left to publish a HTML wrapper. In FB, you can right click your project in the Package Explorer, select Properties at the bottom, select the ActionScript Compiler, and down at the bottom there will be a checkbox to create a HTML wrapper.
    If you're just learning Flash Builder, then the FlexSDK 4.6 and the AIR SDK 3.1 that comes with it should be fine. You mentioned Apache SDK and I'd recently been working with that so I ended up getting side-tracked.
    Getting an AIRSDK to work with when build ActionScript projects is easy. Just go to the adobe site, type AIR SDK in the search box, and you should find a page that will let you downloaded the latest version. There's also a page to let you download the latest AIR runtime, and if you were just going to run AIR apps and not build them, then that's all you would need. As a developer you'll want to install the runtime from the downloaded .exe file. With the SDK, after downloading it, installing it is easy. Just create a new folder an unzip the SDK into it, then place it somewhere easy to find. I put all my SDK's in their own directory right off the c: drive. So I have c:\AIRSDK_3.5.0.880 and c:\AIRSDK_3.7.0.1530. I use very descriptive folder names so I always know which SDK's I have to work from.
    To use the SDK in Flash Pro select Help -> Manage AIR SDK, hit the plus button and add the folder you created. Now when you've opened a Flash project, you go to File->Publish Settings and select the combo box at the top, you'll see options like 'AIR 3.7.0.1530 for Android' in the list that reflect the SDK's you've added.
    Generally with FB you'll be using a FlexSDK, or perhaps a FlexSDK overlaid with a newer version of AIRSDK. Overlaid basically means you copied the contents of the AIR SDK into the Flex Folder. The article I mentioned above will give you all the details on creating those. For instance, I downloaded the Apache Flex installer, installed it, then created an empty folder called c:\ApacheFlexSDK_4.9.1, launched the Apache installer, gave it the new empty folder I'd created, selected all the download options, and let it all download. If it launches a popup box or a security warning, you can allow it, and it will continue. Once you have the SDK and you want to use it with a project in FB, just right click the project, select Properties, selected that Compiler tab again, and up in the right corner you'll see 'Manage SDK's...'. Hit that link, add your new SDK to the list and give it a descriptive name, then selected the checkbox beside it to set it up as your default. If you do this, then all your projects set to use the default will automatically switch to it and rebuild. So if you want a project to stay with a specific SDK then select that option in your Compiler tab, and then you could use the combo box to select your new added SDK.
    When I started with FB I think I spent the first 2 days going round and round with project settings and options until I got them all figured out.
    When I develop, I usually have my browser open and I have bookmarks and favorites to let me quickly get to all the pages I use most often. Here are a few of them:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/index.html  <---- The API reference. In the packages window check out 'Top Level' at the top and Language Elements near the bottom. I think I have this page open in one or more tabs almost every day.
    http://www.adobe.com/devnet.html
    http://www.adobe.com/devnet/actionscript/learning.html
    http://help.adobe.com/en_US/as3/learn/index.html
    http://helpx.adobe.com/flash.html
    http://help.adobe.com/en_US/flashbuilder/using/index.html
    Free videos to help you learn Flash Pro:
    http://tv.adobe.com/show/learn-flash-professional-cs6-/
    http://tv.adobe.com/show/learn-flash-professional-cs5/
    And you've already found the forums! But if you don't find an answer here, many times you can find your question already answered on www.stackoverflow.com forums.
    Ok, I think I went a little overboard again.

  • Custom List component in Flash builder 4.5

    Hi,
    Am new to Flash builder 4.5. I want to create a custom list component. In that i have some queries.
    They are,
    1. What are the basic procedures/steps to be followed for Component development in Flash builder 4.5
    2. What are the approaches to the component development in Fladh builder 4.5?
    3. Is there any reference sutes available?
    Thanks,
    Manikandan

    http://www.adobe.com/devnet/flex/videotraining/exercises/ex1_06.html
    you could also search blogs for custom component creation. There might be many implementations for your learning/usage.

  • Accessibility with flash builder and a screen reader

                   hi. a blind website student, using the Jaws for Windows screen reader from htttp://www.freedomscientific.com. was trying to build a basic flash builder flex project, and using jaws 13.0.718, on a toshiba laptop with windows 7 professional 32 bit. now using the adobe cs 5.5 student web premium. i then pressed alt  f, then new, then arrow right to flex project. then put in my name of the project, clicked to browse the folder, then there was a next and finish button, well clicked the finish button. the code windows comes up, press control  !~ which took me to  design view. now my troubles start. have to use the mouse cursur for jaws, which is the jaws cursur. and now, was able to left click using the caps key, which is the insert key, and then able to use the f 8 key for left click mouse simulation. but then came to a tree view, pressed t, until i heard text area, then tabbed around. no add button. so how do i add a component using the keyboard. or do i need to enable accessibility. and also tried to get to the properties of the control. managed to do that some how, but could not find the id property. so if any one can help me, new to flash builder and flex. Marvin, From Devonport, tasmania, australia. if any one can help please e-mail me via [email protected]         

    No I used relative path - the path is  images/image name
    example images/cRight.png
    tried downloading Extension Builder 2.1 and compiling on Mac but still have same results - images show up fine in design window , but not when running panel in Photoshop
    Created a new project: testImage
    added an image component to form
    answered yes to add asset to project
    ran project
    image did not show up in Photoshop
    went back to project
    checked item Embed under Common image properties
    ran project and image shows up
    Looks like it works if I add @Embed("assets/image name") on Mac to display images
    tried in my real project:
    Looks like it works if I add @Embed("images/image name") on Mac to display images
    When I change this on PC to @Embed("images/image name") images do not show Up
    Don't know if I need to create two versions one for Mac one for PC
    Don't know how this would affect product on Adobe Exchange

  • Help with my Flash Builder code.

    Hello,
    I am getting two errors, well four but three are the same. 1083 && 1084.
    here is my code, can someone look over it and tell me what I am doing wrong. I am fairley new to Flash Builder so please no harassement.
    //Check The Login
                    var userName: String= "requestofone";
                    var passWord: String= "robots96";
                        if (userName == "requestofone" && passWord == "robots96"){
                        trace("Welcome requestofone")
                        }else{ (userName != "requestofone")
                        trace("User not found. Try again.")
                        }else if{ (passWord != "robots96")
                        trace("Password does not match our records.");
                        //Tire Pressure
                        var frontTires:Array = ['43', '43'];
                        var rearTires:Array = ['45', '45'];
                        if (frontTires:Array != uint: 43 && rearTires:Array != uint: 45){
                            trace("Get Your Tires Checked Out")
                        }else{ (frontTires:Array == uint: 43) && (rearTires:Array == uint:45)
                            trace("Tires pass the spec")}
    Description
    Location
    1083: Syntax error: else is unexpected.
    line 48
    1084: Syntax error: expecting rightparen before colon.
    line 56
    1084: Syntax error: expecting rightparen before colon.
    line 58
    1084: Syntax error: expecting rightparen before colon.
    line 58
    I have been trying to figure this out for a while now. Please help.

    Not to be nasty or "harass", but you need to go back and learn the syntax.  Each line of code should end with a semicolon, and I'm also not sure what you are trying to accomplish with your "else{(userName != "requestofone")".  Are you trying to do a conditional test?  If so you need to use an "else if".  That said, the "else if" you do use is incorrect.  The parens should come out side the curly braces like you did for the initial "if" condition, and the "else if" needs to come before your final "else" since that is where the flow will go when no previous condition is met.
    Example:
    if (a == b){
    trace("do something");
    else if (b == c){
    trace("do something different");
    else{
    trace("do some default thing");
    I hope this helps.

  • Flash builder 4 with sharepoint

    Hi All,
    I am new for Flash builder. i try to connect sharepoint webserviecs with flex.
    i could not connect i got an error.
    my sharepoint webservices link like this :
    http://localhost/teamsites/BS/Demo/Lists/TickerNews/_vti_bin/lists.asmx
    but i try to connect i got below text error:
    Unable to retrieve operations and entities from the specified WSDL.
    Reason :
    There was an error during service introspection.
    Details:
    There was an error during service introspection.
    WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document at 'http://eworkspace/teamsites/BS/Demo/Lists/TickerNews/_vti_bin/lists.asmx'.: java.io.IOException: Server returned HTTP response code: 407 for URL: http://localhost/teamsites/BS/Demo/Lists/TickerNews/_vti_bin/lists.asmx
    pls help me anybody know the solution.
    kind regards
    siraj

    HI Sujeet
    Flash CS5 is it support for iphone.
    what is the basic step to create flash cs5 for iphone application
    kind regards
    sirajudeen

  • How to link an image to a button in Flash Builder 4

    I am new to Flash Builder 4 and have trouble to link an image to a button in Flash Builder 4.
    For example, I want an image of a round green button to replace the default retangle button in Flash Builder 4.
    Can anyone help me up?
    Thanks

    You could also use the mx:Image control and just add a click event handler:
    function(){return A.apply(null,[this].concat($A(arguments)))}
    <?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"
            width="500" height="400">
        <fx:Script>
            <![CDATA[
                import mx.controls.Alert;
                protected function image1_clickHandler(evt:MouseEvent):void {
                    Alert.show("You clicked the image");
            ]]>
        </fx:Script>
        <mx:Image source="http://helpexamples.com/flash/images/image1.jpg"
                click="image1_clickHandler(event);" />
    </s:Application>

  • Proper Flash Builder 4.6 project setup to use AIR3.2 and Stage3D?

    I would love to use Flare3D on a mobile app. Im struggling to get FB to get set up for this.
    I have overlayed AIR3.2 and added a flash player 11.2 debugger exe in the players folder as well as playerglobal.swcs for 11.2RC.
    When I go to make a new actionscript for mobile project the air namespace is already properly 3.2 from the overlay. I set wmode to direct and the same even again in the actionscript [SWF(wmode="direct")].
    When I make a mobile config and test on desktop from an emulated android the debug reports my version properly as 11,2 so I know the FlashPlayerDebugger.exe is working.
    I make sure my compiler settings target -swf-version 15.
    Yet I always have an 'unknown internal problem' using this type of project. If I do a standard MXML mobile project it works just fine.
    I can export to a flash web app using stage3d and it works great. I have the 11.2RC debuggers installed in my browsers. But as soon as I try the same as-only for mobile project it wont work with that useless error.
    I am new to flash builder, AIR, Stage3D and Flare3D so Im a bit of a fish out of water.
    Can I use stage3d from air3.2 in mobile dev from Flash Builder 4.6? Thanks for any tips!

    rendermode should be set to direct in the xml, I have only tested with starlng+air 3.2+android but it did work and i didnt do anything with wmode

  • Flash builder 4.5  application.application.getchildbyname

    Hi,
    I came from flex 3 to the newer version flash builder 4.5, so not everything is clear for me..
    for example:
    I have a project and i dynamically add a custom component on it like this:
    var mycanvas:MainCanvas=null;
         mycanvas = new MainCanvas();
         mycanvas.name = "myMainCanvas";
         this.addchild(mycanvas);
    i noticed that in the new spark settings addchild no longer is used, so this.addchild would be this.addelement.
    fine, by me.. now my problem
    later in my program I want to refer to that element.
    in flex3 i did:
    //maincanvas is my custom component (a canvas with stuff in it like a viewstack)
    var myMainCanvas:MainCanvas=null;
    myMainCanvas = MainCanvas(Application.application.getChildByName("myMainCanvas");
    i now do:
    myMainCanvas = MainCanvas(FlexGlobals.topLevelApplication.getChildByName("myMainCanvas"));
    this because application.application is no longer supported... also fine by me..
    the problem: when i run this.. the program gives an error that myMainCanvas is of a null object reference.
    What am i doing wrong here?
    The custom component (canvas) i added to the main application is showing on my screen.. so it is definitely loaded..
    please some help

    Suppose you have a class like the following:
    package {
         public class AppModel {
              public var myCanvas:MainCanvas;
    Then on your code you could create a instance of that class and set the myCanvas property with the newly created MainCanvas class:
    var model:AppModel = new AppModel();
    model.myCanvas = new MainCanvas();
    From that point on, whenever you need to reference that instance of MainCanvas, you just reference it through the model:
    model.myCanvas.width = 100;
    If you have to use the myCanvas throughout several classes in the application, it would be better to make it a static property and reference it directly through the class reference. So:
    package {
         public class AppModel {
              public static var myCanvas:MainCanvas;
    Then:
    AppModel.myCanvas = new MainCanvas();
    And finally, whenever you need to reference it:
    AppModel.mycanvas.width = 100;
    Hope this helps. If it does, please signal the thread as answered.
    Cheers,
    Rui

  • Show Notifications in Air - Flash Builder 4.6

    Hi, I'm new into Flash Builder mobile apps development.
    I just downloaded the latest release of Flash Builder, the 4.6.
    I read in this Adobe's article, that with this version I can add "Notifications" to my apps.
    I tried to, but all my experiments failed.
    Here's a quick personal video illustrating all my steps, and coding errors, please, whatch it:
    (It's very, very short, just the time to write some lines of code)
    I think my error is simple to solve... but I'm a NewBie and I don't know very much this programming IDE.
    Thanks everybody for any help.
    Have a nice day
    Brandon
    WOW!
    I'm seeing now that my video's quality is very low... here's the code I wrote:
    // Here I want to declare my personal Notification Variable, as said in Adobe's Tutorial
    private var myNotification:NotificationManager;
      // I saw that NOTIFICATION MANGER does not exist in my code library... but I tried pasting Adobe's one...
      // as you can see from this video... the compiler gives me coding error..
      // CONCLUSION... WHAT CAN I DO ???
      // THANKS TO ALL !!!
      // Bye  :-)
    protected function button1_clickHandler(event:MouseEvent):void
    // Here I'll paste Adobe's code to create a new Notification for my first Flash Builder Mobile App...
    // CODE...
    Thanks again

    Here's Adobe's article I missed to link:
    http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/notification.html
    And the video I made:
    http://www.youtube.com/watch?v=v0S26Qle-tc&feature=channel_video_title
    PS = WHATCH MY VIDEO IN FULL HD - 1080p, or YOU'LL NEVER READ THE CODE

  • PHP Connection in Flash Builder 4

    Hi
    Sorry if this is in the wrong place. I could see nowhere else to ask this question.
    I am very, very new to Flash Builder (in fact, I am following a tutorial on building a data-centric application using Flash catalyst CS5 and Flash Builder 4).
    The problem I am having is that I cannot seem to validate the data connection in Flash Builder 4.
    For my project, I click "Connect to Data/Service" then select PHP. I select Flex Server and change the "Application Server Type" to PHP.
    The page I then get asks for a Web Root and Root URL. This is where I'm having problems. No matter what I type in these boxes, when clicking the "Validate Configuration", I get the error of "Cannot access the web server".
    I have Apache and PHP installed on this Windows 7 64-bit machine.
    The Web root folder for my site is actaully held on my D drive, so web root reads.. "D:\Web Files\Site".
    The URL for this local site is http://site.local
    I can browse to http://site.local in my browser and all is well. My site shows. I can even see this fine in Flash Builder's Internal web browser.
    I have tried moving the web root folder inside the default apache root htdocs folder, but get the same problem. I have even changed the permissions on all folders to allow full control, but this doesn't help.
    I really am starting to tear my hair out now. Can someone please help me? Am I doing something obviously wrong?
    Many Thanks

    Did you install apache / php / (optionally mysql) separately or in a bundle. I would suggest using xampp bundle, because it configures everything correctly along with installing a few helpful tools like phpmyadmin, etc. Great fast setup for testing purposes. Anyway... about the URL: I think the url you should be using is something like http://localhost/yourprojectfolder/...
    Presuming you have set up a project... and selected the option PHP at application server type you would then input (in my case, using the default xampp setup):
    Web root: C:\xampp\htdocs
    Root url: http://localhost
    Output folder: C:\xampp\htdocs\<projectname_here>-debug
    The url you d input in the browser to navigate to your project would then be: http://localhost/<projectname_here>-debug
    (no index.html at the end, provided your server is setup to serve this file automatically if it exists)
    Hope this helps!

  • Design in flash builder 4.5

    I'm new to flash builder and want to know if there are any tutorials on design in flash builder?  For example I would like to use a map of the usa and have each state be it's own button.

    Try use Flash Catalyst to Design, Using Photoshop or Illustrator then importing to FCatalyst and exporting to FBuilder after you done, the project will be poor of design maybe, becouse the catalyst still new, but is better thing to do.
    Sorry my english.

Maybe you are looking for