Topic: Flash & Variables |
|
---|---|
Author | Thread |
Nervous Wreck (II) Inmate From: 1393 |
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) { 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) { 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. |
Maniac (V) Inmate From: Boston, MA, USA |
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? |
Nervous Wreck (II) Inmate From: 1393 |
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? |
Nervous Wreck (II) Inmate From: 1393 |
posted 06-30-2004 02:36
Anybody? Is what I did alright? |