I’ve gotta small question:
I’ve made a drawn menu with curves in my root. This menu loads dynamically swf into an empty container mc. Within some of these swfs, there are full page image galleries. However, the drawn curves seem to stick on top of these swf: I can still see them although the rest of the content is invisible. Now I want to make those curves also invisible… but how? some code for the menu:
//API AND LINES//
box2.lineStyle (1, 0xff00ff,0);
box2.beginFill(0xCCCCCC,0);
box2.moveTo(0,0);
box2.lineTo(0,20);
box2.lineTo(20,20);
box2.lineTo(20,0);
box2.lineTo(0,0);
box2._x=245;
box2._y=140;
this.onEnterFrame = function () {
line.clear ();
line.lineStyle(0.5,0xCCCCCC,20);
line.moveTo(contact_mc._x,contact_mc._y);
line.curveTo(245,120,box2._x,box2._y);
line.moveTo(expertise_mc._x,expertise_mc._y);
line.curveTo(245,120,box2._x,box2._y);
line.moveTo(projects_mc._x,projects_mc._y);
line.curveTo(245,120,box2._x,box2._y);
line.moveTo(office_mc._x,office_mc._y);
line.curveTo(245,120,box2._x,box2._y);
line.moveTo(profile_mc._x,profile_mc._y);
line.curveTo(245,120,box2._x,box2._y);
drwLines();
updateAfterEvent ();
}
Now I want to realise a function in an externally loaded swf that makes these lines/curves invisible. i was thinking myself of something like
btImages.onPress = function (){
_root.line.lineStyle(0.5,0xCCCCCC,0);
gotoAndStop (3);
}
But unfortunately thsi doesnt work. Any of you kirupians have got a great idea? I’d be more than happy =]