ActionScript 3.0 :: Swf Not Getting Focus In Opera
Jul 12, 2011
I did embed an swf file in html.The file is working fine in all browsers except opera(all versions).I am facing problem that flash didn't get focus when application initially load.User has to click on page.Then the application works fine.
when i have this line active(the red one) it gives me automatic focus, so no clicking to be able to detect key input so i got that going for me which is nice BUT when i have it active(not commented out) i get this big yellow line which goes away when i click it(seeBelow)
I created a flash menu that highlight the current page button reading a variable coming from HTML. I've set a variable in the OBJECT and EMBED tag using the query string syntax, but I get identical results using flashvars. This menu is working perfectly in firefox, but it doesn't in opera or IE 6. In opera it only works if all buttons are vector objects (?!?!?!?):it doen't work if I import a PNG in the buttons. I've put an IF statement (I already tried to use the SWITCH statement with same results) on the very first frame in the menu movie.
I am trying to add a video to this site: http:[url]....The video plays in Firefox, IE, and Google Chrome.It does not play for me in Safari of Opera. When I preview the page from Dreamweaver in Safari or Opera, it works. When I load it up on the server, and check it on the web in those browsers, it doesn't.
ok, not sure how simple this is, but ive made a gallery, loosely based on the kirupa one. basically, I have a border that resizes, then the image shows in it. This all works fine in IE, but when it is viewed in FF and Opera, the box does not resize, it goes all small. Hard to explain lol. here are some links; the actual flash page: [URL] the files [URL] Here is the code in question for the resizing:
[URL] Enclosed is a test zip folder called "trouble_test.zip". Inside there is a HTML file called "main". Open it in your browser and follow the steps that I have indicated. My problem is that all the steps work offline/on local computer when using Firefox, Opera, Chrome and IE but when online then they work inside Chrome and Safari browser only. What I mean is that Step 3 fails inside Opera and Firefox when online. File XL_11.swf does not load into XL(MC) which is inside the main.swf file As it works inside Chrome/IE so I assume it can't be a file path/destination problem. I assume it is the code on my "XL" button that could be the problem, but why does it work in Chrome and Opera online + in all 4 browsers when offline?
Please take a look at the attached folder to make sense of what I am will type now[URL]..Enclosed is a test zip folder called "trouble_test.zip". Inside there is a HTML file called "main". Open it in your browser and follow the steps that I have indicated.
My problem is that all the steps work offline/on local computer when using Firefox, Opera, Chrome and IE but when online then they work inside Chrome and Safari browser only. What I mean is that Step 3 fails inside Opera and Firefox when online. File XL_11.swf does not load into XL(MC) which is inside the main.swf file As it works inside Chrome/IE so I assume it can't be a file path/destination problem. I assume it is the code on my "XL" button that could be the problem, but why does it work in Chrome and Opera online + in all 4 browsers when offline? I am completely lost. Please take a look as it will take only 2 minutes for anyone who understands AS2
Does anyone have any idea or see what I'm seeing when I view this site using opera as a browser (mac), works fine in all others so far:It is the first site I've made using the stage.width scaling, I think it's something to do with that maybe?
I am using an FLV Player which provides a standard fullscreen button. Now when I test the file onto IE and firefox, switching between full screen and normal screen modes works perfectly. However, with Opera and Safari, it turns fullscreen alright without any problems, but then the cursor turns into a hand clicking icon, and you cannot click on anything .. nothing is interactive on the screen (except the ESC button which will take you back to normal mode). Even when you move your cursor over the buttons, the lightcolors (hover colors) do not show.
I'm trying to add mediaelement.js to my site to present a single player for any MP3 link on a particular page. The design is working fine for IE 9 and Chrome 11 (which have HTML5 MP3 support), but it has an issue with the flash fallback on Opera 11 and FireFox 4. Clicking any MP3 link on the page uses the .setSrc() method of media element player to change the source of the player, but in Opera and FF, the first time this method is called, it returns error "this.media.setSrc is not a function". Any call to the function after that works fine.
Another issue is after the element containing the player is hidden "display:none" and then displayed again, calling the .pause() function will produce error "this.pluginApi.pauseMedia is not a function". After that error is thrown, subsequent calls work fine until the element is hidden and displayed again.
I have reviewed my code several times and maybe I am missing something.Basically,I have a separate loader class that I want to communicate to a php file located in the same directory.That php file forms an xml markup within and returns the location of a background image from the database. As you can see from the code, I have event listeners for progress, loaded, and IOerror.This works fine in IE and Chrome. However in FF and Opera, my custom progress bar shows 100%, but the info bar shows "IO Error" (which is kind of a visible trace statement on the swf for informational purposes) and it does not go anywhere. Stuck.
This is the swf's location: [url].... PHPGetBackground class: Code: Select allpackage com.hexonite.loader {[code].........
so im almost finished my first site! very excited. its for my dads business, hes a screening contractor. actually i doubt he will get any business out of it, even once we get our real domain name and everything because i don't even know how to get Google to like it. its OK though, its mainly just a practice site for me anyways before i make a resume site for myself. anyways, it consists of 3 divs, an html content area, and a flash banner and a flash menu, which stretch depending on the window size to keep their aspect ratio. everything works exactly as planned in Firefox, chrome, and pure flash player. but in IE, safari and opera, the size and position of things are way messed up! (only really care about IE). the edges of dynamic text are slightly to the left or right and hanging behind things because of it, same with some movie clips. and when i didn't want things to appear on the stage i set their x position to be the length of the stage, BUT IN IE U CAN SEE THE EDGE!
I have audio placed into a controller on a page, however when i load different browsers the sound files are either no even seen by the browser or they dont work. Ive converted the files to wav. which apparently works universally for IE,Opera, Firefox and Chrome, however changing the file format does not change this situation. I know it has something to do with HTML audio tag or something but I am still unsure
I've created a popup navigation menu at: [URL] In firefox and internet explorer everything works fine - the menu pops over the flash. But in Chrome, Safari and Opera the menu is behind the flash.
I have a problem showing up a SWF file (Flash) in an ASP MVC file.I have problems adjusting the height to 100%. If this is showed in Firefox or Opera the result is the picture you see below (everything works fine under Chrome and IE).[code]
Video broadcast using VLC to flv file. I am using the NetConnection, NetStream and Video to play it in a flash. In Chrome and IE everything works fine, but in Firefox and Opera NetStream often dispatch event NET_STATUS with info.code = NetStream.Buffer.Flush and NetStream.Play.Stop and video is a slowdown.
I have run into a problem with the URLLoader that I havent encountered before. I have reviewed my code several times and maybe I am missing something.
Basically, I have a separate loader class that I want to communicate to a php file located in the same directory. That php file forms an xml markup within and returns the location of a background image from the database. As you can see from the code, I have event listeners for progress, loaded, and IOerror.
This works fine in IE and Chrome. However in FF and Opera, my custom progress bar shows 100%, but the info bar shows "IO Error" (which is kind of a visible trace statement on the swf for informational purposes) and it does not go anywhere.
I've created a Flex website that plays a video using the Spark VideoDisplay component. When selected, the VideoDisplay loads in the PopUpManager.
This works fine in all the browsers, except Google Chrome take significantly longer to start playing, during which the CPU usage peaks, then goes back down once video starts playing.
I've traced the player states it goes through and they are as follows:
Loading ready (hangs for ages with high cpu) buffering playing (immediately after buffering, CPU usage goes down, video plays smoothly)
What could be causing this to temporarily hang for so much longer in Chrome? I thought I could expect the same functionality and behaviour throughout all the browsers, as Flash is simply a plugin that runs as a separate process?
Edit: It seems that it's the same in Opera too. Is there any commonality between the two that would explain this behaviour?
I have a piece of Flash on an HTML page that when you hover over it, it expands out to reveal more information.There are text links that it expands over, however in everything but IE, when it's not expanded those links are still covered by the Flash making them unclickable.I have the Flash piece in a separate DIV wmode set to transparent.
I have a game where you can move a character around on a screen, very simple. My problem is, I have to click on the swf object in my browser before it starts to recognize my input keys. If there a way to set set to my swf object either in html or the swf itself /w as3?
This is the browser code I keep finding on googing:
When I publish a Flash CS4 Pro / AS3 game to an SWF file and uploads it to my webserver, I have to click the screen before I can use keyboard events.
Is there a way to force a focus onto the "swf stage" when loading the file in the browser, or do I have to publish an html file that controls the swf file to do that?[url]...
Upon entering the screen, I set the focus to the first field, a combobox, and after making a selection I want to tab to the next field, a textfield, but I can't tab out of the combobox. I can use the mouse to click on the textfield and give it focus but I'd rather tab. I also tried to programatically give focus to the textfield (from the function associated with the combox's listener) without success.
does anyone know how to 'focus' on a flash movie? for example, my flash webpage has a button that when clicked opens a flash movie. i want the main site to darken and the flash movie to be in front in focus.url...