Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Stage.showMenu = False



Hi everybody!

I decided to post this because I've seen so many nice pages everywhere that are easily ruined by right clicking and zooming in, so I guess there's alot of people who don't know that you can fix this with a simple line of code on the main scene...

Stage.showMenu = false



Ultrashock Forums > Flash > ActionScript
Posted on: 2004-04-07


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Stage.showMenu=false? As3
How would i do stage.showMenu=false in as3 iv looked on google found nothing just some fullscreen flash stuff im not interested with at the moment and iv searched this site but got nothing.

so as2 code:

stage.showMenu=false;

As3 code:

...


Please help

Thanks in advance.

cheers As3-Porgrammer (spelling error in name lol).

False Showmenu Margin Problem?
Alright, this isn't a very technical or convoluted problem. I'm making a simple interactive movie, and being as controlling as I am, naturally invoked the 'Stage.showmenu = false' code in the first frame of the movie. This is the first time I've really attempted to use this, and I noticed later upon exporting the projector file that there was a top and bottom margin problem. The problem being that there were approximately 10 excessive pixels on the top and bottom of the projected movie.

I've attempted to combat this the only way I could think to (short of resizing the entire stage, thereby truncating the bottom and leaving the top unaffected), which is to play with all the Stage.scaleMode properties. At first it seemed that changing the scaleMode to exactFit resized the movie correctly -- as there was no more visible top and bottom breaks -- but as more experienced actionscripters have probably guessed, this just made it stretch the movie by those ~20 pixels, which is a very undesirable prospect.

This seems like it must be a common problem, and I'm admittedly inexperienced, so any managable solutions would be greatly appreciated.

Problem Setting Showmenu To False With Fscommand
Hi all

I have a very strange problem: I have published my projector file using fscommand to take the menu out, the only problem I have now is that the projector file puts a space at the top and bottom of my movie, almost as if it is compensating for the menu being out. Why does the projector not conform to the movie size? If I put the menu back in the space is not there anymore. This problem is driving me nuts.

Thanks


Fscommand: Showmenu FALSE Leaves White Space - Help Please
hey kirupa grooop:: you seem like a nice lot.

I have a problem.
At request from my client, I need to remove the "File, View, Control, Help" from the top of my projector window.

so... I use:
fscommand("showmenu", "false");

this works, but it leaves white space at the top and bottom of my projector window when it removes the menu.

This makes the entire app I'm working on look like crap and totally un-professional. Can anyone help out with this? Has anyone seen this as well?

(sorry if mentioned/posted before... I searched, but didnt find this exact problem)

ps --- I'm using MX 2004 Pro ---

Fscommand: Showmenu FALSE Leaves White Space - Help Please
hey kirupa grooop:: you seem like a nice lot.

I have a problem.
At request from my client, I need to remove the "File, View, Control, Help" from the top of my projector window.

so... I use:
fscommand("showmenu", "false");

this works, but it leaves white space at the top and bottom of my projector window when it removes the menu.

This makes the entire app I'm working on look like crap and totally un-professional. Can anyone help out with this? Has anyone seen this as well?

(sorry if mentioned/posted before... I searched, but didnt find this exact problem)

ps --- I'm using MX 2004 Pro ---

Fscommand("showmenu", False); But How To Export To Projector
Can you help me with this please?
When you add

Code:
fscommand("showmenu",false)
How to create a projector exe file since the menu is hidden when you play it in a standalone flash player?
One more question, when the menu is hidden, there's a blank space at the top and bottom of the movie when played in a standalone player, how to get rid of this space? Thanks for the help.

Can I Place Stage.showMenu Anywhere?
I know it needs to be on the first frame of my movie but can I place the Stage.showMenu = false; in the same frame as my preloader script as shown below? Or does the Stage.showMenu have to be on it's own frame or in the actual movie?

Code:
if (_framesloaded>=_totalframes) {
gotoAndPlay("Scene 1", 1);
} else {
gotoAndPlay("Loader", 1);
}
Stage.showMenu = false;

Problems With Stage.showMenu
Ok, I submit my stuff to newgrounds.com as I've said many times before. Right now I'm working on a game. The game gets really messed up if you right click and choose forward or play. I can't turn off the menu with html, so I found a code called

Stage.showMenu = "false"

that I tested with their file upload system. it works perfectly. However, it changes my movie dimensions. it extends the height a little on the top and bottom, showing stuff that shouldn't be seen. As soon as I turn the code off, the dimensions go back to normal.

