Topic: Flash & Variables (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=22273" title="Pages that link to Topic: Flash &amp;amp; Variables (Page 1 of 1)" rel="nofollow" >Topic: Flash &amp; Variables <span class="small">(Page 1 of 1)</span>\

 
redroy
Nervous Wreck (II) Inmate

From: 1393
Insane since: Dec 2003

posted posted 06-22-2004 03:07

I had a friend ask me to help edit a flash movie (a menu to be specific) that she had downloaded. I got it working to how she wanted... only the problem is I'm not 100% sure if what I did is OK. Here's the original file and here's the low-down... The menu is made of instances of a component named 'but smartclip'. 'but smartclip' has two parameters defined, 'face' with a type of "default" and 'actions' with a type of "list" (numbered 1 through 12, the original number of buttons). The buttons have the following actionscript

code:
on (rollOver) {
this.gotoAndPlay(2);
}
on (rollOut) {
this.gotoAndPlay("back");
_root.infopanel.gotoAndStop(1);
}
on (release) {
// modified
_level0.macro.gotoAndStop(Number(this.action));
}

I couldn't figure out how '_level0.macro.gotoAndStop(Number(this.action))' worked as it "points" to a blank MC named 'macro'. So I edited the parameters of 'but smartclip' and changed 'actions' to 'pgUrl' (Page URL, in my brain) and gave it a type of "default". Then I changed the last bit of code to

code:
on (release) {
getURL(this.pgUrl);
}

So now when you insert an 'http://www.' address into the 'pgUrl' variable the button points to that address. Like I said it works, but I really don't know why Also, if you don't insert a full http:// address or nothing at all it does strange things in firefox like opening two tabs 'n stuff. Anyways, any clarification would be appreciated. Peace.

70% of statistics are made up on the spot.

Steve
Maniac (V) Inmate

From: Boston, MA, USA
Insane since: Apr 2000

posted posted 06-22-2004 13:00

I never warmed up to smartclips. That was Flash 4, before MX Components. And I must say - that's a pitifully incomplete demo file to let loose on the public. Does she have MX 2004? Can she get ahold of the "accordion" component?

redroy
Nervous Wreck (II) Inmate

From: 1393
Insane since: Dec 2003

posted posted 06-23-2004 00:15

Yes. She has 2004. I'm not sure what an "accordion" component is... So is what I did wrong?

70% of statistics are made up on the spot.

redroy
Nervous Wreck (II) Inmate

From: 1393
Insane since: Dec 2003

posted posted 06-30-2004 02:36

Anybody? Is what I did alright?

70% of statistics are made up on the spot.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu