I can run you movie, its either that your flash mx04 didnt convert this fla to mx properly, or the fla is corrupt.
here try this one i dont know what happened with the other one.
there ya go
ibeetles its better if you use ‘setMask’ (actionscript) to mask the menu thumbs than the traditional way (layered mask). That way the fonts wont be blurry like that…
cheers hga77 once again, lol i would like to see how many times ive said that in this tread.
Was i only missing the word “currentThumb.” in the actionscript???
thanks for the tip on the mask too.
well lets just say you had a few mistakes here n there
cheers, do u think it would be easy to do next and previous buttons??? im trying but having no joy at the mo, but i wont give up.
it shouldnt be that hard…I’ll give you a hint
You know you have a variable calle ‘currentThumb’. If you trace this, you get “_level0.instance1.menu.3” (since we clicked on thumb 3).
Now to go next or previous, we need to increment or decrement this variable. But how? We only need the number, which in our case is 3, the instance name. So to get this alone, we do this:
currentThumb._name
Now if you would trace this, you would only get 3. Cool. But now we have another problem. This number is not stored as integer, Its a character. This means that we cant add/subtract it. So to convert this into an int, we do this:
parseInt(currentThumb._name)
Now we have an integer. Add a ‘next’ and ‘previous’ button. On release of ‘next’ we would increment this value, then load image. On release on ‘previous’ we would decrement this value, then load image.
Try it and let us know
That was a big hint :hugegrin:
would i have to make the currentThumb var a global var, cos for some reason i cant trace that var, on my next prev button.
nope, just remove the ‘var’ in front of it
there is no var in front of it already.
oh wait it depends if you not assigning the button on the same time line though…post you current fla
here it is
yeah you need to have it as _global. Cos you put your buttons outside the menu itself
ive no sorted that. Now to make the increment would i need a for statement. would it be:-
for(i=0, i<=Number_Items; i++);
no no you dont need a for loop! Leave it to me, i’ll do it. I’ll send in an hour, need to do other stuff now
ok thank you very much, as you can see my actionscripting is not all that good. I will try and have a go thou without using a for loop.
im nearly there, ive managed to get the trace working correctly and its incrementing a decrementing properly. Now ive just gota sort out the loadMovie bit.
here is the code im using now.
next_btn.onRelease = function(){
currentThumb._name ++
trace(currentThumb._name);
loadMovie(action, pictureHolder);
}
done
cheers, hga77 that is perfect i really appreciate all your time an deffort you have put into this.