|
-
at this URL
http://www.webtechniques.com/archives/2001/08/hall/
there are instructions to build a stretchy menu. Kindly the author replyed to an enquirey of mine regarding adding actual navigation as follows:
"Here's the basic info you need:
Select the blank MC on the main timeline and underneath this chunk of code:
for (var i=0; i<numItems; ++i){
this.attachMovie("item", "item"+i, i);
this["item"+i]._x = i * 60;
this["item"+i].text = "Item "+i;
this["item"+i].speed = 0;
}
add lines like this to change the names and give URLs to each item:
this.item0.text = "Fig Leaf"
this.item0.url = "http://www.figleaf.com";
Then, find the item background MC in your library, select the button there
on the stage and add the following code to it:
on(release){
getURL(this._parent.url, "_blank");
}
Thats it!"
Now, I've followed this and messed with it but just don't get anywhere! The URL bit works but the text (originally a number) on the button just disappears. I was after buttons with specific labels and loadMovie actions.
Can anyone explain!?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|