flash actionscript:
I have a movie that I created using some drag n drop functionality, when I test it everything works perfect. If I nest the movie inside another movie I lose the hit area, well it?s displayed but it doesn't work. I went through all the code in my drag and drop movie and removed all references to the _root timeline, unless I'm targeting something in my captivate movie, once again when I run it by itself everything works perfect, but once nested it loses the hit area. Here is my code:confused; //Frame 1 //pause captivate movie _root.cpSkinLoader_mc.rdcmndPause = 1; stop(); import mx.transitions.Tween; import mx.transitions.easing.*; var home:MovieClip = this; drag01.useHandCursor = false; drag01.onPress = drag; drag01.onRelease = function(){ this.stopDrag(); if (this._droptarget == "/target01_mc") { trace("Correct"); delete this.onPress; delete this.onRelease; delete this.onReleaseOutside; home.nextFrame(); home.cursor_mc.removeMovieClip(); Mouse.show(); } else{ trace("Incorrect"); home.cursor_mc.removeMovieClip(); Mouse.show(); this.gotoAndStop(1); var tw:Tween = new Tween(this,"_x",Strong.easeOut,this._x,146,0.5,true); var tw2:Tween = new Tween(this,"_y",Strong.easeOut,this._y,360,0.5,true); } } function drag(){ this.swapDepths(getNextHighestDepth()); startDrag(this); this.gotoAndStop(2); home.attachMovie("cursor_mc","cursor_mc",getNextHighestDepth()); cursor_mc.onEnterFrame = function(){ this._x = _xmouse; this._y = _ymouse; } Mouse.hide(); }
I built and tested my movie and it works perfect, when I loaded it into captivate and tested the movie, it didnt work. I added in a trace to see the _droptarget location. When I tested the movie in flash, it returened _level0.target01_mc so i reloaded the movie in captivate and published the file. I open the published the captivate swf in flash with out the skin (so i can see my trace that i added) i got _level0.slide7__color_mc.s7_i0_swf_mc.m_swf_mc.target01_mc , but when i opened the published skin file that was published from captivate I got _level0.contentShade_mc with no other depth. So I dont know if I should just make my own skin for the file or if there is a work around. If I make my own skin file do I lose my SCORM tracking, or is that handled in the content file?
Don't see what you're looking for? Try a search.
|