Move To HTML After Clip End?
is there any code that allow the page(say, a flash intro) go to next HTML page after the clip ends automaticly?
if not, is there html code to do it?
PLEASE HELP, Thanks
FlashKit > Flash Help > Flash ActionScript
Posted on: 11-16-2005, 06:26 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Menu Clip With Labels _up, _over And _down Containing Another Clip That We Can Click To Move To Another Frame
Ok, i have that code in first frame of my main scene:
stop();
mon_clip_mc.onRelease = function() {
mon_clip_mc.smenu1_mc.onRelease = function() {
_root.gotoAndStop(20);
};
mon_clip_mc.smenu2_mc.onRelease = function() {
_root.gotoAndStop(30);
};
};
I have "mon_clip_mc" on the main scene. Then, in that "mon_clip_mc" first frame code i only have a :
stop();
And in that "mon_clip_mc" i have the labels _up, _over and _down. At the _over label starts the movie clips "smenu1_mc" and "smenu2_mc". Those are the one i want to click on to go to frame (20) and (30).
As I did it, it doesn't work. Am I doing it the good way, is my code in the good place, should i use "hitareas", if yes, how ?
Thanks, i'm kind of lost...
Move Movie Clip On Button Clip
This is a script that causes a movie clip to move down to a new location when a button nested inside the movie clip is released. can anyone tell me how to write the code so that when a different button is pressed the movie clip will move back to its original position. I am trying to learn actionscript 2.0 by taking the posted files apart and so on, I have a ton o books none of which are too helpful so I could really use some help. What the heck is "ty". I decided to join the forum because books were not cutting it! LOL
here is the code thanks.
ActionScript Code:
// this is the main button to start the slide show
collButtHolder.slide1.onRelease = function() {
//move the to menu down to reveal the slide show components
slide(collButtHolder,324);
// call the function to set up slide show or reset it you had other buttons
// this is where you set your path to the photos and how many photos are in that folder.
resetSlideShow("images/slide1/", 15);
collectionMenu.bName.text = "slide1";
};
function slide(mc, ty) {
mc.onEnterFrame = function() {
mc._y += (ty-mc._y)/5;
if (Math.abs(ty-mc._y)<0.4) {
this._y = ty;
delete mc.onEnterFrame;
}
};
}
Help, Move A Clip Using X,y
hi, this is the scene:
i have a 400x300 flash movie, inside i have a 1200 x 900 clip, i need to move this clip with different buttons, the 1200 x 900 clip contains the backgroud images for each section like ( about us, contacts, services, etc etc) my idea is this: If the user clic on about us button, the 1200 x 900 clip moves to the center of the main movie, do you know what i mean ?? i guess
if not, i just know how to move a clip with x and y propierities from a button.
PLEASE HELPPPP !!!
thanks
My Button Won't Move My Clip
Hi all,
I'm trying to use a button that's in an mc to move an mc called panel1 that's on the maintimeline. I have this function on the main timeline:
function moveright(clip) {
if (clip._x <= 350) {
clip._x += 10;
}
}
The code on my button is:
on (release) {
_root.moveright(_root.panel1);
_parent.gotoAndPlay(1);
}
What happens when I click the button is that it my panel1 mc just moves 20 px to the right all at once then stops. I want it to move continually. What am I missing?
Thanks in advance.
Jazzyday
How Do I Move A Whole Movie Clip?
I was working on a movie, and I inserted a movie clip. The movie clip was cut in on the wrong place on the screen, and I wanted to reposition it, but I don´t know how to move all the frames to the exact same position on the screen!
Can somebody please help me?
I Want To Move My Movie Clip
using the kerboard arrows,(mouse if possible), and keyboard letters!
how can i do it?
can i do it using onClipEvent(keyDown)?
if ys then how?
thanks in advance
Peleg
Movie Clip Won't Move
Hi all,
I'm trying to dynamically create movieclip instances with attachMovie(). The problem is, I'm trying to change the position with the _x and _y properties and it doesn't work. The movieclip appears on the stage but the position remains 0,0. Here's my code:
attachMovie("radioButton", "radioButton1", 2);
radioButtion1._y = 10;
radioButtion1._x = 10;
Like I said, the clip won't move. I've tried to change other properties, like _width, without problems. So, if anyone knows what I'm doing wrong, I'd appreciate some help.
Thanks,
Makac
Duplicate Move Clip ( )
ok folks, bare with me- working with version 4 here. No laughing. I just came back from using the dragable window tutorial for 4 and have a question. I want to build an open button. This is the code I was instructed to use in the tutorial:
Code:
On (Release)
Duplicate Movie Clip ("/window", "/window" & x, x)
Set Variable: "x" = x + 1
End On
When I try and enter this info, Flash gives me a window saying:
Quote:
a syntax error was encountered in an action
action: duplicate move clip ("/window","/window_x",x)
parameter: depth
value: numeric
error: a numeric value was expected
What’s up? According to the code, I told it to set variable "x=x+1"
Thanks.
CRO8
-=Move Movie Clip=-
Although this should be a breeze for someone such as myself... I can't seem to get a certain aspect to work...
I need to basically move/duplicate a currently existing movieclip into another dynamically created movieclip. All attempts thus far have failed
::::::::::::::::::::::::::::::::
I tried a general duplicate movie clip method.
==
duplicateMovieClip("Close", "CloseButton", eval(WindowName+".TitleBar"));
==
This faultered as the duplication just occured on the root -_-
::::::::::::::::::::::::::::::::
I even attempted creating a null movie clip in one of my layers then swaping depth.
==
eval("_root."+WindowName + ".TitleBar").createEmptyMovieClip("closeholder ", 1);
Close.swapDepths(eval(WindowName+".TitleBar.closeh older"));
==
In this case I'm probably using [and understanding] depths incorrectly. Basically I assumed depth/target/object were interchangable as in specification of a path... or a general depth.
::::::::::::::::::::::::::::::::
Any idea's on moving my movie clip around throughout other dynamic movieclips/objects? Im thinking I MIGHT have to specify the path as a variable then eval the var to associate properly... hmm.
Thanks in ahead,
~Zeth
Move A Clip Symbol (x And Y)
Hi
how can I move the "blink" symbol, found in the library, to the same location of the thumbnail being rolled onto using AS???
ie. the "blink" symbol would cover the current thumbnail being rolled on.
I have tried eveything , but no luck...please help
i have attached the fla..notice that the thumbnails dont have an onRoll effect.
thanks
Move Movie Clip
Hi,
I want to start a movieclip ( travel) or graphic, but i guess a movieclip is better, from one place move to another. The starting point is variable (a land on the worldmap) the destination is steady (Amsterdam, The Netherlands). The worldmap is a movieclip, countries are buttons). So the user clicks a country as a starting point.
Does anybody how to do this?
Help will be nice.
Thanx
FD
Timing A Move Clip
I'm wondering if there is a way to assign a "timer" to a clip, so that after a certain amount of time elapses, it starts over.. any ideas?
thanks
MOVE One Movie Clip To Another Mc
Hello
With the click on one button, I want to MOVE a specified movie clip "ARROW" to another "mc". Then with the click on the next button I want "ARROW" to slide close to another "mc". And so on in the same form.
I have no idea about this slide/movement script.
If this is very difficult, the more easy possibility might be to tell "ARROW" go to this x/y coordinates.
Can you tell me how?
Thank you.
Tito.
Movie Clip Move
Hi all,
I have tried everywhere looking for a fix for this code. I am looking to have mulitable buttons which when pressed, will move a movie clip to a specific point 1. If the movie clip is aleady at that specific point... it will move to specific point 2.
Ok... here is an example of what I am talking about.
On the button the action is this:
on (press) {
_root.over = true;
}
Which sets off the script on a movie:
onClipEvent (enterFrame) {
if (_root.over_y = 400 {
_root.over_y = 200;
_root.over_x = 200;
ydif = (_root.target._y-_root.over_y)/10;
xdif = (_root.target._x-_root.over_x)/10;
_root.target._y -= ydif;
_root.target._x -= xdif;
_root.over02_y = 50;
_root.over02_x = 50;
ydif = (_root.target02._y-_root.over02_y)/10;
xdif = (_root.target02._x-_root.over02_x)/10;
_root.target02._y -= ydif;
_root.target02._x -= xdif;
}else{
_root.over_y = 400;
_root.over_x = 400;
ydif = (_root.target._y-_root.over_y)/10;
xdif = (_root.target._x-_root.over_x)/10;
_root.target._y -= ydif;
_root.target._x -= xdif;
_root.over02_y = 200;
_root.over02_x = 200;
ydif = (_root.target02._y-_root.over02_y)/10;
xdif = (_root.target02._x-_root.over02_x)/10;
_root.target02._y -= ydif;
_root.target02._x -= xdif;
}
It pretty much works except the important line: if (_root.over_y = 400 { What I am trying to say here is if the y point of movie clip 1 is 400, then do whats under. Else do the other thing.
Any ideas? Thanks in advance.
A Move Clip As A Button?
I am interested in using a movieclip as a button
I tried this code but the MC does not appear
code:
HCgame.onPress=function(){
trace ("goodnight, nobody");
this._x=240;
this._y=0;
this._width=50;
this._height=250
_x=555;
_y=555;
}
I then attached the movie clip, it appears but does not act like a button
Please Help My Movie Clip Move The Right Way
Hi!
I have attached the file that I'm having problems with!
I would like my class to type the answer to the calculation in the box provided. If they get the answer right, the mouse should jump a little way up the hill and start to slide slowly back down again.
The sliding down part will act as a bit of a timer for the next question (the longer they take to answer, the further the mouse will have slipped back down the hill!)
I realise I have made the movie clip of the mouse incorrectly, as he slides up hill to his final place instead!
How can the children click 'CHECK' and the computer will jump the mouse 120 frames forward to his first jump point?
Also, how can it be animated so it slides slowly back down again?
Hope this makes some sort of sense!
Cheers
Chris
Move A Clip Around A Grid
Hi,
I'm using Flash 8.
Dumb question ... how do I move a movieclip around a grid (or predefined set of points/locations)?
I've tried it with the following code, and can get a movieclip to move from one location to another. But I can't get it to move from location 2 to location 3.
onClipEvent(load){
_x = 264;
_y = 274;
targetx = 264;
targety = 341;
}
onClipEvent(enterFrame){
function mover1(){
_x += (targetx - _x)/speed;
_y += (targety - _y)/speed;
clearInterval(time_1);
}
var time_1 = setInterval(this, "mover1", 2000);
}
I've tried various ways to get the clip move again to another location but, no way can I do this. Can anyone help?
Thanks!!
Move Clip Controls
I'm building a standalone flash website in Flash Proffesional 8, and I could use some help in the actionscripting.
I'm disecting a previous site to see how they used the actionscript but its confusing. This is what i'm looking at . .
_root.contact_btn2.onRelease=function(){
_root.section="contact";
_root.content_box_mc.attachMovie("blank_movie_clip ","blank_movie_clip",100);
}
My question: How can I use _root to load, and get to to sections of a movie clip ?
Move Clip Question
Man, this seems like a simple task, but I can't figure it out. LOL
I created a pyramid and each brick is a movie clip. I also made a movie clip (I called "content") in which each frame is a different set of words. I want to make it so when I click on a brick (movie clip) it will display a certain frame in the "content" movie. I can't figure out how to make this happen.
Also, is this the best way to do it?
Thanks!
Move Clip Towards Mouse
Hello:
I've been searching this forum for a while and cannot find exactly what I am looking for. I wanted to make a movie clip play to a spot where the mouse is clicked and then rewind when the mouse is released. The objuect is to make a frogs tongue catch a fly. I've found code to get the movie to play to the mouse down...
onClipEvent (mouseUp) {
xtarget = _root._xmouse;
ytarget = _root._ymouse;
xstart = _root.bob._x;
ystart = _root.bob._y;
}
But hoe do I get it to rewind and how can I get the movie to start from one spot and go to the mouse click.
Thanks.
How To Move A Movie Clip On The X
I've looked through a number of posts but can't quite find what I am looking for. I have a movie clip that is a timeline that I would like to have move from one point to another on the x axis when a button is pushed. The idea being when button 1 is clicked the movie clip moves to position 1, then when button 2 is clicked the movie clip advances to position 2...etc. What script would I use to accomplish that?
Thanks for the help in advance
Move A Movie Clip
I am trying to get my movie clip to go from point "a" to point "b", but I am not having any luck.
ActionScript Code:
cd.onEnterFrame = function (){
this._rotation -=30; //sets the rotation of the movie clip
if (this._x<100) {
this._x -=20;
}
}
Help Need To Move A Movie Clip
I Need help moving a movie clip in a wave movement ( like the sin or cosine waves we learned in school). I have a movie clip called "bird". I am trying to write action script to the main movie and control the movie clip "bird" with the bird._x and bird._y. It is moving fine from left to right but the up and down motion is not working correctly. May be I need to put it in a loop or something. I am not sure what I am doing wrong. Any help will be appreciated.
Thanks,
Edo
How The Heck Do You Move The Clip?
Frusterated.
moveTo() not working and resizing does not stretch text.
What gives?
// THE FORMAT FOR TEXT FIELD
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0xFFFFFF;
my_fmt.size = 26;
my_fmt.underline = true;
// THE TEXT FIELD PAARENT MC
var titleBox:MovieClip = this.createEmptyMovieClip( "titleBox", _root.getNextHighestDepth() );
titleBox.createTextField("my_txt", 1000, 0, 0, 300, 50);
titleBox.my_txt.multiline = true;
titleBox.my_txt.wordWrap = true;
titleBox.my_txt.border = true;
titleBox.my_txt.text = _root.headline;
titleBox.my_txt.setTextFormat(my_fmt);
// try and move it
titleBox.my_txt.moveTo(200, 100);
trace('titleBox moveto = (' + Stage.width + '/2)-(' + titleBox.my_txt._width + '/2) = ' + ((Stage.width/2)-(titleBox.my_txt._width/2)) );
titleBox.moveTo((Stage.width/2)-(titleBox.my_txt._width/2), 10);
Help Need To Move A Movie Clip
I need to move a movie clip with action script. I am not sure how to do it. I am writing action script to one of the layers and calling my movie clip "bird". I want to move the clip in a wave motion(like a sine wave). I am using the bird._x and bird._y and setting them equal to a variable. But the _y part of it is not moving. The movie clip is only moving from right to left and there is no upward or downward movement. I am stuck and would appreciate any help.
Thanks,
edo
Move My Movie Clip
Hi there!
Hope u all had a nice holidays!
I have a button in my movie clip. This same button is located down in my movie clip. Once this button is pressed, you reach another frame from the same movie clip but at the same hight of the button.
How could i direct the user to the top of the movie clip after pressing the button? And not keep the same "hight" of the button.
Cheers.
Leo.
Need Movie Clip To Move Up And Down
Hi everyone,
I have a movieclip on the main timeline and would like it to move very slowly up and down on a continuous basis. I'd like to use actionscript to do this instead of tweening on the timeline. The only actionscript I can think of that might work is using the _y property but I don't know how to construct the full actionscript to make it work. Can someone help out?
Thanks for any help offered.
Help Need To Move A Movie Clip
I need to move a movie clip with action script. I am not sure how to do it. I am writing action script to one of the layers and calling my movie clip "bird". I want to move the clip in a wave motion(like a sine wave). I am using the bird._x and bird._y and setting them equal to a variable. But the _y part of it is not moving. The movie clip is only moving from right to left and there is no upward or downward movement. I am stuck and would appreciate any help.
Thanks,
edo
How Do I Do Move A Clip To Target?
Hello,
I have a movie on the stage "box_mc'. What I want is to when a user clicks on it, it eases to (_x) lets say 500;
how would I write a function to get the clip ease into its assigned target?
I apprecaite all the help.
Thanks
Move My Clip By Sys. Clock.
Hello,
Is there a way i can move my movie by tapping into the system clock.
example:
Like go to frame 10 for 30 sec, than to go frame 11 for 30 sec. etc.
thank you in advance.
Move Location Of Clip
hey all, is there any way to move a clip from one timeline to another? for example, i have a movieclip _root.egg, and one called _root.basket. i want to move _root.egg to _root.basket.egg.
is this possible?
thx
-depth
Moving Move Clip
I have an image viewer that displays different pics and moves them within a small window.
The problem is they start moving fast and then to slow towards the end.
Can anyone help me control the speed and distance they move.
I attached a sample, I'm working with Flash 6
How To Move SWF File To Back On HTML ?
I have a swf on a page and over that i have some javascript menus (these menus drops down and expands on mouseover).. but after placing the swf file, and when i mouseover on the javascript menus, the menus expands but HIDES BEHIND the flash file !!??!!
Is there a solution for this.. should i include any actionscript on the flash file..?!
PLEASE HELP...
Thanks in advance..
Move Clip With Acceleration / Deceleration
hi there!
i want to move a clip from lets say position y1 to y2. i want it to accelerate from y1 half the way and then decelerate until it is at the y2 coordinate. (so it is slow at the beginning, fast in the middle and slows down at the end).
what the hell is the formular for this? (sorry, but i was always missing in math-lessions...)
thanks for helping me out!
Convert A Scene To A Move Clip
Howdy,
I got this scene that I created. It is basic but I would like to convert it to a movie clip so I can use it later in life. How can I do this? The scene has like 8 layers and a motion guide. How would I do this.
Thanks,
MPerla
Movie Clip Move To Position
hi, i have just made a few buttons lined up verticaly, now what im tring to do is on mouse over have a floating movie clip move over the button, please have a look at fla attacted and tell me where im going wrong
thanks brian
Making A Movie Clip Move
This is probably a no-brainer for most, but I made a movie clip of a set of eyes, and I want them to blink... like, every 30 frames. So I double-clicked the movie clip symbol, which brought me to the clip's own seperate timeline. There, I made the animation of blinking eyes just like I wanted it. But when I go back to the main animation, the movie clip doesn't animate... it just stays there on the first frame.
Could somebody tell me if there's a way to activate the clip?
I'm using Flash MX, if that is useful info.
Mouse Over +movie Clip Move
ok this one might need some explaination
on some site they have for instance a mouse(rodent not computer)
and when the computer mouse goes over it. it moves to a differnt spot
the effect is you cant catch it.
does anyone know who to do this
www.royaltenenbaums.com
thanks
Move Certain According To Distance From Movie Clip?
okay what im trying to do is to have a series of clips - when i mouse over one the others move according to their distance from the moused over clip - the closer they are the further they move - the further they are the less they move.. does anybody have any idea where i can find a tutorial to do this - or any ideas to get started - i tried starting but my coding skills I dont think are up to it yet.. any help much appreciated.. ive seen this kind of thing done with text (sort of but more complex)
attached is a gif showing what i want. - imagine you mouse over the red circle!
Load A .swf Inside A Move Clip
I have created an empty Move Clip called, "bob."
I want to load a .swf file inside "bob."
However, it's not working ... here is what I have:
Move Clip Alpha Setting
I have a movie clip and when the timeline hits this frame with the clip I would like the clip to go from an alpha of 0 to an alpha of 100.
I would like to do this using actionscript and not a tween.
How can I smoothly fade up my movie clip using only actionscript?
Thanks
Make A Movie Clip Move?
Ok, I'm sure this is probably alot easier then I am thinking, but I'm puzzled just the same.
I just got Flash MX 2004 and I'm trying to have a really long movie clip re-position itself when I click a button. I'll have three buttons and I want each button to slide the movie to a certain location on the movie clip and stop. Then, when you click on a differant button, it will move the movie clip to a differant location on the movie clip.
I know this is probably pretty standard stuff, but I can't seem to figure it out. I've read several tutorials, but none of them really explain what I am trying to figure out.
Little Help???
TM
Movie Clip Wont Move
i have this code (only)
Code:
if (Key.isDown(Key.LEFT)) {
Word._x -= 5;
} else if(Key.isDown(Key.RIGHT)) {
Word._x += 5;
}
plus gotoandplay(1) on the next frame
for some reason, when I press left it will move left 5 spaces and stay still until i let go, when it will move back to where it originally was
same with right
i have no idea what is wrong
Move Movie Clip With Button
Hi.. i woould like the script for a button that moves a movie clip say 5 pixels across each time its hit.
any ideas?
Targeting A Move Clip Level
I am trying to target a move clip but I am having a hard time with it because it’s two levels above where the command is coming from and is one level below the root level how to I target it. I tried using it’s name alone but that does not work.
|