PDA

View Full Version : FMX...Code for button to show video



eugena
April 11th, 2005, 07:22 AM
Hi everyone,

Im really struggling with this one so if any of you knows this please help. Im looking for a button code so when a user clicks on it a specific video which is included in the library will show up in the same screen. If anyone knows which code i should attach to this button to pop up the video please let me know...

thanx a lot

rhamej
April 11th, 2005, 10:59 AM
Do a search for attachMovie :)

eugena
April 12th, 2005, 05:23 AM
Thanx a lot for the hint...I guess thats the way to do it!

assassin
April 12th, 2005, 05:36 AM
As rhamej says, make a movieclip which contains the video you want. Using the attachMovie command at the button, place that movieclip at the coordinates of the screen you want it to be loaded to.

eugena
April 14th, 2005, 04:46 AM
:) Thanks for the help...it worked fine but I have a tiny other problem with it! Do u have any clue how to stop the video after its being played? I know the code but dont know where to attach it to...I guess the code should be like this:
on(press){
mov2.removeMovieClip();
}