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




Button Auto Hide



i have utilized the new fullscreen method for my video player. now what i want to do is to have the buttons auto hide on mouse inactivity when player is in fullscreen mode. can anyone help me out with that?



Adobe > ActionScript 1 and 2
Posted on: 03/22/2007 10:02:26 AM


View Complete Forum Thread with Replies

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

Mouse Auto Hide
hi,

i know this is a stupid question ... how can i make the mouse cursor auto-hide. i know how to make it dissapear when i hit a key, or hit a button ... but auto?

thanks
andrei

Auto-hide Menu Plz?
Hi there!

Could anyone plz tell me how to make a menu like the Gucci menu bar? I am not very in to Actionscript and I have no idea on XML..

thanx

Auto Mouse Hide?
I've created a FLV player in flash. After a few seconds of the mouse
not moving, if it's over the video, I want the mouse to hide.

Anyone have any examples of this?

Thanks

-Rich

Flv Player Auto Hide
Hi, I was wondering if someone could helf me to include an auto-hide function for a flv-player. I was thinking about adding all the control components to a mc, which you could fade in and out (mc roll-over). I did it already, but is wasn't working, just flickering. I think I have to change the rooting or the levels, but I have no idea how.

example: http://vimeo.com/

gotoandlearn flv code
Code:

var nc:NetConnection = new NetConnection();
nc.connect(null);

var ns:NetStream = new NetStream(nc);

theVideo.attachVideo(ns);

ns.setBufferTime(10);

ns.onStatus = function(info) {
   trace(info.code);
   if(info.code == "NetStream.Buffer.Full") {
      bufferClip._visible = false;
   }
   if(info.code == "NetStream.Buffer.Empty") {
      bufferClip._visible = true;
   }
   if(info.code == "NetStream.Play.Stop") {
      ns.seek(0);
   }
}

stopButton.onRelease = function() {
   ns.pause();
}

ns.play("Showreel_fs.flv");

playButton.onRelease = function() {
   ns.pause();
}

rewindButton.onRelease = function() {
   ns.seek(0);
}

var videoInterval = setInterval(videoStatus,100);
var amountLoaded:Number;
var duration:Number;

ns["onMetaData"] = function(obj) {
   duration = obj.duration;
}

function videoStatus() {
   amountLoaded = ns.bytesLoaded / ns.bytesTotal;
   loader.loadbar._width = amountLoaded * 208.9;
   loader.scrub._x = ns.time / duration * 208.9;
}

var scrubInterval;

loader.scrub.onPress = function() {
   clearInterval(videoInterval);
   scrubInterval = setInterval(scrubit,10);
   this.startDrag(false,0,this._y,208,this._y);
}

loader.scrub.onRelease = loader.scrub.onReleaseOutside = function() {
   clearInterval(scrubInterval);
   videoInterval = setInterval(videoStatus,100);
   this.stopDrag();
}

function scrubit() {
   ns.seek(Math.floor((loader.scrub._x/208)*duration));
}

var theMenu:ContextMenu = new ContextMenu();
theMenu.hideBuiltInItems();
_root.menu = theMenu;

var item1:ContextMenuItem = new ContextMenuItem("::::: Video Controls :::::",trace);
theMenu.customItems[0] = item1;

var item2:ContextMenuItem = new ContextMenuItem("Play / Pause Video",pauseIt,true);
theMenu.customItems[1] = item2;

var item3:ContextMenuItem = new ContextMenuItem("Replay the Video",restartIt);
theMenu.customItems[2] = item3;

var item4:ContextMenuItem = new ContextMenuItem("© 2005 Lee Brimelow",trace,true);
theMenu.customItems[3] = item4;

function pauseIt() {
   ns.pause();
}

function stopIt() {
   ns.seek(0);
   ns.pause();
}

function restartIt() {
   ns.seek(0);
}

_root.createEmptyMovieClip("vSound",_root.getNextHighestDepth());
vSound.attachAudio(ns);

var so:Sound = new Sound(vSound);

so.setVolume(100);

mute.onRollOver = function() {
   if(so.getVolume()== 100) {
      this.gotoAndStop("onOver");
   }
   else {
      this.gotoAndStop("muteOver");
   }
}

mute.onRollOut = function() {
   if(so.getVolume()== 100) {
      this.gotoAndStop("on");
   }
   else {
      this.gotoAndStop("mute");
   }
}

