ActionScript 1/2 :: Continued Trouble Making Button Hot Spot Invisible After Click?

Aug 12, 2009

i have a few buttons that use loadmovienum to load a few clips into levels. The code on each button is something similar to:
 
on(release){    loadMovieNum("print_index.swf",1);printbutton._visible = false;webbutton._visible = false;illusbutton._visible = false;threedbutton._visible = false;retouchbutton._visible = false;}
 
But because the print_index movie slowly scrolls across the stage rather than immediately replace it, there is a moment where the button turns completely invisible after the click. Perhaps the bigger problem is that it doesnt make any of the accompanying buttons invisible like it is supposed to- only the one that is clicked.

View 3 Replies


Similar Posts:


ActionSctript 3 :: Making A Button Invisible ?

Jun 7, 2009

I have one button instance that stretches across many frames, and I would like to make it invisible in some of the frames and visible in others. How do I do this with ActionScript 3?

View 1 Replies

ActionScript 3.0 :: Making A Button Invisible?

May 15, 2010

Im a bit a of a noob when it comes to AS. I have a problem that I think should be very easy to solve.

I have a shape that I turned into a button and gave it an instance name of "CA" I also have an array that has a string item called "CA"

I want to be able to make the button invisible by using the array instead of just writing the instance name. I have the following code but it just doesnt work.

[Code]...

View 5 Replies

ActionScript 2.0 :: Making A Button Invisible

Oct 31, 2008

I've built an image scroller but I'd like to make the 'next' and 'previous' buttons invisible at the first and last frames frames respectively. The code I'm using for the scroll is below. I think the code I'm after should be something like this:

HTML Code:
if (targetX<720) {
btn_Previous.visible = false;
}

But I can't work out where I should put it (or even if it's correct) within the scroller code.

[Code]....

View 11 Replies

ActionScript 3.0 :: Making A Movie Clip An Invisible Button?

Oct 7, 2008

how to make a movieclip invisible so I can use it as an invisible button?

View 3 Replies

ActionScript 2.0 :: Making Button Invisible Using Its Instance In Variable

May 1, 2006

I am just trying to make a button disappear using a variable set to it's instance name. When I say invisible I also mean deactivated. The code I've got is this..
Code:
[test]_visible = false;
but it doesn't work - any offers?

View 5 Replies

Actionscript 2.0 :: Click A Button Under An Invisible Button?

Jul 29, 2009

I am making a video player based on the Video Basics tutorials Lee put up a while back.

I am working on a custom controlBar with autohide. Basically, when i mouse over the video area I want them to pop up, and when I mouse out of the video area I want them to disappear. I have setup the controlBar movieclip itself with "show" and "hide" frame labels. Each one plays a fade in/out sequence a few frames long, no big deal. That is the easy part and works fine.

In order to detect the onRollOver and onRollOut events for the video area I made an invisible button on top of it called "butt". It works fine too.

Code: Select allbutt.onRollOut = function() {
trace("out of video");
controlBar.gotoAndPlay("hide");
};

[Code].....

Invisible button layer above controlBar layer: When i roll onto the video area the controlBar pops up, but I cannot access the buttons on it (play, rewind, etc) because they are now underneath the invisible button that monitors the rollOver and rollOut of the video area, which apparently wont let anything under it be clicked. How can I gain access to these buttons?

Controlbar layer above Invisible Button layer: When I roll onto the video area the controlBar pops up fine, but once I mouse over the control bar flash thinks I am leaving the bounds of the invisible button and tries to hide the controlBar right away, which causes me to "re-enter" the invisible button, so it just bounces back and forth between showing and hiding the controls.

How can I monitor the video area and still have access to the buttons on the controlBar once it pops up?

View 3 Replies

Professional :: Immediate Need Is To Take External Swf / Add Invisible Button Overlay / Click To URL

May 14, 2010

I am trying to close on as I am attempting to get this incorporated into my website. It came with the recommendation to try the CS5 today to see if this will meet the requirement at the moment.There is a desire to take custom SWF files (I think there is something called Swish files too?) from various sponsors for advertisement purposes and place them on my website.The implementation was straight-forward to make them work through the webserver.I tried a custom example of making a button that upon mouse click would open up a new webpage in CS5 which did work for me.My problem is since the SWF files are finalized, there is no way to put URL information into those files.After doing a lot of searching around today, it appears that the best way to redirect a user upon click of a video is to:
 
