Toolbox for CreateJS: how to control the main timeline from outside the canvas.
Hey everybody,
I'm currently doing something simple, but my animation film breaks whenever I try to change my code. I created a basic animation in Flash where an object moves from the left side of the canvas, to the right and then loops of the last frame of the first image. Nothing else. The animation is simply placed on the main timeline. I exported the animation with the Toolbox for CreateJS through the extension of the Flash and animation series as it should. I'm trying to start and stop (reboot of the first image) the animation with the mouse on and off mouse events. I want that the events to fire when wriggling over/stop a div outside the animation canvas tag. Is this possible with CreateJS? I'm trying to find a way to control the main timeline without being inside the canvas tag.
HTML example:
http://www.thephotoncore.com/testing/example_test.html
Example Code:
< id article 'container' = >
< canvas id = "canvas" width = "550" height = "400" style = "background-color: #cccccc" > < / canvas >
< section id = "animation_control" >
< p > hover over to start and stop animation. < /p >
< / section >
< / section >
Thanks again for the help!
-DJ
Hi DjPhantasy5,
All the clips on the scene are children of the scene,
So now the "mouseover" all clips on the stage could be stopped with stop and on the "mouseout/mouseouthandler()" all the children could be restarted with gotoAndPlay like this:
function Stop()
{
If (stage & stage.children)
{
var t = stage.children.length;
for (i = 0; i< l;="">
{
child var = stage.children [i];
If ('stop' in child)
Child.Stop ();
}
}
}
function Restart()
{
If (stage & stage.children)
{
var t = stage.children.length;
for (i = 0; i< l;="">
{
child var = stage.children [i];
If ("gotoAndPlay" children)
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 the code for "ball1" as follows:
/ * js
document.ball1 = this;
*/
Then stop the animation would look like:
function Stop()
{
If ('ball1' in the document)
document.ball1.stop ();
}
etc.
Have fun!
Ronald
Tags: Adobe Animate
Similar Questions
-
How can reference you main timeline from within a symbol within a symbol?
The scenario is the following, I have a symbol (TitlePage) on my main timeline. Inside of the symbol (TitlePage), there is a button "play". How can I set a click event on this symbol that access the main labels timeline (stage)?
You can select the JavaScript API to the breast to animate it by selecting 'Help' > 'edge animate the JavaScript API.
http://www.Adobe.com/devnet-docs/edgeanimate/API/current/index.html
-Elaine
-
Where to find the update for the "Toolbox for CreateJS?
Hello
I would use the latest versions of the framework createJs. They've recently added a few features nice event I want to use at the moment.
Flash Pro CC still has the old Toolbox for CreateJS on board. Creative cloud isn't about Flash Pro CC updates.
Does anyone know if Adobe is updating the Toolbox for CreateJS? And if so, where?
(btw ofcoarse I tried updating the labraries myself in my project, but some basic stuff is changed in the new EaselJS and so it takes a lot to correct)
Really appreciate it if someone knows!
The new update (version Flash Pro CC - November 2013) which integrates CreateJS 1.3 in HTML5 canvas export library is now available to you. This update of Flash CC will update your version of flash to 13.1.0.217.
You can update the application Adobe Creative Cloud or Flash Pro CC help-> Update menu.
You can find more information about the update: http://helpx.adobe.com/flash/using/whats-new.html
Thank you
-Reynaud
-
Toolbox for CreateJS installation problems
I try to install the Toolbox for CreateJS 1.2 for Flash CC. When I use the CC extensions Manager, I get an error that says that the 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 demo version of the software through the page linked below and then use your current serial number to activate it.
Don't forget to follow the steps described in the Note: very important article Instructions on the pages to download to this site or the download may not work properly.
CS6: http://prodesigntools.com/adobe-cs6-direct-download-links.html
If you want to buy a CS6 product:
---------------------- -
Satellite M100 with Debian - how to control the power and the cooling fan on
Hey,.
I M100 and I installed debian, works very well, but there is a problem.
Cooling fan turns on the top speed of all time. I m not shy on unix.
How can I control cooling fan?
How to control the power to the laptop?Hi mate,
have you ever heard of the toshutils? I highly recommend trying these tools. Just google for toshutils and you'll find a few nice applications. Should usually be included in the distribution you have, also, I would check with 'apt - get search toshutils.
See you soon
-
How to control the speed of the fan on Satellite A660 - 11 M?
Please any body know how to control the fan speed its always of 69% and making bad noise and the cpu use is 3% no to treatment high I try avancΘs power but still runing high speed
Advanced power settings go to Toshiba power Saver saver > cooling method. There are minimum level. Change back to your power management for a second power plan, and the fan must be much quieter.
I did it on my Satellite A660.
Before changing PC Toshiba, health monitor showed CPU temperature 41% and the speed of the fan was 67%. After changing the method of cooling fan speed is 0%. -
How to control the length of field, select items list to 4.2 page
I apologize in advance if I ask what is obvious, but simply, I couldn't get a response yet:
I would like to know how to control the length of the elements of the type selection list page 4.2
(as for a normal textfield: in the case where the content is longer than simply not all appears on the screen)
help much appreciated
see you soon
WimWimDeGroot wrote:
I apologize in advance if I ask what is obvious, but simply, I couldn't get a response yet:I would like to know how to control the length of the elements of the type selection list page 4.2
(as for a normal textfield: in the case where the content is longer than simply not all appears on the screen)Normally the browser automatically resizes the selection list based on the content.
What version of the browser / do you use?
What theme?
What model page/region?
What form/article layout?
What content does not match?
(Basically the best way to get help with problems of this type is to reproduce on apex.oracle.com and see us actually...)
-
How to control the output voltage?
Good time after some time can get the output voltage, but this value is alwayscontinuous. How to control the voltage output through a Boolean? In
in order to get this tension when I want to.
Greetings.
Hugo SantosHi Hugo,.
If you use a LabVIEW project, you must set the time of sampling in the properties of the node (see SamplingInterval.png). But this time to refresh the data should be high enough. If you take into account this update of time trying to control your way out.
Kind regards
-
If I have a macbook but parallel platform for vmware to run windows for mac, how to make the windows side to recognize the connection wireless from my mac
Hello
-You use Boot Camp as the Boot Manager? If so, make sure that all boot camp for Windows 7 drivers are installed.
-You receive an error message?
If you use Boot Camp, I suggest yo 1All operations from the below mentioned link and check if the problem persists.
Boot Camp: Windows 7 Installation, frequently asked questions
http://support.Apple.com/kb/HT3986
For reference:
Support for Boot Camp
http://www.Apple.com/support/Bootcamp/
Hope this information helps.
-
How to control the ws appeal period
Hi Experts,
I use bpm12.1.3, when the process web service using the service task, how to control the delay?
Best regards
Hi user,
There is a nice blog on wait times. It's about 11g, but it also applies to 12 c.
https://technology.AMIS.nl/2011/11/18/timeouts-in-Oracle-SOA-Suite-11g/
Antonis
-
How to control the movement of the oam in muse &; just play once the proposal?
How to control the movement of the oam in muse & just play once the proposal?
This must be configured during the creation of the oam, no Muse, but the animated application you use.
Thank you
Sanjit
-
I had to replace the hard drive on my computer and lost the installation that I pay every month for. How to install the Adobe Acrobat Pro XI on the computer again?
You can download using any one of the 3 methods.
But if it's XI Acrobat Standard, only the first step will work.
For Acrobat Pro XI, you can use one of the 3 methods.
1)
Sign in to www.cloud.acrobat.com
Then sign Adobe ID and password, and once logged in, click on the Acrobat button, it will provide you download link.
2)
You can download Adobe Creative Cloud applications:
https://creative.Adobe.com/products/creative-cloud
Reference: download, install, update or uninstall applications
3)
You can download it from Acrobat Pro XI of direct download link.
During installation, select the optoin: installation using the serial number / subscription.
-
How to control the length of the field... ?
Hi all
All by providing payment details in the payment.jsp... If we use a credit card which has 16 digits then, how to control the ground to allow the entry of 16 digits only... ?
Thank you
VishnuWrite javascript to enter only numbers and set the "16" size = attribute to limit the size to 16 digits.
JavaScript can be like that of google.
function isNumberKey (evt) {}
charCode var = (evt.which)? evt.which: event.keyCode
If (charCode > 31 & (character code < 48="" ||="" charcode=""> 57))
Returns false;Returns true;
}-Kiss
-
How to control the service console in ESX?
How to control the service console in ESX?
http://www.Petri.co.il/5-critical-VMware-ESX-CLI-network-commands.htm
http://download3.VMware.com/VMworld/2006/mdc9694.PDF
http://download3.VMware.com/VMworld/2006/mdc9807.PDF
http://download3.VMware.com/VMworld/2006/tac0028.PDF
http://download3.VMware.com/VMworld/2006/tac9689-b.PDF
http://download3.VMware.com/VMworld/2006/labs2006/VMworld.06.Lab04-performance-manual.PDF
PS: If you have found useful messages then please leave a few points
André
-
How to control the number of fields in the Advanced mode in <; af:query >;
Hello
How to control the number of fields in the Advanced mode in < af:query >?
Say I have 20 fields in my table, and I created a view of criteria with 2 fields. This would work perfectly in basic mode. But in Advanced mode , the choice of fields is possible by clicking on the Add fields button. I didn't have the customer to search with all 20 fields. Only 10 fields must be listed in the Advanced Mode, even if there are 20 fields in my table.
How can I control the list of fields in ADDFields button?
Any ideas?
KRYou can uncheck the contestable ownership of attributes that you must not appear in the Advanced Mode (but they will not appear in the other modes too!) or by programming the value the same as those mentioned here.
http://adfcodebits.blogspot.com/2010/11/bit-27-setting-view-object-attributes.html
Also, you can hide the button AddFields as suggested here - http://www.notjustjava.com/2011/12/cool-tips-to-showhide-components-of-the-query-control-of-adf/
Maybe you are looking for
-
Clean the OS installed, Synaptics driver installed via Windows Update. V19.0.12.95 Synaptics pointing device also will not save settings after restart. UPD: I discovered that my touchpad doesn't support 2 + finger touch. I installed an old driver syn
-
I have XP Home-ed with service pkg 3: I had a number of problems occur simultaneously in Sept. 2011. Outlook 07 will begin to open, then plant, and when I tried to print I get a Script error msg. I sort the MS Fix - it service and tried to reload the
-
BlackBerry 10 why BlackBerry 10 is not an e-mail application?
I'm surprised that BlackBerry 10 does not have a separate Email app. I know it's the first answer: it is the Hub of BlackBerry. Use it! But then why is there a BBM app when it is also in the hub? The second strange thing is that there is an icon for
-
I updated my windows 7 Home premium 64-bit for windows 8 pro. Now, if I want my Windows 7 can return I use my drives recovery or what other options can choose?
-
Bridge / unrecognized file Extensions
HelloI'm on a Windows 7 Pro machine and until a week ago was running applications CC 2013 updated as body 7.2.2 Ps, AI, etc... Who ran smooth as butter.After the update of the CC desktop app and installing versions of PS 2014, HAVE, PR, AE, etc (prev