mute.onRelease = function() {
   if(so.getVolume()== 100) {
      so.setVolume(0);
      this.gotoAndStop("muteOver");
   }
   else {
      so.setVolume(100);
      this.gotoAndStop("onOver");
   }
}
   
   
   
   
   
   
   
   

[F8] Auto Show/hide ScrollBar
Hi there!

How could I automatically show/hide the ScrollBar attached to a dynamic text field depending of the length (number of lines) of the variable loaded in this dynamic text field?

Many thanks in advance for your help!

Regards,

Gerry

Auto Hide Flv Skin Problem
When I have auto hide set to true on my FLV file, the controls work great when I'm looking at the swf file with flash player or in the browser, but once I put the SWF into an html page or look at the html page flash publishes, the auto hide is hit and miss. If I move my mouse slowly in and out of the movie it is more likely to disappear and reappear, if I move my mouse quickly it stays on the video. Anyone else with this problem?

Note- the flash file is the same dimensions as the flv file and the flv is centered in the movie.

Lee's FLV Player - Auto Hide Controls
Hi All

I have been building the flv player by following Lee's awesome tutorials and for my final step I would like to have the controls autohide when the mouse is not moving, similar to the video player on Vimeo - http://vimeo.com

Does anyone know where I can find a tutorial on how to do this, or give me some pointers so I can try to do it myself?

Thanks in advance

Auto Show/hide ScrollBar
Hi there!

How could I automatically show/hide the ScrollBar attached to a dynamic text field depending of the length (number of lines) of the variable loaded in this dynamic text field?

Many thanks in advance for your help!

Regards,

Gerry

Auto Hide Scrolling Dynamic Text
I'm attempting to make a textfield with scrolling arrows but when the text small enough to not need scrolling arrows they wont appear.

So is there a way to determine the amount of lines visible in a textfield? I can use bottomScroll to find out the amount of lines.

I read somewhere that maxScroll could be used to determine whether the scroll arrows are need or not. But when tracing maxScroll it always returns 1 whether the text overflows the textfield or not. Would anyone know why this happens? Would it have anything to do with html formatted text?

Also the textfield overflow its height boundaries but not the boundaries of the movieclip it's within. Do i have to put it inside another moviclip to prevent this?


ActionScript Code:
_txText = createTextField("_txText", this.getNextHighestDepth(), 0, 0, _boxWidth - _padding*2, _boxHeight - _padding*2);// overflows height
        _txText.html = true;
        _txText.autoSize = "left";
        _txText.multiline = true;
        _txText.antiAliasType = "advanced";
        _txText.styleSheet = _cssStyles;
        _txText.htmlText = _textContent;
        _txText._x = _padding;
        _txText._y = _padding;

thanks for your time


-------------EDIT-----------------
I believe because it is html formatted text that the textfield picks the input up as one line and then interprets it sending it down the the textfield causing it to overflow. Is there a way for it to read it as many lines?. ... The html input is just a series of words in paragraph tags...

FLV Skin Auto Hide Function Problem
When I have auto hide set to true on my FLV file, the controls work great when I'm looking at the swf file with flash player or in the browser, but once I put the SWF into an html page or look at the html page flash publishes, the auto hide is hit and miss. If I move my mouse slowly in and out of the movie it is more likely to disappear and reappear, if I move my mouse quickly it stays on the video. Anyone else with this problem?

FLV Skin Auto Hide Doesn't Work
Hi Guys

I've created a flash video (in Flash Pro 8) and given it a skin of ClearOverPlaySeekMute.swf. However, the Skin Auto Hide is not working when viewed in a browser.

I have set the parameter of SkinAutoHide to true, which works when you Preview as Flash, but as soon as it's exported and viewed in a browser the skin does not hide. I can get it to occasionally in Firefox, if I click and drag out of the video, but never in IE.

Any help would be greatly appreciated.

Thanks

Matt

Auto Hide (movie Clip) Task Bar
How do I make a auto hide task bar (which is a movie clip)?

auto hide bar similar to windows task bar, when move mouse to bottom of screen, the task bar come up, else task bar auto hide.
http://www.oniva.com/upload/1356/hide.jpg


I try to set code in movie clip (task bar) but don't work well
=====================
on (rollOver)
{
_root.top._x = 400;
_root.top._y = 220;
}

on (rollOut){
_root.top._x = 400;
_root.top._y = 150;
}

Auto Hide (movie Clip) Task Bar
How do I make a auto hide task bar (which is a movie clip)?