what do I do? Why can't I have correct dimensions AND no menu?

Problems With Stage.showMenu
Ok, I submit my stuff to newgrounds.com as I've said many times before. Right now I'm working on a game. The game gets really messed up if you right click and choose forward or play. I can't turn off the menu with html, so I found a code called

Stage.showMenu = "false"

that I tested with their file upload system. it works perfectly. However, it changes my movie dimensions. it extends the height a little on the top and bottom, showing stuff that shouldn't be seen. As soon as I turn the code off, the dimensions go back to normal.

what do I do? Why can't I have correct dimensions AND no menu?

Showmenu "false" Action Error
Hello...

I made a movie and i dont want to enable right click.

I selected showmenu false and it works, but my movie shows now to black bars at top and at bottom.

How can i disabable right click without this action or without showing these bars??

See the picture attatched

thanx

Fscommand("showmenu", False); In Browsers
EDIT: I just realized of the stupidity of my post I didnt mean to ask how to make showmenu to false, thats easy, what I was trying to ask and I dont know why I got confused was to make fscommand("fullscreen", true); work, to make go full screen

how can I make the fscommand("fullscreen", true); work in browsers? so that I can click and go to full screen while browsing in my website?
it works offline but it doesnt work online

Fscommand("showmenu", False); ?
I have used the code below to disable the flash context menu. It works for the flash player; however, when I view it in a browser the context menu is there. I have cleared the cache and it has no effect on it. I have a separate swf using the same code and the menu is not displayed in the browser.

//the fscommand sets the movie to its native size with no scaling.//
fscommand("allowscale", false);
//the fscommand does not allow the movie to fill the screen.//
fscommand("fullscreen", false);
//fscommand does not allow the right click flash context menu to be displayed.//
fscommand("showmenu", false);
//stops the movie from playing.//
stop();

Thanks in advance,

Showmenu "false" Error HELP ME...PLEASE
Hello...

I made a movie and i dont want to enable right click.

I selected showmenu false and it works, but my movie shows now to black bars at top and at bottom.

How can i disabable right click without this action or without showing these bars??

See the picture attatched


thanx

Fscommand("showmenu", False);
for some reason... This script as well as the variations:
fscommand("showmenu", "false");
fscommand(showmenu, false);
fscommand("showMenu", "false");

are all not working for me... Why is this...?

Fscommand("showmenu", False);
for some reason... This script as well as the variations:
fscommand("showmenu", "false");
fscommand(showmenu, false);
fscommand("showMenu", "false");

are all not working for me... Why is this...?

Fscommand ("showmenu", False);
I have been trying to get the right click menu to only show the two main options and nothing else.. ie: "settings" + "about Macromedia Flash MX" and none of the other options available without this fscommand... I had a clue from someone in another forum that it was a javascript..... This must be a relatively simple operation.. can anyone pass me a script for dealing with this? would be most appreciated...cheers

Fscommand("showmenu", "false") Leave Spaces When Publish As Projector
Hello,

i found that there are white space in the upper and lower part of the my flash movie when i added the following code.

code
'
fscommand("showmenu", "false")

'

the white space only appear when i use flash player to play the movie or publish the movie as projector, does anyone know how to solve the problem?
thx a lot

Fscommand("showmenu", "false") Makes Projector Win Wrong Size
I want to create a projector that doesnt have the flash menu bar at the top that says file, view, control, help. I mainly just want to turn off the control part of this menu, so people cant mess things up by trying to play the movie or rewinding and such. My projector is 550 pixels tall, with the menu bar at the top, this adds another 20 pixels, making the window height on open 570 total. When i turn off the top menu, using:

fscommand("showmenu", "false");

the window still opens at 570, but the movie centers itself with 10 pixels on top and 10 on the bottom. If I resize my movie, to 530 to offset this, it only offsets things at the bottom, so i still see the 10 pixels at the top. I dont want to get into repositioning all the things in my movie. Is there some way i can get around this? Is there away to turn off the controls in the projector part of the movie only?

thanks,
Jason

Fscommand ("showmenu", "false"); Problem With The Space Band
Hello, :)

After I added the script below, the swf movie will show two space band on top , and bottom, so my question is How can I make the movie fit with the window of flash player that doesn't has menu without the background band on top & bottom ( it doen't show the band when run on browser, but it does when run with Flash player.) Please advice.

Thank you,
Katthryn
--------------------------------------------
fscommand ("showmenu", "false");
------------------------------------------------



