this is another question with respect to the same game in my last post. as i said, im making a card game in flash (to teach myself a.s. 2 and flash). when i deal my cards i use this:
Code:
holder1.attachMovie(myCardArray[0,0],"card1a",1);
where holder1 is a symbol, residing on a timeline. myCardArray is an array off all the cards
I animated eyes blinking inside of a movie clip symbol and placed the symbol on a face outside of the symbol.The eyes are stuck on the first frame. I am using CS5. What do I do?
I have a button on my stage its a movie clip I also have a symbol in my library that is also a movie clip with a small animation inside it. It is not the button.
I am trying to use the button to bring the symbol out of the library onto the stage then when I click the button again it will remove the symbol from the stage.
I am currently working on a project where I create explosions on the screen by adding the movieclip symbol explosion to the main timeline via:
addChild(explosion);
I am trying to figure out how to dynamically remove the explosion (make it eligible for garbage collection) when it is done playing the animation of the explosion.
I have tried parent.removeChild(this) within the symbol itself and that throws an error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
Is there any way to have a movieclip remove itself? If not is there a way to call a function in the actionscript code explosion exports to? Or maybe there is a way to call a function in the main timeline?
I have 5 buttons to load 5 different flv movies. What I try to do is to remove the loaded movie and run the new movie when the new button being clicked. Also, I am wondering anybody who knows how to create a lightbox effect in flash. I want the screen to be grey when the movie is on.
My group is trying to create pong. We got the ball moving and bouncing off the walls and all that, but we are trying to get the paddles to move up and down. We've run into a hundred problems, and i've looked at every pong tutorial, but I notice that I can't put actionscript in my movieclip like the tutorial people can.How do I enable actionscript in a movie clip symbol?
When your button has 3 different states like rollover, rollout and selected and these are images. Is it best to make it a movieClip or a button symbol?
In AS3 you can add script to a movie clip symbol. But in AS3 you cannot, correct?
So what do you do in AS3? What is the "correct" way of coding, lets say, characters or objects in a game? Or more specifically, where is the correct place to put the code for each character or item?
So, I have this file with a couple buttons. When each button is clicked it opens an external swf image. While the external swf is loading a preloader shows 1...100. I want to have a movie symbol also show up while the external swf is loading. How would I do that? Can I have it only show when the event starts, then have it disappear when the event completes..
I have my two buttons on one layer, actions on a second layer, and preloader counter on third layer.
When I try to import several images (from a folder on disk), I cant seem to make a movie clip of them. What do I have to do to import a bunch of images and then test the movie and see each image appearing after one another?
I made a very nice movie clip that now resides in the library of my current working fla. I have an external class controlling it and all is fine.
However, I want to use this movie clip in another fla file as well. The method i have used now is to have both projects open, then manually copy the movie clip from one to the other.
Like exporting a movie clip to an "external file-database of movie clips" for importing it in other projects?
I'm loading an external image into an empty actionscript movie clip (holder1) using MovieClipLoader(); on frame one of my movie and is invisible. Then when the movie plays, there is an empty movie clip symbol (image1_mc) that is placed manually on the stage within another movie clip symbol (flash_mc), and is also on a bottom layer of a mask layer which is animated. Is it possible to place "holder1" inside of "image1_mc" so that I can treat it as if it were an embedded image? In other words, have the image in "holder1" inside of the manually placed movie clip symbol "image1_mc" so that I can use it like a regular symbol on the stage?
I've created a movie clip symbol with it's own animation on its timeline. I've placed this symbol onto the first frame of the main timeline but when I test it, it doesn't play. There's no stop actions or anything on either timelines so I'm not sure why this is happening. I thought that the animation in a movie clip symbol will automatically play (i.e. if you test in a browser) once it's on the main timeline - is this right? Or am I doing something wrong. Maybe I need to tell it to play?
I'm fetching data from XML to dynamic text in mc symbol done through using button. I want a click of button, dynamic text in mc will change when it load up scene 2.I used this code on button to change my dynamic text in mc on single scene, and it works fine.
Code:
on (release) { var english2 = new XML(); english2.ignoreWhite = true;
[code]....
But this don't work when i have a dynamic text mc symbol on other scene.
I am attempting to simulate a mobile phone within a movie symbol. What I want to do is create a movieclip where teh user will be able to create a message in a SMS format.
I dont need to SMS to actually be sent but I would like the user to be able to "Simulate" sending a text message.
I have created a simple movieclip with 9 (1-9) buttons and a dynamic text (For the display). What code will go into each button?
I want to load an instance on my stage into an empty movie clip on my stage when it gets to a certain frame. The instance is called jpeg_2 and the movie clip is called empty_mc.
I have a movie clip symbol that is about 8 frames long. I am staggering it 14 times throughout scene one, with varying times.My problem is that it plays once then disappears (I added actionscript on the last frame in the symbol movie clip). I would like it to play then keep the last frame displayed in scene one until a specific keyframe (60). Not have the movie clip instance loop, rather show the image that is on its last frame.
I'm creating a Flash interactive thing which is basically a couple minute animated intro and then a menu of products to choose from. You click on one of 12 products and get a little animation about how it works. So my question is where to put these 12 product animations? I was originally thinking to just put them in the main timeline and just jump to them with labels but I'm thinking that the timeline is going to get too hairy, it's already got a lot. Now I'm wondering what the best approach should be. Should I produce 12 external SWF movies to be loaded when clicked on, or should I just make each product animation an internal movie symbol and just add an instance from the library to my main timeline? Or is there any other approach that might be better for some reason?
So I'm trying to set the width and height of a movie clip symbol. Initially, on the stage the movie clip is set to w = 400, h = 350. Whenever I load a 400x350 image on the clip (from a button), it looks way too wide. So I tried to fix this by adding setproperties for width and height on the action for the button.