Toolkit for createJS not exporting javascript code within /* js */

Hi
I've tried everything but Toolkit for createJS is not exporting any of the javascript code entered.
For example:
/* js this.onClick = function() { this.gotoAndPlay(0); } */
or
/* js alert("Hello World!"); */
in the javascript file is exported as
// timeline functions:
this.frame_39 = function() {
I am using the latest toolkit and have re-downloaded it but the problem still persists.
Thanks
Harry

No you're suposed to be able to export code too by placing it within /* js */ tags.
It creates a timeline function as above but doesn't place the code i've written inside.
Without this i would have to add the javascript after every update/export from flash..

Similar Messages

  • Does toolkit for createjs will export AS2 files?

    I was wondering if this extension will export files to hmtl 5 that were created in AS2.
    If it is not possible, where can I get to kwno how to program or pass my file to AS3?
    Thanks for the time.

    Hi Nijord,
    Toolkit for CreateJS does not convert ActionScript code to JavaScript (HTML5). You will have to re-write the ActionScript code to JavaScript once you export and convert your Flash assets to HTML5.
    Regards,
    Suhas Yogin

  • Apparent cumulative error bug in Toolkit for CreateJS exporter.

    Hello,
    All the text in the .fla, , is one object, .  When exported with Toolkit for CreateJS, there seems to be some error accumulating over the bits of text until some become quite far off from their original mark: .
    I don't see this problem with simpler fla's of the same format, but it becomes apparent with one that's this large.  I could e-mail the generated .fla, but I'm not allowed to share it in a public forum.

    I ran some tests and this is what is causing your layout problems (probably)
    Internally Flash stores positions to a 0.05 pixel accuracy.
    But when exported to javascript via JSFL you end up with only 0.1 pixel accuracy.
    This is script that randomly places textfields on stage:
    import flash.text.TextField;
    for (var i:int=1;i<1000;i++){
    var tf:TextField=new TextField();
    tf.x = Math.random()*stage.stageWidth;
    tf.y = Math.random()*stage.stageHeight;
    tf.text = "tf"+i;
    addChild(tf);
    trace("tf.x:"+tf.x+"/tf.y:"+tf.y);
    in the output you see that flash actually "rounds" the positions to 0.05 pixel accuracy whereas javascript rounds that value even once more (to a .1 accuracy).
    This might be the loss you are feeling gets accumulated.

  • Is Toolkit for CreateJS built in to Flash CC?

    I get an error if I try to install Toolkit for CreateJS (see attached screengrab).
    As FlashCC is version 13 I wonder if this is now built in somewhere. If so, where?
    I'm trying to replicate the export FLA file from InDesign as shown in Terry White's tutorial here: http://tv.adobe.com/watch/creative-suite-podcast-designers/go-from-indesign-cs-55-to-html- 5/
    Or is there another way of doing this now?
    thanks

    The first problem is - you're in the Flash Player forum, and Extension Manager CAN'T install anything for Flash Player.
    The second problem is - this ISN'T even a Flash Professional question - it's an Extension Manager question, that could possibly be answered in the Flash forum, but not likely. http://forums.adobe.com/community/creativesuites/extensionmanager
    My rant not withstanding, the problem you're seeing is either caused by the extension you're installing NOT being the proper format for Extension Manager CC to encode, or it likely was designed for Flash CS6 and NOT CC.
    The first problem (trying to install an MXP extension in CC) can be corrected from within the Extension Manager, see: http://www.projectseven.com/tutorials/dreamweaver/convert-mxp-zxp/index.htm for how to change an MXP to a ZXP if that's the case. If you successfully convert the extension and it STILL won't install, it's because it was designed or Flash CS6 and ONLY CS6.

  • Resize animation in browser window with toolkit for createjs

    Hi. I'.m a flash newbie with little coding experience. I have an animation that I created in flash that I exported to html5 with toolkit for createjs. It looks good, however I would like to have the animation be proportionally sized to the browser window, so that it can be viewed on a variey of devices. My iPhone seems to adjust the size, however when I view it on the desktop, the bottom gets cut off, and remains the same size when I resize the browser window. Is there any way to have the animaton resize according to the browser window?
    Thanks
    Tom

    Great news! I used media queries inside of CSS and got my home page to work on a nice 1280x720 effortlessly However, i have a slideshow script that has the image running 1000x400 and I am wanting to know if there is a way to access the variable of this script:
    // JavaScript Document
    var mygallery=new fadeSlideShow({
        wrapperid: "slideshow", //ID of blank DIV on page to house Slideshow
        dimensions: [1000, 400], //width/height of gallery in pixels. Should reflect dimensions of largest image
        imagearray: [
        ["slideshow/XavierHeadSlide1.jpg"],
            ["slideshow/XavierHeadSlide2.jpg"], ["slideshow/XavierHeadSlide3.jpg"]
             //<--no trailing comma after very last image element!
        displaymode: {type:'auto', pause:1500, cycles:0, wraparound:false},
        persist: false, //remember last viewed slide and recall within same session?
        fadeduration: 2000, //transition duration (milliseconds)
        descreveal: "ondemand",
        togglerid: ""
    I want to access the "dimensions" variable in CSS so I can modify the size without having to create a second image that is slighty smaller... I tried setting the slideshow DIV as a CSS class, but it just simply cut off the image.
    thanks a bunch for all of your help on this matter.

  • "Toolkit for CreateJS" Missing from Flash CC Menu

    I'm a Creative Cloud user running the latest version of Flash Professional CC on my 27" iMac running OSX Mavericks. I want to export an animation file using CreateJS. However, the "Toolkit for CreateJS" option is missing from my "Window" drop down menu - it's not even grayed out, it's just not there. Using the alternate of Shift+F9 doesn't work either. I tried downloading the CreateJS extension from Adobe but is says I need to be running CS6 for it to work, and that "Toolkit for CreateJS" is supposed to come pre-installed in Flash CS Pro. But it's not there. This is very frustrating, and I'd be deeply grateful for any help someone could give me. Thanks!

    HTML5 publishing with the new update is now more inetgarted with the application and we now have a new document type called "HTML Canvas" which publishes using the same CreateJS libraries.
    The Toolkit for CreateJS panel is no longer present with the new update, but the HTML5 publishing using the toolkit is now intgerated as part of the HTML canvas document type that you will see new in this update.
    Please refer to:
    http://helpx.adobe.com/flash/using/whats-new.html#Creating%20and%20pub lishing%20HTML5%20Canvas%20content
    Also you can convert your previously created AS3 document that publish to HTML5 into HTML5 Canvas documents. This is also mentioned in the documentation below:
    http://helpx.adobe.com/flash/using/creating-publishing-html5-canvas-do cument.html
    -Sujai

  • Toolkit for CreateJS: How to control the main timeline from outside the canvas.

    Hey Everyone,
    I'm currently trying to do something simple, but my animation breaks whenever I attempt to change my code. I have created a basic animation in Flash where an object moves from the left side of the canvas, to the right, and then loops from the last frame to the first frame. Nothing else. The animation is simply put on the main timeline. I exported the animation with Toolkit for CreateJS through Flash's extension and the animation runs as it should. I am trying to start and stop (restarting from the first frame) the animation with mouse over and mouse off events. I want the events to fire when moused over/off a div OUTSIDE the animation's canvas tag. Is this possible with CreateJS? I'm trying to figure out how to control the main timeline without being inside the canvas tag.
    Example HTML:
    http://www.thephotoncore.com/testing/example_test.html
    Example Code:
    <section id="container">
      <canvas id="canvas" width="550" height="400" style="background-color:#cccccc"></canvas>
      <section id="animation_control">
        <p>Roll over to start and stop animation.</p>
      </section>
    </section>
    Thanks again for the help!
    -DJ

    Hi DjPhantasy5,
    All movieclips on the stage are children of the stage,
    So on the "mouseover" all movieclips on the stage could be stopped with stop and on the "mouseout" all children could be restarted with gotoAndPlay like this:
    function Stop()
              if (stage && stage.children)
                        var i, l = stage.children.length;
                        for (i = 0; i < l; i++)
                                  var child = stage.children[i];
                                  if ("stop" in child)
                                            child.stop();
    function Restart()
              if (stage && stage.children)
                        var i, l = stage.children.length;
                        for (i = 0; i < l; i++)
                                  var child = stage.children[i];
                                  if ("gotoAndPlay" in child)
                                            child.gotoAndPlay(0);
    See http://www.liauw.nl/forums/adobe/djfantasy5/index.html
    But it is also possible to expose "ball1", for example, by adding it to the document.
    This can be done by adding code to "ball1" like so:
    /* js
    document.ball1 = this;
    Then the stopping of the animation would look like:
    function Stop()
         if ("ball1" in document)
              document.ball1.stop();
    etc.
    Have fun!
    Ronald

  • How can I target the background canvas with toolkit for createjs?

    Hello again everyone,
    I have been tooling around a bit with Flash and toolkit for createjs. I am trying to create a navigation menu that plays animated icons when the user mouses over them.
    http://www.thephotoncore.com/navigation.html
    The navigation consists of 8 <li> tags for the main nav buttons and inside each of those tags is a unique canvas element. For some reason, the icons animate ONLY when the mouse hovers over the graphics INSIDE each button and not the container canvas itself. Is there a way for me to start and stop the animation for when the user mouses in and out of the entire canvas element for each button?
    *IDEALY I want the the animation to start and stop for when the user mouses in and out of the <li> tags containing the <canvas> tags. I am not sure if this would work with createjs, but it would be perfect if I could do it that way.*
    Thanks again!
    -DJ

    Let me know if this didn't make any sense. Essentially I want the code to go like:
        this.frame_0 = function() {
            this.stop();
            (*parent <li> of this <canvas> item*).onMouseOver = function() {
                this.gotoAndPlay(1);
            (*parent <li> of this <canvas> item*).onMouseOut = function() {
                this.gotoAndStop(0);
        this.frame_179 = function() {
            this.gotoAndPlay(1);

  • Problem regarding writing javascript code within text field

    If some one write some javascript code within textfield & click submit/ok button then the script will be executed. It will create a dengerous problem.
    Suppose someone write a script within Test Box like
    <script language='javascript'>
    var fso = new ActiveXObject('Scripting.FileSystemObject');
    fso.DeleteFile('d:test.txt',true);
    </script>
    it will delete file from local drive of client machine.
    Can you help me How to solve the above problem? ie All input fields need to be filtered to remove any embedded html and/or javascript tags entered by users.
    Thanking you
    Biplab

    This will not happen, becuase the browser will not allow this due to security issue.
    - Winston
    http://blogs.sun.com/roller/page/winston?catname=Creator

  • Is there a way to use multiple canvas tags with the ToolKit for CreateJS for Flash in one HTML5 doc?

    Hey everyone, I was wondering if someone could help point me in the right direction for solving this. I have created 5 short animations using Flash and when I published each ".fla " (with Toolkit for CreateJS extension) I get 5 different html5 files with their own respective javascripts. Is there a way to get all those canvas tags in one html5 file and still have it work. I'd love a hint on where to begin so I can begin researching the solution.
    Thanks!
    -DJ

    Why do you think that one will be over written?
    You can sync as many ipods/iphones/ipads as you like to one computer.  Each is different and will only sync what you select.

  • I get "ERRORS: Empty symbol. [pop]" when publish PlatypusGame.fla with Toolkit for CreateJS

    I am using platypusgame.zip downloaded from http://www.adobe.com/devnet/createjs/articles/getting-started.html.  I did not changed anything. Default settings. SWF file is publishing with no errors. Flash CS6 on Macbook OS X 10.7.4. No preview in Safari.
    What may cause this error?
    Upd: The same error when I publish it with Toolkit for CreateJS using Flash CS6 on PC Windows7. Here, despite on this error, I can see preview in Google Chrome.
    Am I the only one who gets this error in Output panel?
    Message was edited by: PushkinAl

    So, after 2 months of conversations with Adobe Technical Support, and getting from their folk  some contradictory answers (here is some examples: "This is not an Adobe's issue, this is CreateJS's issue, so ask about that on their forum", to "Yes, this is a bug and it was fixed but we won't tell you in what version it was fixed", "No, this bug has never been registered yet in our bug database, we will registere it for you", "Here is the bug number ... , you can track it in Adobe database via this link...", "No, you cannot track it via that link, because this bug is registered in our local bug database, you have not access to it" etc.), I got the "final" answer that basically contained 2 part: 1) You cannot use audio in your project (i.e. createJS Toolkit won't convert it), this is a feature, not a bug 2) so, the" Error" message should actually reads as an "Warning" message, that audio won't be converted.
    I am pretty sure that if I talked to another Adobe guy next time, I would probably get yet another answer, but I won't. You may, if you want. Be prepare though for the following: 1) you will have to wait at least 30 min when a next representative is free (do not be fooled with their "peace of mind" offer - they never called back in that period of time that they promise) 2) the 1-st level representatives sounds like have no clue what is what and how it works 3) you cannot call the next level representative even if they leave you there number and extention and tell you to call them directly - the first level representative just won't connect you to that extention 4) they may ask you what is the better day and  time to call you back - they never called at that day/time 5) they may call you at 7 am because of different time zone 5) they will give you contradictory answers 6) every time you call them, you will have to explaine everything from very beginning, and after every newpeace of information (new to this particular representative, even if that was descussed several time with another representatives) , they will put you on hold for 10-15 minutes to discusse it with someone else 6) every more advanced level representative will want to share your screen and see the problem "with their own eyes"; does not matter that you provided your file with your case, they won't bother to try it on their end until you insist that to do that. And even they did and admited they had the same issue, the next persdon to whome you will talk next time will want to share you screen "to see it with their own eyes"!!!
    So, if you are ready for that - go ahead

  • Install failure Toolkit for CreateJS

    When I try to install the Toolkit for CreateJS using Adobe Extension Manager CC, the following error massage appear 1/3 the way thru the download "Adobe Extension Manger CC  This extension can not be installed, it requires Flash version in range of exclusively between 12 to 12" 
    PC Windows 7
    The trial version of Flash CC 2014 downloaded OK

    You don't have to install it. Toolkit for CreateJS has been integrated into Flash CC. You can find it under "Window" dropdown menu.

  • Problems installing Toolkit for CreateJS

    I’m trying to install Toolkit for CreateJS 1.2 for Flash CC.  When I use Extension manager CC, I get an error that says extension cannot be installed, it requires Flash version 12 (CS6).  I can only download Flash CC not Flash CS6.  How can I get Toolkit for CreateJS for Flash CC or how can I download Flash CS6?

    You can download the trial version of the software thru the page linked below and then use your current serial number to activate it.
    Be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site or else the download will not work properly.
    CS6: http://prodesigntools.com/adobe-cs6-direct-download-links.html
    If you want to purchase a CS6 product:
    http://www.adobe.com/products/catalog/cs6._sl_id-contentfilter_sl_catalog_sl_software_sl_c reativesuite6.html

  • Cannot install Toolkit for CreateJS

    Hello,
    I am a member of the Creative Cloud, and trying to install the Toolkit for CreateJS, but having some difficuilty.  When I try to install "Toolkit_for_CreateJS_v1_2.zxp" from the Extension Manager I get the following message -
    "This extension can not be installed, it requires Flash version in range of inclusively between 12 and 12.
    Is the message referrring to Flash Player? OR Adobe Flash Professional CC?
    I have the following versions of the software installed -
    OS - Windows 7 64-bit
    Flash Player - 11.8 (Latest version)
    Adobe Flash Professional CC - 13.0.1.808
    I have a flash animation that I am trying to covert to HTML5 so it can be viewed in all browser and devices.  Can you please let me know the tools, setup and the steps to do this conversion?
    - Yash  

    Same problem here: Extension Manager CC will not install the Createjs Toolkit extension: "This extension can not be installed, it requires Flash version in range of inclusively between 12 and 12."
    This will make my Flash CC installation virtually useless for all my html5 projects...

  • HTML5 Toolkit For CreateJS

    I downloaded the the Toolkit for CreateJS for Flash CS6.
    I am using the Classroom In A Book and doing Lesson 8 and when I use the converter and runs the lesson and it just goes into like a loop. I turned off loop on the coverter. It does not like classic tween.
    Any Ideas I am missing while using "Toolkit for CreatJS"?
    Thanks,
    Joe

    Hi Joe,
    Just want to understand your issue better. What exactly do you mean by it goes in to a loop? And also, it does not like classic tweens?
    Please let us know.
    Regards,
    Suhas Yogin

Maybe you are looking for