Flash Pro + createjs toolkit (dynamic button issue)

Hi,
I have been using the toolkit for awhile, it seems to work well, but I noticed a issue.
When you create a Button and place it on stage and export it it works fine.
But if you try to do this:
var container = new createjs.Container();
var button;
for(var i = 0; i < arr.length; i++){
                              button = new lib.MyButton();
  container.addChild(bitmap);
stage.addChild(container);
It goes crazy looping through the button's states (up, over, down, hit), and if you put button.stop(); it loses it mouse over and mouse down. (will have to manually control)
I want to dynamically create buttons to add to the stage.
Any ideas?

Looking through the generated js code, I noticed this line
new c.ButtonHelper(button, 0, 1, 2, false, new lib.MyButton(), 3);
This did the trick.

Similar Messages

  • Flash Pro CC to CS6 fla issue - Bad library items and new library items with unicode names

    I've noticed a strange issue when opening fla files in Flash Pro CS6 that have been edited in Flash Pro CC. If there are library items in the fla with names that include symbols such as ">" or ".", unicode named symbols are created and the original symobls are unuseable. There are many symbols that cause the issue and the symbols just have to be a part of the name.
    Steps to reproduce:
    1) Create an fla file in Flash Pro CC.
    2) Add a single movieclip to the library with a symbol name of ">".
    3) Save the file.
    4) Open the file in Flash Pro CS6.
    Results:
    Library contains 2 symbols, one named ">" and one named "&#062".
    Expected:
    There's one library symbol named ">".
    After that double clicking the symbol named ">" will do nothing and instances of the symbol will have all their content removed.
    This issue is breaking a JSFL script I wrote that loops the library items. When the script attempts to access item.layerCount the script errors out. My team is blocked from using Flash Pro CC in combination with Flash Pro CS6 because of this issue. The only good solution I can think of is to all switch to CC at the same time to avoid converting our fla files to CS6 from CC.
    Any info on a fix for this issue would be appreciated.

    The dialog you get when you open the FLA in CS6 is that new features may not be available in CS6 so you should save it to a new file to avoid corruption. There's no "save down" from CC to CS6 (yet). So opening the file in CS6 isn't advisable in the first place.
    That said, library items are supported between them both so to your point, yes, I get the same exact behavior. A single symbol named ">" in CC produces 2 library items in CS6 named ">" and "&#062", and the original item is lost. Although I'm not sure where I'd classify this issue being you shouldn't be opening a newer version file from an older version of the application. I did also try XFL, same issue. If they decide to create a save-down to CS6 and this still exists, I'd consider it a bug.
    As for a fix, I think about the only thing that comes to mind is identify the characters causing issues and run a JSFL in CC to rename the library item temporarily to something you know will work fine. Then once back in CS6, run the JSFL opposite to convert them back to what you want. e.g. "this > that" to "this XYZ that" in CC, then "this XYZ that" to "this > that" in CS6. Shouldn't be too hard to map as long as the replacement is unique.

  • I created a large Flash Pro file which includes buttons and I want to share it with others

    I created a large Flash Pro file which includes buttons and I want to share it with others. It's too big for e-mail and youtube and dropbox don't support fla files. I'm new to Flash and I would appreciate a simple solution!
    Thank you!

    Thank you! But based on the link you gave me it seems like I should only have to do step 1 since I am not trying to embed my file into a web page. After I uploaded the SWF file to the Google Drive it still will not play. It keeps opening in Adobe Device Central and won't play anything. Should I go ahead and do step 2?
    I really just want the video available to share with others. It seems like this shouldn't be very difficult.
    Thanks!

  • Adobe Flash Pro CS6 -- cursor and focus issues

    This is OS specific as it works fine in the Snow Leopard.
    I am having issues with nearly everything involved with switching between apps / focusing on text windows / getting the cursor to appear where I click / etc since upgrading to Mountian Lion/Mavericks while using Flash Professional CS6. 
    Example problems:
    I click on the Flash icon in the menu bar (twice because the new Mac OS's have focus problems in the dock with mission control enabled) the OS will sometimes switch to the space containing Flash (sometimes not but let's focus on the Flash focus issues). I hover over the code window, I scroll with the mousewheel down the page to where I want to edit the code, I CLICK exactly where I want to paste it, hit cmd+C -- then it pastes the code NOT THERE but instead where the cursor was before (at the top of the page)... So essentially I have to double or triple click everything in Flash all the time. I just click like crazy anymore on everything all the time, but in Flash it's really unpredictable.
    This happens on both of my work computers (both 10.8.5)
    and my Mac Pro (10.9) but not my MacBook Pro that is still extremely fortunate enough to have 10.6 on it.

    What you need is an inner Graphic symbol. What I mean by Graphic symbol is when you select all your letters and hit "F8", choose "Graphic" instead of "MovieClip." In the properties panel, you'll see that one of the sections is called "Looping." Select"play once" (the default is "Loop"). Inside that graphic should be the animation of the letters moving in from left to right.
    On the outer timeline, put a keyframe at the same frame number where the Graphic's animation ends. Change the Looping to "Single Frame" and then type in the frame number of the last frame. You can then create a motion tween that animates the graphic symbol upward at its final frame.

  • How do I get someone to activate my Flash pro cs6 after I properly deactivated it and now it won't reactivate.  I need a phone number or email address or something.

    I may need to reformat my computer soon.  It has been acting badly.  So, in accordance with instructions I have gotten from FLASH I deactivated Flash Pro CS6 before I turned off my computer to save myself a problem if the computer died before I deactivated FLASH.  Now, when I get back into FLASH PRO CS6 the "deactivate" button is grayed.  Who do I talk to about this and how do I contact them?

    See if the following helps...
    Activation & Deactivation Help
    If not, here is a contact link for chat.  For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )

  • Flash Pro CC not showing createjs Toolkit under Window menu as presumably it should

    I'm using Flash Pro CC on a Dell workstation and not getting the createjs Toolkit panel under Window menu, (when i know it should be, right under the Motion Presets according to others' testimony).
    I tried using Flash Pro CC update to fix the issue but it's not fixed.
    Assistance would be appreciated.

    http://forums.adobe.com/thread/1353942?tstart=0

  • Why do I get an error page when I select Toolkit for CreateJS? I am using CS6 Flash Pro.

    Why do I get an error page when I select Toolkit for CreateJS? I am using CS6 Flash Pro.

    hello Mac.INXS, please [[Clear the cache - Delete temporary Internet files to fix common website issues|clear the cache]] & [[Delete cookies to remove the information websites have stored on your computer|cookies from mozilla.org]] and then try logging into AMO again.

  • Flash Pro CS6 & CreateJS - Prevent looping

    I've recently upgraded to Flash Pro CS6 because of the toolkit for CreateJS.  I've already successfully exported a few simple, slide by slide animations.  I was surprised to see them working in all modern browsers, not just Firefox and Chrome.  The only issue I have is that there doesnt seem to be much ActionScript support.  I'm trying to have my frames play through once, without looping through infinity.  I've tried seaching the API for an equivalent to stop(); but diddn't find anything.  Is there a built in funtion for this, or should I be using another API like jQuery?

    If you want to stop the main timeline looping there's a checkbox in the toolkit publish settings.
    If you want to stop individual clips then you can use js
    /* js
    stop();
    see http://www.adobe.com/devnet/createjs/articles/using-flash-pro-toolkit-createjs.html for more info

  • CreateJS Toolkit for FLASH CC

    When are you guys planning to realease the toolkit to be compatible with Flash CC? I just upgraded to the cc version and can't install the toolkit which i use on a daily basis.
    Thanks

    Hi GraphicsGeezer, As I mentioned in my previous post, the toolkit for createJs extension is no longer present when you update to Flash Pro CC - 13.1.X build versions. This capability is now part of a new document type called "HTML5 Canvas". Once you create thsi docuemnt you will be able to publish using the createJs libraries from your regular publish dialog itself.
    Some references:
    http://blogs.adobe.com/flashpro/2013/12/15/actionscript-to-html5-flashpro-cc/
    http://blogs.adobe.com/flashpro/2013/12/18/actionscript-to-html5-flashpro-cc-2/
    http://hemanthkumarr.wordpress.com/2013/12/03/getting-started-with-canvas-and-create-js/
    http://hemanthkumarr.wordpress.com/2013/12/03/flash-pro-cc-updated-to-13-1-and-adds-native -support-for-html5-canvas-export/
    http://hemanthkumarr.wordpress.com/2013/12/03/what-is-this-html-canvas-document-in-flash-p ro-cc-13-1/
    http://hemanthkumarr.wordpress.com/2013/12/11/how-to-avoid-out-of-memory-javascript-error- on-publishing-html5-canvas-doc-in-flash-pro-cc/
    http://hemanthkumarr.wordpress.com/2013/12/19/converting-action-script-flas-to-html-canvas -flas-in-flash-pro-cc/
    -Sujai

  • CS4 Deployment Toolkit, Flash Pro wrong serial number

    Im using the CS4 Deployment toolkit to create the unnattend install files for Flash Pro CS4. I have copied the contents of the DVD upto a network share. After typing in the serial number when asked, i get a red X to say that it is incorrect. However, if I install Flash Pro CS4 off the DVD itself the serial number is correct.
    I have not had this problem with any of the other CS4 products that I have done so far.
    Any ideas as to why?
    Cheers

    I've got the exact same issue with CS4 Web Premium. Adobe's got another winner with the CS4 installer.

  • Issues with Flash Pro CS5 on Mac

    Hi,
    I recently bought a MacBookPro 15", 2.4 GHz Intel Core i5, 4GB 1067 MHz DDR3 and CS5 Creative Suite. Built in Intel HD Graphics and NVIDIA GeForce GT 330M.
    Hi have some issues with Flash Pro:
    - when objects on the stage are quite big (for example a 800x3000 movie clip), it start showing strange colors and wrong position, however when double clicking the movie clip to edit it, it looks correct. Also no problem when publishing. See images attached, the first one is correct, the second one shows the problem, when editing the mc in the 2nd image i get the third image that is correct.
    Correct:
    Wrong:
    After entering editing mode:
    - after a while, when making a change in the stage or in the time line (deleting frames for example), it doesn't show it immediately, but i need to refresh the page. This happens more when opening many fla in the same time. Closing and restarting Flash fixes it, for a while.
    - after a while it doesn't show when selecting an object, the object looks like is not selected, however i can see that it is in the properties panel.  This happens more when opening many fla in the same time.  Closing and restarting Flash fixes it, for a while.
    Hi have been using CS3 and CS4 with less powerful computers before (always mac) and i never encountered these issues.
    Removing preferences and Application support files didn't help. I also updated Flash  to v. 11.0.1, but no joy.
    Does anyone know what's the problem?
    Thanks a lot.
    Mike

    Based on some searching and testing, it seems that if you redirect ~/Library/Application Support/Adobe/Flash CS5 to a location on the local hard drive, rather than the network account storage, the problem ceases.
    I hope this helps anyone else who may run into this problem.
    Take care,
    Branden

  • Back button doesn't work in Flash Pro CS6 Simulator (ADL)

    Hi everyone. I'm testing Flash Pro CS6, and I've noticed the Back button is not detected in my Android app when testing in ADL (Control / Test movie / In ADL Mobile).
    When I try to select the option Device / Back (Ctrl+B) in ADL, it just doesn't do anything (I have a KEY_DOWN event listener which looks for the keycode Keyboard.BACK). In a real Android device, it works, but not in the "test movie" window (ADL). In CS5.5, the Back button always worked in ADL.
    Also, in the new Simulator window which comes up when "testing movie", there are "Menu", "Back" and "Search" buttons for easier access. Well, that Back button doesn't do anything, either.
    Does anyone know what's happening?
    BTW, I don't find the "Simulator" window too useful for my purposes. How can I disable it, so it doesn't automatically come up?
    Thanks!
    Edit: Well, it seems the KEY_DOWN event listener doesn't work for any key, not only the Back button.

    WHOWWW...
    suitable for Flash Player 11.6
    Back that down to as low a version as possible... 10 or so if possible.
    My advice.... never... ever target the latest version of plugin... most users will NOT have that plugin installed.
    Back it down and if that doesn't work, post a link to the actual Web page.
    Best wishes,
    Adninjastrator

  • Need help with languages issue in iOS app created in Flash Pro CS5.5

    Hello all,
    I'm using Flash Pro CS5.5 on a Mac running Snow Leopard to create an iOS app by publishing with 'AIR for iOS' from inside Flash Pro. Everything works great except after I submit my app to the Apple App Store and it is approved, the App Store listing claims that the app is available in a ton of different languages including English, German, Chinese, Italian, Spanish, etc. Since this app is a word game and all the words are in English, this is a pretty significant issue.
    If I view the binary details for the app in iTunes Connect, it shows that localizations are active for all of the different languages. This information is read from the .ipa file that is submitted.
    If I unzip the .ipa file, I can see that folders have been created for all of the localizations (i.e. en.lproj, es.lproj, fr.lproj, etc.). If I delete any of those folders, the .ipa will give me a 'resources modified' error at install.
    I have also tried setting the plist attribute 'CFBundleLocalizations' to 'English' by editing the 'app.xml'. I have verified that the attribute has been changed correctly but it does not solve the issue. All of the localizations are still active.
    Any help would be greatly appreciated.

    Can you try workaround given at http://forums.adobe.com/message/3976641 and post back your findings.

  • Text exported using flash createJS Toolkit - embedding fonts, @fontface?

    Hi,
    A text box in flash contained in a movieclip "MyTxt_mc" exported as per createJS toolkit results in lines in CreateJS script as :
    (lib.MyTxt_mc = function()
    { this.initialize();
    //text
    this.MyTxt_txt = new cjs.Text("The actual text", "30px Arial");
    this.MyTxt_txt.textAlign = "center";
    this.MyTxt_txt.lineHeight = 32;
    this.MyTxt_txt.lineWidth = 205;
    this.MyTxt_txt.setTransform(102.5,0);
    this.addChild(this.MyTxt_txt,this.shape);
    Is there a way to insert getting web fonts from online libraries or from a font file held on the server? As I wish to use other than Arial or default device fonts.
    I've read up about @fontface, but that's a little puzzling as to how to apply it to the flash - html5 output.
    Help for how to / best approach and exact syntax would be greatly appreciated.
    Regards
    Steve

    Tried replacing the Arrial Narrow font with a different one
    from another coworker. Still no dice.
    Tried repairing permissions. Nope
    Tried making a new user and checking it there. Nope.
    Moved the font from my Library to the system wide library.
    Bupkiss. (Is that how it is spelled?)

  • Compiling Issue in Flash Pro CS6

    Hi,
    When I try to test my project (CTRL + Enter), it displays a blank window if publication target is superior or equal to 10.3, in Flash Pro CS6, either AS2 or AS3. Even if it's a new empty project with just a background color set and a trace("ok"); on the first frame, it does strictly nothing. White and no message in the debug console.
    If I change the target to 9, it works, although the scene color is still not displayed.
    In both cases, when I open the generated swf file directly from my explorer (Windows 7), it works, although the scene color is not displayed.
    Worked perfectly until now, can't remember of a recent update but maybe the last one did that.
    Does anyone know how to fix that ?
    Thank you !

    Hey,
    I've solved my problem installing the Flash Pro CC trial version.
    I wanted to test if it worked under CC, but it seems to have solved the problem in Flash CS6 too. Everything is back to normal.
    I guess we can say this is a solved issue, even if I don't know why. Maybe reinstalling Flash CS6 would have done the trick too. Can't tell.

Maybe you are looking for