Flash :: Object Tag HTML5 Using Swfobject Disappears
May 4, 2011
I am trying to switch my doctype to HTML5 to play around with some of the new stuff, but I am running into an issue with flash.
The following code works ONLY when the doctype is set to PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN". When I switch it to just HTML, it works in chrome, doesn't work at all in Firefox, and renders a small crappy looking thing in IE9.
<!DOCTYPE HTML> <!-- PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" -->
<html>
<head>
</head>
I need my flash to appear in front of the background on this website [URL] it loads but its entirely transparent. I need the content to be visible and the background of the flash to be invisible. Here is the flash itself: [URL]. How do I leave the content visible but use the website's background? I'm using swfobject
i used SWF object to play the swf file. I am able to embed and play but i am not getting any api java script to pause,rewind forward API for that any one done this ?
I have to call an ActionScript method via Javascript, but I have a problem accessing the flash object itself. I embed the flash file via the help of swfobject.
Previously, when I use the static publishing approach, I could easily get the flash object by calling these methods:
swfobject.registerObject("flash_object", "9", "expressInstall.swf"); var flash_object = swfobject.getObjectById("flash_object");
For some technical reasons, now I have to use the dynamic publishing approach (using swfobject.embedSWF). But, as mentioned in the documentation, the method getObjectById can only be used if you use static publishing approach.
i am wanting to know how much I can be sure that users of my website will not be able to pass bogus variables to my Flash movie. Basically I will have some features available to certain users and I realise that for the average user they will not know anything about how to send spoof vars but is it possible for someone to change the variables sent using SWFObject when a page loads and thus be able to use the functionality that I am trying to disable for them.I have a PHP (my_flash_movie.php) page that calls a function from an included globals.php file to determine if the user can see the restricted functionality is_ user_a_subscriber($_SESSION['user_id']); which returns 1 or 0. This 1 or 0 is then passed to Flash which enables or disables certain features. I dont want someone to be able to send a 1 instead of a 0 basically. This isnt a site where security is critical and the functionality that is disabled is not really critical either so wouldnt be too bad if this happened but im just curious about this and wondering if I should think of another way to pass these vars that might be more hidden.
I'm using swfobject to load a flash object on my site and it's loading very slowly on pages with a lot of data...as if swfobject waits until the page loads before loading the swf. Here's an example page with swfobject: [URL] If I change out the swfobject code with an iframe (with the swf as the src) or just use object embed, the flash object loads much, much faster...before the rest of the page loads.
I know there are a ton of page load time improvements I could make to that page (I'm working on that as well), but I'm wondering if there are some specific changes I could make to the way I'm using swfobject to get the same loading speed as an iframe or object embed?
I'm just trying to understand how once HTML5 enters the picture, the current concerns about browser incompatibility and other issues go away? Wouldn't HTML5 simply add another set of browsers to the large list of current browsers that the application must target?
That is, assuming the enterprise web app requires one of these new HTML5 features (e.g. playing audio and/or video, integrating SVG or vector graphics, etc.). If such a feature isn't critical then graceful degradation may be acceptable and then my question is moot.
But for those apps that require one of these new HTML5 features, are you planning to support older browsers, or expecting it's acceptable to restrict to HTML5 browsers because the enterprise in question has made one of them their new corporate standard (or other scenario, etc.)?
With swfobject 2.2, how do you specify the desired version of flash you require? I need flash 10, but swfobject won't perform an upgrade install with the provided expressInstall. swf in the swfobject 2.2 distributable. How do I get an upgrade install to occur for flash 10?
I have an object of a white cross on top of a mountain. I want my mouse to move over it and make it disappear and when my mouse moves away from it I want it to re-appear. So far I can make it disappear by moving my mouse over it, but then it will not re-appear. Here is the code I'm working on: CROSS1933_mc.addEventListener(MouseEvent.MOUSE_MOVE, mouseMOVE); // MOVE MOUSE OVER CROSS function mouseMOVE(event:MouseEvent):void { CROSS1933_mc.alpha = 0; } How do I make the Cross re-appear?
Would anyone happen to know how to change attributes like .z, .rotationZ, rotationY etc on a created MovieClip/Sprite or whatever. Because when I create a new mc or sprite and try to change these attributes the object just disappeares.
I have, among many objects, a SimpleButton called nextBtn on the stage on the second frame. There's a function on that frame that does various things, one of which is adding a MouseEvent to that button. After moving to the next frame programatically and returning to the first frame the button is now gone from the stage. Because it seems to be gone, there's a null object reference error where the listener is added.
I've verified that:
- There are no other objects on the stage that share the same instance name
- This happens to MovieClips as well
- If I avoid adding the listener the second time via wrapping it in a if nextBtn != null statement, moving back another frame causes a button on that frame to disappear
I'm using Flash CS5 proefessional and trying to do a demonstration. The demonstrationincludes a rope-like lanyard that is quite long and needs to bend at many many points. After successfully applying the bone tool to the object, I tried moving it with Free Transform.However, when I do so, the lanyard suddenly disappears, besides a couple tiny pieces. I didn't delete the previous layer, and I had unioned everything before breaking it apart again to apply the Bone tool.
I am moving movieclips around my stage in relation to the users mouse location. All of my movieclips have the registration point placed in the default top left corner. As an object moves off the stage to the left it suddenly disappears when the registration point reaches the edge of the stage. I would like to see the whole object move off the screen instead of just disappearing when the left corner reaches the edge. I would move the registration point to the right side but I would like the movieclip to be able to move off all sides of the stage (top, bottom, left, right)
Can someone explain why the text of a dynamic text object disappears at runtime when rotated?It happened when I rotated a MovieClip object via actionscript that contained a dynamic text object. So, to test whether this happens all the time, I created a movie clip again with a dynamic text object in it, populated the dynamic text object with a single letter, and rotated it by hand and ran the movie - the letter disappeared.
LOL in a happy, rare accident, I discovered the answer myself. Page 432 of the Flash 8 Actionscript Bible says, "Aside from just allowing text to look the way you want it to look, embedded fonts actually enable your Textfield objects to do some things they wouldn't otherwise do. For example ... a TextField object that uses device fonts (nonembedded fonts) cannot be rotated nor can you change the alpha. But once you embed the font, you can do both of these things."
How: (for dynamic or input text objects) clicking the Embed button in the Property inspector.Note, this will increase the size of your swf. Just embedding the lowercase and uppercase letters from a-z of one font increased the swf filesize from 3-9KB.
I am planning to develop a facebook application which uses iframe concept, it involves some rich UI and image manipulation, I am new to html5 but aware of flex
We have an ASP.NET 4 website that displays flash files. It has come to our attention that these are not fully supported on HTML5, and that they will not play on HTML5 platforms such as the iPad.So, in order to support such platforms, my thinking is that we need to try and display the video using the HTML5 <video> tag if the browser supports HTML5, or fall back to flash if it does not.However, it would seem that this requires our site to provide two video formats (flash format and video such as MP4). That presents problems because A), we need to store multiple video formats on the site, and B) our existing flash data will no longer work.Can anyone recommend information about the best way to support as many platforms as possible. And is there any way to do so without having to support multiple video formats?
I'm thinking of spending a large amount of money on a school which teaches web development with flash being at the core of the courses ......I'm trying to wheigh how long flash will be mainstream because HTML5 is set to take over delivery of video.......should I be concearned with html5 ? Should i take the courses with flash or should I look elsewhere for web devlopment colleges?
I have a flash video(.swf) on my website and i want it to convert into such a format so that it remain available from iphone/ipad. Is there any possible way of doing so? Can i convert it into HTML5? If yes can anyone suggest the process and if no, can anyone suggest any other method?
On this page : there is a flash animation that loads external images, is there a HTML5 way I can take the .swf and perhaps get a head start on trying to make it a HTML5 version?
I currently have a working Brightcove Smart Player implementation, with Flash as the default and an HTML5 fallback where Flash is not supported (read: iOS). I would like to reverse this: prefer HTML5 video, and use Flash as the fallback.Is this possible, and if so, how? Brightcove seems to have entirely missed the point of providing an HTML5 option by using it as the fallback instead of the preferred format.Additionally, although Brightcove announced plans to support WebM as well as H.264 18 months ago, it seems that the HTML5 player still only supports H.264. Firefox can't (and likely will never) support H.264 for patent (and, IMO, ideological) reasons. Firefox is used far too widel
how to easily convert a .SWF file to HTML5? I tried SWIFFy and that doesn't work.
I just downloaded adobe Wallaby and it requires a FLA file. That makes sense, but I don't know how to make the SWF file a FLA one so that I can see if Wallaby will in fact convert it.
I was wondering, if I have a proprietary flash code (e.g: some cool animation which is really just client side stuff, its just example), and about to rewrite it using HTML5, is it possible to hide the code? or at least make it harder to see (unlike right click, view source, then you can just copy paste the code).
I am creating a flash animation which has to be converted into Html 5. The reason for the conversion is the i-pad, so that my animation can run on i-pad or i-phone. I have tried using the WALLABY tool from adobe but haven't get the accurate animations. Though I have saw some adobe videos in which these people are perfectly running their flash animations through this WALLABY tool.