FSCommand("showmenu","false") Probelm
This FSCommand doesn't seem to work from Flash 5 in the flash plug-in player 6.

Any clues on why?


Toby

Example: http://www.developingwebs,net

Fscommand("showmenu", "false"); Help
This is killing me!!

I need to righ click protect a swf so that the menu is limited to stop users zooming in etc...

I can add the fscommand("showmenu", "false");

It works when I test with the swf's off-line but as soon as I FTP to space the right click becomes enabled again.....

Can any one help????

Fscommand("showmenu","false");
the above code works only on my swf file wen its not put in html yet.
after i put my swf in html the code doesnt work .
i put my swf by using <object> tag that Dreamweaver gives out for my swf.
can ni one help me?

_visible Of All Movieclips On Stage Is True Or False....how?
ok i have a dynamic menu...
when i move over with my mouse the submenus should be visible and when i roll off they should be invisible...
its important because the submenus are dynamicliy named and i dont know how much they are and how many they are....

my question: is there a command that can talk to all movieclips in a timeline or in a parentmovieclip at once...

i thougt about a solution to store alle names in a arry when they containermovieclip is duplicated....but before i want to ask if there is a easyer solution....

thx

Movieclips Still On Stage Eventhough _visible = False
Hello,

I have a scenario where a question will appear on the screen, and when the student thinks they know the answer, the facilitator clicks on the their name, and correct and incorrect boxes appear. If the answer is correct, all names on the screen SHOULD disappear and the next question appears. But right now, only the last name disappears. Attached is my code... what am I doing wrong?

Any help would be greatly appreciated

Thanks

Doug









Attach Code

//"players" is an array that holds the number of players specified at the beginning of the game.

for(var i:Number = 0; i < players.length; i++){
mcName = this.createEmptyMovieClip("mcName" + i, this.getNextHighestDepth());
mcName.border = true
var tfName = mcName.createTextField("tfName" + i, 1 + i, 50 + (200 * i), 400, 100, 25);
tfName.setNewTextFormat(tfNameFmt);
tfName.border = true;
tfName.borderColor = 0xFFFFFF;
tfName.text = players[i];
mcName.onPress = function(){
var mcCorText:MovieClip = this._parent.createEmptyMovieClip("mcCorText", 1)
var corText = this._parent.mcCorText.createTextField("corText", 3, 300, 500, 100, 25);
corText.text = "Correct";
corText.border = true;
corText.borderColor = 0xFFFFFF;
corText.setTextFormat(tfNameFmt)
mcCorText.onPress = function(){
nextFrame();
mcName._visible = false;
mcCorText._visible = false;
}
}
}

Stage.showDefaultContextMenu = False + Custom ContextMenus
I would like to hide the default contextMenu for every displayObject in my application, so I figured i'd use stage.showDefaultContextMenu = false;
however, when i do this, any custom contextMenus I have added fail to appear.

I am adding the custom menus as shown below. Note that these menus appear when i have stage.showDefaultContextMenu = true;








Attach Code

var cmMenu:ContextMenu = new ContextMenu();
var item:ContextMenuItem = new ContextMenuItem("Item 1");
cmMenu.customItems.push(item);
// add a listener if needed, etc ...
sprite.contextMenu = cmMenu;

Showmenu
Hey guys, I am having a bit of trouble with the FSCommand that lets you hide the right-click menu and replaces it with one alternate option (about flash player)....Does anyone know how I can do this? Thanks a lot

Showmenu Problems
Hi
i have created an html page with lots of flash objects on it but even though showmenu is set to false in flash when i preview the page through dreamweaver and right click the flash objects i get the rewind, fast forward, etc menu i just want settings and about flash player. can anybody help? I have published these flash objects as swfs only. If i do it as html as well they all apeear on different pages

Problem Of Showmenu
hello~
A space between the swf and top of flash player when i have played and use 'fscommand("showmenu",false)' or 'Stage.showMenu = false' in flash.

can i cancle the space still hold the showmenu false?

Fscommand Showmenu
How come fscommand("showmenu", false), doesnt work

and so on

Fscommand Showmenu
Hello....

I've tried and tried, but nothing seems to work

I tested my website on a server and the flash menu keeps popping up even though i've put
fscommand("showmenu","false"); on the first frame of the flash file.

Actually i'm using a base movie to load in another movie. I put the fscommand on both.

What could be the problem?

FSCommand (showmenu) Not Working In IE6
anyone know why my fscommand doesn't work with IE6? i'm using MX, and i put

fscommand("showmenu", "false");

