I have a .flv file (and also the original .mov from which the .flv was created) that i have imported into a new .fla - I also have created a button and assigned actionscript to the button that links to a new web page. The button works correctly. My issue is that I need the button to show up at 6mins42seconds into the video, and I don't know how to write the script to make it do so. I could do this easily if the video showed up frame-by-frame in my timeline, but since it's an external .flv I'm stuck. From reviewing the archives, I think I may need to use cue points? I have already re-encoded the .flv with a cue point added at the right place. The encoder also asked for 'name' and 'value' parameters for the cue point, which i wasn't sure what it wanted so just entered 'button' for both as a placeholder.The button links to a website perfectly, just need to know how to code it to move onto stage exactly at 6min.42secs. OR if anything do you know how to drag out the .mov or .flv from 1 key frame into many(seems would be easier that way)
I am making something like a slot machine and the main number (a movieclip placed in separate layer) moves vertically continuously.I made a button and how do I make the main number movie clip stop moving after pressing the button?Our office has Flash CS3 and all the actionscripts are manually written.
I have two buttons in my movie that move a movie clip up and down on my stage. the code in the buttons atm is as follows,
on (press){ if (this.pics1._y<-240) { } else { this.pics1._y = (this.pics1._y-10); }
(this is just the down button)This just checks to see if the movie clip has reached its lowest position and if it hasn't it movies it down by 10px.What i would like to do it make is so when the button is clicked and held the movie clip moves down untill the button is released.(Im using Flash 8 with Actionscript 2)
I have an image of a target on stage, that moves left and right. In the center of the image is an invisible button, occupying the centre circle of the target. The idea is you click the invisible button on the moving target and this starts another movie playing. Seems to me the action script should reside in the button, and be something like this:
I have a movie clip that loads and when it is done playing it has a close button that unloads the movie clip... I want to add code to this button that moves the play head to frame 20 of my main timline using actionScript 3.0
I have some simple script that has 2 "movie clips". What I want to do is to start moving the second movie clip at the same time when the 1st starts moving. (both start moving at the same time) I tried the following script but it never works:
i'm kinda new to actionscript but im trying to find out how to realise a banner i am making.I have 1 big movieclip thats about 5x larger then what is shown, i have 4 movieclips each on each side of the movieclip, left, right, up and down.The idea is that when i hover on 1 of the movieclips the big movie clip moves that way until the mouse isn't hovering above it or when the movieclip reaches the end of the side.I have given a mouse listener event to each movieclip on the side, the trace works well, but i i don't know how to make the big movieclip move when i hover the side, i hope someone can give me some pointers on how to proceed.
Code:
stop(); import flash.events.MouseEvent; leftMove.addEventListener(MouseEvent.MOUSE_OVER,move_left); function move_left(event_object:MouseEvent) {
I am getting the following error when trying to move a Move Clip on it's x axis by a value of 5.:TypeError: Error #1010: A term is undefined and has no properties.at flashmovie_fla::MainTimeline/mouseDownHandler()[code]
I made a button and what I want it to do when I click on it, is to take me from the instance it's located, into another instance.
Like I have this: Scene 1> Frame 1 with instance in it - and Frame2 with another instance in it.
Scene 1> Frame 1 starts playing the first instance (which has the button it in) and then from that instance - I want to go to the second instance which is in Scene1 Frame2.
I'm using a Flash accordion component. This component is made of movies and includes text boxes whiach people can enter locations into.
These values are process on the main stage on the click of a button.
My question is, how do i get the value that was entered in the accordion movies into a variable on the main stage that the can be used.
At the moment i have a text box on the page, and have added this code to the first frame. Although i think the value is reserverd for use with the accordion movie and cant be accessed on the main stage.
anyway i can move a container by holding down a button?for example if create a button and name it Btn_Right and the container is named fmcont.when Btn_Right is held down i want it to move fmcont to the right.
I want to move my movie clip on the stage with a button which is also on the stage. I want the movie clip to move along the x-axis and have it constantly be able to move when the button is clicked. I have a script but once the movie clip has moved I can't move it again. I would like to be able to constantly have it move along the x-axis when the button is clicked and pick up where it left off.Here is my script:
btnRight.onRelease=function() { var t:Number = photos_MC._x; new mx.transitions.Tween(photos_MC, "_x", mx.transitions.easing. Back.easeOut, t, 200, 8,
I'm Making a catalog on Flash CS4 ActionScript 3.0and I don't know ho to move between movie clips using buttons and action script...In Scene 1 I have 2 framesIn frame 1 y have a movie clip (MC) and inside that movie clip I have 10 framesIn frame 10 of the MC, I want to put a button that will take me to frame 2 of my original timeline (NOT frame 2 of the MC)an some one tell me how's it done?or if it can't be done that way...then ...How do I go from frame 1 to frame 2 on my original timeline in Scene 1 after the movie clip in frame one is done?
I want to pot a movie on a moving 3d Cube. A want tha same movie on all faces. I've imported the movie... but the I do not know how can I put it on the faces of the cube. _cube = new Cube(new MaterialsList({all:_mov}), 40, 0, 40); But I think is not a MaterialsList.... or what?
I'm trying to re-size and move a movie clip using my keys, and I can do it, but for some reason, if I set a really low value to "speed", it won't move to the right or down, but it will move to the left or up, even if very slowly.
It is as if flash has problems in advancing very low values on the positive x and y axis.
l just following the lesson on kirupa's Classes and Movie Clips for AS3 [URL]im trying rewrite the for loop from time line to class the problem is instead all the circle moving individually, they moving together. Here is the class.
package { import flash.display.*; import flash.events.*; public class Main extends MovieClip {
I have made a simple Drag and Drop map, where its the map being dragged by the mouse. The thing is, i need to have a grid of buttons on this map, which you can click. But since im dragging the actual map, my buttons wont follow. They stay where they are.An example would be the united states world map, then each state is a button i can click. A problem would be that if the entire map is covered in buttons, then my mouse cant drag the background map as im selecting a button when i drag. perhaps i can make the buttons drag the map instead?This is the code for dragging the map:
I recently made a simple Flash file with video with an alpha channel and three simple buttons. It's a site tour video, and there's a button in the lower right to exit the tour that takes you back to home page. When you move over the "Exit Tour" button, it transforms in size slightly to highlight it. However, PC users are telling me that they can't see the word "Tour" on the button, only "Exit" until you move over the button, then they can see both words. The button functions perfectly on a Mac. Also I've been told that the video often appears choppy and sluggish on PCs, and not Macs. I'm encoding and streaming on flash media server - 400kps, CBR with alpha channel encoded, size 880x512. This is put on a stage size of 980x667 in Flash - is this is just too big of a window for streaming to handle? I have attached some files for reference.
I want to move a button on rollover 1 pixel on the x&y. Here is my function: por01_tmb_btn.addEventListener(MouseEvent.ROLL_OVER, picMove); function picMove(event:MouseEvent):void { event.target.x=event.target.x+1; event.target.y=event.target.y+1; }
I have 16 buttons I have to apply this function to. Is there an easier way to do it than: por01_tmb_btn.addEventListener(MouseEvent.ROLL_OVER, picMove); por02_tmb_btn.addEventListener(MouseEvent.ROLL_OVER, picMove); por03_tmb_btn.addEventListener(MouseEvent.ROLL_OVER, picMove); etc.
excuse the lazy question but I'm tired of google I have been trying to learn about repositioning movieclips on the click of a button. So basically, the movie clip will move to a location on the screen in accordance to the browser size and relevant to the button pressed.
I have seen a few tutorials that move an object say, 100 pixels. But what I want is for it to move into the top left, or top right, or bottom middle of the screen regardless of the browser size.
I am trying to step from AS2 to AS3, not that easy.. I got to this point with a simple 3 frames movieclip. Frame 1 gives the option of loading 2 different external swf, frame 2 load directly a 3rd external swf, frame 3 nuttin happen. All works ok except when from frame2 i will go back to frame1, one of the 2 button (to load ext swf) disappear. The code i wrote down is prolly not the best.[code]...
I am currently doing a project that involves animating a background image up/down when buttons are pressed.
1.) It will need to check if a button has been pressed and then animate the background up.
2.) It will also need to check to see what the position of the background is. If it has been animated up already, it will need to be animated down.
3.) Finally it will need to contain if and else statements to animate the background movie clip. If, will animate it to y = 180. else will check the position, if it has been animated up, the background movieclip will be animated down to y = 330
I have a movie clip on my stage which I want to move up 2 seconds into the movie, as if it is popping out of an invisible box. I can do it on the timeline, but wondered if anyone knows how to do it using as2?
Firstly, I want to be able to push the space bar on my keyboard during a swf, and for a movie clip to appear on the stage. This is what I have so far: Code: onClipEvent(enterFrame){ if(Key.isDown(Key.SPACE)){ _root.attachMovie("Explosion", "Explosion"+i, _root.getNextHighestDepth()); _root["Explosion"+i]._x = _x; _root["Explosion"+i]._y = _y-20; }} but its not working....
Secondly, I want A movie clip to spawn in the middle of the stage, then randomly travel outwards to the edge of the stage, then dissapear. And this needs to happen over and over, with the same movie clip travelling to a different place each time. This is what I have so far : Code: onClipEvent(load){ timer = 0; i = 0; a = 0; b = 0; [Code] .....
I have a 10 frame movie clip which is stopped at one, i want it to play from frame 5 at a given moment. ive done _root.ball.gotoAndPlay(5); but this doesnt seem to work.
I have a movie clip that needs to move to a location when a button is pressed. I need the movement to be animated rather then just jump to the location. I think it would have something to do with affecting the movieclips _x and _y but i can't figure out how to make it animated.
I try to move my existing movie clip using keyboard.. I want to clear how i can move mc.. For example if i click errows.. or for example if i click N i must move mc to right position. But i can not clear why my arrows working and N not
Code: stage.addEventListener(KeyboardEvent.KEY_DOWN, starMoving); function starMoving(event:KeyboardEvent):void { switch (event.keyCode)