ActionScript 3.0 :: Hide / Show With Only One Button

Mar 9, 2012

I'm not happy with my hide/show function..... the code works, but I think it is a waste of space on my stage that I need two buttons to hide and show a movieclip... there must be a better way

[Code]...

View 3 Replies


Similar Posts:


ActionScript 3.0 :: Show And Hide A Darned Button

Apr 13, 2009

I need to progress. [URL] The Adobe documentation assumes you are an expert with Flash and there are no clear cut examples of how to even show and hide a darned button, well, I can't find any referrences. I can imagine what I want to do with flash, but getting anything out of it cracks open my brain. Programming is not fair!!! for us graphic artists. Examples of things I want to study are loading images to the stage on a specific event such as "if(enterFrame == x)" ideally I would like the images to load from a directory on the server and ease in the image.

Basically I want to keep it simple yet effective. Alot of the code I see out there is double dutch to me and appears to go in the wrong direction of simplifying things. I can understand the basic fundamentals, but I wish when people post examples like myMC1.visible = true; that they explain that myMC1 is just a name chosen by the writer to look for an item called myMC1 or go the extra step and color code the code BLUE for actual code, RED for names of items given by the writer that exist on the stage etc etc...

[Code]....

View 3 Replies

ActionScript 3.0 :: Button To Show And Hide A Movieclip

Dec 9, 2009

I want a button to show and hide a movieclip (see attached files for source) the Button is a Movieclip and has been coded using a tut I got from some where but I am stuck on how I can get it to do the show and hide part <edited part> forgot to Add that I also want to make a Text box say Grid On and off

[Code]...

View 3 Replies

ActionScript 2.0 :: Show/hide MC When Mouse Is Over/out Of Button?

Jul 2, 2011

I want to show/hide a symbol (movie clip) when i mouse over/out another symbol (button) and also want to move the movie clip as motion of mouse by attaching to the mouse... for this.. i think i have to use startDrag action but i am confused how.

if i use action on button like:

on (rollOver) {
startDrag("abc");
}
on (rollOut) {
stop();
}

where "abc" is instance name of movie clip it will do the work but it doesnt give effect of appearing and dissapearing the movie clip when i mouse over the button.

View 4 Replies

IDE :: Hide / Show Them By Clicking A Button In Flash?

Jul 11, 2009

I have two div layers in an html page. Is there a way to hide or show them by clicking a button in flash? I have searched online and haven't been able to find something that works.

View 1 Replies

ActionScript 2.0 :: Hide / Show Object Button?

Jan 31, 2008

I used to play around with flash during the early days of action script 1.but now i can't seem to find my way around it. Used to be able to add the script to the button itself.here is my problem.I have 2 object movie clip instanceobject_red and object_blueand I have 2 buttonsshow_switch and hide_switchwhat I want to do is to have a toggle button show and hidethe objects on the movie.

View 1 Replies

ActionScript 3.0 :: Simple Show/hide Movieclip Via Button?

Sep 24, 2009

I've been looking on google, but I have found nothing at all on this, which is surprising as it is very simple to make (I have done it in AS2).I was to have a button that can hide a movieclip. Then another button which will show it again.

View 8 Replies

ActionScript 3.0 :: Show/Hide Button Functionality For User?

Jul 13, 2011

I have been tasked with adding button functionality for a fence companies flash application. Specifically, the buttons will be in a drop down horizontal menu. They will have to display (and hide) certain accessories that will be placed on the fence or are a part of the fence itself. For an example of something similar, please check out the design studio at this site -[URL]. It is the application about halfway down the page and after hitting the APP MENU button, it is the top most option.note that as the fence moves (by scrollers) the accessories always stay with the fence. So, I am guessing that the whole thing is a movieclip and that the buttons are referencing?, showing?, hiding? certain aspects of the movieclip.

View 1 Replies

Hide / Show Content From Layers When Button Is Clicked

May 14, 2009

I have an animation that shows items highlighted in a diagram. As the items are highlighted, the audio will play (to explain the animation). because we are creating this for people with possible disabilities, we also created captions with text for the audio. So, in separate layers, we created speech bubbles and text that is synchronized to the animated actions on the screen. this will also be synchronized with the audio. We want to have a button (close captioning button) that when users press it, they see the text captions and if they press it again, they don't see the text captions. my questions are