auto hide bar similar to windows task bar, when move mouse to bottom of screen, the task bar come up, else task bar auto hide.
http://www.oniva.com/upload/1356/hide.jpg


I try to set code in movie clip (task bar) but don't work well
=====================
on (rollOver)
{
_root.top._x = 400;
_root.top._y = 220;
}

on (rollOut){
_root.top._x = 400;
_root.top._y = 150;
}

Avoid Auto Hide In FLVPlayback Component Skin
Hi all,

I dont want my FLVPlayback skin to hide. I tried myFLVPlayback.skinAutoHide = false .. but it doesnt seem to help. Does anybody has any idea how to do it thru AS3??

Thanks in Advance,
Siraj

Avoid Auto Hide In FLVPlayback Component Skin
Hi all,

I dont want my FLVPlayback skin to hide. I tried myFLVPlayback.skinAutoHide = false .. but it doesnt seem to help. Does anybody has any idea how to do it thru AS3??

Thanks in Advance,
Siraj

Launch Full Screen Window With Auto Hide Tool Bar At Top
I've got all the correct action/java script set up so as to launch pop up windows in full screen, but I either need to implement a close window option within the pop up or allow the toolbar to appear on auto-hide at the top. Otherwise you can't close the pop up.

Any answers ? Much appreciated

Ted

Auto Hide Menu Examples, Similar To The Windows Taskbar, In Falsh
are there any simple examples out there of an auto hide menu? i am trying to create one but i get a problem with the layers like when the mouse hovers over a movieclip at the bottom another movie clip with the buttons for the menu pops up but i get a conflict with the original transparent movie clip, that calls up the popup, and the buttons on the buttons on the called upon menu.
right now i have this action on the transparent movie clip which is at the same position of where the menumc movie clip is supposed to popup at.
on (rollOver) {
_root.menumc._y = _root.jio._y - 40;
}
on (rollOut) {
_root.menumc._y = _root.jio._y + 40;
}
or if there are any other totally different ways to do it in actionscript i would really appreciate it. thanks.

Button To Hide
is there a way to hide button so that the cursor stay an arrow insted of becoming a hand..

i cannot use a mask because de menu is generate with a text file. so it use textfield.

i have tried to hide it under a mc but the cursor still switch to an hand...

I know i could change the cursor at the start and control ,the switch. but is there a other way, because i don't want to slow down the all movie .

thanx

Hide Button
Hellow,

I import a dynamic value from an extern asp file.
For example:
button = yes
or
button = no

When the value button = no, I don't wan't to see the button in the movie!
How can I do this.
I tried the following but it does'nt work:

if (button = no)
{
button.hide
}

tnx

Hide Button From XML
Hi,

I've got a simple flash scripting problem that I can find a solution too anywhere.

Im trying to hide a button using a reference from an XML file, I want to do the following:


Code:
internet_btn._visible = false;
But I want to replace 'false' with some variable that points to the line <btn>false</btn> in my xml (below) and uses 'false' rather that seeing it as a string.

My XML looks like this:


Code:
<?xml version="1.0" encoding="UTF-8"?>
<contents>
<titles name="Which Service do you require?"></titles>
<comments name="Please select below"></comments>
<btn>false</btn>
</contents >
Ive tried the following, which of course didn't work, but I cant resolve it.


Code:
internet_btn._visible = myXML.firstChild.childNodes[2];
I keep getting 'undefined' but i dont know if its a problem with my scripting or the XML file... probably both.

Any advice you can offer would be greatly appreciated.

Thanks in advance.

Hide That Button
hi, i'm working on this website http://robokoneko.couchblip.com/interface.htm
but i'm having a problem, each buton is loading an swf but when clicked you still can press the button in the base movie, is there a way to hide these buttons? or should i work diffrently with these movies?
it would really help me you know

Hand Button Hide
hi

i want to make a button but

when i will roll over this button it's will be without the hand(will stay regular arrow cursor)

i mean that the user will not known that he on a button

please e-mail me a Fla. ex. file: ron054@inter.net.il

Thank You And Thank You Again!

On Mouse Over, Hide 2nd Button?
I have a toggle switch (3 positions). It has a RED position, a GREEN position, and it's default position is WHITE.

Follow so far?

Depending on mouse placement, the RED or the GREEN position is activated. Red's hit area is to the left, Green's is to the right within the same image...

My question is: How do I make it so on the mouseover of say, the RED area, the GREEN area dissapears