in the first frame. i publish the html with the "Flash with FS Command" settings. i still get the menu in IE 6. any ideas?

Fscommand - Showmenu Problem
Hi everyone,

fscommand("showmenu", false);

I put the above code into the first frame of my fla. Im publishing for flash 6 player using flash MX 2004. The swf is being shown inside IE. but i can see the menu! It gives me a menu with zoom, play, rewind, etc... all sorts of things that can break my movie!!!!

How do i get rid of the menu????!!!

Ive even searched google groups for this... Hope someone can help.

Thanks.

Tim.

Problem With Fscommand Showmenu
I am making a demo cd for a client which involves an intro.exe and a landing page (nav.swf). On the first frame of the intro I put in the actionscript code: fscommand("showmenu", false); to hide the menu. So the intro.exe plays fine and the menu is hidden, but then when it loads in the nav.swf using code: loadMovie("nav.swf", 0); the window size grows in height. It seems to be trying to compensate for the pixels that the menu used to occupy. This only shifts when viewing it on a PC. When I view it on a Mac it doesn't have that problem. Has anybody had this problem before? Is there a solution? Any help is much appreciated!

Showmenu Doesn´t Work For Me...
I´ve read the posts about showmenu fscommand and I´m trying to aplly this action on the first frame but it´s not working.
when I right-click the menu shows the same way.
any help?

Showmenu Doesn´t Work For Me...
I´ve read the posts about showmenu fscommand and I´m trying to aplly this action on the first frame but it´s not working.
when I right-click the menu shows the same way.
any help?

