Actionscript 3 :: Cover A Flash With A Div When Wmode Is 'gpu'?
Feb 13, 2010i know this can be done by changing wmode to "transparent or opaque". But is there any way to show the div over the flash file using wmode "gpu" ..
View 1 Repliesi know this can be done by changing wmode to "transparent or opaque". But is there any way to show the div over the flash file using wmode "gpu" ..
View 1 RepliesI have a Youtube video on my homepage, and now I need a modal to display on certain events.For some reason, even when adding <param name="wmode" value="transparent"> to the Flash object, it still covers the HTML elements (with higher z-index too).I've got it on JSfiddle.I figured maybe an iframe could solve this, but that would require me to make a new page just to put the video on.
View 2 RepliesI have a customized drag event that works great for most things:
[Code]...
The issue is that when I use this code with wmode=transparent or wmode=opaque the MOUSE_LEAVE event is not detected when the MOUSE_UP event occurs off the stage. Is there a way to detect the MOUSE_LEAVE event when wmode is transparent or opaque? OR Is there a way to detect that the wmode is set to transparent or opaque so that a work-around may be implemented?
I have this world map (.swf file) that I want on my home page(black background). It's up and working fine, but it flashes a white blank map for about 2 seconds when it first loads and then it goes away. It looks very ugly on a black background and gives off a sense of "cheapness". Anyway, it has got to go. I purchased the world map and they don't offer access to the original .fla file. So basically I want to know how to cover up the first few seconds of the video with black and then have the black cover disappear and let the flash file do its thing.
View 1 RepliesI'm making a flash game for practice and I have my stage set up so there are 9 boxes. When the game is started, one of the boxes is randomized as the one with the start underneath, if you pick the box with the star underneath, you win.
The randomizing code is
var star = 1 + Math.Round(Math.Random()*8.0)//generate a number between 1 and 9
What i dont know is how to attach this code so that it assigns the star to one of my 9 boxes made as buttons. How can I hide the star underneath the box as a cover.
I'm trying to embed this player to a web page:
[URL]
It's working fine, but I would like to remove the album cover from the player so it looks like on this page:
[URL] (The gray player in the right column, not the player in the center of the page)
I looked at the documentation and also the source of this page
I have downloaded free version of itunesViewer and working on it. I found it was extensively using onEnterFrame which is taking lots of CPU, slowing the system.there's function 'controlTheObject' which contains onEnterFrame code. eliminate the use of onEnterFrame. Can there be other alternatives??
View 0 RepliesI'm looking to slideshow or flash my magazine front and back cover and some interior pages on my website. So they will show the different pages back and forth.
View 1 RepliesI have an AD which is basically a flash file inside an IFRAME. Unfortunately, I cannot control the wmode of the flash file.
Is there any way in which I can place the div on top of the flash?
UPDATE: How does Wibiya (wibiya.com) do it then?
how I can make a 95% black MC cover everything on the website page (full screen onResize) so I can present an externally loaded image by itself? I have seen this done before in a few flash portfolio websites but I can't seem to find the solution on any previous thread. I may have missed some threads. is there an actionscript that can do all of the above without having to resize an MC?
View 4 RepliesHere's the thing, I'm making a flash game that uses some pixel techniques like copypixels, bitmapdata, etc.
Im planning to offer the game to FGL (Flash Game License) and I read that they doesn't not allow wmode, and many other portals do the same.
is my game taking advantage of wmode=gpu?.. how can I run my swf file and disable wmode for sure?, I just want to know if my game will run smothly without that wmode enabled.
How do I enforce Flash's wmode=window on Mac? This mode should make Flash reside on a layer higher than normal HTML elements and have better performance. It's working fine on Windows. On Mac, there's strange results. Chrome on Mac will allow HTML elements to cover only non-video elements in Flash. On the other hand, Firefox on Mac will let HTML elements cover anything in Flash. I don't want to allow any HTML elements to cover anything in Flash on Mac.
I'm using SWFObject to embed my Flash.
swfobject.embedSWF(
'flash/player_20110128.swf',
'flashPlayer',
[Code].....
I'm using a modal window on a client's site where we have no access to the content. The problem is that he has some flash on the page and the wmode for these is not set to transparent.
Is there a possibility to force their flash from our javascript to have this parameter added?
I need to embed some flash games but I'm disallowed to use wmode=transparent due to performance issues & sideFX. I need to place a DIV above the SWF, but without the wmode the SWF is always on top. Hiding the swf when div is visible resets the flash.
View 1 Repliesflash mask working - transparency (wmode) is not
[Code].....
im trying to fix the flash overlap using regular expressions. here is an example of markup im trying to convert to my needs
<object width="440" height="300" data=
"http://www.youtube.com/v/dMH0bHeiRNg&color1=0xb1b1b1&color2=0xd0d0d0&hl=en_US&feature=player_embedded&fs=1"
[code]......
I'm building a Flash video player that uses the new StageVideo API. StageVideo requires window mode (wmode) to be set to "direct". Unfortunately, setting wmode to direct prevents the express install dialog from popping up if a user has a version of Flash Player older than 10.2.How can I set my wmode to direct to get StageVideo to work but also ensure the Express Installer pops up for users with older Flash Players?
View 2 RepliesWhen setting wmode to "opaque" (or transparent) my flash app becomes slow on Facebook. I can particularly notice it when moving the mouse around (even on a tiny area of the screen), if I don't move the mouse then the slowdown doesn't seem to happen. Maybe its because its sending all events to facebook too?
View 1 RepliesI have a html/flex app loaded in an iframe, and wmode is set to 'opaque'. I have 'mousemove' listener attached to the document of flex app and document of the parent. Once I mousedown in the flex part of iframe and move my mouse around, i can see the logs from the iframe. However, when I move the mouse around in the parent, i dont see logs from the parent. But, if I mousedown on the html part of the iframe, i can see logs from both iframe and parent. Same sort of bug is reported in Firefox 4/5, which breaks html part of it. Visit [URL]
View 1 RepliesThe newest version of chrome seems to have killed my transparent backgrounds on my SWF. On a website, I use flash to have a transparent video on top of the elements. However, the background is now black under the newest versions of Chrome.
[Code]...
I have a flash banner and css menu to use.I tried flash with wmode as transparent for flash banner which makes the css menu to come over the flash banner.but the button which is there in flash is not working in IE 7 and it's lower version.
View 1 RepliesThis would be for a Flash game within Facebook. If you have a Flash object in IE, when you use the up and down arrow keys it causes the entire browser to scroll. IF you have a game that requires the up and down arrows, this makes it very frustrating to play and just not acceptable. The wmode is set to opaque and needs to be that way. I understand keeping it at the default would 'fix' this problem, but then the game wouldn't work. Some people say "don't use IE". That would be nice, but that also is not an option.
The part that really stumps me, is that it was working just a few days ago. The solution that worked the first time was to set the container that the Flash object was embedded in with overflow set to auto. But the honeymoon only lasted so long. I'm not sure if Facebook made an API change that might break this. I reverted code that could have possibly the overflow trick not work. No luck, didn't work. We have also tried to put a text field to grab the focus of the Flash game in AS3, but that trick did not work either. We have tried to use JS in more than one way, but those were dead ends. I don't have an example page I can show at this point as the game has yet to be released to the general public.
I'm absolutely stuck at this point and haven't found a solution anywhere. Other people have had this problem but nobody seems to have an answer... if there even is one. The Flash object is losing focus as soon as you push the arrow keys, and no matter what I do I just can't seem to get it to grab focus.
We are writing app for facebook. It's a game written in flash and embeded with wmode window.We get problem with Firefox 6, but only on Windows XP. When user invoke some facebook dialog (for example: pay dialog or buying more credits dialog) flash disappears. This same happens when user click on notifications (globe icon in top facebook menu) and hold it for a while (however this is not so important).After flash disappears it it still in DOM as <object>.
View 1 RepliesMy Flash app calls:
Facebook.ui("pay.prompt", data, onPayCallback, "iframe");
which works correctly on all browsers, until a recent change in the embedding of the swf file. I now use wmode="window" which gives much better performance in IE (previously I used "opaque").When the facebook credits popup appears, the game is now hidden as expected. It returns correctly when the popup is closed. However, on IE (version 9, other versions are untested) the callback is never called.
I'm working on a page that has some ads on it. One of them loads in an ad with wmode=window.I don't have the ability to change that flash code. I need to put a modal box on top of that flash element, but every combination of using z-indexes and iframe shims has failed (both manually and using bgiframe). Is there a way to place html content on top of a flash element with wmode=window? I'm testing this in chrome so far.
View 2 RepliesI wasn't to sure where to post this exactly since I'm not sure if this is a actionscript or some other problem.Ok here it goes. The problem is this if in the embed in the HTML document I put in wmode="transparent" for the flash movie the parameter I am passing to the flash movie never gets passed ... I don't see how wmode can do such a thing but then again this is really my first time working with wmode in general.I tested it numerous times to make sure it really does come down to wmode and it does.Here is the code I currently have I hope there is someone out there that could explain to me why it's doing this.
Code:
<param name="movie" value="header.swf?playMovie=stop" />
<param name=quality value=high />
<embed src="header.swf?playMovie=stop"[code]........
Update: I have isolated the problem to a single browser which is Firefox. I've tested it with IE8, Safari and Chrome and they all work without any issues except for Firefox.
We know set wmode to transparent in flash player can reveal pulldown menu behind the flash player but this seems not always true. Take a look at this , when the video starts to play, it still block the pulldown menu. I've used browser debug tool to check the code of that video player, it did set wmode to transparent
View 1 RepliesI'd just like to point out my experience to help others. I know this isn't new, but it got me, so I suspect it'll get someone else too. I'm using flash 8 and AS2 to author a navigation menu and have roll over functions and roll out functions with if statements since it's a multi level menu and I was getting all kinds of strange behaviours with button behaviours not working correctly when testing in firefox. Turns out it WAS something to do with firefox's handling of the transparent WMODE. I'm using SWFObject. After disabling WMODE transparent everything works as it should. Not saying my programming skills are right, but at least everything's getting compiled correctly and the results are consistent enough to test and make progress.
View 0 RepliesI would want to catch click with javascript on a embed flash object on my page. I used wmode="opaque" (tried transparent too) and put a low z-index. I tried catching click on a div, on the object element and on the embed element. On FF (5), all three of them work. On IE (7 & 8), none of them work. Here's my code (I removed some attribute for flash like type or classid) :
[Code]...
Why are text fields not catching events properly in Safari when wmode is transparent (no problems in ie/ff/chrome)? The only workarounds I've found involve sending html form field events to flash through an external interface (eg. overlaying html form on flash).
Edit: Swfobject embed code...
<script>
var swfVersionStr = "10.2.0";
var xiSwfUrlStr = "playerProductInstall.swf";
var flashvars = {};
[Code].....