Since I have two buttons on separate layers, the top layer buttons UP state is always blocking the lower layers' state-even if it is the one being toggled. Is there an actionscript that says something like: "on mouseover, hide button #2" or somehting like that?

Thanks.

Joe

Hide The Hand On The Button?
hi, i have a question and i was wondering if you knew how to solve this problem in flash 5. I want to hide the default hand cursor that appears when rolling over a button and there is a simple way to this but cannot figure it
out. And by the way this problem must be solved with out the use of custom cursor.

Hide The Clicked Button
in Director, you can use 'Me' to call on the object that has been clicked, dragged, whatever...

is there a way to call on an object in flash in that same way?

for example, i'm wanting to have a button disappear once it is clicked. thing is, i have 25 buttons on the screen with different instance names.

i could go to every button and put in 'button01._visible = 0;' but there's gotta be another way.

something like...

Code:
on (release) {
me._visible = 0;
}

Remove,hide Button
I was asked to create a game, similar to Jeopardy, for my son's class and all went well until I realized that when a number (button) was selected and the user returned to the "gameboard" frame, the button they selected was still selectable. Scene 1, frame 1= intro. Scene 1, frame 2 = gameboard with buttons that I want to "disappear, or change telling them they have already selected that button. Scene 2, frames 1..... =questions and answers. How can I make the buttons disappear or change color and remain changed when the user returns to the gameboard (Scene1, frame2)? Thanks, Jeff

Hide Object / Button
hello there,

I am again facing a prob. but i m sure i will find some good solution here.

I have a two buttons on same layer same frame. Suppose one for next and other for Previous.

Now i want previous button should not appear until user press next button.
but the problem is that i have both object on same frame. so how can i do this.

i hope u are all understand

thanx

Hide Un-named Button
I have placed a start button on the first frame of my flash game. The button works fine, but I'd like to know how to hide the button after press.

I cant use _mc.visibility = false since I havent placed the button on the stage using the actionscript. Hence the button has no instance name.

How do I go about hiding in another way.

Thanks

Thomo.

Hide Part Of Button Behind Mc
Is there any way to keep the part of a button that is hidden behind a dynamically displayed movieclip from being selectable/clickable through the movie clip that's hiding it? - I don't want to make the button (actually a button mc) invisible because I still want the part showing to be visible.

help! thanks

Hide Button By Script
I tried...

01.visible = false

but got an error...

**Error** Scene=Scene 1, layer=Layer 1, frame=5:Line 15: There is no property with the name 'visible'.
01.visible = false;

Total ActionScript Errors: 1 Reported Errors: 1

Hide A Mc While RollOver Button?
Hello campers!

I wanna make a mc that hide, while RollOver a button.. is this possible?
I think it have to be something like this..


Code:
next_btn.onRollOver = function() {

picMenu_mc._visible = 0;
};
//next_btn is the instance name of the button that I wanna rollover
//picMenu_mc is the instance name of the MovieClip i wanna hide

Any one who can say what Im doing wrong here?
Thanks!

Using A Button To Hide Objects
I don't know if this has ever been asked, so i'll ask anyway. I'm creating a "deal or no deal" game. Would anyone know how to use a button (one of the cases) to make the button (case) and the corresponding a graphic symbol (cash amount) hide?
What would the action script for that be?
If you need to see the fla, let me know. It's too big to post.

How Do I Hide A Flash Button?
Hi, I have a question about hiding a flash button. I have 2 buttons (one for muting and one for unmuting). When I click on the mute one, I want to make it so that it hides the mute one and makes the unmute button visible and vice-versa. I have tried using the ._alpha on release for actions but its not working. I also tried using ._visible. Can someone help me out on this? Thank you.

Script For A Show/hide Button Anyone?
I have a button once pressed it plays an animation to then show a button. But how do i get it to close the animation through action script. i have the animation done already and have that assigned to another button but i would like it to just happen on one button. Hope you understand me.
Thanks.

Hide / Unhide Layer With Button AS
ok
i have 3 layers.

1.Button : ••••••••••••••• (plenty of keyframes)
2.MC::circle : ••••••••••••••• (plenty of keyframes)
3.MC::highlight: ••••••••••••••• (plenty of keyframes)

all the buttons should have the same AS.

on(releas) {
show->layer->highlight
}

if the button isnt pressed the layer highlight should be hide.


is there any cmd to hide/unhide a layer ?

Using A Button To Show/hide A Symbol
This should be really easy, but I'm totally new to Actionscript. I have no idea what I need to do to make this happen.

