Topic: ImageArea.as File Customizations...New Buttons & MClips
Hello I will try to make this short and clear.
I'm modifying the ImageArea.as file to add in a button that will "popup" a new text area displaying info about the image.
I have tried many approaches and can't get it so it must be a misunderstanding of the logic on my part.
What I do have working is that i have incorporated this photo info into the right click context menu so now you have a menu item in the right click menu that you can click on and it will set the visible of a movie clip to true so that the photo info appears. I inserted code into the context menu area:
image_cm.customItems.push(new ContextMenuItem("Show Image Details", Delegate.create(this,openImageInfo)));
and then added this function:
private function openImageInfo(){
mInfoDisplay_mc._visible = true;
}
and that works great but now I'm trying to get the same type behavior on a button rollover and rollout and I've tried this so many ways that it has to be something stupid im missing...
The two main ways I have tried are this....
#1: using a Movie Clip for my "button" trigger
#2 using a Button for my "button" trigger
Using #1 I have inserted this just after the //init error icon area:
//init info icon
mInfo_mc = mClip_mc.attachMovie("ImageInfoButton","info",mClip_mc.getNextHighestDepth());
mInfo_mc._visible = false;
mInfoDisplay_mc = mClip_mc.attachMovie("ImageInfoDisplay","infodisplay",mClip_mc.getNextHighestDepth());
mInfoDisplay_mc._visible = false;
mInfo_mc.onRollOver = function(){
mInfoDisplay_mc._visible = true;
}
and I have tried altering the function to this:
mInfo_mc.onRollOver = function(){
mInfoDisplay_mc.visible = true;
}
and method #2 I have simply added action script to the button instance on the stage like this:
on(release) {
ImageInfoDisplay._visibile = true;
}
and ive also tried this
on(release) {
ImageInfoDisplay.visibile = true;
}
and then for both #1 and #2 I have tried putting _root.ImageInfoDisplay...and ive tried many other combos of things im sure....
i hope that makes sense and im hoping someone might be able to see my mistake or at least tell me how i would properly setup a movie clip rollover effect to rollover one movie clip and make another movie clip visible.....
if you need more of my code let me know....if all my attempts look good then maybe its a conflict in my naming or something??? i just dont know...any help would be appreciated....
thanks