I have searched the forums and tried several fixes with no success. I have a videoclip that plays properly in the correct position when in the programming environment, but after compiling the standalone for OSX, the clip plays at the upper left corner of the stack window, only partly visible.
Here is my card script:
on opencard
send "startRolling" to fld "Credits"
set the scale of videoClip "Axial CT.mov" to 0.4
play videoClip "Axial CT.mov" looping at 500,210
end opencard
on closecard
play stop videoClip "Axial CT.mov"
end closecard
Any suggestions appreciated.
Paul
Screen location of videoclip in standalone
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 16
- Joined: Thu Mar 20, 2008 9:45 pm
Dear Paul_Malloy,
Does this help?
Best,
Mark
Does this help?
Code: Select all
on opencard
send "startRolling" to fld "Credits"
send "playMovie" to me in 0 millisecs
end opencard
on playMovie
set the scale of videoClip "Axial CT.mov" to 0.4
play videoClip "Axial CT.mov" looping at 500,210
end playMovie
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
- Posts: 16
- Joined: Thu Mar 20, 2008 9:45 pm
Movie location
Thanks for trying, but that did not help. One other piece of information:
If I navigate to another card in the standalone, then go back to the first card, the movie plays in the correct position.
If I navigate to another card in the standalone, then go back to the first card, the movie plays in the correct position.
Try using a "player object", you will gain much more control on the movie.
to load a movie into a player object:
set the fileName of player "myPlayer" to movieFilePath
to put it somewhere:
set the loc of player "myPlayer" to myLeft,myTop
to resize it:
set the width of player "myPlayer" to myWidth
set the height of player "myPlayer" to myHeight
to start or stop:
play player "myPlayer"
stop player "myPlayer"
etc.
to load a movie into a player object:
set the fileName of player "myPlayer" to movieFilePath
to put it somewhere:
set the loc of player "myPlayer" to myLeft,myTop
to resize it:
set the width of player "myPlayer" to myWidth
set the height of player "myPlayer" to myHeight
to start or stop:
play player "myPlayer"
stop player "myPlayer"
etc.