I want to have button that unhides a symbol. On that symbol I want a button that you can click to hide that symbol. Or if it's easier, clicking anywhere on the symbol could hide it. How do I set this up? I've looked around and found some code snippets that seem like they could help me, but so far I've had no luck.

Hide A Particular Button Till Click
Hi guys,
Yup can we do this.

I have two buttons but_1 and but_2

we should able to see but_2 only when but_1 ic clicked till that time it should hide.

like we have some property " but_2.enabled = false;"
But this only disables the button doesnot hide or show can we have something like but_2.show = false;

Rams

How To Hide A ComboBox's Button With Script?
Hello!

I think there should be an easy way to hide the button of a combobox component after it is disabled, so there no need for that.

In the Help, they write about references to the list and the textfield subcomponent, but i didn't find a reference to the button.


Thanks in advance!

Hide Custom Cursor Over Button
hello. n00bie here.

i am clueless with flash & actionscript. but i am trying to put together a map of mauritius, so far i'v got it almost done with the help of countless tutorials i'v found on the web.

i'm just struggling with one last thing thats in my way now.

i made a custom cursor - but its interfering with the animation of the buttons in the sense that you cant see the animation too well.

what i would like to happen is the cursor must hide when it hovers over a button/any button on the map. then on mouse-out it must come back again...

how can i achieve this?

this is the script i am using for my cursor:

onClipEvent (load) {
Mouse.hide();
startDrag(this, true);
}

and here is the script for my button/s:

on( rollover ){
this.contentholder.gotoAndStop(4);
}

on( rollout ){
this.contentholder.gotoAndStop(1);
}


i'd appreciate any help you could offer me!

thanks!

[F8] Button To Hide Movie Clip
Hi guys,

I can't get a button to hide a movie that is shown using this code:


Code:
stop();
// convert strings to numbers
col1 = Number(col1);
col2 = Number(col2);
col3 = Number(col3);
// loop and attach movie clips for bar 1
for (x=0; x<col1; x++) {
name = "col1"+x;
_root.attachMovie("col1", name, x);
// set _x and _y of this new attached clip
// note that 15 is just the height (approx) of one block
// these values are arbitrary
with (_root[name]) {
_x = 187;
_y = 566-(6*x);
}
}
The movie is called col1 and has no instance name.

_root.removeMovieclip("col1"); doesn't work.

Any help would be appreciated.

[CS3] How To Hide A Button With Nested Movieclips
Hey again people, this forum is so awesome I thought Id bug u a little bit more lol..

Ok so ive got a button but inside that button are a bunch of movieclips, the heirarchy is as follows

button>movieclip - clip, clip, clip, clip where the clips make up the movie clip and the movieclip is turned into a button (for interactivity purposes)

for some reason _visible is not working for me, i want the button to hide upon a rollover but it isnt working

heres the code i used:

PHP Code:




stop();
btnStillTroop.onRollOver = function() {
    btnStillTroop._visible = false;
};







the code is placed in a feyframe, position one on a separate 'script layer' in the main timeline. when i test it and rollover the button nothing happens, any ideas why?

Hide/Show Button Issues...
Hello, I have just started doing ActionScript 3.0 a few days ago. I am trying to currently have 3 buttons on the stage. Upon clicking 1 of the buttons, it my hope that it will navigate to the new stage (through animations) and "hide" the button until one of the other buttons are clicked.

The issue/error is a 1078:Label must be a simple identifier.

Here is the 2 lines of code that it is based off of:

hide.target:shirt_bu;
show.target:design_bu;

And here is the code in context of the entire function(s):

//SHIRT BUTTON
shirt_bu.addEventListener(MouseEvent.ROLL_OVER, buOver);
shirt_bu.addEventListener(MouseEvent.ROLL_OUT, buOut);

shirt_bu.addEventListener(MouseEvent.CLICK, shirtTo_design);

function shirtTo_design(event:MouseEvent):void
{
trace("working properly");
shirt_bu.removeEventListener(MouseEvent.ROLL_OVER, buOver);
shirt_bu.removeEventListener(MouseEvent.ROLL_OVER, buOut);

shirt_bu.removeEventListener(MouseEvent.CLICK, designTo_shirt);

design_bu.addEventListener(MouseEvent.ROLL_OVER, buOver);
design_bu.addEventListener(MouseEvent.ROLL_OUT, buOut);

design_bu.addEventListener(MouseEvent.CLICK, designTo_shirt);

hide.target:shirt_bu;
show.target:design_bu;
}