1) what will be the easiest way to create the effect i am looking for?
2) what actionscript command will i need for the button's actions?

View 14 Replies

ActionScript 3.0 :: Get A Button In A SWF To Show/hide DIVs In HTML?

May 13, 2010

getting a button in a SWF to hide and/or show DIV layers in the HTML page the SWF is sitting in.

View 9 Replies

ActionScript 3.0 :: Show / Hide Window On Button Click?

Dec 23, 2011

make an graphic (just a box with text in it) be shown as default, then when the user clicks (either clicks the box or anywhere or a cross - anything!) the window is hidden, then if the user wants to see the box again, they can click a button saying 'show info'.

And I looked on the forums and found ( showthread.php3?t=66284" ) << I can't post links because my post count is too low .

But I tried that (both methods mentioned) and i can't seem to get them to do anything?

View 3 Replies

ActionScript 2.0 :: Hide/show Layers On The Click On A Button?

Dec 6, 2005

is there a way to hide/show layers on the click on a button?

View 2 Replies

ActionScript 3.0 :: Show / Hide Movieclip When Click On The Button

Sep 28, 2010

I just did a button and 3 movieclips. What i want? Well, when i click on the button to change the movieclips. click 1 = movieclip 1 when i click again on the button it change to movieclip 2 My problem is that i can`t make so it can change to movieclip 3.So when i click it must be something like this> click 1 = movieclip1, click 2 = movieclip2, click 3 = movieclip 3 so on...

[Code]...

View 2 Replies

Actionscript :: Flash - Change A Button, Onclick - Show/hide?

Aug 16, 2009

Using ActionScript 2.0, how do I show or hide a button onclick? I am making a simple mp3 player, and would like my pause button to change to a play button when clicked, and vice versa.

View 2 Replies

ActionScript 2.0 :: Show Hide Button Via Variable In Text File?

Mar 10, 2010

I have a movie that loads several variables from different text files depending on the users selected location.In each location txt file I have set a variable showPDF=false to hide a view PDF button named "pdfBtn" on the main timeline. In the text file the variable is set as follows:

&showPDF=false
on the main timeline the hide AS is as follows:
var showPDF2=showPDF;

[code].....

View 9 Replies

Professional :: Add Caption And On Off Button To Show And Hide The Caption

Mar 1, 2011

I have an audio slide show and I need to add caption and on off button to show and hide the caption. how can I make on and off button to show the caption?and is it possible to add caption on my audio (not video) using actionscript 3.0?

View 1 Replies

ActionScript 2.0 :: CS3 Show/Hide Mc's In Array?

Oct 13, 2009

Several arrays are created by passing a number (k) from a different array,for every item in the array I need to have a little dot.I have a movieclip on the timeline with a maximum of 15 dots.So if the array has only 6 items, the last 9 dots should dissapear.

PHP Code:

function fill_items(k:Number) {
var item = josXML.firstChild.childNodes[2].childNodes[k];

[code].........

But the dots_total[t]._visible = false; part isn't working...Maybe it's the wrong way to achive this, but i can't seem to figure out why it's not working.

View 2 Replies

ActionScript 1/2 :: Hide And Show Datagrid?

Aug 7, 2011

How do I hide a datagrid and then show it?I have a button to select. The button when clicked should show the datagrid. Once the user clicks a cell on the datagrid, it should hide again.

View 1 Replies

ActionScript 3.0 :: Show And Hide Text?

Feb 5, 2012

I have button (csignal_btn and endsignal_btn) and i have dynamic text (csignal_txt and endsignal_txt). Now how i can when is unhovered to no be text (alpha=0), and when hover csignal_btn to show csignal_txt (alpha=1)?? Same thing for endsignal_btn

View 3 Replies

Flex Show / Hide On Mouse Over / Out

Mar 23, 2010

i need to show the second one when there is a mouse over the first one and hide it when it goes out of the first one also i want the second container content to be usable (mouse clicks/moves)

View 2 Replies

ActionScript 3.0 :: Show And Hide Elements In DIV?

Jul 30, 2009

I have a problem with showing and hiding a link to another page. The following is the code thats placed inside cfform(format is flash).

[Code]...

View 0 Replies

ActionScript 2.0 :: Show/Hide Scrollbar?

Sep 27, 2004

1. I've downloaded the Source for MX included in the "Hide/View the Scrollbar Component" page of It simply doesn't work when I open the file and publish it. I'm using Flash MX 2004, ... has anyone experienced the same problem and solved it?2. I've been able to set the scroll visibility with an external dynamic text using several procedures. One of them is:

SB1.setScrollTarget(_root.Texto1);
if (Texto1.maxscroll > 1) {
SB1._visible = true;

[code]....

View 3 Replies

IDE :: Show/hide Movie Clip With Xml?

May 14, 2009

i wanna do a flash that reads an xml, in which the xml tells my flash to show or hide movie clips (they have instance names).

Code:
//added in the frame
var elights = _root.mc_elights ;
var logo = _root.mc_logo ;
var croom = _root.mc_croom ;

[code]....

i however, want to do this via xml, so that i could have my programmer colleague create a php to call for this database.

View 1 Replies

IDE :: Hide/show The Mouse After Some Period ?

Sep 27, 2009

I want to hide the mouse after some period when there is no mouse movement (i.e. 5 seconds), and then for the mouse to reappear when the user moves their mouse again.

View 1 Replies

ActionScript 2.0 :: Show Hide Divs Via Flash?

Jul 9, 2009

I have a flash map. There are 6 clickable countries on the map. When one clicks on a country I want html content to appear under the flash movie. As far as I can see the best way to accomplish this is to have all the content already under the flash movie each in a separate div, with display set to hidden. Then action script inside the country buttons calls a javascript function on the html when that button is clicked, to set display:block for corresponding content filled div. I've tried a few scripts but couldn't get it working.

<code>button_kenya.onRelease = function ()
{
flash.external.ExternalInterface.call("kenya");
};</code>

Is there anything else i should do when imbedding flash into my page so that the flash can talk to the html and call the javascript?

View 3 Replies

Show/Hide Multiple Movieclips Query?

Nov 10, 2009

I'd like to be able to have an array of movieclips where i'm able to toggle their visibility depending on what button has been pressed. I would need to have a default movieclip that is visible and all the others are hidden, but then when I click a button to make one of the other movieclips visible the default one is hidden etc.You can see an example of what i'm trying to achieve at http:[url]........I'm experienced in PHP and HTML but have not used flash for several years so i'm pretty rusty. Can anyone point me in the right direction?

View 5 Replies

ActionScript 3.0 :: Show/hide Random Objects?

Sep 28, 2010

Flash in general so this is probably above my skill level. Basically I have 3 movieclips, called random1, random2 and random3 for the sake of this.I want, at the start of the frame to pick one of the three objects at random, keep that object visible, and hide the other 2

View 2 Replies

ActionScript 1/2 :: MovieClip Hide/Show On Release?

Dec 6, 2009

I'm making a Flash AS2 Dress-up game and I want to show/Hide movie clips on release of a button like this one;

View 1 Replies

ActionScript 3.0 :: Show / Hide Sub Menu Using Array

Apr 12, 2010

I'm trying to show and hide a sub menu. So what I want to do is for the sub menu to show up and stay up if certain buttons are clicked, but disappear if other buttons are clicked. I've got an array of the sub menu. If any of the buttons are clicked from the sub menu array, it should stay.

var subMenu:Boolean=false;
This is my sub menu array:
var arrSub:Array=[m8_mcButton,m9_mcButton,m10_mcButton,m11_mcButton,m12_m cButton,m13_mcButton,m14_mcButton];

When a button is clicked, I want to check to see if the sub menu is showing and to check which button has been clicked. This is the code I came up with, but unfortunately, doesn't work...

function onButtonClick(e:MouseEvent):void {
for (i=0; i<arrSub.length; i++) {
if (subMenu && e.currentTarget!=arrSub[i]) {
arrSub[i].y=-130;
subMenu=false;
}}

View 2 Replies

Professional :: Way To Consistently Show And Hide A Textfield?

Dec 8, 2011

url...Is there a more effective way to consistently show and hide a textfield? or is there a smarter class to use like MovieClip or Sprite?I've tried all 3.This configuration of the two functions shows the message box once, but fails to hide. [code]Alternatively if I don't set the alpha in showMsg it show once, hides once, but fails to show again.It's like alpha can only be changed once and then it fails to change after that:[code]

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved