[COLOR=Navy][COLOR=Green]RESOLVED: Seems to be Dimensions in Publish Settings. I was trying to use ‘Percent’ and it didn’t work. As soon as I switched back to ‘Match Movie’ it seems to have fixed it. Why? I dunno.[/COLOR]
[/COLOR]
[COLOR=Green]UPDATE: bataglia has provided a much better fix. See msg below.[/COLOR]
Hi. I’m trying to impliment Kirupa’s “[COLOR=black]Animating Dynamic MovieClips” [/COLOR]
http://www.kirupa.com/developer/flash8/animateDynamicMC.htm
with [SIZE=2]Apple style OS X Dock (MX 2004) [/SIZE]
http://jrgraphix.net/research/flash-dock-mx-2004.php
in Flash 8.
I can get it to run inside of Flash no prob, but when I publish it, the Menu code doesn’t run in IE 7 or Firefox 3. The animated mouse coursor runs just fine. Could somebody point out where the prob might be for me? (see fla code, html and class file [dock.as] attached.)
Thanx.
Stage.scaleMode = 'noScale';
/* --------------*/
/* Mouse Cursor */
/* --------------*/
var count:Number = 0;
function attachOnMove():Void {
this.onMouseMove = function() {
var xPos:Number = _root._xmouse;
var yPos:Number = _root._ymouse;
var scale:Number = 50+Math.random()*200;
count++;
//
this.attachMovie("Sparkle", "spark"+count, 10000+count,
{_x:xPos, _y:yPos,
_alpha:10+Math.random()*40,
_xscale:scale, _yscale:scale});
var newMC:MovieClip = eval("spark"+count);
newMC.onEnterFrame = function() {
fadeOut(this);
};
};
}
attachOnMove();
function fadeOut(inputMC:MovieClip):Void {
inputMC._x += 2;
inputMC._y += 2;
inputMC._xscale -= 10;
inputMC._yscale -= 10;
inputMC._alpha -= 1;
if (inputMC._alpha<0) {
count--;
inputMC.removeMovieClip();
delete inputMC.onEnterFrame;
}
}
/* ----------------- */
/* OSX DOCK MENU */
/* ---------------- */
this.dockActions = function(label) {
switch(label) {
case 'fairyhouse':
trace('Actions here to handle Preferences.');
break;
case 'fish':
trace('Actions here to handle Preferences.');
break;
/*
case 'treehouse':
trace('Actions here to handle Preferences.');
break;
*/
case 'pbskids':
trace('Actions here to handle Preferences.');
break;
case 'strawberry':
trace('Actions here to handle Preferences.');
break;
case 'disney':
trace('Actions here to handle Preferences.');
break;
case 'pacman':
trace('Actions here to handle Preferences.');
break;
case 'curious_george':
trace('Actions here to handle Preferences.');
break;
default:
}
}
var dockTemplate = {
layout: 0, /* top | right | bottom | left | *rotation* */
icon_size: 128,
icon_min: 32,
icon_max: 128,
icon_spacing: 1,
items: [
{ id: 'fairyhouse', label: 'Home'},
{ id: 'fish', label: 'Goldfish Central' },
/*
{ id: 'treehouse', label: 'Treehouse Kids' },
*/
{ id: 'pbskids', label: 'PBS Kids' },
{ id: 'strawberry', label: 'Strawberry Shortcake' },
{ id: 'disney', label: 'Disney' },
{ id: 'pacman', label: 'Pac Man' },
{ id: 'curious_george', label: 'Curious George' }
],
span: null,
amplitude: null,
callback: this.dockActions
}
this.attachMovie('Dock', 'menu_mc', 1, dockTemplate);
this.menu_mc._x = Stage.width / 2;
this.menu_mc._y = Stage.height;
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Violet's Secret Garden</title>
<style>
body {
font: 10px Arial, Helvetica, sans-serif;
background: #711371 url(images/violet_html_tilebkgd.gif);
padding: 0;
margin: 0;
}
</style>
</head>
<body bgcolor="#711371">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="100%" id="index" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="index.swf" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#711371" /><embed src="index.swf" quality="high" scale="noscale" wmode="transparent" bgcolor="#711371" width="100%" height="100%" name="index" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
</html>