Moving From One Movie Instance To Another?
Apr 30, 2009
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.
View 4 Replies
Similar Posts:
Apr 29, 2002
i'm creating a flash news scroller that accesses an external file to read news headlines.I've created the main system which works roughly as follows.The main movie clip reads the external headlines & related article texts from a file (using loadvariables) and puts them into an array.I loop over the array creating several new instances of a movie clip (lets call it "news_piece"), placing one above the other. "News_piece" contains 2 text fields called "Headline" and "Article", so i change the contents of these fields for each instance of the movie, retrieving the contents from the array.The outer movie then scrolls the lot.
Now comes the difficult bit...stay with me... sometimes the headlines can be 1, 2 or 3 lines in length. So, if I want the article text to start directly below the headline, I guess I'll have to move the lower Text field ("Article") a bit higher/lower in that particular instance of the "News_piece" movie.So, to summarize, I wanna move the co-ordinates of a text field in an instance of a movie clip
View 2 Replies
Apr 16, 2011
I placed a movie clip instance inside a button, and I want this movie clip to play when the button is released. I'm using this code on the frame containing the button:
function playMovie(event:MouseEvent)
{
this.theButton.theMC.gotoAndPlay(3);
[code].....
View 2 Replies
Jul 19, 2004
Does anyone know if it is possinle to scroll a graphic or a movie instance as well as a text instance in flash. I want to scroll text and images as well. Actually text with imges embedded in it.
View 3 Replies
Nov 28, 2010
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:
[Code]...
View 3 Replies
Sep 15, 2010
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) {
[code]....
View 3 Replies
Jun 25, 2009
Here is what I am working on. [URL]
I am creating an interactive map. It has little bullets that, when you hover over them, display a short description of the room and a link to another page. What I am trying to do is make it so that the user can hover off of the bullet, and onto the link to the seperate page, without the link and description disappearing because of leaving the bullet's "hit" area.
Do I have to define another hit area for the description and link somehow?
View 18 Replies
Oct 23, 2009
I have a label I am referencing form a movie clip inside the movie clip which contains the "label_2." Here is the code I used: MovieClip(parent.parent).gotoAndPlay("return_2"); Now I need to reference a instance name of a movie clip in side the same scene.
View 10 Replies
Mar 20, 2009
Does creating a new instance of an Object that uses an identical name to an older instance, delete the previous instance? Or should the original instance be deleted first? The code uses a ridiculous amount of XML vars. Isn't it less memory intensive to parse the XML and save the properties to an Object, and then delete the XML Object, rather than keep the XML Object around and reference it's child nodes directly? Is it better form to break up a huge XML file (>600lines/3200vars) into smaller chunks?
View 1 Replies
Dec 11, 2009
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.
keyword = varkeyword
View 1 Replies
Sep 24, 2009
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?
View 5 Replies
Mar 5, 2010
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)
View 4 Replies
Oct 9, 2011
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?
View 2 Replies
May 24, 2003
Is it posssible in actionscript to see if the mouse pointer moves out from the movie?Or trace the mouse coordinates when it is outside of the movie?
View 1 Replies
Feb 6, 2009
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.
Add this code to the first frame:
stop();
var speed = 0.01;
var grow = 3.6;
[Code].....
View 1 Replies
Mar 12, 2010
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 {
[code]...
View 2 Replies
Apr 21, 2009
I have an image that's being moved like so:
Code:
mcSky.addEventListener(Event.ENTER_FRAME, moveSky);
function moveSky(evt:Event):void {
[code].....
View 1 Replies
Feb 16, 2010
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?
View 1 Replies
Jul 25, 2010
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] .....
View 4 Replies
Oct 19, 2010
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.
View 2 Replies
Nov 11, 2010
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.
View 1 Replies
Oct 28, 2011
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.
View 6 Replies
Jan 6, 2010
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)
[Code].....
View 8 Replies
Jul 7, 2009
after a certain amount of time I want a moving object to "swap" with another movie clip, so far I have this.
ActionScript Code:
attachMovie("cannonball2","cannonball2",_root.getNextHighestDepth(),{_x:this._x, _y:this._y});
[code].....
View 2 Replies
Dec 17, 2009
I have a question that's been bugging me for a LONG time now. I'm still pretty new to ActionScript, I'm trying to have a series of movie clips move from right to left along the stage, but after about 3 seconds they stop! Here's the code...
ActionScript Code:
public function thingTimer () {
nextThing = new Timer (1000 + Math.random()*5000,1);
[code]......
View 2 Replies
Jun 5, 2010
I'm trying make a jumping animation move to the left when I click the left arrow key and up arrow key and don't know how. I'm new to AS, just sorta winging it.
[Code]...
View 0 Replies
Jan 20, 2011
so basically i have 3 red cups which are movie clips and i got them to move but they move out of the screen and i want them to move at a speed and switch positions within each other.so how do i do this with coding ( actionscript 2.0 _
View 6 Replies
Jun 26, 2009
I want to make a movie clip move anywhere outside the stage, but dont really know how should I do it, here is the codeI think that some changes should be made somewhere around math.random, where I put that // ???btw, I got this code from a tutorial where it was about attaching like 50 balls at once, making them move to random locations so there might be some useles things too the point is that I want a ball to be attached somewhere, preferably to the middle of the stage, and I want it to move in random direction with constant speed. I tried many ways of doing it, but the ball was changing direction every frame or other lame things happened
View 1 Replies
Nov 15, 2007
im just wondering , this always happens when i create a flash movie,, when 2 MC's runs together at runtime ,, the movie clips moves slowly .
View 1 Replies
May 15, 2009
how to prevent the mouse from moving over a movie clip, so that the movie clip in a sense has a boarder around it that stops the mouse from entering its area on the main stage.
View 1 Replies