ActionScript 2.0 :: Make A Interactive Animated Character, That Would React To Clicks In Certain Places?
Nov 26, 2006
I need to make a interactive animated character, that would react to clicks in certain places, but instead of bitmap/vector animations, there would be video clips embeded in the swf. The video clips would be played in various combinations.Let me give you a example.
Start: A looped video of a person idling.
Start/hotspot1: The looping video fades-out, and a video of a person jumping up fades-in, plays, then fades-out back to the loop.
I have to embed the videos, so that there won't be any buffering. I tryed to embed the video, and use commands like gotoAndPlay(), gotoAndStop(), play(), stop(), but if I have more than one embeded video I start having problems controlling the clips.Here's one of my unsuccessfull attempts:
Clicking on the HS1, should fade-out VIDEO1, fade-in VIDEO2/play it/fade-out, and fade-in VIDEO1 again.
View 1 Replies
Similar Posts:
Sep 23, 2010
I'm building a project that has a character navigate through a room by clicking on the floor. Right now, the walls, character, and floor are all children of the same display object for sorting purposes. My question: is there a way to disable mouse clicks to the walls and character while allowing clicks to the floor? Using mouseChildren appears to be an all or nothing deal and I can't seem to isolate individual floor/wall/character objects for use with mouseEnabled.
View 4 Replies
Oct 10, 2009
I am trying to make an interactive flash application that works by detecting mouse overs and clicks on various buttons/movie clips and then moves to the appropriate part of the time line. But I am having an issue when I use more than one addEventListener in any one frame. I have attached the code for one such frame below. When I comment out the addEventListner and the other code relating to the followBall function this works fine and directs the user to frame Inlet_Valve_Open_Frame but now only the followBall function is working and when i try to click on the Inlet_Valve_Button movie clip nothing happens.
I have never read all the help files on the adobe flash CS3 as i don't have time and i have built this code up based on examples i have found online. I wanted to include my fla file but it's to big 6Mb. But i have attached the swf so you have an idea what i am doing.
Code: Select allstop();
//1.
stage.addEventListener(MouseEvent.MOUSE_MOVE,followBall);
[code]....
View 1 Replies
Jan 25, 2005
I've got this interactive storybook that loads each page from separate swf files into a movie clip. The movie clip is masked, and with every turn of the page, the mask changes shape so it looks like the pages are covering up the content. Once the page turn is complete, we're supposed to be left with two fresh pages so we can load more content. Here's my dilemma: It seems the movieclip unloads itself when the mask enters a new keyframe. I don't know how to work around this. I've tried making a separate movie clip out of the mask, and animating it on its own timeline, but that hasn't worked. Nothing else reacts this way to a moving mask.
Here's what I'm talking about: [URL]
And the source: [URL]
And the swf loaded into the movie clip: [URL]
View 1 Replies
Jan 19, 2011
I need to create an animated character that can run across the screen. The page(s) are HTML pages and are separate from the Flash file I want to create. The SWF would be used on a bunch of pages.
View 2 Replies
Sep 5, 2010
I'm new to flex/flash cs5, but am an experienced coder, and am trying to help a friend get a site built quickly so they can graduate. They would like their image gallery that displays their portfolio to have:thumbnails floating around slowly and bouncing off of one another - mouse hover would freeze and then resume animation after the mouse leaves - when clicked the thumbnail would grow to the full size image and be displayed in the same window as the floating objects Something similar to whats found at: Flash and Picasa gallery with those other features would be perfect, but without the Google RSS aspect of it. Might anyone know where I could be pointed in the right direction for accomplishing this? Or possibly could be given technical names for the effects I'm trying to implement so I can look them up easier? Perhaps even a link to download something with the floating/bouncing element for the thumbnails, then I could figure out the code for the other effects needed.
View 1 Replies
Oct 17, 2011
I've got this piece of code which is basically a start button that reacts to being clicked on. I'd like to change that into starting the function by pressing Enter on the keyboard. I'm having trouble figuring it out since the code is already in a function. How do I make it react to keypresses?
[Code]...
View 1 Replies
Aug 11, 2009
i was wondering if any of you out there could tell me how it is possible to make a movieclip of a character and when the character is dragged about the screen by the curser, how do you make the characters arms and legs swing about in a realistic fashion.
View 2 Replies
Nov 14, 2009
I was wanting some help with some of my coding I have to complete a game designed to teach students how to build a food web. This is my first use of flash Everything was going fine till I decided to go a bit more complex with the actionscript. What I have the program doing so far is when the sun2_mc1, sun2_mc2, sun2_mc3 and sun2_mc4 movieclips are pressed they turn into buttons and can be dragged. When the mc's are over the top of the target of - "target" + event.target.name - and the mouse is unpressed the mc is left in that position. At the moment the coding needs to have the mc over the exact same target of targetsun2_mc1 etc. However, I need the mc to be able to be placed over the top of all four of the targets on the background.[code]
View 1 Replies
Jan 16, 2010
I have a speaker and I need this speaker moves with a sound. I need to simulate the real world speaker vibration generated by the low and mid frequencies.
Does not have to be soo realistic what I whant to know is how I can play a sound and get son mumerical value usefull for apply numerical size transformation to the speaker.
View 1 Replies
Nov 25, 2009
if I have two overlapping movieclips and both have onPress function, then the upper movieclip screens the lower one so that the lower movieclip does not react to Mouseclick.
Is this a default behavior?
Is it possible to make both ovrlapping movieclips to react to the same mouseclick?
View 2 Replies
Jun 7, 2010
I've been looking for a tutorial and answer to this for a while but can't find what I'm looking for. I am loading html text into a dynamic textfield, and I have a scrollbar controlling the scroll using the code below. What I want to do is also add scroll up/down buttons and have the scroll bar move in relation to the text scroll. I was just going to use "tracklistingtext.scrollV -- " for the scroll buttons, but right now the scroll bar doesn't recognize the text movement. What do I need to do to get the scroll bar to listen to the text scroll position?
var listTextreq:URLRequest=new URLRequest("tracklist.txt");
var listTextLoader:URLLoader = new URLLoader();
var bounds:Rectangle=new Rectangle(scrollMC.x,scrollMC.y,0,300);
[Code].....
View 1 Replies
Dec 10, 2009
i have a bunch of movie clips and in order to make them rotate the way i want i have grouped them together, made the entire group into a movie clip and applied the motion tween. I'm trying to code it so that when i mouse over the movie clips WITHIN the group movie clip, something happens. How would i go about it? All i can work out is how to make the entire group react on mouse over, not the individual movie clips themselves.
View 2 Replies
Jul 19, 2002
I'm completely redoing the backend stuff for my site to make it more efficient.I am using attachMovie to attach a button. However, how do I attach actionscript to the button to make it go places because it is coming onto the movie directly from the library. Also, it isn't possible to add actionscript in the screen where you have the four states of a button.
View 4 Replies
Dec 30, 2008
how to do a basic action tween in actionscript 2. I can only find tutorials on AS3 ones or AS2 ones with easing, i dont want easing. i want it so when someone clicks somewhere on the stage the "character" moves to the position that was clicked.
View 2 Replies
Dec 19, 2009
i want to make the character in my flash game make a jump when the player presses a key,e.g. 'space',even the player release the key instantly,the character will still finish the complete jump process.
View 1 Replies
May 28, 2010
I'm trying to make an interactive map, whitch the size is 2880 - 2090, and the problem is the zoom in and out, I Want it to start with the magnification of 60%?
View 2 Replies
May 22, 2009
I'm trying to make an interactive map and how to make it so that when each button is clicked, it is pushed in front of the other buttons so that it covers them.
View 5 Replies
May 21, 2010
I've just started a new job, and I have the opportunity to do some work with Flash CS5 - I've never used Flash before and I'm excited to be learning new stuff! I have been tasked with creating an interactive thing... well, how 'bout I just show you
I've built it in Photoshop, but I need to make it come to life. The user should be able to grab the slider and drag it left or right and for the numbers to change appropriately. I don't even know enough about Flash to know what keywords to search to find a tutorial that'll show me how to do something similar!
View 5 Replies
Sep 24, 2005
I've been trying to make an interactive map. I have a stage that is...default size will do. On next layer I have map..on layer above is a mask with a hole in. The idea is the user can drag the map around and get info from hotspots on the map. I know I can restrict the area that the map can be dragged but this seems to only work if the map is smaller than the stage, but my map is much bigger than this. How do I set this up??
View 11 Replies
May 7, 2009
im trying to make a interactive panning with the tutorial Interactive Image Panning, Page 1 but this swf loads in a main swf.. the code i am using for the panning swf is
this.onMouseMove = function() {
constrainedMove(bg_mc, 8, 8);
};
[Code].....
the problem im having is that the panning swf is using the with of the main swf that is holding it
View 4 Replies
Oct 16, 2009
I have a set of images of dogs and a doghouse.
1. Each dog has an email assigned to it for the person.
2. Clicking on a dog (or alternatively "dragging it"), puts it in the doghouse and moves the existing dog out to the now empty location.
3. Once moved in, ther should be a button presented to create an email to the person saying they have been placed in the doghouse (so..like..mailto??).
4. Maybe an image of the doghouse with them in it could attached to the email.
5. LATER: The state of the page could be kept so future visitors know that the person is in the Doghouse.
I have an old JavaScript page that kind of shows the functions:
FAMILY DOGHOUSE
Also, what I have done in FLASH (so far) is also shown at the bottom of the page.
1. Not sure how to make the action wait for the mouse click or drag!
2. Also, maybe a button, once the people decide who goes in the doghouse, to submit and fire the email??
When I chose this little project I thought it was easy, but I realize I have not a clue how to begin beyond making buttons and tweens.
View 0 Replies
May 8, 2010
I've been working on a mini-mouse maze in as2, placed in a movie clip called "mouse1". On frame one is the start button, and on two is the maze and finish button. So what I'm asking: is there a way to make the movieclip return to frame one when the player right clicks? I know this code, that makes it trace something but I cant use it to navigate.[code]
View 1 Replies
Oct 17, 2010
I have two movie clips on top of each other. The one underneath is a button and the first movieclip is not always no top of it so everything is fine, the bottom one listens for Clicks and Mouse.ROLL_OVER just fine. However whenever the first movie clip moves and happens to stop overtop the button, that is where the problems begin.
Is there any way for me to make the movie clip on top somehow cause the ROLL_OVER to get through to the underlying movie clip as well as the clicks?
View 2 Replies
May 16, 2011
I want to make the text moving like this one here : http:[url]....How do I make it or where I can find tutorial to learn?
View 2 Replies
Oct 25, 2010
How can you make in Adobe flash cs5 a animated gif with a transparent background. I have make a animation in flash cs5. And i want to export it to a animated gif. But i want this animation with a transparent background
View 2 Replies
Oct 20, 2011
I have something in mind like this: [URL] so each time, when the mouse is over each state, different information should show up in the right side box with different information. How should I implement this? should I draw the right side information box as picture, and then write a script to ask information to display when mouse is on certain state, is this a movie clip?
View 6 Replies
Jul 8, 2009
I'm rather unfamiliar with Actionscript (up untill now, I've only made simple Flash animatons).I would really like to make a visual novel type of game (it's a game much like the Phoenix Wright games, minus the court scene parts of the game).
View 2 Replies
Jun 14, 2010
Im tryin gto make an interactive navigation in adobe cs5 for my Flash class final tonight. Unfortunately my actions are bringing up a TON of errors. Its due in about 2 1/2 hours. I hope someone out there can figure it out quickly! below is my script and a list of syntax errors ActionScript Code:
stop();
btn1_btn.addEventListener(MouseEvent.CLICK, show (image1));
function showimage1(event:MouseEvent):void {
gotoAndPlay(label1);
}
[Code]...
View 5 Replies
Jul 31, 2003
I am trying to make an interactive calendar. I would like the day to be highlighted when it opens. The highlight is a movie clip with a number for the instance name.
[Code]...
It's not working and I'm not sure why. I could easily be going about it ALL wrong. I suspect that it being an onClipEvent is an error. Can't I just getDate and setProperty?
I have attached the file. Once I understand how this works I can duplicate it for loading the correct month and year.
View 10 Replies