Actionscript 3 :: A Flash Rollovers Don't Fire In Firefox?
Feb 6, 2012latest Fp 11.1.102.55
Firefox v 3.5.2
OSX
My rollover events are not firing.Every other browser works fine
latest Fp 11.1.102.55
Firefox v 3.5.2
OSX
My rollover events are not firing.Every other browser works fine
works perfect on my macbook pro (safari, firefox, and opera) but when I view the site on Vmare Fusion Windows XP and use IE and FireFox the pages don't load... I don't know what to make of this. Has anyone hear or seen anything like this happen before? BTW the website was created in Adobe Flash CS4/ AS 3.0 and published using Flash Player 10.
View 2 RepliesI'm a Flash novice and I can't seem to get this menu I'm working on to function just right.
[URL]
The problem I'm having is when you mouse out from one diamond to another, the menu doesn't always go back to normal. I guess it's because of the way my movie clips are positioned... If one clip on top of the other, the rollOut function doesn't work on the bottom element. If that makes sense. Probably best to just download my Flash file to see how it's set up:
[URL]
how to set this menu up so it always fades back to normal when a diamond has been moused out? I've tried setting up rollOut functions on different buttons and can't get it to work...
I have been trying to get this site to work with rollovers and am frazzled. I finally was able to figure out how to make rollovers in flash, however, they roll to the right, which is where my movie loads into.URL...Is there a different code I should/can use to make it so that the links/rollovers appear on top of the movie that I'm loading in??
View 1 RepliesI have rollover JS/CSS menus that drop down over a Flash feature with several rollover behaviors. When I'm in one of the menu divs overtop, the Flash rollover behaviors behind the layer I'm on keep firing. Is there a way to tell Flash not to react while I'm moused over a non-Flash layer on top?
UPDATE: This seems to only happen on the Mac (FF & Safari) but not the PC.
I have been racking my brain trying to come up with the best way to make a flash movie that can interact with html links on a page. Basically there is a list of products (about 20) that are currently just html links. On the home page, the client has asked for a flash movie. When you roll over product items, the flash movie should jump to an animation relating to that product. These animations could all be built on the timeline of one flash movie, or could be multiple .swfs.
So far the best idea I can come up with is to have multiple swfs. I could potentially position each one absolutely so that they stack on top of each other. Then use CSS or javascript to change the stacking order when you rollover the links.
- I have used javascript to make disjointed image rollovers, is it possible to mouseover a link and then swap a swf file?
- if you mouseover the link, can javascript send a variable to flash, and then have actionscript detect that variable and send the movie to the appropriate keyframe?
- Is it possible to achieve the effect I am looking for if you click the links instead of rollover them?
I am using flash cs3, so i can use actionscript 2 or 3. What I am trying to avoid is creating the whole page in flash, as it would be inconsistent with the rest of the site.
I'm trying to create flash rollovers for buttons that play the full rollover animation even if you roll of it, and if you stay on it if will play once and not keep repeating. The rollover animation is only short, about 2 seconds, but which ever way I try it I can't get it to play the full clip if you roll off, either that or it will play the full clip but keep repeating if you keep the mouse on it.
At the moment it is just a movieclip in a rollover keyframe of a button.This has stumped me for years. Other sites seem to do it fine (off the top of my head the 4 menu rollovers at the bottom of http:[url].... do it - if you rollover each one left to right in one go they do a kind of Mexican wave) but I just can't see a way of doing it.
I'm very new to Flash CS3 and have set myself the task of creating a flash based website, with the same functionality as [URL] creating the drop down menu - I believe I should be exploring rollovers/rollouts and also applying easing effects, however I have no idea what kind of actionscript to use.
View 1 Replieswhen i saw this website. I learn some techniques but i really love that fire effect. how to do that?Or any other program. The site:[URL]..
View 1 RepliesHow would I go about as to addEventListener for a array object. I'm trying to avoid running a timer every x milliseconds to check for new elements in array object, rather trying to make a event fire when new elements are detected to process them and remove them. Is it possible with Arrays? maybe ArrayCollections? either is fine.
View 4 RepliesI am adding the same image (play button) to a movie clip those images later when pressed toggle states and play a video.What I am trying to accomplish is automatically toggle the default image since that video is playing automatically.[code]So this does the same thing as click the first image but it happens automatically.[code]
View 1 RepliesI use a LocalConnection object to prevent being able to run our SWF multiple times on the same computer. The problem is that this connection can remain in place even when the SWF which called it closes.
I have:
1) An External Interface call to dispose() all HTML pages call dispose() on pageunload which closes the connection.... But this is unreliable because if the browser crashes, you are locked out of the SWF
2) I tried some crazy try/catch. If SWF A exists and SWF B tries to be initialised.... SWFB cannot connect so it sends a function to SWFA to dispose(). This should free the connection for SWFB to connect to? But this does not work well either because sometimes a localconnection can be in use but calling "dipose()" throws an error, often because the LocalConnection swf which should be available is already gone.
What this all comes down to, is that I need a way to detect when the player closes, so i can close the localconnection.
stage.addEventListener(Event.EXIT, onExit);
function onExit(e:Event): void
{
if (localconnection)
[code]....
I've set up a function to pause the sound in an mp3 player whenever certain things are clicked on the page, using ExternalInterface, but I'm having a problem in IE.The setup is this: I have a video page that calls up a list of YouTube videos using RSS.he most recent video is displayed on the page in a div called "display". Then all the rest of the videos in the feed are displayed as thumbnails and links...If you click one of them, then the main 'display' video is replaced and it starts playing. All of that works fine.hat I want is for the mp3 player on the page to pause the music whenever a video is started.The ExternalInterface function works properly. Whenever one of the LINKS is clicked, the mp3 player stops and the video starts, etc.
The problem is that I also want it to stop when the MAIN video is clicked. Obviously, since this is an external video loaded from YouTube, I can't access the FLA to add its own ExternalAccess code.I've tried adding an ID to the video object and then using it as the selector in jQuery to call the stopMovie function...no go. I've tried adding a class to it, and then calling the stopMovie function when the class is clicked. I've tried putting the click function on the div that the video loads into...nothing works. If I remove the main video and just have an empty div, then click the div, the mp3 player stops...but if I load the video into the div and click it, nothing happens (in IE...it DOES work in FF).The Actionscript:
import flash.external.ExternalInterface;
ExternalInterface.addCallback("stopMovie", pauseSound);
function pauseSound(str:String):void {
[code].....
I have an instance of URLLoader that works perfectly on my machine and a number of other machines, but in a few rare cases, regardless of the browser or the flash player version, URLLoader never comes back with any of my callbacks and so the load() method is fired off into the stratosphere and nothing happens beyond that.Curious if anyone else has encountered this and if so how they got around it.[EDIT]Ok... never mind on the "no callbacks are fired". In fact it is firing the SecurityError.SECURITY_ERROR. However, I'm at a total loss as to why it would only fire this on some machines and not on others. Does it have something to do with the user's admin privileges or the browser's security settings? The error is 2170, phaseTwo (whatever that means)
View 3 RepliesI have a bunch of flv video files stored on a media server, and I am trying to get them to launch in the flash player. I have downloaded the flv file into temporary storage, and try passing it using an intent. This is what my code looks like (from what I have seen on the net):
try {
URL urlLink = new URL("[URL]");
// Serve the file
InputStream in = urlLink.openStream();
FileOutputStream fos = new FileOutputStream("/sdcard/tempFlash.flv");
byte[] buf = new byte[4 * 1024]; // 4K buffer
[Code] .....
I have the following code. The problem is that neither SELECT nor CANCEL event never fired after i choose a file through browse dialog.
I have MacOS 10.6 and FlashPlayer 10.
[Code]...
When someone "click and holds" I want to fire off function over and over, say, once every 100ms while the mouse is clicked. Instead of MouseEvent.CLICK I would look for MouseEvent.MOUSE_DOWN and then start a timer on that event function that calls another function every 100ms. Then, on MouseEvent.MOUSE_UP I would stop the timer. Am I on the right track? Will I be able to get updated X and Y coordinates while the mousedown event is firing?
View 3 RepliesI'm using Javascript's mouse event to pass information about mouse position to flash and show the specific animation frame depending on mouse position.
The problem is, when mouse is over flash object, it doesn't fire javascript event anymore. I've tested it on Chrome and it seems to be working, but Firefox doesn't want to cooperate.
My flash object is located in the middle of website and has transparent background. It has to stay this way. Also, I'd rather not move the action to the ActionScript for two reasons:
Website's width is not constant (different browsers for example) so I'd have to push viewport's width to the flash too, which will complicate the script, also mouseenter events etc. I don't know AS very well.
The code: (I'm using jQuery here because it's also used somewhere else on the page, previous mockup used plain JS)
function viewport()
{
var e = window
[Code]......
I have a flash banner that rotate 6 images(slides). and it includes 6 buttons to navigate in to each image. Also images are rotates automatically every 10sec.But these buttons are not clickable in FF/Chrome, but work fine in IE with wmode: transparent. Also these buttons work fine in all browsers with wmode: opaque.Also there is drop down menu on top of the flash movie(a separate menu not included in the flash). In wmode: opaque dropdown part of the menu goes behind the Flash. In wmode: transparent that want happen.
View 1 RepliesIm creating a game, and I need to create a realistic flame or fire, like a torch, with fluid movement of thge flame and that moves in a natural way.
View 3 RepliesI don't mind if any answers are AS2 or AS3 solutions, just curious really - seems weird that I couldn't find out how to do this really quickly.
View 2 RepliesWith the Google Maps Flash API, I want to add an event listener which fires when the Marker is added to the Map using
map.addOverlay();
Event.ADDED_TO_STAGE
is not fired, though it seems logical. What are the alternatives?
I have a bbq grill animated in flash that opens and closes on rollover and rollout. When the grill opens there are hamburgers and hotdogs. When you rollover the hamburgers and hotdogs a hover menu opens but this causes the grill lid to close because the hover menu is being triggered by the rollover from another button.
View 4 RepliesI have an input text field with a movie clip behind it. When you roll over the movie clip it scales up, when you roll out, it scales down.problem is, rolling over the textfield triggers rollOut. which i dont want.
View 7 RepliesSo I'm actually doing something very simple here, but it's my first attempt at tweening things through code rather than on the timeline, so I'm pretty new at this. Basically I have a small image gallery, all the thumbnails are butted up against one another in a grid. When you roll over an image, the title should tween to reveal itself below the image. I have it set up so that both the image and title are in one movie clip, with the image on the top layer.
My code does work when you move your mouse slowly, however when you roll over and out really fast, the whole thing freaks out a little, and the titles don't tween back properly, they actually stay exposed even though they shouldn't. It looks like they kind of tween back, then pop out again, with out a tween. I linked to my current swf file so you can see for yourself. [URL].
Here is an example of my code which is iterated for every image.
MC.addEventListener(MouseEvent.ROLL_OVER,onMC);
MC.addEventListener(MouseEvent.ROLL_OUT,offMC);
var myTween:Tween;
MC.buttonMode = true;
function onMC(event:MouseEvent):void{
myTween = new Tween (MC.title,"y",Strong.easeOut,94.5,138,.65,true);
} function offMC(event:MouseEvent):void{
myTween = new Tween (MC.title,"y",Strong.easeIn,138,94.5,.35,true);
}
I currently have a flash file that has a whole bunch of buttons that are MC's with rollover and out states that open up a PDF when clicked.For each number (12-33) I have the MC with a new instance name and I am calling them with the following code:[code]So for each button I have this huge mess of code. There has to be a cleaner and more efficient way of doing this. Can you guys suggest anything?
View 7 RepliesHere is what i have
[URL]
As you can see the head moves to 4 different levels...
On the left in each on of those levels i want there to button one with there own rollovers
I would make them all one... but i want the head to move regardless of whether you're over the button...
PROBLEM: when you go over the button the roll over to move the head stops working and the head moves back to the original position
So how do define a overlapping hit areas
I am curious on how I can add springs into a basic motion tween for something like menus.
I checked out Kirupa's small tutorial but that is a constant, not something like rollovers. The basic idea is much like lots of other sites, I just want to add a little less ridged feedback from my menus.
Is it possible to have 2 images one for the menu and one for rollovers and have actionscript determine which buttons I rollover? For example - I have a menu that I created in a graphics program with a background color, 7 buttons (HOME, ABOUT, etc) with text, and separators. I also have a rollover graphic with a different background color with the same 7 buttons with text, and separators.
Is it possible with actionscript, say I rollover HOME and it displays the rollover graphic but only over HOME and the same for the other buttons? I thought it would be easier using two images instead of separating the buttons etc.
Why are my dynamic RollOvers and RollOuts getting stuck?If you want to download the files go to URL...[code]
View 1 Replies