//DESIGN BUTTON
design_bu.addEventListener(MouseEvent.ROLL_OVER, buOver);
design_bu.addEventListener(MouseEvent.ROLL_OUT, buOut);

design_bu.addEventListener(MouseEvent.CLICK, designTo_shirt);

function designTo_shirt(event:MouseEvent):void
{
trace("working properly");
design_bu.removeEventListener(MouseEvent.ROLL_OVER , buOver);
design_bu.removeEventListener(MouseEvent.ROLL_OVER , buOut);

design_bu.removeEventListener(MouseEvent.CLICK, designTo_shirt);

shirt_bu.addEventListener(MouseEvent.ROLL_OVER, buOver);
shirt_bu.addEventListener(MouseEvent.ROLL_OUT, buOut);

shirt_bu.addEventListener(MouseEvent.CLICK, shirtTo_design);

hide.target:shirt_bu;
show.target:design_bu;
}


Hope that makes sense. Any help would be greatly appreciated!

Hide Or Delete Button Permanantly After First Use
I am designing a Flash presentation that also has quiz questions throughout the presentation for the user to answer. I am looking for a solution to two problems:

1. I would like to find a way to permanantly delete or hide a button after it has been used once. I want to do this so that an answer cannot be chosen again if you go forward in the presentation and return to the frame. I have tried "my_btn.enabled = false" and the button always is reactivated when I return to the questions. Preferablly I would like to delete or hide the button after it has been selected.

2. I have tried writing a function that keeps track of your score. The only problem with it is that when you answer the question and go forward, you can go back to the question frame and re-answer the questions. This results in odd percentages. I would like to only score the first answer selected, so that they can go back and re-answer the question, but only their first answer to a question is counted in the score.

I would greatly appreciate any help that I can get!!!

'show' And 'hide' Button Not Working
hello everyone! I have a 'show' button which will attach all the movie clips on its own location and i also got 'hide' button which will remove all movie clips.. my problem here is, when i click the button on the first time, it works but on the second time i tried to click it, it didn't work. I mean, i click the 'show' button, it will attach the movieclip. when i click the 'hide' button it will remove all the movieclip but when i try to click it for the second time, it didn't work! can somebody check my code attached? thanks...

Hide/Show A Button Using An If Statement
I don't know actionscript at all and have googled this question but can't find the nitty gritty. I figured it would be an easy question for you guys and gals.

I have a button that I have given the name "EventButton". I have three variables "Var1, Var2, Var3". I only want my button to show up if any of these vars are not blank. Can anyone help me.

Text Show And Hide By A Button...
I'm having problems with a flash movie.
I want to put a bar and the subtitles in it. And toggle it on and off by a button, must be the same.

- The button must toggle the subtitles and the bar on if they are off, and off if they are on.
- The user's choice must remain over the scenes.
- The movie is supposed to start with the bar and the text off.

There's a movie that has it in a button called Creator's Notes:
http://www.newgrounds.com/portal/view/191110

If you decide to help me, please explain it step by step, sice I'm stupid in ActionScripting.
Thanks in advance...

Hide Objects Until Activated By Button
Hi all,

another question - I'm using the following actionscript to toggle on and off (visible/invisible)certain objects within my flash movie using buttons (thanks to taff for the great code):

//When the buttons pressed
myBtn.onRelease = function () {
//change the value of _visible to the value it isn't :-P
myMC1._visible = !myMC1._visible;
myMC2._visible = !myMC2._visible;
};

However, when starting the flash movie, the objects myMC1 and myMC2 automatically start up as visible. What I'd like to have is the movie start up with them invisible, and then use the buttons to toggle them on or off as desired....but their default should be off/invisible, rather than on/visible.

Can anyone of you fine people help?

Bruce

Hide Button On Rollover Action
HAI I CREATE THREE BUTTON IN MOVIE MY OBJECT IS WHEN
I ROLLOVER ON BUTTON1 , BUTTON HIDE I TRY VISIBILITY
BUT NOT WORKING .......

PLS HELP...


THANX

Hide Next Previous Button In Gallery
Here is the end of my code to hide the next and previous button (I used the tutorial from kirupa)

if (current_pos == 1) {
previous_btn._visible = false;
}
else {
previous_btn._visible = true;
}
if (current_pos == total){
next_btn._visible = false;
}
else {
next_btn._visible = true;
}
stop();

but now the only button that disappear is the next one (it does that at start)...
What's the problem ???

Xelaxam

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