1) Open up a new Flash
2) Import the SWF video file into the project
3) Create a Invisible Button over top the SWF video so when the user clicks, they are redirected to a specific URL.
 
But for some reason, when I tried to overlay it with a sample SWF file I imported, there was all this flickering going on to where both were made transparent to one another on the screen not to mention the video wasn't even visible at all.My hope was that the SWF video could be seen clearly while the button remained invisbile to handle the click on the video.Is there someone on the forum that is able to guide me fairly quickly with a fast-path procedure so that I can try this?

View 16 Replies

ActionScript 1/2 :: Click Invisible Button On Moving Target For Playing Movie

Dec 30, 2009

I have an image of a target on stage, that moves left and right. In the center of the image is an invisible button, occupying the centre circle of the target. The idea is you click the invisible button on the moving target and this starts another movie playing. Seems to me the action script should reside in the button, and be something like this:

on(release){
targetPath(this.movie2);
play();
}

View 2 Replies

Actionscript 2.0 :: Carousel With Buttons - Continued - Move Only When Press A Button

Jul 24, 2008

, i want to make a carousel -type gallery like the one from the tutorial but with a slight variation: i want it to move only when i press a button.(move left when i press the left arrow and to the right when i press the right).And i want it to move by one image at a time and i want to know which image is to the front(i've created a dynamic text field called imgName).I hope i'm explaining this correctly and i'm attaching an example with two arrows with no actions on them.

View 11 Replies

ActionScript 3.0 :: Making A Spot The Difference Game?

Jun 10, 2010

Im pretty new at Actionscript 3.0 and I have to make a Spot The Difference game for school.. Now I followed a tutorial, but it's in AS 2.0 and I really cant get it to work in AS 3.0. Also, the tutorial isn't complete, so is there anyone that can help me any further with the code ?Here's the tutorial I followed:[URL]...

View 2 Replies

ActionScript 3.0 :: Trouble With Button In Movie Clip?

May 7, 2010

I have just started using flash and I am trying to create a website for my spa. I have it in four layers namely as3, page, content, and background. I have named all nine pages in the "page" layer. In my "treatment page" and "body "massage page" I have place a reservation button that when clicked should go to "reservation page". I have tried the following code.

[Code]...

View 1 Replies

ActionScript 2.0 :: Get A Picture To Appear In A Spot When Click It?

Dec 18, 2004

how to get a picture to appear in a spot when you click it. (Example: Customizing a picture with flash.) When I say this I mean, I have the stuff I want to customize, I put it all into flash, and now I want to make it so when it's on the net people can customize the given object, by clicking what they want added. No Click and Drag, just clicking.

View 2 Replies

ActionScript 2.0 :: Making Thumbnails Scroll By Button Click?

Jun 2, 2010

[URL]

I want to make the thumbnails scroll left and right when a button the left and right side is clicked instead of the mouseover left/right scrolling. Essentially when the button is release I want the xml images to scrool to the next set. I have experience making that work with images embedded in flash but not with XML feed images.

What would i have to change to make the file work?

View 1 Replies

ActionScript 2.0 :: Making Portion Of MC Invisible?

Mar 24, 2004

portion of a movieClip invisible with AS?For instance, make the 200 first vertical (y-pos) pixels invisible on a movieClip thats 500 pixels high?

View 3 Replies

ActionScript 2.0 :: Motion Tween The Button To Return Up To Its Original Spot When Another Button Is Then Pressed?

May 26, 2005

I'm trying to create a set of 4 vertically arranged buttons that 'split' apart when those buttons are pressed. For example, if you click the topmost (1st) button, the bottom three buttons will drop down so submenus (for the 1st button) can now be revealed beneath. Again, when you click the 2nd button from the top, the bottom two buttons drop down, revealing submenus, and so on.

Now, is there a way that I can use actionscripting to tween the buttons to not only motion tween a drop down when a button is first pressed, but also to motion tween the button to return up to its original spot when another button is then pressed? Right now, I have two keyframes, side-by-side which each containing a different y-scale value for an object. Can I do some actionscripting to get the object to motion tween upward to its original spot instead of "clicking," or snapping back to is original spot when another button is pressed?

View 1 Replies

MX Making Root Movie Clip Invisible?

Apr 11, 2009

I have a button inside a movie clip that when pressed it launches another movie clip. That part works great. The problem I'm having now is either removing the original movie clip or at the very least making it invisible when the next movie launches. So far for my button script this is what I have:

onRollOver=function(){
this.gotoAndPlay("_over");
};
onRollOut=function(){

[code]...

View 3 Replies

ActionScript 1/2 :: Making An Array On Or After Frame 13 Invisible

Jun 17, 2009

I have a movieClip called "button" within another movieClip called "movie1_mc" I want the "button" movieclip, which also loads XML on frame 12 of "movie1_mc to vanish on or after frame 13
 
This is the code I have in place but, "button" movieClip isn't disappearing. This is my first time using XML and Flash
 
//Code to "button movieClip disappear//
if (_root._currentframe == 13) {var linkname:Array = [_visible=false];}

View 1 Replies

ActionScript 3.0 :: Targeting Arrays And Making Them Invisible?

Jul 23, 2009

I'm having trouble targeting elements of an array using AS3. I have five buttons in an array named botons.
 
var botons:Array = [boton_1, boton_2, boton_3, boton_4, boton_5];
 
Each button goes to a different page, but they all are on the same layer like navigation bar. When page 1 is visited button 1 should be invisible and the others visible. When on page 2, button 2 should be invisible but all others visible.
 
I used the following to make the entire array invisible and it works.
 
for(var i:int; i<clips.length;i++){botons[i].visible=false;}
 
How can I make each button invisible when visiting its page, but make the rest visible?

View 8 Replies

ActionScript 3.0 :: Making MovieClips Invisible With For Loop?

Dec 22, 2011

I have twenty movieclips on stage with these names:
g1
g2
g3
g4
....

How can I make invisible with a for loop, like
for (i = 1; i < 20; i++) {
g+i.visible=false;
}
This that not work.

View 1 Replies

ActionScript 3.0 :: Targeting Arrays And Making Them Invisible

Jul 25, 2009

I'm having trouble working with buttons in an array. I would like to target specific button and make it invisible while the others remain visible. Each buttons goes to a page (first, second, third, etc.). There are five buttons named button1... button5. I'm using AS3 in timeline.

Problem: when I click a button, it doesn't get invisible and I get this message:
TypeError: Error #1009: Cannot access a property or method of a null object reference. at subtraction_fla::MainTimeline/goPNext()

Here is my script:
stop();
var button= [button1, button2, button3, button4, button5];
button1.addEventListener(MouseEvent.CLICK, goPNext);
[Code] .....

View 6 Replies

ActionScript 2.0 :: Making Drawn Curves Invisible?

Jun 27, 2006

I've made a drawn menu with curves in my root. This menu loads dynamically swf into an empty container mc. Within some of these swfs, there are full page image galleries. However, the drawn curves seem to stick on top of these swf: I can still see them although the rest of the content is invisible. Now I want to make those curves also invisible...

Code:
//API AND LINES//
box2.lineStyle (1, 0xff00ff,0);
box2.beginFill(0xCCCCCC,0);
box2.moveTo(0,0);

[code]....

Now I want to realise a function in an externally loaded swf that makes these lines/curves invisible. i was thinking myself of something like

Code:
btImages.onPress = function (){
_root.line.lineStyle(0.5,0xCCCCCC,0);
gotoAndStop (3);
}

But unfortunately thsi doesnt work.

View 6 Replies

ActionScript 2.0 :: Making Movieclips Invisible On Load?

Mar 1, 2007

I have several movieclips placed on the timeline that I want to be invisible and not run until the user clicks a button. The movieclips are linked to a class I set up:

Code:
class Hidestop extends MovieClip {
function onLoad() {

[Code]....

The problem is that some, but not all, movieclips show briefly when they load before becoming invisible. I can get around this by starting each movieclip with a blank frame, but there must be a better way.

View 11 Replies

ActionScript 2.0 :: Making A Scrollbar Invisible Until On{release}?

Jul 14, 2002

making a scrollbar invisible until a button is pressed. (in actionscript)

View 2 Replies

Flash8 :: Movieclip Mask Making Text Invisible?

Jul 14, 2010

I have a movie clip which has a dynamic mask applied to it to provide a scroll effect.

The mask is generated with the 'create blank movieclip' method.

So the mask is a movie clip over a movie clip.

I hunted for invisible text last night and found this link [URL]

which implies it's to do with the mask being on a layer, but from what I can gather from reading the AS, it's not it's on a new blank movie clip.

Also many other links I found all imply it's an issue with dynamic text and the font needs to be embeded, but the underlying text is not dynamic, it's static normal text which has been used in a movieclip to create animated rollover/out effects.

So why is the text missing when the content is scrolled into view?

If you hover over where the text is supose to be, the animation plays and the text becomes visible?

Also the arrow graphic next to the text which forms part of the animation does display; it's just the text portion which is invisible?

View 2 Replies

ActionScript 2.0 :: Making Parent Movie Clip Invisible?

Jun 26, 2009

I have a movie into which I am loading external swfs. this all works fine but some of the content is duplicated and where there is slimline text it shows that there are two layers. see the header on white here:

how can i set the alpha to 0 or remove the host movieclip, from the externally loaded swf. does that make sense? so once the external swf has loaded into the empty movieclip then the parent movie disappears.

View 0 Replies

ActionScript 3.0 :: Make Invisible For X Seconds Upon Click?

Sep 30, 2010

I am trying to write a program in which 2 random pictures appear on the screen, and when you click on a specific one of the 2, the other disappears for 250 ms, and then the whole thing starts over with 2 new random pics. I have everything working the way I want EXCEPT for the vanishish-for-250-ms part.Specifically, the program is supposed to display 1 picture from 1 group and 1 from a 2nd group, and when you click on the pic from group 1, the group 2 pic is supposed to vanish for 250 ms. Each group has 16 pictures, so the code as it stands now basically randomly picks whether the group 1 pic will appear in movie clip #1 or #2 (faces1_mov and faces2_mov), randomly pics a group 1 pic, displays it in the movieclip it randomly chose, and then puts a random group 2 pic in the remaining movieclip, so the program has to know which clip has the group 2 pic in it and make it disappear when the other clip is clicked.Here is my code:

ActionScript Code:
import flash.display.MovieClip;
import flash.utils.Timer;

[code]....

View 1 Replies

Ajax - Making Multiple Asynchronous Calls To Fetch Result From Multiple Services In The Single Click Of A Button In Flex?

Dec 27, 2010

In one of our project we are using flex for front end, blazeds/java in the backend. Its an existing code where services are prewritten. I have to make calls to 3 services in the backend (basically 3 remote objects) and get their result and store the result in an object and show the data of this object in a view.
Now in front end we are using Flex and Parsley Framework. I was thinking of the following approaches.

1) Making commands for each service call and storing the result in a shared object (model) and then displaying this model in the view. In this approach the problem is some services are needed in some other web pages, but they donot need the same model. How should i handle this scenario ? Should i make a asynchronous remote call and fetch the result and then again dispatch and event with the event object storing the result.

2) Making a service call , wait for the result then make another call and wait for the result and then make other call, not sure if this is the right way ?

View 2 Replies

ActionScript 3.0 :: Unload Current Swf Whenever A Button Is Clicked / Load New On In Same Spot

Sep 28, 2011

I have a menu set up with several buttons (on the left side of the screen), each of which loads an external swf (on the right side of the screen). Within some of these swfs are more buttons to load other swfs, and the menu on the left remains active while another swfs is playing.What I want is to unload the current swf whenever a button is clicked and load the new on in the same spot. So before I was using addChildAt to get the external swf's at a certain level, and then removeChildAt to take away whichever swf it is and then add the next one. That didn't stop the sound, so I switched it to unloadAndStop and set up a function that unloadAndStops each individual swf, like this:[code]

That function runs every time a new swf is called to remove the previous one.Now I know that's not what I should do since I'm effectively using a method on objects that aren't in the display list, and it's apparent since it messes up the text later on in the timeline. But I don't know any other way to get everything to unload and to stop all the sound. It would be a headache to make specific paths for the buttons within swf's, but I don't even know what I'd do about the buttons in the main timeline that don't know what swf is playing on the right.I've searched lots of different forums for this one, for something kinda like unloadAndStop and kinda like removeChildAt, so I'm thinking I need to reorganize this project somehow

View 5 Replies

ActionScript 3.0 :: Mouse Click Event On Invisible Part Of MovieClip?

Feb 20, 2009

I have a MovieClip of an bicycle, and I've attached and event listener for mouse clicks on that movieclip. The mouse clicks events are raised when I click on the bike, but I really want to be able to click somewhere in the entire region of the movieclip's rect (to make it easier for the audience this is for to be able to click).

View 1 Replies







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