Is it possible to call html5 in an flash swf? - html

I have a html5 to flash related question. Because flash to html5 is so common, it is hard to search for. So I want to ask this question directly now:
Is there a way to use flash to call or embed a html5 game inside the swf?
background: I have a 2d html5 game, which I want to bring to some gaming portals. There are still many portals, which just add flash games to their sides.
That made me thinking about a walk around to bring my game to this portals as swf in some way. But is it worth thinking about it? I have no clue where to start >.<'
Is it possible?

Related

Flash like timeline in Canvas

I am looking to create a animation movie, but instead of using Flash I am using HTML5 canvas.
In flash professional, there was a great timeline which allowed to create animations very easily. There were separate timelines for separate movieclips.
Is there any framework/library for working in a timeline like environment in HTML5 canvas?
If not, what is the best way to create animation movies in HTML5 canvas?
Adobe have created a timeline based tool for DOM elements, but sadly it doesn't use the canvas element. It will use html that contains a canvas element though.
Its certainly work a look:
Adobe edge animate
If you come from a Flash background, you should check out Grant Skinner’s EaselJS.
EaselJS: http://www.createjs.com/#!/EaselJS
It’s a canvas drawing library that gets its flavor from the Flash API—you get the stage and displayObjects you’re used to. But it uses javascript and canvas to drive and display your animations.
If you have exsiting Flash assets, you can use his Zoe tool to convert your .swf into spritesheets that canvas can display. I think I read somewhere that Grant Skinner and Adobe collaborated to make Zoe very accurate and stable—but don’t quote me on that!
I guess in theory you could:
Do your future development in the fantastic Flash environment
Use Zoe to convert the .swf into spritesheets
Use a true canvas drawing library like EaselJS or KineticJS to control the sprites. (these libraries love spritesheets!)

HTML above flash without wmode?

Could someone settle this little dispute please.
If I set wmode=transparent on the flash template everything works magically. However, the flash developer says that by doing this the template will be slowed down significantly..
So the questions.
1) How much of an impact does wmode have on performance today?
2) Is there any other way to place HTML on top of flash?
It should be noted the HTML only appears on top of the flash when they click on a video -> rare. The flash only is animated again after the video is closed and the user clicks on a rollover or whatever.
I've done a bunch of websites with transparent flash objects and heavy animations, etc.. I've never noticed any change. I think it should only matter if you had issues with performance to start with (zillions of vectors being animated or something).

Is it possible to handle shockwave objects in flash?

I want to know, Is there any way to handle or control the shockwave objects in flash by using 'as3'? I know this is possible in 'Director' by using 'Lingo'. But I am not able to find any way or any articles from where i can get some idea about this. In the director, I've seen there is way to set some properties like camera position, light affects etc. with the shockwave objects. But I am not sure about the FLASH. Can it possible to use these type of properties with shockwave objects in flash, which could be controlled in action script3 ???
Any kind of help would be greatly appreciated.
Thanks in advance!!!
To my knowledge there is no such possibility in flash.
If you want complicated 3D in flash, I suggest you use something like papervision3D
Flash only has basic 3D transformation since version CS4, Director (ShockWave) have had advanced, hardware accelerated 3D for many years. But I think Director is in some sort of limbo and Idon't know if Adobe is going to continue to develop it.
The Flash player has also become faster and Actionscript more powerful, so I think that something like papervision3D may be a good alternative for the most part.
Also bare in mind that the Flash player is much more widespread than the ShockWave Player

I've only programmed in AS3; What's the easiest practice in Flash CS4 to create simple animations?

So I've been using Flash for awhile, but rarely ever use the authoring tool. I want to create a quick little slideshow in which a user clicks buttons, and assets on the screen fade in an out as you move from slide to slide. I don't want to do this programatically...what's the quickest route to go about doing this, with using some AS3 but primarily relying on CS4's authoring tools? I remember when I first learned flash, years ago, you placed elements on stage and stretched them out over multiple frames. That seems like a lot of work...I'd rather just have, say, 10 total frames, each frame being a step in the slideshow, and each click of the next button going to that next frame, with each frame having its own animations.
I think you should work with framescripts, flash IDE also gives you this possibility to code while you make frame animations. This way you will take the most advantage of working in the IDE.

preload FLV in Actionscript 3?

I'm working on a flash site with lots of video-based section-to-section transitions. The transition videos themselves are only a few seconds long but are fairly weighty (~700kb) as they're very high-resolution; given the number of sections and section-to-section transition combinations (and therefore videos), preloading all of the transitions on initial site load isn't feasible.
What I'd like to do is have a quick load of each transition video on an as-needed basis; e.g., if you're in area A and click navigation for area B, the A->B video loads (only a few seconds' wait for most users) and is then played back. However, I'd also like a quick loader graphic displayed as the transition loads, before it gets played back (something simple like a loadbar, but more than just a spinner or the like, as the sense of definite progress is important).
What's the best way to do this in Actionscript 3? It was relatively straightforward in AS2 (http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001036.html) but I've yet to see an simple solution for AS3. I'm using standard code-based techniques for FLV playback in AS3 (NetConnection, NetStream, Video objects)--no FLVPlaybackComponents or similar.
Thanks a lot!
It's not much different in AS3. Just use a Timer instead of an interval. Were you having problems converting that code to AS3?
That example on Adobe's website still works, just prepend:
import flash.utils.setInterval;