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
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
Thanks Suhan Yogin,
but the problem is that I've already looked at this documentation and it didn't work at all.
I'm not a developer. I'm a designer.
I wanted to learn how to export a movie to html5, so that it can work properly with mobiles, specially iPhones.
I've downloaded Flash CS6 (trial) to see what it has improved in order to be a better solution for web.
We don't have budget to hire a developer just to do simple things like that (it's just a "nextFrame" function..).
It would be nice if Adobe has a tutorial area with all these new features.
Or at least a help hotsite for it.
Do you know where I can find something like this?
Thanks,
Kátia
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
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 ^_^
North America
Europe, Middle East and Africa
Asia Pacific