How to use JS to get the movieclip in the Web?
Hello
Look at this code example:
JS of the canvas:
(function (lib, img, cjs, ss) { var p; // shortcut to reference prototypes // library properties: lib.properties = { width: 550, height: 400, fps: 24, color: "#FFFFFF", opacity: 1.00, manifest: [] }; lib.ssMetadata = []; // symbols: (lib.mc = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // ss 1 this.shape = new cjs.Shape(); this.shape.graphics.f().s("#FFFFFF").ss(1,1,1).p("ApwmjIThAAIAANHIzhAAg"); this.shape.setTransform(62.5,42); this.shape_1 = new cjs.Shape(); this.shape_1.graphics.f("#FF0000").s().p("ApwGjIAAtGIThAAIAANGg"); this.shape_1.setTransform(62.5,42); this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape_1},{t:this.shape}]}).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = new cjs.Rectangle(-1,-1,127,86); // stage content: (lib.mymc = function(mode,startPosition,loop) { this.initialize(mode,startPosition,loop,{}); // mc this.mc = new lib.mc(); this.mc.setTransform(215.5,167.1,1,1,0,0,0,62.5,42); this.timeline.addTween(cjs.Tween.get(this.mc).wait(1)); }).prototype = p = new cjs.MovieClip(); p.nominalBounds = new cjs.Rectangle(427.5,324.6,126,85); })(lib = lib||{}, images = images||{}, createjs = createjs||{}, ss = ss||{}); var lib, images, createjs, ss;
HTML:
<body> <canvas id='canvas'></canvas> </body> <script> alert('lib.properties.fps') </script>
My question:
the canvas has a movieclip named "mc".
How can I alert the 'mc' as alert the 'lib.properties.fps '?
alert('lib.mymc')//success alert('lib.mc')//success,but it is library ,Not in the scene alert('lib.mymc.mc')//undefined,how do it?
Thank you very much!!
Hi, ClayUUID
Thank you help!
the JS of the Web is published, we can change it. I want to play the film of the canvas from the html file, so I get the film name or ID Witch of the Web.
NOW I can solve this issue to share with everyone.we:
Set a global variable to store the name of the instance you want, you can easily find it.
Tags: Adobe Animate
Similar Questions
-
wanted to know on how to use labview to get the values of the Spectrum Analyzer?
Hi all
I am a new Member and I am doing a project I have to see the performance of the DSl cable (lasting different for example 100 m, 200 m) on the Analyzer of spectrum and its values as graphic, food, BW should be get in excel sheet. I the company Rohde and Schwarz Spectrum Analyzer, I use interface GPIB 82357 B Agilent... If anyone can help me how to start. I plugged GPIB to spectrum and its drivers on the computer...
Thanks in advance
Patricia
@Dennis Knutson
I did not choose, he gave to me... and I have to work use only... no other choice...
-
In older versions of Firefox, there was a small rectangular window at the bottom right of the screen which got progressively filled with green squares, that your last order has been processed. This allowed you to know that the computer had received the order and close about how it would carry out the requested task. No such window does appear in Firefox 4. That has been omitted or what I have to do something to get it back?
Click on View - Toolbars - then the module Bar, and your progress bar will be there.
-
How and if I can get the Vista OEM disc.
How and if I can get the vista OEM disc. Install win 8 did not know that it would take on my vista os that Microsoft wants everyone to high grade don't like win 7 and win 8 is not working properly I want to reinstall vista. Laptop has been used without disk key code.
Hello
There is no Windows Vista downloads available from Microsoft.
You can contact your computer manufacturer and ask them to send you a set of recovery disks.
They should do this for a small fee.
To reinstall Vista using their recovery disk/s, you start from the 1st recovery disk they provide and follow the manufacturer's instructions to reinstall:
You need to change the Boot order to make the DVD/CD drive 1st in the boot order:
How to change the Boot order in BIOS:
http://pcsupport.about.com/od/fixtheproblem/SS/bootorderchange.htm
"How to replace Microsoft software or hardware, order service packs and replace product manuals.
http://support.Microsoft.com/kb/326246
Some manufacturers have more available Vista recovery disks.
If this happens, you may need to try this instead:
You can also borrow and use a Microsoft Vista DVD, which contains the files for the different editions of Vista (Home Basic, Home Premium, Business and Ultimate) must be installed. The product key on your computer / Laptop box determines what Edition is installed.
Other manufacturers recovery DVDs are should not be used for this purpose.
And you need to know the version of 'bit' for Vista, as 32-bit and 64-bit editions come on different DVDs
Here's how to do a clean install of Vista using a DVD of Vista from Microsoft:
"How to do a clean install and configure with a full Version of Vista '
http://www.Vistax64.com/tutorials/117366-clean-install-full-version-Vista.html
And once the operating system is installed, go to your computer manufacturer's website and get the latest drivers for your particular model or laptop computer.
And phone Activation may be necessary when you use the above installation method.
"How to activate Vista normally and by Activation of the phone '
http://www.Vistax64.com/tutorials/84488-activate-Vista-phone.html
See you soon.
-
I have reinstalled 7home premium windows on my computer laptop samsung R540 laptop came preinstalled w/a webcam. Once windows 7 has been installed, the web cam never came. I ran the update of windows the cam came, but only 2 of the 3 components have been installed. How can I get the web cam work?
By visiting the support Samsung to get the drivers win7 and app photo, specific to your model.
But assuming you used all the recovery of the samsung cd driver & the camera application should be installed in any recovery process.
http://www.Samsung.com/us/support/owners/product/NP-R540-JA02US
Do not use windows update for drivers, especially drivers for laptop
-
How to use CSS to create the horizontal navigation bar in Dreamweaver CS6
How to use CSS to create the horizontal navigation bar in Dreamweaver CS6
One of the ways to do this is the following: Editor Tryit v1.9
You can also use floats to get something in the same direction.
-
How can I do to get the Apple CERT?
How can I do to get the Apple CERT?
-
How do I do to get the slide to set up to go to the right and continue? I was up half the night and is not wrong. The only thing that I just did is plugged into the wall outlet and now I'm right back where I had problems. Why keep this product?
What do you exactly mean by "get the slide to set up go to the right and continue"? Can you give us a little more context and detail?
-
How to create a link on the web to use in an e-mail?
I don't know how to create a link on the web that I can put in the e-mail addresses. Could you help me please? I know it must be very simple, because thousands of others do regularly. Thank you.
Katy Anderson
You can use file-> Send link or copy the web address of the address bar and paste it into an email.
You are using an older version of Firefox (3.0.7) - you need to update as soon as possible
-
original title: can't use windows update, get the message 'the website has encountered a problem and cannot display the page you are trying to view. I am running xp. Can anyone help?
I can't use the update. Still get the same message. Fix - it for Windows can not solve the problem. I am running xp. Help, please!
Hi Hojo11779,
You can see the mentioned knowledge base article and check.
You receive an error message "Windows Update has encountered an error and cannot display the requested page" when you try to install an update
http://support.Microsoft.com/kb/883614
Let us know if it helps.
-
How can I install to get the automatic updates for my drivers on a system Windows 8?
Original title: hardware device
How can I install to get the automatic updates for my drivers on a system Windows 8?
HelloGo through the links below, it offers you a complete description of the automatic updates. -
Hello, the following problem, I use a PC, can not use Photoshop, you get the following error message on the computer-Adobe Photoshop CC 2015 has stopped working " ", "the program '. '. have uninstalled et installed a number sometimes but the CC2015 does not start anyway. Soren
Please see:
Re: adobe photoshop cc 2014 has stopped working in windows 8
Re: Photoshop CC 2015 has stopped working
https://www.YouTube.com/watch?v=0OUdIZT7C2E
I hope this helps.
Concerning
Megha Rawat
-
I got a license number for Adobe Master Collection from my school (Stevens Institute of Technology) and I can't understand how to use it to obtain the product. I created a user name and this is as far as I'm away. I need to download the product and I may not know where to start.
Ask someone to your school... You have a Cloud redemption code, or a number of series CS6?
If cloud, http://helpx.adobe.com/x-productkb/global/redemption-code-help.html Redemption Code and
http://www.Adobe.com/products/creativecloud/FAQ.html
http://helpx.adobe.com/creative-cloud/help/install-apps.html to install or uninstall
http://forums.Adobe.com/community/download_install_setup/creative_cloud_faq
What is http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html
To start https://helpx.adobe.com/creative-cloud.html the Cloud
If CS6, download to other downloads and enter your serial number when prompted
Once again, your 1 resource is your school
-
How to use JavaScript to change the named view
How to use JavaScript to change the named view
Do you mean to jump to a specific Destination named within a PDF file? SE so there
the method gotoNamedDest of the Document object.
-
How to use JavaScript to limit the number of boxes to check the user can select a PDF form?
How to use JavaScript to limit the number of boxes to check the user can select a PDF form?
Here's the working solution
Please rename all the boxes like chkBox0, chkBox1... .chkBox30 (must start with 0)
Value of exports of each checkbox must be "Yes" (default value is Yes)
Place this Code at the level of the Javascript Document
-Code JavaScript document-
var counter = 0; Checked the meter
-Count boxes checked again when the document is closed and reopened.
for (var i = 0; i)<= 30;="">=>
If (getField("chkBox"_+_i).value == 'Yes') {}
Counter += 1;
}
}
-The function of validation-
function validateCheckBox(name,value) {}
If (value == 'Yes' & meter)<>
Counter += 1;
} else if (value == 'Off') {}
counter = 1;
} else {}
getField ("name") .value = "Off";
App.Alert ("you can select only four checkboxes");
}
}
-End of Document Javascript-
Now put this line in the MouseUp event all checkboxes
Box - Code MouseUp event.
validateCheckBox (event.target.name, event.target.value);
//----------------------------------------------------------------------------------
Hope this will help
Kind regards
Post edited by: Mohammad Irfan
Maybe you are looking for
-
Is my Skype my Skype name ID?
first time on this is my id that my Skype namesome, asked me for her sorry question stupid, but never used Skype before Moderator edit: edited the title to be more descriptive.
-
How to change the time stamp of data hh:mm:ss:ms to hh?
-
I intend to get the 1.4 Extender to use with my EOS 70 d and the EF 70-200mm f/4 IS. Are there problems of compatibility with this combination?
-
Charger blackBerry 8900 Q10 and Q10 - can be used interchangeably?
Hi allsmall question can I use interchangeable Chargers between 8900 and Q10? 8900 charger: output 5V 700mAForm of Q10 charger: output 5V 850mA
-
Well, I started using Windows speech recognition, and everything went very well, is a great tool for me because I can't type on the keyboard, why I have disabled hands. I happen to work with Microsoft Word 2010 on the platform of Windows seven, a pro