How to put ActionScript into Catalyst project via Flash Builder?

I don't know if this is the wrong place to put this, but I need to add some ActionScript into my Catalyst project... from what I understand, it can only be done via Flash Builder. Am I right? How?

Hi Alex,
To edit the code of a Flash Catalyst project, you can import it into Flash Builder as follows:
File > Import > Flash Builder Project
Select the FXP file from Catalyst
Make sure "Import new copy of project" is selected, then hit Finish
I'm not sure where you got the ActionScript code that you're planning to use, but it may be difficult to integrate into your project if it's not designed for use with Flex (a lot of AS code snippets you'll find online are just for general use in Flash, not tailored for Flex applications).  But you'll probably want to do something like this:
Locate the image you want to make random.  If you're having trouble doing this, switch the view to Design mode, select the image with the mouse, and then switch back to Code mode to see the corresponding code highlighted.
If there's no id attribute set on the image, add one (so you can refer to it in code later).
If the tag is s:BitmapImage, change it to mx:Image (this is needed to make the contents dynamic)
If the root s:Application tag doesn't have a creationComplete handler, add one (type it partway, then hit Ctrl+Space, then choose "Generate Handler").
In the handler, add your code to randomly select an image filename.
Then set <your image's id>.source = <filename>
Hope that helps!
- Peter

