-
My SWF Doesn't play on Macs?
Hi,
My SWF plays ok for my PC (Firefox Flash PLayer 10.0.2) but not on two other machines (which happen to be Macs - one of which was using Firefox with player 10.0.12).
http://www.chrisjones.org.uk/daryl/nhs/?swf=003_map
It's a kind-of iPod shape with a map in the display which should enlarge on mouse-over and move around in the space.
Can you report whether it works for you and can anyone suggest what's going wrong?
AS 3.0
On stage there is _map and _mask. This code is in the first frame (on root) then it loops over the last three frames with no further code:
Code:
// initialise map
_map.mask=_mask;
_map.scaleX=0.4;
_map.scaleY=0.4;
_map.scaleTargetX=0.4;
_map.scaleTargetY=0.4;
_map.originalX = _mask.x - ( 0.5 * ( (_map.width - _mask.width ) ) );
_map.originalY = _mask.y - ( 0.5 * ( (_map.height - _mask.height) ) );
_map.x=_map.originalX;
_map.y=_map.originalY;
// map enter frame
_map.addEventListener(Event.ENTER_FRAME,moveMap);
function moveMap(evt:Event):void {
trace("moveMap");
//trace("mouseX = " + _map.mouseX);
//trace("mouseY = " + _map.mouseY);
_map.scaleX = ((evt.target.scaleTargetX + _map.scaleX) / 2) ;
_map.scaleY = ((evt.target.scaleTargetY + _map.scaleY) / 2) ;
_map.x = ((evt.target.targetX + _map.x) / 2) ;
_map.y = ((evt.target.targetY + _map.y) / 2) ;
}
// mouse events
_map.addEventListener(MouseEvent.MOUSE_OVER,overMap);
function overMap(evt:Event):void {
trace("overMap");
_map.addEventListener(Event.ENTER_FRAME,updateMapTargets);
_map.scaleTargetX=0.6;
_map.scaleTargetY=0.6;
}
function updateMapTargets(evt:Event):void {
trace("updateMapTargets");
evt.target.targetX =_mask.x - ( (_mask.mouseX ) / (_mask.width) ) * ( (_map.width - _mask.width) );
evt.target.targetY =_mask.y - ( (_mask.mouseY ) / (_mask.height) ) * ( (_map.height - _mask.height) );
}
_map.addEventListener(MouseEvent.MOUSE_OUT,outMap);
function outMap(evt:MouseEvent):void {
trace("outMap");
_map.removeEventListener(Event.ENTER_FRAME,updateMapTargets);
_map.scaleTargetX=0.4;
_map.scaleTargetY=0.4;
_map.targetX = _map.originalX;
_map.targetY = _map.originalY;
}
Thanks for any help you can be!
FoL
-
supervillain
It doesn't work for me, and I'm using Firefox 3.0.10 and WIN 10,0,12,36 debugger version.
I saw a grey square. When I went away from the site, I got a glimpse of a street map, it seems. But not while there.
-
Senior Member
I'm guessing this has something to do with paths and remote vs local access, not a mac specific issue.
Sam
-
It didn't work for me. I'm using firefox on Mac...
At first, it didn't work and just flashed the map then went away, then I tried again, refreshed it, and shook my mouse over the spot where the map was, and then the map loaded and worked fine without going away. Tried it again, waved my mouse over the spot where the map is when it was loading, then it worked fine for me again. If I didn't have the mouse over it, it disappeared. I think it's a path issue.
-
Filmmaker
doesnt work for me and i'm on pc using firefox...got a glimpse of the map
Never take life too seriously. Nobody makes it out alive anyways. Film Portfolio
-
Seems to work for me. I have the newest version of Firefox (3.5.x) and Flash Player. I'm using Windows XP Pro. on an old Dell Optiplex GX270. That's not 64bit, in case you're wondering. Haha.
I had a similar problem with a game project after I added a lot to it, the employer claimed it wasn't working after I added a bunch of high res images into a movieclip. I didn't change much of the code, either. It's just some weird oddity I had to find a workaround for. Now, I use listener management classes for all my event listeners past the loading area. It makes it easier to manage big projects and garbage collection. Yes, you actually have to perform garbage collection yourself in some cases. Suffice to say, my projects always work for me, especially in the test environment ("Test Movie" and "Debug Movie"), so I have no idea why my projects would hang on other systems. It's just weird... and only ever happened once.
This is a shot at nothing, but why are you using underscores in your instance names? I only use underscores to add spacing between words.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|