This content has been marked as final. Show 5 replies
I'm working on a project that does this at the moment:
What I've done is make a movie script that initialises everything:
on prepareMovie me
fullscreenvar = false
stagerectvar = (the stage).rect
spriterectvar = rect(0, 0, 720, 576)
Then added a mouseUp behaviour to the DVD sprite:
on mouseup me
if fullscreenvar = true then
(the stage).rect = stagerectvar
sprite(yourDVDsprite).rect = spriterectvar
sprite(yourDVDsprite).locH = 365
sprite(yourDVDsprite).locV = 292
fullscreenvar = false
(the stage).rect = the desktoprectlist
sprite(yourDVDsprite).rect = the desktoprectlist
fullscreenvar = true
All of that should let you click to make it fullscreen, then click the fullscreen video to return to the normal size (you will have to change the locH and locV properties to make sure your one goes back to the correct location on the stage. If you look at the code you should be able to figure out what is happening - basiclly when you click, it checks if the sprite is already fullscreen, and if it is, changes it back to the original size and position. if it isn't then it makes it fullscreen.
Problem (maybe you can help?) - With a widescreen monitor and 4:3 video, the video will be stretched out, which is baaaaaad. I was thinking I could use some other code that is executed IF the screen width devided by the screen height was greater than 1.33? Maybe the "fullscreen" property you are using gets around this, I'll have to check.
All the best
This looked like it had some possibilities; however, after invoking the full
screen ( that works) the subsequent mouseUp on the DVD sprite does not
register. It doesn't recognize the click.
Thanks for trying though. I'll keep trying.
Originally posted by: Newsgroup User
after invoking the full screen ( that works) the subsequent mouseUp on the DVD sprite does not register
It should still register the click to go back to the regular size and position, because fullscreenvar = true when it is full screen.
"Greg Ambrose" <email@example.com> posted in macromedia.director.lingo:
> This looked like it had some possibilities; however, after invoking the
> full screen ( that works) the subsequent mouseUp on the DVD sprite does
> not register. It doesn't recognize the click.
Try moving the "restore" part of your behavior to the behavior (frame script)
channel in the Score.
Mark A. Boyd
The movement of the restore routine to the frame script doesn't help. The
cursor doesn't even show and a click isn't recognized. Thanks for trying.