I followed a tutorial on making an audio player that loads songs into flash using xml - which works great
but i would like to make this Audio player a Movie clip that can be moved around anywhere and still be functional
when i tried using this:
on(press){
startDrag(this);
}
on(release){
stopDrag();
}
the MC drags but the functions do not work anymore.
if anyone can help I would really appreciate it
thank you
I’ve run into this before. When you apply startDrag() to an object, any other buttons in that object are now under where Flash is going to see it’s ‘hit area’ for the drag. What I’ve done in the past is to make it like a little browser window. I would make a bar on the top of your movieClip (in your movieClip) then change that bar into a movieClip (still nested in your movieClip that you want to drag) and apply the same settings. That way, Flash will only see that bar at the top as the ‘hit area’, but seeing it is nested in the other movieClip, when you drag the bar, you’ll drag the whole thing. Then your whole movieClip (music player) will drag with it. Hope I didn’t lose you.