ActionScript 2.0 :: Click And Object Appears As Top-most Layer?
Nov 4, 2010An example: [URL]
At the left side, see the bread and all the ingredients? When you click on any one object, it appears on the top most.
An example: [URL]
At the left side, see the bread and all the ingredients? When you click on any one object, it appears on the top most.
Maybe the title is not self explanatory but in most iphone games eg you click the correct example and you see a +100 points mc appear and rise and alpha out. I did this with a png done in photoshop BUT not all goes well - it doesn't work.
[Code]...
It seens perfct but I can't see it work. The funny thing is that the custom currentBubble - with a dot after you see the code hints but a dot after pb100 - you see no code hints. Well not normal.
I thought from other adobe products that the lock would protect any layer you put it onHowever, In a situation where layer 1 is a looping background.Once setup, I locked itNow working on layer 2 but I notice unless I'm very careful I'm still able to move the background (layer 1) while working on other symbols that go on top of background. (even though the lock is in place.So I thought well what good is that, so hide the layer
View 4 RepliesThis is something I tried to do once long ago with Flash MX, and it did not work for me, and now with CS3, I find that the same concept is not working. What I am trying to do is make an animation where the text appears via a masked layer, but I would like the mask's gradient to be revealed in the animation. Here is what I have: And here is how it is being displayed during the animation:
View 8 RepliesI want to create a button which in a press state shows an image and removes it when its unpressed.Now the problem im facing is whenever i click the button the image appears but it soon dissapears as i lose the click.
View 5 RepliesI'm having a problem changing the right click menu that appears on my website. I just want to add a "copyright company name"and if possible take all the rest of the menu items out.
View 3 RepliesI'm building an image gallery in Flash, and I've struck a problem.Here's what I have so far: A series of movie clip buttons which animate quite nicely.I want to make it so that when you click on one of the buttons, a series of thumbnails appears (I would put them all in a movieclip). Here's my code for one of the buttons:
on (rollOver) {
gotoAndPlay("over");
}[code]....
When I click on that button, the thumbnails appear, but they are inside the button mc. I want to either make the "india_thumbs" mc appear in a blank mc, or make it appear in its own layer.
Okay so our current assignment in class is to create our own version of the jeremy levine design website. But I am currently stuck and have not gotten anywhere for the last 3 days that I have worked on it.
The problem is when I click on the box to go into the wood grain texture, I want to be able to click on the X box that appears in order to go back to frame 42 in the main timeline. (the x is currently only on the box with the 1 on it.)
When I click on a field to edit, the | symbol that allows you to type new text (for example, a timeline folder's name) disappears as quickly as it appears, therefore no way to edit anything.
View 9 RepliesI have a row of thumbnails, which work fine. However when I put a layer above these thumbnails (like a frame with transparent holes in which the thumbnails show through) - but once this is over the top I cant click the thumbnails any more.
View 1 RepliesI've got a bar. Its _xscale is increasing. It starts from 0, max is 100, of course. It's my script:
[Code]...
I added an object. This object appears in the middle of the stage and goes down by script:
[Code]...
And it works - the object, which has to be an enemy, appears and fall down perfectly. But when it appears my bar immediately stops increasing!
Don't know if the flash layer on the view stack contain only the compiled flash swf file
View 1 Repliesi CAN'T CLICK on any button, movieclip layer and have actionscript work, it just says "CURRENT SELECTION CANNOT HAVE ACTIONS APPLIED TO IT" what do i have to do so that i can click on my button's and go in action pannel and be able to input my actions without it saying "CURRENT SELECTION CANNOT HAVE ACTIONS APPLIED TO IT"
View 4 Repliesis there any solution available??
View 7 RepliesI was looking at this thread [URL] and Im doing something wrong because when I clic a button, in this case "servicios", it appears the intro and the info for services, and when I clic "portafolio" appears the same intro and info of services. The same happens when I clic "portafolio" the first time, appears the info of portafolio and if I click then "servicios" appears the portafolio info.
View 4 RepliesI have an .5 alpha layer that I want to fade out when any 1 of 5 buttons is clicked.
1) The alpha layer is on the screen, but its not at 50%, its solid
2) Its not fading when a button is clicked
3) Its not in the right position
4) I am getting an output error message that says:
TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::MovieClip@3f7e34c1 to colorbars.
at flash.display::MovieClip/gotoAndPlay()
at Colorwheel/goColor()[Colorwheel::frame1:17] (
This code is telling the int_btn to go to the alpha layer frame, which continues thru frames 1 and 8) the code they are referring to is on frame 1 with a button that is also on frame 8 that I don't want the mouse up function to affect the alpha layer. The 4 other buttons on frame 8 should affect the alpha layer. The code on frame 8 tells the mouse up function to fade out the alpha layer:
var colorscreen:colorbars = new colorbars;addChild(colorscreen) //this is working its the alpha layer mccolorscreen.x = 0;
//this is not workingcolorscreen.y = 51;
colorscreen.height = 513;colorscreen.width = 612;colorscreen.alpha = .5; //not working
// all buttons below work but wont fadeout the alpha layer
[Code] .....
How do I tell it not to listen to the int_btn on mouse up? Should I be using an array or enter_frame or remove event listener or use all three to achieve my goal of fading out the alpha layer when any of the 4 btns are clicked?
I have a problem with the startDrag function I'm using in AS3. Right now I have a movie clip which is made up of 4 different layers. I export the movie clip, create and object of it, add in an event listener for mouse clicks that calls the startDrag function. However, instead of dragging the entire Movie Clip and all of its parts, it only grabs and drags one layer around, which breaks the different parts of the Movie Clip up.
public function HopperMouseDown(event:MouseEvent):void
{
event.target.startDrag(true); //start dragging tile[code].....
This is my function for the MouseClick event on the MovieClip. I initiate the startDrag event, but here it will not drag the entire Move Clip for some reason it only drags the different pieces inside the clip.
I want to have layer pop in my flash movie that allows the user to click and drag it around the screen. I also want this to have minimize, maximize, and close buttons on it.
View 2 RepliesI'm used to add actionscript to objects (eg buttons) but I want to learn how to add it to a timeline in a layer (i've learned that it is best practise). Eg. I want to play a movieclip when a button is activated and i write this[code]...
View 1 Repliesi was wondering where you put the a/s, in the layer or on the object. Whats the diffence to put a/s in the layer or on the object?
View 11 RepliesI have 2 objects here, A and B But i need object B to pass under object A. Object A is done by duplicating empty movie clip and attach movie clip on it. I can attach movie clip on B if is needed... Because the empty movie clips are generated by AS as well...
View 2 RepliesI am building a simple game in which you must click on a square to activate it, meaning when you click on it you have control of its movement. I then want to be able to click on the square again so that you don't have control of it, and then you can click on another object in the game.
View 3 RepliesI need some AS2 actionscript that I can place on a button to move it to the front on rollover. and move it to the back on rollout.I have two identical buttons on a layer in my timeline. When you roll over a button a larger text box appears ontop of it. The text box is the rollover state on the button, which is a button symbol. This works great in itself, but the problem is that the buttons are place close together and when one button gets rolled over and the text box encroaches on the other button's space. I always want the text box and button you are rolling over to appear in front of the other buttons that are on that layer. But that's not possible, since one button will be in front and one will be behind. Is there some AS2 actionscript that I can place on each of the buttons to move the button you roll over to the front?
View 1 RepliesI basically want to trace an object within a layer (or the child within a layer), for example:
test.text = _level0.child;
And this would give me the movie clip name contained within the layer?
Is there a piece of code that will make always make an object the top layer? I have a three types of buttons on two layers (about 15 in one, 4 in the other) and a banner comes up when you roll over them. The banner will cover some of the buttons, but be overlapped by others. I want the banner to completely cover all buttons during the roll over.
[URL]
i was wondering where you put the a/s, in the layer or on the object. Whats the diffence to put a/s in the layer or on the object?
View 11 RepliesThe menu is like this http:[url]... (the site is in portuguese but it doesnt matter), when I click in on menu the actual menu does an alpha to 0 and the next menu appears using the alpha from 0 to 100 (and some animations like the cellphone going up).Now, how can I do a menu like that, whatever the menu I choose, it does that alpha animation ?
View 1 RepliesSo, I have a line of buttons that pop up when moused over. Unfortunately, due to their proximity to one another, I have a lot of overlap occurring. Is there a way to bring the activated button in front of the others via as?
View 8 RepliesI have a "video spokesperson" on one of my website pages. The swf file has a flash video in it (without the play/pause buttons, etc).
First of all...
1. How can I have play/pause/close buttons "appear" on mouseover?
2. What code would I apply to the close button in order to actually completely close the flash swf from the page? AND, how can I have my swf file automatically close when the video is done playing (if this is possible)?
I am no programmer, I really am not good at writing my own code but I can edit existing code to a point. I just have no idea where to start with this one.
I intended to write a script that would create a dynamic guided character motion. The drawing API tut gave me an idea how to do it. I thought I'll write a script that would draw a line (or a curve) and would put it into guided motion layer. So I just wrote it by the tutorial and put it into guided motion layer. Yeah, that was naive.So how do you define where (layer) the script would draw curve/line? How do you define the layer in which the new object would be crated?
View 7 Replies