Fscommand Showmenu To Disable Settings, About?
I would like to disable all rightclick (for a ppc it's tap&hold) menus from the player, but it looks like i can't disable the settings or about context menu?

i want to use my own tap&hold behavior (or right click, whatever you prefer).

is this possible?!?

Lucas.

If Any "i" Is False Help... If (_level0["holder_mc"+i]._visible == False) {
How do I say

if any of the i numbers == false do something
?


Code:
on (release) {
for (var i=0; i<5; i++) {
trace(_level0["holder_mc"+i]);
if (_level0["holder_mc"+i]._visible == false) {
trace("yyyyyy something is hiding");
_level0.holder_globe._visible = false;
_level0.holder_mc2._visible = true;
_level0.holder_mc2.gotoAndStop(3);
trace(_level0["holder_mc2"]);
trace("jumped preloader YAY and went to mc2");
} else {
Glen Charles Rowell

Fscommand "showmenu" No Work On MAC OS
I've created a standalone for PC (.exe) and a MAC projector (.hqx) from Flash MX.

BUT

the fscommand "showmenu" set to false works ONLY on the PC side.

Anyone have an idea of how I can get this working on MAC side?
Or has anyone had the same problem?
:mad:

Fscommand "showmenu"
Has anyone else ran into problems using fscommand("showmenu","false");?

When I use the flashplayer to view the file, the code works perfect. But when I view it through a browser window, the menu displays. I can't figure it out.

any help is appreciated.

Fscommand "showmenu"
I am creating a projector and using the fscommand "showmenu" as false (fullscreen false also). When I do this, and load a 'fullscreen' .swf file, it creates extra pixels on the top and bottom. Any way to work around this while not being able to view the menu?

Thanks.

Rob Childress

False ?
Hi

Im wonder if I want to load a movie before it is needed what do I do?

False
If I have a button that is visible(false) can people still click it? If they can then how do I make it so they can't click it?

&EOF = False;
Hi,
Before I launch into one, just noticed that Bleeda's about again, haven't seen you for a while man, trust all is well.

Problem: I have a small animation that plays whilst my movie is loading in txt files, code on end fr. of animation is:

if (_parent.holder.EOF == "true") {
gotoAndPlay(1); //this frame has a stop() action in it
} else {
gotoAndPlay(2);//this continues the animation whilst the txt is loading
}

Now it works fine with text, but in some case I load an swf, when I unload the swf the animation should play as there is no text file and EOF is not true - but it doesn't !!!
To ensure that EOF is false I have loaded in an empty.txt that has no vars at all.

Any help appreciated - it is an annoying little bug

Cheers

Vosgien

Unhappy Adjusting Columns And Rows On Stage Resize, According To Stage.width.
Hey fello flashers,

what i'm trying to achieve can be seen here, at the FWA's website.

When you resize the browser window the thumbnails rows and columns adjust accordingly to fit.I've managed to attach the thumbnails correct when my enableButtons() function is called but i'm unsure how to approach resizing.

if anyone has encounted this problem before or can help, then pls do i'm a little confounded on this one.

thanks
cam

Stage.align = "TL";

var numberOfGalleries:Number = 20;
var thumbMarginX:Number = 163;
var thumbMarginY:Number = 109;

function init():Void {
enableButtons(numberOfGalleries);
resizeStage();
}

function enableButtons(numberOfGalleries:Number):Void {
currentRow = 0;
currentColumn = 0;
for (i=0; i<numberOfGalleries; i++) {
tracker = i;
thumbsDisplayer = this.createEmptyMovieClip("thumbsDisplayer_mc", this.getNextHighestDepth());
currentThumbnail = thumbsDisplayer.attachMovie("thumbnail holder", "thumbnail"+(tracker+1), thumbsDisplayer.getNextHighestDepth());

currentThumbnail._x = currentColumn*thumbMarginX;
currentThumbnail._y = currentRow*thumbMarginY;
currentColumn++;
if (currentThumbnail._x>(Stage.width-(currentThumbnail._width + thumbMarginX))) {
currentRow++;
currentColumn = 0;
}
}
}

function resizeStage() {
var myListener:Object = new Object();
myListener.onResize = function(e:Object):Void {
//
}
Stage.addListener(myListener);
}


init();

True Or False (help)
Well it's been one of those days whe you learn somthing new and you say hey this is neat, then you go to save and what happens the Fu**ing comp crashes and can i figure out how i got it to work first time :( PISSED OFF :(

here we go, i will try explain this best i can.

on the first key frame of the movie i have this
dismain = false;
discon = false;
disgb = false;
dischat = false;
dischart = false;
dislink = false;

The dis"" is the name of the mc's that r going to be displying the information.
inside each of the mc's first frame i have a mc for clipevents. this has
onClipEvent (enterFrame) {
if (_root.dismain==true) {
_root.dismain.gotoAndPlay("dismain_on");
}
}
i know that this code is not complete becuase i need to and an if statement to check and see if it is false as well (if someone can tell me how to do this cheers). The second frame has a gotoAndPlay(1) 1 being were the clip is checking for true or false.

Now i have a button that triggers dismain to be true.

on (release) {
gotoAndPlay ("unload_signin");
_root.dismain = true;
}


I think thats about it. So can someone see were iam going wrong.
Sample movie
http://ecosse-web.com/~activefm/active/activemain.swf
i am looking to control when the diplay mc plays with true or false.

Does everybody follow me.

cheers

_visible = False?
O.k this is what I want to happen... I load a swf into my main scene with loadMovieNum, name.swf, 1); And I added _visible = false on frame 1 of name.swf. So what I want is to click on a button within the main movie and have it bring the loaded movie into view with _visible = true, but then also make that loaded movie jump to frame 2 and play.
How would I do that. It's probably simple and I am having a brain fart, so please bear with me.

Thanks in advance, william

False Buttons ?
Is there the possibility in flash MX to make a false button : It covers a graphic, works like a button but is invisible ?
Thx,
hacook

Allowscale = False
Ok,
So, I know I'm going to feel like an idiot when someone answers this, but I'll appreciate any help.

Here's the situation:
I'm using one swf (as a stand alone exe projector) as my main movie, and I'm calling outside swf files to play on the main stage. The main stage needs to expand to fill the viewer's screen (no problem), but the outside swf's are video files, and I do NOT WANT THEM TO SCALE with the main stage.

The Problem:
I know I'm missing something here, but anytime I use the fscommand in either the embedded swf, or the main exe file, it effects everything on the screen, instead of just the targeted swf file that comes in as a movie clip. Is there something I have to do in the set properties to keep just that clip from scaling?

Anyone out there who could send me some code to fix this, or show me an example out there online? I would really appreciate it!

Thanks!

False HitTest
i have the following script on a MC in my .fla:
onClipEvent (enterFrame) {
if (hitTest(_root._xmouse, _root._ymouse) and (_parent.tr._alpha>30)) {
_parent.tr._alpha -= 5;
}
}

i want to make it to where when the hitTest is false, it sets tr._alpha back to 100. i tried doing it as an else but when i tested it out, the alpha went down to 30 (like i programed in the script) but then shot back to 100 and then repeated even though the mouse was still over the MC. would i have to use a "false" expression? and if so, how and where would i put it in the script. thanx in advance.


Shaggy

Copyright © 2005-08 www.BigResource.com, All rights reserved