Similar Messages

  • How to work with multiple catalyst components in Flash Builder?

    Hey There,
    Can I create multiple components and merge them together? For example, I want to create a list control state, and bring it into my existing Flash Builder project. Then down the road, do something similiar... How would I go about that, and what files are essential fromt he catalyst project.. (assets, components, main.css, privateData..
    Thanks in advance!

    Yes, you can :-)
    You can export the components from different Flash Catalyst projects as fxpl files and then import them into Flash Builder. In Flash Catalyst, right-click in the Library panel and you will see the export command to save the current project's components into an fxpl file.
    A great article on Flash Builder/Flash Catalyst workflows is here:
    http://www.adobe.com/devnet/flashcatalyst/articles/flashbuilder_flashcatalyst_workflows.ht ml
    Ty

  • I filmed several takes of the same scene for a movie. I trimmed the best clips from each take and put them into the project screen. However, I can't figure out how to make it flow seamlessly as one scene. Can someone please help me??

    I filmed several takes of the same scene for a movie. I trimmed the best clips from each take and put them into the project screen. However, I can't figure out how to make it flow seamlessly as one scene. Can someone please help me??

    1-800-676-2775  apple support   tech support 1 800 275 2273
    If your computer is on one minute before it freezes, than you have one minute to secure your serial number.
    click the apple----->click about this Mac ------> click on version----> until you see the serial number.  You may have to do this a couple of times if it freezes before you have all the numbers.  A camera might help.
    Good Luck

  • How to put data into a RFC import parameter structure from portal

    Hi, All,
    I have a RFC in which an import parameter is a structure (not a table). I want to put data into that structure. I know how to put data into a table or a string. I tried to use
    IRecordSet MyTABStr = (IRecordSet)structureFactory.getStructure(function.getParameter("MYTABSTR").getStructure());
    MyTABStr.setString("FIELD1", value1);
    MyTABStr.setString("FIELD2", value2);
    importParams.put("MYTABSTR",MyTABStr);
    But it works for table not structure.  Is there anybody know how to do that?
    Thanks in advance!
    Meiying

    Hi,
    You can try the following code -
    IRecord structure = (IRecord)structureFactory.getStructure(function.getParameter("MYTABSTR").getStructure());
    structure.setString("FIELD1", value1);
    structure.setString("FIELD2", value2);
    importParams.put("MYTABSTR",structure);
    Regards,
    Sudip

  • How to put checkbox into sap grid display

    hi,
         how to put checkbox into sap grid display ,when i am selecting the check box it should move to second secondary list.
          could u plz explain clearly

    Hi,
    In the layout fill
    is_layout-box_fieldname = 'CHECKBOX'
    is_layout-box_tabname   = 'I_OUTPUT'.
    The internal table that you are passing as I_OUTPUT, should have an extra field called CHECKBOX of length 1.
    Also refer to tutorial Easy Grid :
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/an%20easy%20reference%20for%20alv%20grid%20control.pdf
    Cheers,
    Simha.

  • E mail how to put photo into body of e-mail without recipient having to click downloadload

    e mail how to put photo into body of e-mail without recipient having to click downloadload

    What and how an email is seen on the other person's machine is dependent on their settings and not what you do. You can, for instance, send a HTML email, but if they haven't set their machine to deal with those, it won't work. It's all down to them.

  • How to deploy MS Visio & MS Project via SCCM 2012

    Dear friend,
       Please let me know the How to deploy MS Visio & MS Project via SCCM 2012, step by step
    Thanks

    You need to utilize Office Customize Tooltik to build config.xml, then distribute the config.xml with setup file. Below are some documents talking about this.
    http://blogs.msdn.com/b/visio/archive/2011/02/04/more-on-visio-2010-volume-deployment.aspx
    http://blogs.technet.com/b/odsupport/archive/2010/12/03/volume-license-editions-of-visio-2010-install-premium-edition-by-default.aspx
    Juke Chou
    TechNet Community Support

  • AS3 Project in Flash Builder

    Hi I am an experienced AS3 developer working on a Mac, been working in the CS4 IDE and using Textmate for html, PHP etc. I am very keen to use Flash Builder IDE to build my AS3 projects. I have been able to create actionscript projects but when I try to incorporate FLA and the library assets in FLAs I get stuck.The way I want to work is to use CS4  for creating graphics, timeline animation, so when I run the project it compiles the fla and scripts as if I was in CS4 ide.
    So my question: Is there any good tutorials or sites that can guide me thru setting up an Actionscript project in Flash Builder and manipulation of stage, timeline and library assets from an FLA?

    Firstly flashbuilder doesn't use a timeline, it can use assets in a CS4 compiled flash file, but knows nothing about the fla format. A good starting point would probably be to down load the tour deflex which has a lot of  flex examples with the source.
    http://www.adobe.com/devnet/flex/tourdeflex/
    there is also the cookbook page
    http://www.adobe.com/devnet/logged_in/esullivan_cookbook_20.html
    this is a great site for resources when you run into problems
    http://blog.flexexamples.com/
    Adobe also have a lot of video tutorials which are great to get an idea of just how Builder works.
    David.

  • How to use the Google Android Emulator in Flash Builder on Windows 7?

    I want to try out Flash Builder to create an app, but I cannot find out how to use the Google Android Emulator in Flash Builder. The simulators in Flash Builder work, and the android emulator is installed correctly and can run. I just can't seem to connect them. How do I do that?

    Hi Pahup,
    Thank you for your reply!!
    I adapted an Android App using Flash CC on a Mac. I already published this App for the Apple App Store. When I published the App for Android I chose Air 3.7.xxx for Android. I also created the p12 certificate using Flash CC in the publishing settigns for Android. So my App is theoretically finished and ready for Upload.
    When I went to the Google Play Store Developer Console I had the options to
    1.) Upload APK
    or
    2.) Prepare Store Entry
    ...so I prepared the Store entry first. When I go to "APK"-Tab in the console it looks like this:
    ... it says "Upload APK" and the Button below "Get Licence Key". When I click on the license Key Button it looks like this:
    So I think I should enter this RSA-Key somehow into my App BEFORE uploading it to the Google Play Store. This is recommended when an Ap is set to be paid. My Application is set to paid.
    I did not use any kind of licensing API (until now - cause I don´t know how and what it is for)
    This is all new to me. It is the first App I want to bringt to the Android market. I really hoped it would be as easy as getting an app into the Apple App Store. I found so many step by step instructions for dummies on "How to get an Flash iOS App into the App Store plus creating all the certificates needed", so I thought it would be the same for Android. But there is no help at all at the moment. I am totally confused.
    So any help, hint or instrusction would be great!!
    By the way - this is the App I want to get into the Google Play Store

  • Can't create Flash Pro projects in Flash Builder

    In the most basic of Flash Pro/Flash Builder Projects, I get this error when I compile.
    My .fla is just in a folder...Please help. It will not publish at all.
    These are the contents of the flashExport.jsfl file:
    function testMovie( flaURI, projectName, clearErrors )
         var doc = fl.openDocument(flaURI);
         if(doc != null && doc.canTestMovie())
              doc.testMovie("flashbuilder-4.0", true, clearErrors);
              finishExport(projectName);
    function debugMovie( flaURI, projectName, clearErrors )
         var doc = fl.openDocument(flaURI);
         if(doc != null && doc.canTestMovie())
              doc.debugMovie("flashbuilder-4.0", true, clearErrors);
              finishExport(projectName);
    function publishMovie( flaURIArray, incremental, outputURIArray, profileURIArray, projectName )
         if(incremental)
              if(flaURIArray.length == outputURIArray.length && outputURIArray.length == profileURIArray.length )
                   for(var i = 0; i < flaURIArray.length; i++)
                        var outputURI = outputURIArray[i];
                        if(outputURI != null && outputURI.length > 0)
                             var pubProfileStr = fl.exportPublishProfileString(flaURIArray[i]);
                             if(pubProfileStr != null && pubProfileStr.length > 0)
                                  // first fix up the SWF export location                         
                                  var swfLocationURI = outputURIArray[i] + ".swf";
                                  var swfLocation = FLfile.uriToPlatformPath(swfLocationURI);
                                  var newFlashFileName = "<flashFileName>" + swfLocation + "</flashFileName>";
                                  pubProfileStr = pubProfileStr.replace(/<flashFileName>.+<\/flashFileName>/i, newFlashFileName);
                                  // fix up the HTML export location
                                  var htmlLocationURI = outputURIArray[i] + ".html";
                                  var htmlLocation = FLfile.uriToPlatformPath(htmlLocationURI);
                                  var newHtmlFileName = "<htmlFileName>" + htmlLocation + "</htmlFileName>";
                                  pubProfileStr = pubProfileStr.replace(/<htmlFileName>.+<\/htmlFileName>/i, newHtmlFileName);
                                  // fix up the Permit Debugging setting
                                  pubProfileStr = pubProfileStr.replace(/<DebuggingPermitted>.+<\/DebuggingPermitted>/i, "<DebuggingPermitted>1</DebuggingPermitted>");
                                  // fix up default flags
                                  pubProfileStr = pubProfileStr.replace(/<defaultNames>.+<\/defaultNames>/i, "<defaultNames>0</defaultNames>");
                                  pubProfileStr = pubProfileStr.replace(/<flashDefaultName>.+<\/flashDefaultName>/i, "<flashDefaultName>0</flashDefaultName>");
                                  pubProfileStr = pubProfileStr.replace(/<htmlDefaultName>.+<\/htmlDefaultName>/i, "<htmlDefaultName>0</htmlDefaultName>");
                                  // and fix up the profile name attribute, and add the xml decl header
                                  // we know the first instance of "name=" has to be the profile name - the other usages are
                                  // within the rest of the tree
                                  pubProfileStr = pubProfileStr.replace(/<flash_profile.+>/i, "<?xml version=\"1.0\"?>\n<flash_profile version=\"1.0\" name=\"FlashBuilder-Debug\">");
                                  // now save the new profile in the .settings folder
                                  FLfile.write(profileURIArray[i], pubProfileStr);
         fl.publishDocument("", "", flaURIArray, profileURIArray);
         // once the publish is complete, save out the errors and let Builder know (this will only occur when
         // projectName is non-null. so in the Test/Debug Movie case, the finishExport call here won't do anything,
         // and the one in testMovie/debugMovie will.
         finishExport(projectName);
    function finishExport(projectName)
         if (projectName == null || projectName.length == 0)
              return;
         var errorsXMLURI = fl.configURI + "ActionScript 3.0/FlashBuilderInfo.txt";
         var errorsXMLPath = FLfile.uriToPlatformPath(errorsXMLURI);
         var errorsPanel = fl.compilerErrors;
         errorsPanel.save(errorsXMLURI, false, false, true, false);
         fl.queueBridgeTalkScript('flashbuilder-4.0', "fb.loadCompilerErrors('" + errorsXMLPath + "', '" + projectName + "');");
    function toggleBreakpoint( filename, lineNumber, enable )
         fl.toggleBreakpoint(filename, lineNumber, enable);
    function getAppConfig()
         var appConfig = fl.applicationURI + "Common/Configuration/";
         // do a little reformatting to get the slashes right, plus
         // we want an OS path
         appConfig = FLfile.uriToPlatformPath(appConfig);
         fl.queueBridgeTalkScript('flashbuilder-4.0', "fb.setAppConfig('" + appConfig + "');");
    function getFLABuildPaths(projectName, targetFlaURI, flaURIArray)
         var sourcePath = new String();
         var libPath = new String();
         var script = "fb.setFLABuildPaths(" + projectName + ", " + targetFlaURI;
         for(var i = 0; i < flaURIArray.length; i++)
              var flaURI = flaURIArray[i];
              sourcePath = fl.getCompilerPath(flaURI, "source", false, true);
              libPath = fl.getCompilerPath(flaURI, "library", false, true, true);
              script += ", " + flaURI + ", " + sourcePath + ", " + libPath;
         script += ");";
         fl.queueBridgeTalkScript('flashbuilder-4.0', script);

    I have the same issue. My project is super simple. All the files are in the same directory. The doc class and the .fla have the same name. The project publishes without a hitch in Flash Professional CC. When I try to add the project to Flash Builder 4.7 it give me:
    Exception in BridgeTalk call
    Function: getFLABuildPaths
    Error message: Error. Cannot find the file ....
    I have checked the path to the .fla twice and scrutinized the spellings and they are correct. It is pointing right to the correctly named .fla, but for some reason it fails. I'll post if I find out something usefull.

  • Using mx components in Action Script project in Flash Builder

    Hi
    I have created an Action Script project in flash builder 4 and want to use a mx.controls.button.
    The as file looks like this:
    package
        import flash.display.Sprite;
        import mx.controls.Button;
        public class as_test_project extends Sprite
            public function as_test_project()
                var btn:Button = new Button();
                btn.label = "test";
                addChild(btn);
    I have added C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\projects\framework\src as a Source Path in the project settings. I have also added framework.swc to the library path.
    I still get errors like :
    Description    Resource    Path    Location    Type
    Unable to resolve resource bundle "core" for locale "en_US".    as_test_project        Unknown    Flex Problem
    Have then tried added various Bundles folders like
    C:\Program Files\Adobe\Adobe Flash Builder 4\sdks\4.0.0\frameworks\projects\framework\bundles
    to the source path and library path, but I still get the errors.
    WHAT IS THE CORRECT WAY OF USING MX COMPONENTS IN A PURE ACTION SCRIPT PROJECT ?
    If I want to use th fl.controls componets instead but dont have CS3 where can I download them ?

    Thank you for your quick reply.
    But how then can I obtain the fl.controls components and use them in an Action
    Script project in Flash Builder 4?
    I don't have CS3 or CS4 (the flash authoring tool) installed.
    Is there an SWC somewhere to be downloaded?

  • Can I develop CF projects using Flash Builder 4.5 for PHP?

    I currently develop CF projects using Flash Builder 4.5.  I am considering purchasing Flash Builder 4.5 for PHP.  Will I still be able to work on my CF projects using FB for PHP?

    Because in the installation instructions for FB for PHP it says that you have to uninstall the current installation of FB which I have several CF projects that I use regularly.  I hate to uninstall if it turns out that I can't transport my current projects into FB for PHP. 
    Oh that sux!  It's just an Eclipse plug-in, and one can have installed multiple installs of Eclipse OK, so I wonder why they're said this?
    OK, because I give suck advice, I'll D/L it and install it on a spare machine and take a look.  FB usually has a CF perspective does it?  So what you need to know is whether FB for PHP still has the CF perspective?
    Or are you asking whether you can install CFB (or CFEclipse) as a plug-in to FB for PHP, like one can with FB?
    Sorry about the bad advice.
    Adam

  • Draw line in Action Script project in Flash Builder (Gumbo).

    Hi
    I am working on drawing tool application and want to draw line and rectangle in Action Script project in Flash Builder (Gumbo). Please guide and help me with an example.
    Thanks
    Rangrajan.

    This should be helpful http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9 b90204-7dd9.html

  • Convert Flex Builder 3 project to Flash Builder 4.5

    My boss asked me to convert the Flex project to Flash Builder so that they can see what's going on on Tablet.
    I used this video http://tv.adobe.com/watch/adc-presents/sneak-peek-of-mobile-application-development-with-f lex-and-flash-builder/
    as my reference but found out it is not that easy.
    I have problem exporting it and the Flex codes start with <mx: Application > and when I created a Flex mobile project, the codes start with <s: Aplication >
    I don't know if I have to create a Flex mobile project.
    If I already have an existing Flex project, how can I convert it to Flash Builder 4.5 and can view on Tablet?
    Thanks a lot.

    you might google "migrating from Flex 3 to Flex 4".  there are a few articles and videos about it...
    http://www.adobe.com/devnet/flex/articles/flexbuilder3_to_flashbuilder4.html
    It is easy, but can be time consuming to move from mx to spark.
    If your boss just wants to see his web app on a Tablet, I'd first suggest using the tablet's Browser.  As long as it supports Flash 10.1+ (not iOS), you should be fine, assuming your UI fits in the typically 1024x600+ resolution screen.  If so, It is easier to convert a Flex 3 web app to a Flex 4 web app, than it is to convert it to a mobile app.
    If he wants it on a iPad, then you are forced to create a Mobile Project.
    Hope this helps.
    Don

  • Can anyone explain me how to scale the image in canvas in flash builder 4.6

    Can anyone explain me how to scale the image in canvas in flash builder 4.6, Scaling of image in component , can i get some examples ..  it should set almost all size screen

Maybe you are looking for

  • SMB no longer working in 10.4.8???

    I was happily connecting to both my daughters iMac and my husbands Windows PC using SMB.....then it stopped working?! Now obviously something must have happened to change this and I've been thinking what it could be. Well nothing had changed on eithe

  • Mapping problem with compressed key update record

    Hi, could you please advise? I'm getting the following problem: About a week ago replicat abened with "Error in mapping" error. I found in discard file some record looking like: filed1 = NULL field2 = field3 = field4 = field5 = datefield = -04-09 00:

  • Declaring deep types in ABAP code

    I am struggling with the declaration of local types in an ABAP program. When I declare a structure that contains a component which I reference to a previously declared table type, the system gives a compile error. The following code gives an error on

  • Artwork doesn't show with version 5.0.1

    I updated my ipod with the iOS 5.0.1.  The album artwork doesn't show even if they all appears in Itune.  Any idea to resolve this problem?

  • Changing the computer name in SAP R/3

    Computer Name of the SAP R/3 server has been changed after the full installation of Oracle 9i and SAP R/3. How to change the computer name after the SAP R/3 can start-up sucessfully?