Skip navigation
ch_chelles01
Currently Being Moderated

Toolkit for CreateJS - iPhone

May 24, 2012 12:25 PM

Tags: #iphone #movieclip #toolkit #mobile_devices #createjs #flashcs6

Hi,

 

I've been trying to do an animation for mobile phones, but it's not working.

 

The movie itself is very simple.

It's a movie clip (with sequential pictures of a product to make a 360° view) and 2 buttons (nextFrame and prevFrame).

The first time I tried to export using the toolkit, it didn't work and I was told that buttons were displayed as movieclips.

So, I changed my movie. Now there's no butons at all, only movieclips.

I used ActionScript 3 to do everything, and I don't see what I can do to make it works properly.

 

Here is the ActionScript:

 

banner.stop();

 

PrevGo.addEventListener(MouseEvent.CLICK, goPrev);

function goPrev(evt:MouseEvent):void {

          if(banner.currentFrame == 1){

                    banner.gotoAndStop(10);

          }else{

                    banner.prevFrame();

          }

}

 

NextGo.addEventListener(MouseEvent.CLICK, goNext);

function goNext(evt:MouseEvent):void {

          if(banner.currentFrame == 10){

                    banner.gotoAndStop(1);

          }else{

                    banner.nextFrame();

          }

}

 

The problem when I export the movie is that the movieclip is loaded without clicking.

If I export the movie without the plugin, it works, but I can't see at iPhone...

 

Does anybody know how I can fix that problem?

 

Thanks

 
Replies
  • Currently Being Moderated
    May 24, 2012 4:38 PM   in reply to ch_chelles01

    Which Adobe product are you trying to utilize?  This looks like Flash Professional but I want to verify before I move your message thread to the correct forum.

     
    |
    Mark as:
  • Currently Being Moderated
    May 25, 2012 8:51 AM   in reply to ch_chelles01

    Moving this discussion to the Flash Pro - General forum.

     
    |
    Mark as:
  • Currently Being Moderated
    May 25, 2012 10:43 AM   in reply to ch_chelles01

    Hello,

     

    Toolkit for CreateJS does not convert ActionScript to HTML5 equivalents. The workaround is to export your Flash Assets to HTML5 using Toolkit for CreateJS and recoding those ActionScript parts in to JavaScript. You can find JavaScript equivalents for ActionScript from EaselJS documentation:

    http://www.createjs.com/Docs/EaselJS/

     

    Please let us know if you have more questions.


    Regards,

    Suhas Yogin

     
    |
    Mark as:
  • Currently Being Moderated
    May 30, 2012 9:32 PM   in reply to ch_chelles01

    Hello,


    We are working on tutorials/documentation that should help you do simple programming after exporting your Flash assets to HTML5.

     

    If there are tutorials you are looking for in general, I would recommend that you take a look at these:

     

    http://www.adobe.com/devnet/createjs.html

    http://www.adobe.com/devnet/createjs/articles/getting-started.html

    http://www.adobe.com/devnet/createjs/articles/using-flash-pro-toolkit- createjs.html

    http://www.youtube.com/watch?v=Rhd2QblTtuU

    http://www.youtube.com/watch?v=ptZ0DxkoZEM

     

    Regards,

    Suhas Yogin

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 1, 2012 10:22 PM   in reply to ch_chelles01

    hello, I found a tip for button if you want, i created a flash project with movieclip and button, i can control comportement of my work with the buttons. to control movieclip, i create button like movieclip and inside them i wrote my code :

    /* js

    this.onClick = function(){

                exportRoot.gotoAndStop("freelan");

            }

    */

    like code is in the button, we must ask the button to move since the root >>exportRoot<< in flash and give the label to read . It work well on pc's navigator and on Android smartphone and tablette too but with some problems. I don't have iPad so i can't verify on this.

     

    here an example of this : http://lovepixel.free.fr/html5/

    for moment only "print" and "le freelance" buttons work. ^_^

     

    sorry for my english, I'm french ^_^

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points