Need help with map.
#1
Posted 07 October 2006 - 10:52 PM
If anybody can help ... pls do
Thanks
#2
Posted 08 October 2006 - 03:58 AM
Then, when you've done all the buttons, add this code to them:
on(release) { _root.gotoAndStop(MapPageNum); }Change the MapPageNum to the number of the frame that you want to link the country to.
#3
Posted 08 October 2006 - 04:51 AM
thanks again
#4
Posted 08 October 2006 - 06:35 AM
Makes things much easier
#5
Posted 08 October 2006 - 09:34 AM
#6
Posted 12 October 2006 - 05:15 PM
thanks ...
#7
Posted 12 October 2006 - 09:09 PM
If not, do that.
Then give every MovieClip state a instance name:
Replace <instance name> with "state" + (sequential numbers, start with 0).
example:
state0
state1
state2
state3... and so on until you hit 49!
Yes 49 states... remember we start with 0.
Then put this code on the timeline where all the Movieclips are:
// Setup rollover highlights for EVERY state at once. // No way I want to see define each one, one by one. // See "var i = 0" - it is the reason we started with 0 in the naming scheme. for(var i = 0; i < 50; i++){ // Loop through every state. var thisState = this['state'+i]; // Assign rollover action, in this case goto frame 2 of the state. (the highlight state). thisState.onRollOver = function(){ this.gotoAndStop(2); } // Assign rollout action, go back to normal un-highlighted state. thisState.onRollOut = function(){ this.gotoAndStop(1); } // Do something if the state is clicked. You only mentioned rollover.. so I just traced the MovieClip name. thisState.onRelease = function(){ trace("Clicked:"+this._name); } }
And now comes the hard part...
Just kidding, your done.
Max
Pixel Hive Design (PHD) - site coming soon!
#8
Posted 13 October 2006 - 12:52 AM
thisState.onRelease = function(){ trace("Clicked:"+this._name); }
to:
thisState.onRelease = function(){ _root.gotoAndStop(this._name); }
And name each frame state0, state1, state2, like the buttons (make sure the numbers on the buttons a corrospondent to the numbers on the frames).
#9
Posted 13 October 2006 - 01:16 AM
thanks
#10
Posted 13 October 2006 - 07:46 AM
#11
Posted 13 October 2006 - 10:44 AM
Click once on a button in the Flash authoring environment.
Then in top menu click: Window>Actions
Make sure the Actions window is titled: "Actions - Button" and not "Actions - Frame".
Then in the Actions window type:
on(release){ getURL("maine.html","_blank"); // Example of opening Maine's html file in new window. }
Do that for every state, and change the actions in between { and } for each state to what you want.
Max (PHD)
#12
Posted 04 August 2007 - 08:07 PM
#13
Posted 06 August 2007 - 02:05 PM
also, how do i do the alt, id like the words to show on hover, and i want it to open in the same window
also, i have a border around the images. i would like to make them thicker but i cant seem to bring that up. do i have to redraw?
thanks
Edited by zoom4267, 06 August 2007 - 07:41 PM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users