flash full screen button probs
- Started
- Last post
- 8 Responses
- wwfc
Afternoon all - having a bit of a mare working with a button that makes the flash movie play as full screen.
Before I started messing with it this is the code that I had on a button contained within movieclip:
on (release) {
Stage["displayState"] = "fullScreen";
gotoAndStop(2);
}and to minimise (this button is on the frame2)
on (release) {
Stage["displayState"] = "normal";
gotoAndStop(1);
}this worked fine and with no trouble.
But due to moving of goalposts I now need place this code into a movieclip button.
I tried changing it like this:
this.onRollOver = function() {
Stage.displayState = "normal";
gotoAndStop(1);
}
but it's not working - the ref for stage is global isn't it? I don't need to add anything like _parent.Stage or anything like that?Anyone put me right on this please?
}
- craighooper0
Try "_root" where it might be required and see what happens...
- craighooper0
Hmm. Thought it might help...
Let me ask my partner when he pops online, I'll post a response here...
- wwfc0
...cheers mate - appreciate it if you would.
Very frustrating as it worked fine until I needed to adapt to it a movieclip button! nnrghh!
- lvl_130
it looks like you changed the code in several places. was that a mistake?
changing it to reflect more of what you have, throws a bunch of errors.
this.onRelease = function() {
Stage.["displayState"] = "normal";
gotoAndStop(1);
}you need to get rid of those brackets[ ] i would think...
- lvl_130
here you go. this should work.
your_mc.your_button_name.onRelea... = function() {
Stage.displayState = "normal";
gotoAndStop(1);
}
- wwfc0
I'll give it a whirl - thanks for that lvl_13
woods for the trees!!!!
cheers fella ;-)
- wwfc0
...that works tops now lvl_13!!! nice one!
...but now it has stopped my slider doofer working for the roll over
is there anything you can see in this script that is offthis.onRelease = function() {
Stage.displayState = "fullscreen";
gotoAndStop(2);
}
this.onRollOver = function() {
_parent.slider.xMove = _parent.RBUTTON._x-62;
}the mc slider and RBUTTON are both on the same timeline within an mc called myMenu that is on the main timeline
should I be calling _parent._parent.myMenu etc...
rather than just taking it up one level?...god some people are never satisfied are they!!!
- worth adding the rollover function works fine when alone - but not with the full screen???wwfc