ActionScript 3.0 :: ACTIVATE / DEACTIVATE Event Not Firing When Wmode = Transparent Or Opaque?
Feb 9, 2011
I have found that events Events.ACTIVATE and Events.DEACTIVATE do not fire in the browser when wmode = transparent or when wmode = opaque. This is found when the swf is published with or without fullscreen mode capability.However, the events do fire:In the standalone player, such as opening the publised swf locally ( not using a browser ) In the browser when wmode = window
My Goal:Is to detect Events.ACTIVATE and Events.DEACTIVATE with a swf that has been published with fullscreen capability, where the wmode = opaque. ( I have found that when in fullscreen and wmode = window, mouse interactivity events, such as clicks, do not fire. Mouse interactivity is something I need, which I get with wmode = transparent or opaque. )
FYI:I have found that when wmode = window, the DEACTIVATE event fires both when entering and leaving fullscreen mode. The event ACTIVATE does not fire when entering fullscreen mode or when returning to the browser from fullscreen ( user presses Escape, etc ). In the event the user switched to a different window, the DEACTIVATE event fires. When the user returns to the browser, the ACTIVATE fires in IE but does not fire in Firefox until the user clicks in the swf
Setup:
Flash CS4
Using the Flash published HTML ( wmode = transparent / opaque )
Firefox 3.6.6 ( Windows XP Pro )
IE 8.0.60 ( Windows XP Pro )
View 2 Replies
Similar Posts:
Mar 25, 2011
I 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?
View 1 Replies
Feb 23, 2011
I am working on a portal which is built in flex. I wanted to perform some action based on my applications is in focus or out of focus. So I tried to use two Events for this purpose Event.Activate and Event.Deactivate inside my flex code.
These events fire perfectly in FF 3.0 and above, Safari, Chrome and these events get triggered till IE 7.
But when I switch to IE 8 and above versions with latest flash player plugin 10,2,152,26 the Event.deactivate is not firing, and I am not able to detect whether my Flex application is out of focus.
I tried doing some research around this issue both using Flex Events and Javascript approach using window.onfocusin and window.onfocusout, but still no luck in IE 8 and higher versions with latest Flash plugin 10,2,152,26.
As we have a large number of users viewing this portal in IE 8 with latest flash plugin.
The code is simple and I have pasted below:
package {
import flash.display.*;
import flash.utils.*;
[Code]....
View 3 Replies
Jul 15, 2009
can someone please explain to me why i cant write Russian or France or Hebrew or any other utf char
when i am embadding my swf with opaque wmode??
is there a way to work around it? i have an HTML script with flash inside it and the text filed in the flash wont except any language other then English everything else is gibberish
I am new to AS3 (LAMP dev) i looked everywhere but no decent answer
View 1 Replies
Jul 6, 2010
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]......
View 3 Replies
Mar 1, 2011
I have a site with code like this:
[Code]...
I'd like to change all occurrences of wmode to opaque. Is this easily done via jquery? In the object definition, wmode is set to opaque but in the params it becomes transparent.
View 1 Replies
Jun 13, 2011
When 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 Replies
Jun 29, 2011
I 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 Replies
Nov 24, 2008
What I am looking to do is:
1. Click a button to activate (mcButton).
2. Only be able to "dot" when its over a certain area(mcCanvas).
3. When you click on the area (mcCanvas), then it places new instances of the dots(mcDots) on the canvas where your pointer is. (new instances on every click)
4. Click the button (mcButton) again to deactivate.
I am first trying to create the action with out needing the area (mcCanvas). This is what I have so far:
Code:
startDots = new Object();
startDots.onPress = function() {
var d:Number = this._parent.getNextHighestDepth();
var dup:MovieClip = mcDots.duplicateMovieClip("dup_"+d, d);
attachMovie.dup();
[Code] .....
View 1 Replies
Mar 4, 2011
This 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.
View 1 Replies
Mar 17, 2012
How to dynamically add wmode="opaque" to already displaying embed elements? Without reloading the elements, the embedded content should not lose its state.
Just setting the wmode attribute with javascript doesn't work.
Removing the element and then adding it again makes wmode take effect, but the flash element loses its state, among other problems. E.g if it's a video player its position/playback status resets. So that solution is no good.
Any other way of displaying content over the embedded element is acceptable as well.
(I'm doing this trough a content script in a Chrome extension if that is of any help.)
This is not a duplicated of How to dynamically add wmode=transparent to Youtube embed code? as there the parameter is added to a frame and not directly to the element it self.
View 2 Replies
Oct 25, 2008
I'm trying to set a common task, wich is activate/desactivate interactivity (clickability) of a button. (sometimes clickable, sometimes not). The button is a blue bowl. I use the stopPropagation() of event metod to stop propagation, then my blue bowl is not clickable anymore. (if you erase "stopPropagation()", it becomes clickable) It works.
But I want to change this statut. I've designed a ON/OFF switcher, who set the blue bowl clickability ON/OFF. And it doesn't work. I've tried everything : removeEventListener, an "if" who write "stopPropagation()" or not, but it fails, it stay on the beggining statut. Here's the very simple .fla to show you : [URL] What should be my "ON/OFF switcher" code ?
View 11 Replies
Oct 11, 2010
I m using textarea in flash 10 cs5 as3. The problem is when i try to select a text and go out of stage and leave the mouse then again move mouse on text then selection of text will move with the mouse.
Here is what causes that:
* click somewhere on the text and drag the mouse in order to select the text
* then go out of the swf
* leave the mouse
* now move mouse on textarea
the selection of text will move with the mouse. How to stop this behavior? I tried to implement mouseleave on stage but the problem is i m not able to detect mouseleave event when mouse is pressed and it leaves the stage.
This is because of wmode="opaque" parameter. I found out that it doesn't do this when wmode="window". Is there a solution for this?
View 1 Replies
Oct 28, 2010
im trying to draw opaque pixels on a transparent bitmapdata background
heres the ex:
ActionScript Code:
//TRANSPARENT BACKGROUND
var _pixelColor:uint = 0x9998002E;
var _bmpd:BitmapData = new BitmapData(4, 7, true, 0x00333333);
[Code].....
This example paints 2 arrows, the first is using the transparent background, and the second is using an opaque background on the BitmapData.
What I'm trying to achieve is to paint the pixels of the arrow completely opaque on the transparent background. But as you can see, the pixel is at 99% of its opacity (var _pixelColor:uint = 0x9998002E) How can I paint 100% opaque pixels on a transparent BitmapData "canvas"?
View 1 Replies
Dec 20, 2010
I am trying to detect if a point on an image is on the opaque part of the image or the transparent part. I have a image in a 48X48 area. half the image has transparent pixels. I seem to detect a hit on every part of the image like a bounding box test but I don't want that. For example . I place a 48X48 size image on stage at 0,0. At point 40,20 on the stage the image has transparent pixels but I get it detects a hit?
mm.img.hitTestPoint(40,20,true); //it should give me false
View 1 Replies
Jan 17, 2011
As stated in the title, I am now trying to create a chart using Google visualization: annotated time line. It's very easy to use and the documentation is fairly easy to understand as well. You can find the documentation here.I run into a problem about the wmode of the chart which is a flash object.The default value of the chart's wmode is "window" and it will always overlay all HTML objects in the same page. That is very annoying, because even the jquery block() method doesn't work on it.
When I change the chart's wmode into "opaque" or "transparent" the chart will not overlay HTML objects with higher z-index, but it doesn't recognize the mouse scroll event. It still catch the mouse click event though.I have tried it in the following browser:
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 (.NET CLR 3.5.30729)
Opera/9.80 (Windows NT 5.2; U; en) Presto/2.7.62 Version/11.00
Safari 4.0.5 (531.22.7)
IE 7.0.5730.13
Only the IE can catch the mouse scroll even, the others couldn't recognize it.
View 1 Replies
Aug 27, 2010
I have two png files. I import them using loaders. The images in the png files each have opaque (solid) and transparent parts. I want to use the bitmapdata.hittest method to detect when their opaque parts have collided.
[Code]...
I've been working on this for a couple of days now and nobody seems to know how to do this. Please don't post the examples on google, I've looked through at least the first five pages of results on google and haven't gotten any of them to work. The problem is that none of them provide an example of using this method with loaders, so I'm guessing the reason I can't get it to work is some gimmick associated with them.
View 1 Replies
Jun 8, 2010
I made a webapp where I need html content to popup on top of the swf objects I have. I ended up using the swfobject setting wmode: "transparent" which works fine in all browsers (Chrome, safari, IE) except firefox. In firefox I can't click the flash buttons, i tried to remove wmode=transparent and, of course, I can click any button I need (all browsers)... but this way I can't put my html content on top...
View 2 Replies
Feb 9, 2009
this is a very specific problem; in my AS I have a createTextField (as part of a button) with a onRollOver effect on it. When I set the wmode to transparent the text either disappears or does not change color.
I need the wmode transparent thanks to a BG image in the html.
View 4 Replies
Jan 9, 2008
I searched and searched.Anyway, I have a swf sitting in a layer above html text. It's set to wmode transparent, and looks fine. it stays small until rolled over, then the buttons slid out as expected. However, when the swf buttons are still hiding, the html text in the area that the swf buttons will eventually occupy is not selectable when directly clicked.
View 10 Replies
Feb 1, 2010
I have a flash project that when published with the "Transparent Windowless" Window Mode setting under File, Publish Settings, under the HTML tab... the following Action Script 3 code causes the link to be blocked by the IE 7 and 8 pop-up blocker when I use the "_blank" target and embed the flash movie on my page in Dotnetnuke, however if I use the "_self" target the link opens fine in the same window. If I publish the Flash project using the "Window" Window Mode the link opens in a new window with the "_blank" target without a problem. I need the Transparent setting because I have a menu bar on my page the drops down over the Flash and the menu goes behind the Flash movie unless it is published using the transparent setting.
[Code]...
View 2 Replies
May 13, 2011
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 Replies
Aug 10, 2009
is there anyway to get the External.Interface.call functionality to work in Internet Explorer 7 when you have wmode set to transparent on the flash object in question?I've tried pretty much everything under the sun I can think of without any success after a long time browsing the net for fixes. I should point out that I get the calls to work in chrome and firefox with identical code and that it also seems to work in ie if I dont have wmode set to transparent.Essentially what I want to accomplish is to have a flash dropdown menu set to transparent so it can go down over html content without covering it and then using external.interface to resize the div the flash object is contained in when the mouse goes off or on the menu. In doing so making the html content accessable again when the mouse goes off the menu.
View 8 Replies
Mar 17, 2010
I have several objects that share a single mask. I can see all of them when wmode is set to window but i want the background image on the page to show through the flash and have designed the flash around that. However when I set the wmode to transparent some of the objects don't render at all even though others do and they share the same mask.
View 3 Replies
Aug 13, 2009
I was wondering if there is a way to get the External.Interface.call functionality to work in Internet Explorer 7 when you have wmode set to transparent on the flash object in question?I've tried pretty much everything under the sun I can think of without any success after a long time browsing the net for fixes. I should point out that I get the calls to work in chrome and firefox with identical code and that it also seems to work in ie if I dont have wmode set to transparent.Essentially what I want to accomplish is to have a flash dropdown menu set to transparent so it can go down over html content without covering it and then using external.interface to resize the div the flash object is contained in when the mouse goes off or on the menu. In doing so making the html content accessable again when the mouse goes off the menu.
View 2 Replies
Feb 26, 2010
This has directly affected the last two AS3 projects I had, but I remember it happening with AS2 projects as well The following conditions apply:
- I have a fullscreen site with fluid design (stage resize listeners)
- On the stage there are movieclips with filters (glow, blur, whatever)
- In the browser, my movie is set to 'wmode = transparent'
When I resize my browser, any clips being repositioned that have filters on them just disappear. The only way to stop this from happening is to either a) kill the filters, or b) kill the transparency.
It doesn't matter if I apply the filters manually in the Properties panel or dynamically in AS. I've tried setting 'cache as bitmap', embedding the movieclip in another movieclip, all to no effect.
The only (fairly horrible) solution I've found is to add an ENTER_FRAME event listener to the clips that constantly check for their position until it's been found. That seems to work, but seems like a ridiculous workaround.
View 2 Replies
Dec 12, 2011
I am using lightbox++ to load images outside of flash in order to make that work I have to set wmode=transparent in the object properties But doing this lightens the gray color used in the swf.. Without adding wmode=transparent Screenshot with wmode=transparent
[code]...
View 1 Replies
Dec 22, 2011
The 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]...
View 2 Replies
Jun 18, 2009
Has anyone encountered weirdness with Firefox/Vista and wmode setting of transparent? It is the strangest thing, when I turn on wmode of transparent, my swf breaks! The actual swf acts as though the AS3 is broken (everything fails, buttons stop working, external assets do not load)... But when I turn off wmode of transparent then everything works fine.I have tried using a coulple different embed techiniques (one being swfobject) and both fail when using wmode of transparent, and only in FF/vista.
View 3 Replies
Mar 26, 2010
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 Replies