Can Flash for html5 canvas - I contact of the canvas to the parent page?
I have several buttons inside my canvas. I want them, when you click on it, to make a hidden div visible on the parent html page, then highlight the point correct in this div is there a way to do that - in General to communicate via js of in a canvas to the parent html page?
It is not only possible, it's trivial. What generates Flash in Web mode is bog-standard HTML and JavaScript. The execution of the page is not managed to "in" the drawing area. The canvas is literally just a "
Tags: Adobe Animate
Similar Questions
-
How to play videos flash for 40 seconds and then display the Web page automatically?
That was my question:
I made a Web page, I want to show a video flash for 40 seconds when the page is opened. Then the Flash video should disappear and opens the web page. How should I do this?
This was the response:
Hello
This would require the use of actionscript inside flash video, which would then redirect to the main website after the deadline runs out.
(for how to do this you would be better advised in the flash forum -http://forums.adobe.com/community/flash/flash_general).
Please help me on how to add actionscript code
If you the only goal is to pass on this page to the index page after 40 seconds, then you can do it in the code of a web page, rather than edit the Flash file. Just add the following code in the head section of the web page of the video...
-
Flash for html5 canvas - how to target instances "cloned".
I have a Penguin object that I duplicate several times throughout a quiz of canvas, html5, with code like this (Simplified):
function newPenguin() {}
var clonedBlock = new lib.peng ();
root.addChild (clonedBlock);
clonedBlock.x = 100;
clonedBlock.y = 100;
clonedBlock.name = "Penguin" + count;
slideAbout (clonedBlock);
}
Whenever a new issue is reached a new Penguin is added to the screen and the 'slideAbout' function it allows to drag around independently on the screen. So at the time wherever you get to q10 there are ten penguns all independently sliding on the ice. Everything works well.
What I want is, if a question is answered correctly, all these penguins jump up and down both on occasion.
I can do the jumping animation, but I can not understand, the main script, how target these dynamically added penguins.
If I had added them manually, I could just have targeted the with the name that you add in the Panel of the label, one as the name for AS3 "instance".
But when they are added using the "new"lib"above method I can't find a way to get them to hold them. The "name you can add with '.name' doesn't seem to work as the 'instance' name - I just get a js error if I try to use it."
I hope someone can help me - thanks in advance!
There are a few methods to achieve this. It would be to add the penguins to a parent who has children of Penguin and another would be to use an array to store the references of Penguin.
the last submission:
this.penguinA = [];
function newPenguin() {}
var clonedBlock = new lib.peng ();
this.penguinA.push (clonedBlock);
root.addChild (clonedBlock);
clonedBlock.x = 100;
clonedBlock.y = 100;
clonedBlock.name = "Penguin" + count;
slideAbout (clonedBlock);
}
so you want to reference your penguins, loop in your table
function jumpF() {}
for (var i = 0; i)<>
do whateve with this.penguinA [i];
}
}
-
Bug. Can not put two edge animations animate on the same page
Alrighty. Just thanked Adobe for fixation sensitive question scaling. Now, it seems to be a new. When I put two animations dashboard run on the same page, they both disappear completely from the view! Both in mode live view (or which saw fluid grid) and trying to get a glimpse into any browser. The responsive design works fine but if I put two animations on the same page that the two just disappear! GONE!
Perhaps there is a code that I can use to prevent this. I did a number of tests during the last hour. My smile (from the reactive solution) is now again a frown. I can't keep working like that. Please let me know if there is something I am doing wrong. I have two animations on a page without worries prior to this version, but the delicate design did not work properly. The responsive design work NOW, but I can't have MORE than ONE ANIMATION on the same page. Thanks for your time. Best regards, Julian.
The use, I did the modification required: