OZONE Asylum
Forums
Multimedia/Animation
Flash & Variables
This page's ID:
22273
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
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 [url=http://www.wbshp.com/flashbuttons/openSource/menus/menu13.zip]original file[/url] 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)); }[/code] 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); }[/code] 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 :p 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.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »