Flash AS2 help
- Started
- Last post
- 5 Responses
- GeorgesII
hello all, i'm working on a site that has a drag function applied to it,
ex: http://neofuturism.com/test/drag…I want to be able to start the movie loaded via xml by pressing the play btn, sadly the drag function doesn't allow me to do it,
i've unsuccessfully tried this senocular tutorial
http://www.senocular.com/flash/t…
but still no result,any help will be rewarded with a +1 :)
- stickupkid0
Don't apply the drag method to the whole movie, nest the movie inside a movieclip (container) then drag the movie. The button sits on top of the movie, but still inside the container.
- GeorgesII0
^
how can I do that?
- GeorgesII0
bump
- rounce0
Put the flv player in a container movieclip and then the play button in a separate clip above it. Then put all of this in one container MC to tidy it up for multiple use. The dragging code should be applied to the flv container. Should work.
- thatblokemike0
you've got 2 events you can take advantage of...
if your using something like..
myVidPlayer.onPress = function():Void
{
startDrag(this);
}you will still have your mouseDown available
myVidPlayer.onMouseDown = function():Void
{
trace("I was called regardless of the drag");
}I think thats probably better than messing around with depths and nesting clips.
- in fact swap em round so mouseDown is your drag.thatblokemike