ActionScript 1/2 :: Control A Mask(turn On/off) By Using A Button?
Aug 20, 2011Is it possible to control a mask(turn on/off) by using a button and AS2?
View 1 RepliesIs it possible to control a mask(turn on/off) by using a button and AS2?
View 1 RepliesHow do you turn a dinamically attached MC into a mask? I know it works if I actually draw the mask with AS, but is it possible using a library MC (animated)?.
View 3 RepliesHow do you turn a dinamically attached MC into a mask? I know it works if I actually draw the mask with AS, but is it possible using a library MC (animated)?.
View 3 RepliesIs there a way to turn off user mouse control of an armature at runtime and just use Actionscript control?
View 3 RepliesI want to incorporate sound into my main movie but I also want to be able to turn the sound off and on.
View 1 RepliesI have a FLA file with 4 layers 2 of the layers are Text Boxes 2 of them are masks to make the different words "Shine" Is there a way to make the whole file a button so when people click on it, it goes to a different page?
View 6 RepliesI was just wondering if there's a way to write code for a button so it will, e.g., make a movie clip visible with one click, then hide it with a second click?what I usually do is give the mc two frames, so on click one it goes to frame 2 while it changes the visibility or alpha, and on frame 2 sends it back to frame 1 while changing the mc back. But I would like the flexibility of doing it on the fly with code rather than have to fiddle with each mc.I tried doing it yesterday with an if/else if statement, like, "if alpha is 0, change it to 100, else if alpha is 100, change it to 0" but couldn't get it to work. But if that's the way to go I'll keep playing with it.
View 4 RepliesI'll start off by saying I'm a newbie, just putting that out there. How do you make a turn by turn multiplayer flash game? I don't know if an engine is made in AS3, PHP, Javascript, or whatever,I made my game already, it's just that it isn'tmultiplayer yet. Basically, there are lines, and each player crosses out a number of lines, and the last player to cross out a line is the loser. I want it where one user crosses out some lines, then presses End Turn, then the other does their turn and then presses End Turn to allow the other player to move his cursor. But how can I get both players to see the same frame and only have one player have the ability to move the cursor during a turn? Is there some easily adaptable multiplayer engine for flash for newbies out there
View 2 RepliesI'm working on this app and I can't figure out how to turn an image into a button, and I can't figure what type of image does it need to be(PNG/JPEG, or something else). Also I'm using flash builder. e I can't find anything about this on the internet.
View 2 RepliesIs it possible to have one button the toggle my 'my_sound.setVolume();' between 0 and 100. I'm having a hard time getting the as correct, but here is my idea:
[Code]....
I am trying to use a button to flip the page rather that using the corners. I have switched the page flipping off using:
ActionScript Code:
canflip = false;
There is this code below that is used to tell me how to use a button however I do not understand it.
[Code].....
I have this textfield in wich i load some vars when a button is clicked. How can i make a sort of button of the loaded vars? So if i click on the first title; i go to the right txt-file!?
Here's the code so far:
code: //vars instellen
//titels
var title1:String = "Maan Fotografie";
var title2:String = "Vertigo-/zoomeffect-fotografie";
[Code].....
I want to create a button to turn on and off a movie clip, did any one know how to do it!
View 6 RepliesI have a bunch of areas on a map that I've turned into buttons. When the user does a MOUSE_OVER on a button, I'd like an info box to show up so they can see some information. So far, I've created my info boxes as movies clips with fade-in/out tweens between frames.
[Code]...
I am trying to make a button turn on/off a sound when pressed. I have tried to code it, but it does nothing everytime.
I have a sound in the library, with a linkage name of "sound" it is on the first frame in the main timeline. And i need a button to turn it off, and then on again.
Is it not possible to have selectable text turned on when you are making a link or button?
View 2 RepliesI've come a long way with this sliding menu("Sliding menu.zip"). There's only one more thing that needs to be fixed. Can anyone tell me how to get the first movie clip button ("1") to be red when it arrives? When the user clicks on another button I want the red number one to turn black. It's sounds so simple but my mind is blank.
View 2 Replieshow to make some htmltxt for my flash site turn into a button to email. i know in dreamweaver I use mailto"blabla@bla.com" but this doesn't seem to work in htmltxt.I also like some functions like underline,bold, how to go to a certain url,etc.
View 3 Replieshow can i make MC visible for 20 seconds when a button is pressed i tryd to do this and this is what happend
when i first press the button it works perfectly but when i press the button the seccond time the MC doesnt turn visible can someon give me a sample how to do this?
Is there any way to create a keyboard shortcut using a the control button plus a key button. For example, if I want to print the screen, I would press control + p.
View 5 RepliesIf I have a movie clip that has an onRollOver event, how do I turn the back into a pointing cursor from the gloved button cursor?
View 2 RepliesI have a display object that is set to mask another display object. I add a mouseEvent listener to the mask to listen to mouse events. It does not receive the mouseEvent unless I set its buttonMode property to true.
If the display object is not a mask, it receives mouseEvents with its buttonMode set to false.
Here is some fast example code. On the stage I have a circle that masks a square. if buttonMode of the mask is set to false, it won't receive mouseEvents.
Code:
circle.addEventListener(MouseEvent.CLICK, onClick);
square.mask = circle;
//if I set buttonMode = false, the mask (circle) won't respond to clicks.
circle.buttonMode = true;
[Code]....
I have a startDrag function set up on a loader and mask that when the mouse is down on the loader it drags, when not it doesn't. There is also 2 buttons that control whether mask1 or mask2 is used. What i would like however is when the mouse is down - the area of the loader outside of the mask is visible but only by about 10/20% alpha, that way the user can see where all the image is while dragging. Is this possible? Full code can be seen below and i have attached the zip with the .fla file:
[Code]...
I am creating a card game in flash and to do the turns i used the while loop, but that made my script infinity and it is causing trouble, how can i stop the script and start it again with a "end turn" button?
View 9 Replies what i am doing is to make something along the lines of the "scriptable mask" tutorial Inigo was kind enough to put up.My idea is to have a large mask behind the whole of my flash site, this masks a colour image with a black & white one (nothing tricky). The image I am using is actually 5 separate images combined, and each is a pic of certain parts of the site.I also have a very basic set of buttons along the bottom... each corresponding to each section.
All I want is to set it up so that when I mouse over the buttons, the _x of the mask moves to correspond with the correct image... really very basic... or so I thought .If anything it should be easier to do than what is in Inigo's tut (where he uses the _x of the mouse to move the mask)... i just cant seem to get it to work with a nice easing effect (its easy to get the mask to simply snap to each coordinate, but I need it to smoothly move).
creating a flip-book in flash (using AS3) . I've looked at the other flip-book programs and editors out there, and none really give the customization that my company wants.I have something working, but the page scoping seems to be off. The pages will turn back and forward with a button click but they flip out of order. However, it all runs fine with no error when the user clicks on the pages themselves. This is the code from the main timeline (where I'm getting an error).
View 6 Repliesmaybe point me towards a better way to mask. png file is way too big. I have been using the mask layer option to create my own mask around a jpg image by drawing around it on the mask layer. There has to be a fetter and faster way to do this. Is it possible to maybe have a specific color range have an alpha value of 0. Similar to green screening whereas If I put the item I want to clip on a green background flash will auto take out the green for me. and by auto I mean action script maybe. I think this can be done but im not finding it.
how are these guys clipping these images [URL] they have the movie clips set up where the black background on the 3 layers of shoes is getting masked out. When I go into the shoe movie clips I see there is a black background but it just disappears when I go back to main timeline.
ive gotten one movie clip to mask another in the actions frame but i cant seem to be able to mask the flames which are a shape with a movieclip in this as file. im not getting any errors but the mask isnt covering anything look near the bottom at s.mask=mask_mc; there are about 20 "s" shapes spawning per second if that has anything to do with it
Code:
//this package turns an mc into a flaming button that calls a javascript function
package
{
import flash.display.MovieClip;
[Code].....
I was wondering if its possible to mask multiple MC or Sprites under one mask, when using AS3.abc.mask = a;cba.mask = a;something like that
View 2 RepliesHow to control the other sef by a click of a button from other swf?
i wanna create a website with multiple swfs inside a main big swf. and i wanna like, click a button at swf C that moves something at swf G.