-
Duplicatemovie clip
I am using flash AS2.0 to create points using duplicatemovieclip. Now i want to make the points clickable so that it shows data from an xml file.
The following is the action script code I am using
_global.globali=0;
var x_pos = parseInt(slot_posiX[i])+10;
var y_pos = parseInt(slot_posiY[i])+10;
var u_id = slot_userid[i];
trace(x_pos);
trace(slot_num[i]);
if ((slot_posiX[i]>=10) && (slot_posiX[i]<=1363) && (slot_posiY[i]>=10) && (slot_posiY[i]<=634)) {
//_root.hill_mc._alpha = 100;
/*_root.tooltip_mc._x = x_pos;
_root.tooltip_mc._y = y_pos;*/
_root.tooltip_mc.tipmsg.html = true;
/*_root.tooltip_mc.tipmsg.autoSize = true;*/
_root.tooltip_mc.tipmsg.backgroundColor = 0xFFFFFF;
/*_root.tooltip_mc.tipmsg.htmlText = u_id;*/
_root.box.duplicateMovieClip("boxx"+i, i+400);
_root.tooltip_mc.duplicateMovieClip("u_idi"+i, i);
_root["u_idi"+i].tipmsg.htmlText = u_id;
_root["boxx"+i]._x = x_pos;
_root["boxx"+i]._y = y_pos;
_root["u_idi"+i]._y = y_pos-15;
_root["u_idi"+i]._x = x_pos+55;
}
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
|