[thelist] attachMovie ActionScript bringing my Mac to it's knees

Benjer futureweb at macmail.com
Thu Nov 14 04:08:00 CST 2002


your code looks fine,

Does your mac have the latest flash6 plug-in as you probably know there are
lots of issues concerning loaded content in earlier versions.

current version is 6,0,47,0, aside from the new beta.

if its still playing up email me the .fla and i'll take a peek.

futureweb at macmail.com


On 14/11/02 4:26 am, "Tim Hansen - Pink Candy Productions"
<tim at pinkcandyproductions.com> wrote:

> --
> [ Picked text/plain from multipart/alternative ]
> Hi all,
> A 'lil actionscript question/problem...
> I have a script which loads movie clips (of jpegs fading in) into a target
> mc. I used this script because it has a "visited state" which shows which
> mc's have already been viewed.
> My problem is that the script works perfectly on a PC but is painfully slow
> on my Mac. I've eliminated all the other components in my movie and I'm
> pretty sure this is the problem. I can't figure out why this script causes
> my G4 to grind to a halt!
>
> I know about the slow Mac plugin issue and the rest of my site works at an
> acceptable speed on the Mac (although it's much faster on my PC).
>
> Here's the code:
>
> In a keyframe:
>
> // load initial pic
> target.attachMovie("fly", "inTarget", 9001);
> // send initial pic to 100% opacity
> target.inTarget.gotoAndPlay("end");
> // send bttn to down state
> this.pic1.gotoAndStop("down");
> currTarget = this._name;
>
>
> attached to the button:
>
> on (rollOver) {
>   this.gotoAndStop("over");}
> on (rollOut) {
>   if (this.state == "visited") {
>       this.gotoAndStop("visited");
>   } else {
>       this.gotoAndStop("up");
>   }
> }
> on (release) {
>   _root[_root.currTarget].gotoAndStop("visited");
>   _root.target.attachMovie(this.clip_to_load, "inTarget", 9001);
>   this.gotoAndStop("down");
>   _root.currTarget = this._name;
>   // this sets the y position for the top blue bar
>   setProperty("_level100.blue0", _y, "-34");
>   // this sets the y position for the bttm logo bar
>   setProperty("_level100.logo_bar0", _y, "60");
> }
>
> Does anyone know if this is a common problem & if there are any workarounds?
> Any help would be totally appreciated.
> Thanks,
> Tim
> --
>





More information about the thelist mailing list