Actionscript :: Make A Graphic Symbol Draggable In FLASH?
Dec 24, 2009Could you tell how the actionscript code would look like for such a job?
View 4 RepliesCould you tell how the actionscript code would look like for such a job?
View 4 RepliesI want to make a new instance of an existing symbol (movie clip or graphic) when an object hits the side of the stage. I have the code to figure out if it hit the side of the stage, i just need to know how to make a new instance and make it show up where the ball hit. I also want to be able to have multiple of these instances on screen.
View 5 RepliesI was trying some stuff with masking. I have a shape on one layer. And there is another layer which acts as mask for first one. In the mask layer, I keep adding a graphic symbol to be able to reveal first layer's portions.
This is not working.
I am attaching my fla for your reference.
Please let me know what am I doing wrong.
Interestingly, if I use just shapes instead of graphic-symbol in the mask layer, it is working fine. Why is so?
Inside Flash, I have a symbol with type graphic in my library and I want to add it to stage using Actionscript 3. Is this possible?
Flash does not let me set any Linkage Properties for Graphic symbols.
How do I draw stuff in Flash and be able to create multiple instances of that stuff at run time without using MovieClip?
i'm making a game and i don't know what script to use to change the alpha color of the graphic symbol i used.the game is a shooting game, ex: target points is 50, if the score is 25 the alpha color should be at 50%, if score is 50 alpha is at a 100%i tried this script but it doesn't work
onClipEvent (load) {
if(score<=50){
skeleton_mc._alpha = (score/50*100);
[code].....
Someone told me once that every function in Flash has some associated actionscript being executed behind the scenes, e.g. converting a graphic to a symbol or drawing a pentagon on the stage. This person also told me that there is somewhere in which you can view said ActionScript as it's being executed. How can I do this? I deem such a feature necessary to do the projects I have been given, especially having very little experience with AS.
View 1 RepliesI've created a small animation containing a few images which i have converted to graphic symbols so I can alpha-tween them. I tweened the first image then copy/pasted the frames to do the next using the swap symbol function. When swapping the symbol I selected the desired symbol and pressed okay but nothing happened - I then dragged the desired symbol out of the library and onto the stage then deleted the previous symbol. As soon as I did that the new symbol I had just dragged out switched back to the previous symbol.
View 1 RepliesHow do I replace a graphic symbol ? It is actually made up of 3 layers including a textbox and bullet. When I double click on the symbol, I get the Text Properties menu.
When I single click on the symbol on the stage, the properties menu shows a Swap button. When I choose the correct symbol and click OK, it looks like it worked but it still shows the original symbol name (Instance of it) on this Properties menu.
Another issue is that when I change one of the symbols (by double clicking on the symbol and then double clicking on the text layer), it does change the text on that layer. However, then it changes the text on the other symbol as well even though they are different symbols.
Note that I can edit the original symbol and the new one. Both symbols are different. In other words, they each show the different text (which is what I want). It's like the original symbol is attached/embedded and cannot be changed.
Background on this issue: Rather than create a brand-new layer, I copied all the frames in a layer to a new layer because it has a motion tween on it. I only need to change the symbol that is in the motion tween. This is the only action/event happening on both layers.
Is there anything a graphic symbol can do, that a movie clip can't? So many tutorials I look at, use Movie Clips for so many things, including one frame objects, and buttons etc...So, is there any benefit to ever using a graphic symbol over a movie clip?
View 3 RepliesI have a motion tween that adds effect to a Symbol of type Graphic. My question is this:How can I change the graphic dynamically? I want to change the graphic to one inside my xml file. I am reading through my xml file fine, I just need to know how I can take the url to my new image and put it into my symbol.
View 1 RepliesAll I'm trying to do is move one graphic (converted to symbol) from one side to another. However, when I try to put in the 'motion tween' it keeps saying "Multiple objects are selected, you must convert them to a symbol in order to tween them. Do you want to convert them and create a tween?" If I click 'Ok' it comes up with "The tween could not be applied to some of the selected frames. This could be due to the frame containing ActionScript, Multiple objects, non-tweenable objects or being on a layer that cannot be a tween layer"
View 1 RepliesI am making a very simple stick figure animation which will be intended for tv, specifically HDTV 1080p.I have no idea how i did it but I did the animation and before I knew it it was not on scene 1, but on the graphic symbol timeline. I think it is because I made my character a symbol, and i guess everything followed. But when I put them on the stage from the library, only part of the animation shows up, the part with the character i made into a symbol...not only that, but if I copy and paste all the frames from the symbol timeline onto the main timeline, it is HUGE! it doesn't match the size or placement it was on in the other timeline..Also, are there any specific requirements for editing with intent for hdtv? I read you can't use movie clips but as for size, etc? What do you have to set at the beginning and what will change when it is exported or converted for tv?
View 1 RepliesIm just learning classes and objects.... and read that a movie clip is (or has) a movie clip class... So I'd figure that buttons and graphic symbols also are classes? If yes, why are they called 'symbols' instead of 'classes' by Flash dialog?
View 4 RepliesCan a Flash graphic symbol instance be serialized (or equivalent) for use in an XML.send or an XMLSocket.send call?
View 3 RepliesI'm working on some fairly detailed character animations, and accordingly have made most of the characters parts into graphic symbols. For instance, his hand is a graphic symbol which has multiple frames for each perspective or pose of the fingers, and I set the symbol to the proper frame in the characters main timeline. I've been having issues, however, when tweening these symbols. I noticed this first when I was working on a jump animation and I just wanted the hand, once its pose is in a state which will be used for the majority of its frames, to tween up and rotate with the arm and body. When I create this tween, however, it forces all other frames of that graphic symbol to be set to that same frame. The start and end frames of the tween are set to the same first frame, and even after trying to manually fix the subsequent frames of the symbol, it wont let me. I've triple checked all my symbol names, frame numbers and settings, and anything else I can think of and everything is in place, so I really have no clue why this is happening
View 2 RepliesI just wanna ask if I can change color of graphic symbol or i have to convert symbol to MC?
example: I make a rectangle, now i wanna with some color picker or buttom change a color of rectangle.
Second problem: i have two rectangles and i change bg. color of one rectangle, and when i changed the color of background of that rectangle tweening stop.
if you can set and change different properties of a graphic symbol using AS? I know you can change MC's and buttons. I also know that you can change graphic symbol properties using the prop inspector. I was thinking that since you can change properties like _alpha in the Prop Inspector, how to you set and control them using AS.
View 3 RepliesHow can I get a scrollbar with text in a graphic symbol in flash? I cannot use my customize scrollbar with button images in a graphic symbol....
View 1 RepliesI have a graphic symbol of a circle that has a radial gradient fill of yellow to red. All I want to do is have it change from yellow to red to red to yellow. I tried the advanced color settings but that doesnt quite do what I want. With the color settings.. it changes the complete tint of the object. I want it to look like it is tweening the gradient not the object. So if the object had a yellow center with a red outer edge I want it to chenge to a red center with a yellow outer edge. How do I accomplish this?
View 1 RepliesI am creating an image gallery with thumbnails on the right inside a symbol so that they can all fade in at the same time, and the bigger images on the left that also fade in. I can only fit 8 thumbnail images at a time, and want to have more than that. So I'll add an arrow below the thumbs so that when you click on it, you can see the other thumbs. I have the first 8 thumbs on the first frame of a symbol and the rest on the second frame.
My problem is that the symbol that contains the thumbs is a graphic symbol, so that the thumbs in it, that are button symbols can be clicked on. I tried using button and movie clip symbols for the thumbnails container but then the buttons (thumbs) can't be clicked any more. That was not a problem till I had to add more than 8 thumbs, cause i need to give the container an instance name, and graphic symbols can't have one.
Here is the link to download the .fla [URL]
In case I didn't make my self clear, what I need is to know if there's a way to have a movie clip or button symbol that can have buttons in it that can be clicked on.
Is there a way to avoid this? I import A LOT of bitmaps all the time and it's really really annoying to have to delete the graphic symbol flash creates with it.
Couldn't find a way to toggle this "feature" off in preferences.
make a graphic like this:
when i press the button the graphic go up, if press again go down, always like this.
allow the user to clip a button and then place a sybmol (either movie clip or graphic) where the user clicks. I would like to use AS2. The project is simply to label a supply and demand curve graph and user needs to plot, or place points wherever they want on the canvas.
View 3 RepliesI just pulled together a picture gallery, where the pictures simply scroll across the screen using arrows. I used the template from [URL] The problem is that when I added my own pictures, the graphic symbol was obviously a different size from the original template. So when the images scroll they should stop at a certain point as to not show any empty space. I changed the values that i guessed were the ones setting up where the graphic has to stop at, but it doesnt seem to be doing anything. The code below is the only script of any importance, at least that I know of. The other stuff just points to targets and gotoandplay stuff.
View 3 Replieshow to make a graphic equliser in flash? I would just need a small line about 120 px long to move points up and down in time to sound files. I am not using the sound object for my music console just a MC with the sound files on them, would I need to use the sound object?
View 4 RepliesIf I have a designer make the necessary graphics, what do I need to learn to make a flash based game?
I already understand the backend server work that would need to talk to the 'front end' part of the game i.e. how the flash game will make requests to the backend servers for storing/retrieving data in xml/json etc.
I am trying to make an animated flash banner in which a graphic slides across a 774 by 100 px stage which stops after playing once and repeats on mouse over.
I have managed to make the animation repeat on mouse over, but when it does, the graphic only slides to the point on the stage that the mouse moved over.
I have also tried this with a mouse out which works fine but is not quite what I was trying to achieve.
ban.mouseChildren = false;
ban.addEventListener(MouseEvent.MOUSE_OUT, banOut);
ban.addEventListener(MouseEvent.MOUSE_OVER, banOver);
[Code]....
I only started yesterday with no knowledge at all.How do you make draggable items? I looked around and I saw things about actionscript and all that but what do you do?
View 5 RepliesI have 4 buttons which i have to make them draggable. The problem is that i have 3 conditions
condition #1. Only 1 button/mclip is draggable in its axis [done].
condition #2 .The 4 button/mclip must be dragabble at the same time, that is, when i drag one, the others should drag at the same time in their own axis.
[Code]...
I am trying to create a Flash (CS4) website that uses buttons - when clicking on a button, a sound is played. I am trying to get the button to change color after it's hit. The button symbol was made from a dynamic text object. I've tried "b1.textColor = 'FFFFFF'". I get error 1119, "Access of possibly undefined property textColor through a reference with static type flash.display.SimpleButton".
View 1 Replies