Links to open inside the fla doc?
This is great work!
I'm curious if it is possible to have the pictures clickable (say acting as buttons) if you can add this property in order to have them clickable to open another section of information in a specified area of the same .fla file?
Would it be as simple as just converting each image to a button and adding the behavior?
Any help or insight is much appreciated!
CR
Slow down the speed of the boxes?
I've tried everything I can think of to slow down the speed of the boxes.
Anyone have an insight!?
Not much hair left!
Quote:
Originally Posted by Kostas Zotos
Hi,
May this helps (locate this part in the script of .fla file and modify in the way shown below):
Code:
// Array to hold pictures
pix = [];
links=[] // add the links -as comma separated strings- in the array (must correspond one link per image)
for (a=1;a<=kNbrPictures;a++){
var ID:String="img"+a
// IMPORTANT: The Images have been converted to graphic symbols
// and Linkage IDs have been assigned to them.
// (just import an image on stage. Select it and press F8. Give a name and id linkage)
// right clik an image symbol on library (eg: img1) , then select: "Linkage..."
var Clip=_root.attachMovie(ID,ID,this.getNextHighestDepth())
Clip._y=kPictureY
Clip.id=a // Assign the current value of "a" to a clip property "id"
// ------------ If want interaction with images ------------------
// If don't want, just comment or delete this part (between ---- lines)
Clip.onRollOver=function(){
this._alpha=70
}
Clip.onRollOut=function(){
this._alpha=100
}
// Assign an onRelease handler
Clip.onRelease=function() {
trace(this.id)
getURL(links[this.id-1],"_blank")
// links must be an array with URL strings
// Since array elements are zero based, we use: "this.id-1"
// Put any actions here (executed when click on image)
}
// ------------ If want interaction with images (END)------------------
pix.push(Clip)
}
The approach is similar for tooltips
Kostas