Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Movie In A Window Problem 1

Status
Not open for further replies.

SamuelSpitnale

Programmer
Dec 21, 2003
1
US
I am trying to open another window inside of a director movie, and play an .AVI file. Here is the script I have set up:
on mouseDown
open window "DrawingTheGun01"

end
on beginNewMovie chapter1Drawing
global newWindow
set newWindow to window "DrawingTheGun01"
set newWindow.rect to rect(0, 0, 250, 200)
set newWindow.DrawingTheGun01 to chapter1Drawing
set newWindow.titleVisible to FALSE
open newWindow
end beginNewMovie

Whenever I play the movie, and click on the button to open the movie, it asks me where the file is located. When I select the .AVI file, it says the file is not a director file. I don't want the .AVI file to be a directof file. Is there anyway I can open a movie in a window, and have it be an .AVI file?
 
You need to create a separate Director movie and allocate your video to a sprite. Size it as you want it to be when opened later from outside.

Then open this movie as a MIAW from your main movie (or wherever) and your video sprite should then work as it did in its own movie - assuming you have a means of playing AVI files via an Xtra or whatever.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top