Making Movie Clips Go Back.
Hello, I am currently working on a presentation movie in flash 8 with the following setup: Each frame is a 'slide' with certain content on it, sometimes text/graphics, sometimes movie clip animations. The navigation throughout the main movie is controlled by a front and back button on the bottom. However, i have been having some difficulty in controlling the movie clips.Many of the clips are set up with multiple stops in them. However, i want to use the same 2 buttons in the main movie to control the movie clip, or, if the movie clip is at its first or last frame, tell the main movie to go forward or back. I think the way I have been doing it so far is very awkward. Here is the code on my front button:on (release, keyPress "<Space>") {if (clipframe == 1) {with (coulombs_law) {play();}} else {nextFrame();}}on (keyPress "<Right>") {if (clipframe == 1) {with (coulombs_law) {play();}} else {nextFrame();}}I declare clipframe at the beginning of the movie, then in each movie clip have it set to 1 at the first frame and 2 at the last frame. This has worked fine so far. However, it gets a lot more complicated when trying to go back. I want the back button to make the movie clip jump back sequentially to each frame with a stop() action, and here is what i've tried so far:In each movie clip, on frame one i set _root.clipframe = 1;_root.backframe = 1;_root.stopframe = 1;_root.holdframe = 1;In each frame before a stop action, i set _root.holdframe = _root.stopframe;in each frame with a stop action i set _root.stopframe = _root.holdframe;in each frame after a stop action i set _root.stopframe = currentframe - 1;Then, back to the main movie, i put this on the left button:on (release, keyPress "<Left>") {if (backframe = 2) {with (this.coulombs_law) {gotoAndStop(stopframe);}}else {prevFrame();}prevFrame();}Complicated as it is, i don't see why it shouldn't work, yet so far it hasn't been. Any help in either a. getting this to work, or b. preferably, finding an easier, less convoluted way to do it, would be greatly appreciated.I realize that this is a lot to get through, so thank you in advance to those who take the time.
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 07-22-2007, 06:06 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
I Just Need Two Movie Clips To Play Back To Back
This is a simple one: I have 1 scene, I've developed two complex mc's and now I want to play them in sequence. In scene one I've placed the first movie with a "stop" action. Inside the end of this first mc I also have a "stop" action. I've then put the second mc in frame two expecting the playback head to advance to frame 2...when i preview the move it just stops after the first mc. Ive tried to replace the "stop" action with "gotoandplay(scene,frame)" at the end of mc one...the first mc just loops. Also tried setting up a second scene with the second mc placed in frame one with a stop "action". Then use the "gotoandplay(scene,frame)"... it just plays the first scene mc.
Thanks for your help.
joe
Making A Movie Clip Go Back
Hello, I am currently working on a presentation movie in flash 8 (using actionscript 1.0 though) with the following setup: Each frame is a 'slide' with certain content on it, sometimes text/graphics, sometimes movie clip animations. The navigation throughout the main movie is controlled by a front and back button on the bottom. However, i have been having some difficulty in controlling the movie clips.
Many of the clips are set up with multiple stops in them. However, i want to use the same 2 buttons in the main movie to control the movie clip, or, if the movie clip is at its first or last frame, tell the main movie to go forward or back. I think the way I have been doing it so far is very awkward. Here is the code on my front button:
on (release, keyPress "<Space>") {
if (clipframe == 1) {
with (coulombs_law) {
play();
}
} else {
nextFrame();
}
}
on (keyPress "<Right>") {
if (clipframe == 1) {
with (coulombs_law) {
play();
}
} else {
nextFrame();
}
}
I declare clipframe at the beginning of the movie, then in each movie clip have it set to 1 at the first frame and 2 at the last frame. This has worked fine so far. However, it gets a lot more complicated when trying to go back. I want the back button to make the movie clip jump back sequentially to each frame with a stop() action, and here is what i've tried so far:
In each movie clip, on frame one i set
_root.clipframe = 1;
_root.backframe = 1;
_root.stopframe = 1;
_root.holdframe = 1;
In each frame before a stop action, i set _root.holdframe = _root.stopframe;
in each frame with a stop action i set _root.stopframe = _root.holdframe;
in each frame after a stop action i set _root.stopframe = currentframe - 1;
Then, back to the main movie, i put this on the left button:
on (release, keyPress "<Left>") {
if (backframe == 2) {
with (this.coulombs_law) {
gotoAndStop(stopframe);
}
}
else {
prevFrame();
}
prevFrame();
}
Complicated as it is, i don't see why it shouldn't work, yet so far it hasn't been. Any help in either a. getting this to work, or b. preferably, finding an easier, less convoluted way to do it, would be greatly appreciated.
I realize that this is a lot to get through, so thank you in advance to those who take the time.
[F8] Making A Movie Clip Go Back (using Actionscript 1.0)
Hello, I am currently working on a presentation movie in flash 8 (using actionscript 1.0 though) with the following setup: Each frame is a 'slide' with certain content on it, sometimes text/graphics, sometimes movie clip animations. The navigation throughout the main movie is controlled by a front and back button on the bottom. However, i have been having some difficulty in controlling the movie clips.
Many of the clips are set up with multiple stops in them. However, i want to use the same 2 buttons in the main movie to control the movie clip, or, if the movie clip is at its first or last frame, tell the main movie to go forward or back. I think the way I have been doing it so far is very awkward. Here is the code on my front button:
on (release, keyPress "<Space>") {
if (clipframe == 1) {
with (coulombs_law) {
play();
}
} else {
nextFrame();
}
}
on (keyPress "<Right>") {
if (clipframe == 1) {
with (coulombs_law) {
play();
}
} else {
nextFrame();
}
}
I declare clipframe at the beginning of the movie, then in each movie clip have it set to 1 at the first frame and 2 at the last frame. This has worked fine so far. However, it gets a lot more complicated when trying to go back. I want the back button to make the movie clip jump back sequentially to each frame with a stop() action, and here is what i've tried so far:
In each movie clip, on frame one i set
_root.clipframe = 1;
_root.backframe = 1;
_root.stopframe = 1;
_root.holdframe = 1;
In each frame before a stop action, i set _root.holdframe = _root.stopframe;
in each frame with a stop action i set _root.stopframe = _root.holdframe;
in each frame after a stop action i set _root.stopframe = currentframe - 1;
Then, back to the main movie, i put this on the left button:
on (release, keyPress "<Left>") {
if (backframe == 2) {
with (this.coulombs_law) {
gotoAndStop(stopframe);
}
}
else {
prevFrame();
}
prevFrame();
}
Complicated as it is, i don't see why it shouldn't work, yet so far it hasn't been. Any help in either a. getting this to work, or b. preferably, finding an easier, less convoluted way to do it, would be greatly appreciated.
I realize that this is a lot to get through, so thank you in advance to those who take the time.
[F8] Help Making Movie Clips Load Other Movie Clips...
well i have miraculously figured out how to make my buttons grow and shrink simultaneously reacting to mouse overs... and even stay large when they are clicked on... however the only way i found to do this was by making them movie clips and not buttons...
now luckily the task at hand i'm assuming will be quite a bit easier than what i've already accomplished...
i am looking to now make those movie clip instances (when clicked on)... load photos into an empty movie clip that will be a separate swf... in the same dreamweaver file...
i have made each photo into a small movie clip that simply tweens the photo from alpha 0 to alpha 100 and back to alpha 0...
so i'm hoping for some code that will call up the first part of the movie clip (the fade up) when the corresponding movie clip is clicked on... and hold it... until another button is clicked... making the current movie clip play to end (fade out)... and then load the new movie (up to the middle... alpha 100) into the empty movie clip...
Sending Movie Clips Back And Forth
Hi, I would like to create something similar to this:
http://ca.geocities.com/s-prasad@rogers.com/ (you have to right click and click play for the swf file to work).
The problem I am having is that when the mouse goes over on the tab on the bottom, that movie clip goes behind all the other movie clips. How is it possible to do this?
Thanks
Snap Back To Point Movie Clips?
Hi I am new here and have searched, but cannot find the answer to this:
—I have dragable buttons inside a movieclip on the mainstage.
— These buttons fade in with a tween which is the reason I made them into their own separate movie clips.
— They drag to a collision state and load whatever page in that coresponds with their dentification. (ie.the biography button can be drug to the collision state in order to load in the biography page)
— I need code for them to snap back to their original position ( their point on the X and y axis ) if they are not loaded to the collision state.
Thanks,
Tom
P.S. please tell me if my question was not clear enough.
External Movie Clips, Back To Main Stage?
Hey guys, thanks in advance for any help:
I have a main swf that is pulling in several external movie clips via loadMove. Each external movie clip, when finished, should trigger the main swf to go to the next frame. I've got the following in the last frame of each external movie clip: _root.gotoAndStop("mainswfframe");
Currently, instead of going back to the main swf frame, it appears to be going back to frame1 of the external movie clip..and starts looping.
This worked just fine in flash player 8, but appears not be working in flash player 9. Any thoughts? THanks again,
mark
Making Movie Clips
I'm having a little trouble with my toons. I'm creating animations with scanned images, and I can't seem to make any functional movie clip symbols. Say I want to make a movie clip symbol of one of my characters talking -- here's what I'd do: first I'd draw the character's head with his mouth closed and another head with his mouth open on paper with a pencil. I scan this whole page in and open it with an image editing program. Then, I select the head of one of my characters with a closed mouth, and copy it. Then, in Flash, I make a movie clip symbol, paste the closed mouth head on the first frame of the symbol, break it down (ctrl+B), and clean up the paper behind the part of the image I want. Then, I select and copy the open mouthed head from the scanned image, make a second keyframe in the symbol in Flash, paste it in, and do the same cleanup process to it. Now hypothetically, I should have a movie clip symbol that has this head opening and closing its mouth over and over. However, when I go back to the scene and put the symbol in, it just repeats the first frame of the symbol through all of the frames--the head never opens its mouth. Can someone please tell me where I went wrong?
Making Some Movie Clips ...
Does anyone know why this code:
Code:
for (i=1; i<10; i++) {
_root.createEmptyMovieClip("card"+i+"_mc", i+10)
card[i]._mc._x = i*10;
card[i]._mc._y = i*10;
card[i]._mc.lineStyle(1, 0x000000, 100);
card[i]._mc.beginFill(0xCCCCCC, 100);
card[i]._mc.lineTo(80, 0);
card[i]._mc.lineTo(80, 120);
card[i]._mc.lineTo(0, 120);
card[i]._mc.lineTo(0, 0);
card[i]._mc.endFill();
}
isn't producing a stack of movie clips that should look like this:
http://www.factoryzen.com/_LEARN/temp.html
Thanks,
Stephen.
Making Movie Clips Buttons
I'm hoping this is an easy one--I want to use a movie clip to act as a button, so the little hand cursor won't appear. What I want to do is be able to detect when the mouse rolls over this particular movie clip, so it can do something (like an alpha fade to 0). When the user rolls off of the movie clip, the movie clip returns to its original alpha property.
Any help would be appreciated. Thank you.
Making Movie Clips Run Concurrently
Hello,
I'm having a little problem getting movie clips to play concurrently.
I have on my page a button at frame 1 on the timeline- that button initiates a movie clip which I have placed on frame5. I have added a stop command at both frame 1 and frame 5 so that the movie clip does not play automatically.
I have another invisble button on the page and I would like that make another movieclip play - but it doesn't seem to work.
I'm sure it simple steps but I'm confused now.
Thanks
Making Movie Clips To Talk To Each Other
Hello o' great gods and goddesses of Flash.
I have a movie clip buried within a couple other movie clips and I am unable to use this "child" mc to make things to happen on the main timeline or to have it affect anything "above" it. This would be a "local to global" issue maybe?
Specifically I'm trying to use the onRelease command in a child mc to make the parent movie clip jump to a specified frame as well as change its alpha value. I have limited knowledge and understanding of actionscript II (or even I, for that matter) so please be kind in your explanation.
As always, thanks for the help and for knowing so much.
Making Movie Clips Play One After The Other
I have a space on my page I want to fill with several movie clips which should play one after the other and then loop back to the beginning. I have the individual mc's made but I don't have a clue how to set all the mc's up on a single timeline and act this way.
I'v been trying to use frame labels but at the action script I don't know what to do.
Any tips would be appreciated.
Thanks,
Craig.
Making Movie Clips Draggable
Ok im using flash 5 and know that only movieclips are technically draggable. WHat Im having trouble with is that even if I have the draggable action script for each different movie in, everytime I click on a new clip to drag it the very first clip I made draggable takes the focus it seems and none of the others can be dragged. Can someone help me out with this please. Below is the code Im using:
onClipEvent (mouseDown) {
startDrag ("", true);
}
onClipEvent (mouseUp) {
stopDrag ();
}
If anyone could help me out in some way to make it that what ever clip is clicked and mouse button held down becomes the clip that is draggable it would be greatly appreciated.
Making An Array Of Movie Clips
Ok, I'm duplicating movie clips like this, when the user clicks a button:
duplicateMovieClip(_root.Mass, "m" + i, i);
That's fine. My problem is referencing to these after they've been created. I mean, I can't say _root."m"+i. How do I do it?
Movie Clips... Making Them Not Visible
ok, i cant remember the action script to make a move clip not visible at the begining of a movie. So when my flash movie plays the movie clip isnt there.
the other thing i need to know is how to click on a button and make that movie clip visible.
Am i making any sence here? LOL! thankyou guys! i hope you can help. Im in a bit of a pickle!
Making Movie Clips Run Consecutively?
I'm just learning Flash and am trying to figure out how to make movie clips run consecutively. I have some image movie clips and want them to load one after the other rather than together. Does someone have an action script example?
Thanks for your help!
Making Sure Load Movie Clips Are Loaded
I have a flash movie where I load several external movie clips, each clip goes in an empty movie instance in a different frame label. The problem is that all the clips don't load when I first view the movie, but load OK after I refresh the browser. How can I make sure all loadmovie clips get loaded?
Making Duplicate Movie Clips Talk To Each Other
I have two sets of movie clips that have been created using duplicateMovieClip. One set is buttons and the other set is images. I want to turn the visiblity of the images on or off with the buttons. For some reason I am unable to get the buttons to talk to the images. I can make it talk to the original movie clip, but not the duplicates.
A couple things that might be helpful to know...On the button I have
on(release){
box = this._name;
path = _root.pocket.pocketImage+box;
path._visible = 1;
}
Thanks.
Making Movie Clips Snap To Objects
How do you make a movie clip snap to an object in a certain place once they are close. Or if they are too far away have them return to thier original postition? I made this for my son (i.e don't use it) http://portfolio.iu.edu/migomez/bodymixup.html
Right now you can just place stuff anywhere you want. I want to be able to have the objects hit a certain position when you get close to the body.
Making Dynamic Scrolling Movie Clips
Hello all! Before now, I have only used action script to control the movie timeline and a simple loading bar or two, so just to let you know I am new at what I'm trying to do here.
What I'm going for in the end result of this is a flash movie menu that scrolls horizontally with buttons that can be clicked. I have been trying to write this so that when finished I can change the size of the buttons, movie size, and add/remove buttons if I need to. There might be some extra stuff in this script because of this.
Ok, so right now I have 13 movie clips in the library of this movie which are basically just pictures of shoes for the time being. They are labled shoe1,shoe2,shoe3 etc.
In the first frame of the movie I have this script:
//variables:
var numberOfShoes = 13;
var shoeWidth = 150;
var movieWidth = 800;
var shoeSpaceing = 5;
var scrollSpeed = .5
var shoeMovie = new Array(numberOfShoes+1); //Must be declared after numberOfShoes
var shoesOnScreen = (movieWidth / (shoeWidth+shoeSpaceing))+2;
var repeat = shoesOnScreen/numberOfShoes
if (shoeLoadNumber < 1) {var shoeLoadNumber = 1}
//Loop through the available movie clips and place them in the shoeMovie array
for (loop=1;loop<=shoesOnScreen;loop++) {
this.attachMovie("shoe" + (shoeLoadNumber), ("newShoe" + shoeLoadNumber), shoeLoadNumber);
shoeMovie[loop] = eval("newShoe"+shoeLoadNumber);
shoeLoadNumber++;
if (shoeLoadNumber > numberOfShoes) {shoeLoadNumber = 1}
}
Now, there's a bunch of crap that doesn't need to be looked at now. Just keep in mind that all I'm doing for the purpose of this question is loading up six movie clips and putting them in the array shoeMovie[]. The other stuff is me trying to program for the future of this program....hopefully. Anyway for a long time I tried making a loop after this to start moving the movieclips around from left to right and didn't have any good result. So I went ahead and tried putting this in the second frame of the movie:
for (loop=1;loop<=shoesOnScreen;loop++){
shoeMovie[loop]._x = ((150*loop)-position)-150;
position+=1
if (position >150) {position=0}
For now I'm just trying to figure out how to move my clips from left to right. Eventually the line that checks if position is > 150 (clip width) will increase the shoeLoadNumber var and send another picture at the other end. What I'm looking at now is just trying that loop out to move the clips left to right across the screen. Now, if I go and put a GotoAndPlay (2); in frame 3 then they seem to scroll along ok. Here is the result:
Test1
However I wanted to perhaps try and loop the amount of time it scrolls this direction for a certain amount of time. So to test that, I changed what was in frame 2 and put this:
for (loop2=1;loop2<=200;loop2++){
for (loop=1;loop<=shoesOnScreen;loop++){
shoeMovie[loop]._x = ((150*loop)-position)-150;
position+=1
if (position >150) {position=0}
}
}
Except when I do that I get this choppy mess:
Test2
Since it is all choppy I'm guessing that it is running through the loop I made too fast to see. Anyway...any ideas on how I could make a loop to have the images go across the screen for a certain duration without it getting all choppy like shown? Hope I explained this enough...like I said I'm still new at this. Anyway thanks for any help!
-Shawn
Making Buttons Work Within Movie Clips?
Dear everybody,
I have made a bunch of buttons, a single movie clip, on the main timeline.
But now the buttons do not work.
How does one make buttons work when they are within a movie clip?
Please help.
Sam.
Help With Making Buttons Or Movie Clips Go 50% Alpha
Let me start of by saying thanks for reading this and willing to help...
I am using Flash CS3 and the file is set up in AS2...
Does anyone know of a way to make buttons or movie clips go 50% alpha when you roll over a button or movie clip.. for example.. I have 5 buttons in a row, i want it to work like this, you roll over the middle button and the buttons to the left and right will got 50% alpha, but the button you roll over will stay 100%. Giving that button the main focus.
I have two different files i can play with.. I have one set up where the 5 images are all buttons and the 2nd file i have is the 5 images are each movie clips with the image as a graphic symbol and a invisable btn over top of it.
Can anyone please help me out with this?? Is something like this hard?
Thank you so much in advance
Making Movie Clips Stay In The Right Position
I've created a simple animation that acts as a scrolling tiled floor. So, the clip creates a load of lines and positions them using a little perspective. When the lines scroll, each line is moved left based on a certain speed.
When one line gets to the edge of the screen, it is replaced at the other edge of the screen and carries on.
The problem is if the speed is too high, the lines lose their position and eventually start running into each other.
I want them to stay in the right place. Any ideas how I can do this?
Any help very welcome. Cheers.
Here's my code:
public function moveLines():Void {
for (var i = 1; i<this.lineArray.length; i++) {
this.lineArray[i].tXPos += this.xSpeed;
this.lineArray[i].bXPos = this.lineArray[i].tXPos*1.5;
if (this.lineArray[i].tXPos<this.leftSide) {
this.lineArray[i].tXPos = this.rightSide;
this.lineArray[i].bXPos = this.lineArray[i].tXPos*1.5;
}
}
this.xSpeed *= this.friction;
this.drawLines();
}
Making Movie Clips Play Faster?
Hey,
I am doing this project where i need to be able to adjust the fps of a movie clip without changing the main movie fps. Basically, i want to make a fast forward button for a movie clip, anyone got any actionscript that would do this?
Cheers
Doug
Making Buttons Within Movie Clips Interact?
I'm a Flash newbie who just got a job that entails working with some Flash. I'm picking it up well enough, but some of the stuff is more advanced than I'm used to... so I'm really not quite clear on WHAT I should look for or ask since I'm not familiar enough with the program yet. So I'll explain my problem as best I can.
For example, there's this training program flash that features three 'matrices' side by side. Each matrix is a movie clip, and within each there's a series of buttons you hit to make more buttons appears.
The problem is, I need to be able to hit a button in Matrix A to make new buttons appear over in Matrix B... but then the stuff in Matrix B doesn't 'react' to the fact there are buttons there and will make the usual buttons appear over them, instead of how normally within the matrices, if you click one button, and then another, the first button's sub-buttons go away and are replaced with the new ones.
I hope this is making sense...
So, how can I make a button in one movie clip tell a button in another movie clip to do something and vice versa? Or is it impossible and I need to remake it all some other way? (I didn't make the file to begin with- I'm working with something the guy before me made.)
Thanks in advance!
Making Movie Clips Wrap (fluid)
(MX04)
I'm developing a noScale flash site that loads a set of information from a dynamically created XML file, then loops through the set and uses duplicateMovieClip to create a clip on the stage for each node of information.
Is there a way I can contain these clips inside another clip somehow that makes the clips "wrap" when the screen is lowered in size? In other words if three clips fit accross the screen and the screen size is lowered - I want it to display only two clips wide and increase in row size.
I know I can probably do it by using a listener and adjusting positions of each clip but that would take a ton of coding - is there any easier way?
Thanks
Making Movie Clips React To Collision
I am trying to get the effect of a snooker pack being broken up with a cue ball for my website, is there a way using action script i can achieve this. Also, is it possible to use a SWF as a background in Dreamweaver?
Making Buttons Link To Movie Clips
Help! I have movie clip called pages and all my pages are layed out as movie clips in different frames in the pages movie clip. I have placed buttons on each page created and want to link them to other pages. Does anyone know how I do this? Please help very frustrated!
Making Movie Clips Randomly Float Around A Set Area
hi
I want three or so movie clips to move randomly around inside a specified area - you don't have to worry about collision between the objects- ideally they would each be on different layers so that one can move in front of
another - the movement of the objects also need have a nice slow organicmovement - like blood cells - if you see what I mean - any idea?
PLEASE HELP
Making Externally Loaded Movie Clips As Buttons
I have a very small doubt. I have three different swfs of different shapes. All the three are pure graphics and exported. In a base movie clip i am loading all the three swfs in another three different movis clips.
_root.mv1.loadMovie("extnalgra1.swf");
_root.mv2.loadMovie("extnalgra2.swf");
_root.mv3.loadMovie("extnalgra3.swf");
Now the problem is when i click the these mv it has to act like buttons.
i hope you are getting me. I have solutions as round trips. but is there a simple way you know
please can you help me out
regards
Muruganandh
Making Reusable Script-driven Movie Clips
As an experiment, I want to make a reusable symbol that does nothing but jitter, by adding random values to its _x and _y properties. I -don't- want to have to:
1) Create a movie clip of, say, a circle
2) Create a dozen instances of the circle in the scene
3-15) Include an onClipEvent(enterframe) handler for frame 1 (the only frame) of every circle instance.
This works, but is irritating and not very reusable. What I -want- to do is:
1) Create a movie clip of a circle that jitters via ActionScript
2) Include dozens of these jitterers in my scene
3) Watch it work
I don't want to create a while loop on the first frame of the clip symbol, 'cause I don't want to be restricted later on.
I tried creating a single keyframe in the movie clip symbol, and including the following code:
_x += Math.random() * 10 - 5;
and then including in the main timeline a keyframe that executes the code:
Jitterer.play();
expecting it to loop. No luck. The instance remains still.
How do I create a movie clip -symbol- with -one- frame that drives its animation?
--
Jeff S.
Making Movie Clips Start And Stop In Certain Frames
I have a movie, I have six movie clips I want to start and stop in certain frames.
like...
mc_1 start frame 1 stop frame 15
mc_2 start frame 15 stop frame 45
mc_3 start frame 45 stop frame 60
etc...
can I do this in the movie and if so, how exactly do I do it....
Making Multiple Flash Movie Clips Talk
Hey everyone!
Here is what i need to do...
On my site, i have 3 different Flash Files. Each playing a different part .eg text, content, menu. (because of the design, i can't have just 1 file, plus i want 3 seperate ones~!!!)
Now what i want to try and do, is have the MENU(swf1) target a scene or frame in the CONTENT flash file(swf2)
So that when you click on about us button, it will target (eg.) frame 3 of SWF2, which contains that information!!
ANd also have the MENU(SWF1) be able to also target frames in TEXT(SWF3)
Bassically im guesisng its passing variables to and from multiple movie clips!
i have no where to start.
Has anyone done anthing similar?
or has a FLA i can look at?
or can post some code!!!
Thanks agian KIRUPA!!!
Making Buttons In Moving Movie Clips Work
Hello, I neeeeed help. I finished the "Infinite menu" tutorial and got the thing looking great. My problem is that I can't get the buttons that are embedded in the sliding movie clip to work. While the sliding movie clip is in edit mode, I've tried linking the buttons to both frames and frame labels using both the onRelease...gotoandstop action and the similar gotoandstopframeorlabel behavior. Though the button rollover states work, neither action strategy makes the button move the timeline to the specified spot. Assuming that I linked the buttons properly, do I need to add some sort of action script to the sliding movie clip itself or the main timeline to let FLASH know there are buttons that are active links inside the movie clip? How do I make this work?
Making Multiple Flash Movie Clips Talk
Hey everyone!
Here is what i need to do...
On my site, i have 3 different Flash Files. Each playing a different part .eg text, content, menu. (because of the design, i can't have just 1 file, plus i want 3 seperate ones~!!!)
Now what i want to try and do, is have the MENU(swf1) target a scene or frame in the CONTENT flash file(swf2)
So that when you click on about us button, it will target (eg.) frame 3 of SWF2, which contains that information!!
ANd also have the MENU(SWF1) be able to also target frames in TEXT(SWF3)
Bassically im guesisng its passing variables to and from multiple movie clips!
i have no where to start.
Has anyone done anthing similar?
or has a FLA i can look at?
or can post some code!!!
Thanks agian KIRUPA!!!
Making Text Boxes Accessible To Movie Clips
Hey,
I have a Flash front end connected to a MySQL back-end database and I am trying to send some text input to the db. The input text box is available on the root level and within this same level I have a movie clip which contains the loadvariables AS. In the PHP script (which is initiated through the movie clip), I need to be able to access the text within the input box on the root level - any suggestions on how I can do this? Is there a way I can make the text input available to everything..?
THANKS!!!
R.S
Making Movie Clips Link To Separate Url's In A _blank Window.
heres my problem:
I have a flash menu bar i made on my site. When you mouseover one the links, i have thumbnails appear on the screen that stay there until you mouseover another link. The thumbnails that appear are movie clips so that i can have the _alpha change to 100 on mouseover and go to 0 when i go to another link (I made them clips so i could reference their instance name on _root). I need the movie clip thumbnails to link to the corresponding picture in a _blank window, but using
onClipEvent (mouseUp) {
getURL ("picture.jpg");
}
doesn't only open one picture in the _blank window, it opens all the other pics in separate _blank windows.
HOW DO I GET THE MOVIE CLIP THUMBNAILS TO OPEN THEIR CORRESPONDING PICS USING ONE _blank WINDOW?
If you didn't understand that, then here's the site: http://www.geocities.com/neo_techus/menu.html
Making Multiple Movie Clips Play In Serial Order
Hi!
What I would like to do is
1) Load an external SWF, or a movie clip into a blank movie
2) Have the movie play when this clip is finished loading.
So I have a movie with some content, but I want the external swf to finish loading before this content is displayed. I know how to import the swf, and get everything to work, it's the timing I can't seem to nail down...
Any help would be greatly appreciated.
Thanks!
-m
Problems Making Main Movie Preloader For Multiple Clips
Hi,
I have the following code which is used to load 3 swfs into a movie clip on the main stage:
code:
holdCard_array = [this.hold_mc.emp, this.hold_mc.nick, this.hold_mc.stren];
hold_array = ["cardtestempres.swf", "cardtestnick.swf", "cardteststrength.swf"];
l = 0;
while (l<=2) {
var card = holdCard_array[l];
card.loadMovie(hold_array[l]);
l++;
}
No problem with that - what is bugging me is how to get a preloader to give me the load progress of all the clips coming into the main movie – so that when all three clips are loaded the loader will give 100%
My best guest so far is to rather than use getBytesTotal() which will be hard with 3 individual movies, I will ascertain manually the total amount for all 3 swfs to be loaded & check against that with something like:
code:
totalBytes=65000;
_root.hold_mc,onEnterframe=function(){
if(getBytesTotal()=> totalBytes){
goToAndStop(2);
}
}
Making Dynamically Created Movie Clips Instances Re-draggable
This is a Flash 8 / Actionscript 2 problem
The application allows the user to create multiple instances of a dot
by clicking on the original dot - and then drag the instances to position
them on the stage (it's part of a game)
I need to allow dots to be re-dragged - but to do that need to detect the
instance name of the dot under the mouse pointer (otherwise I can't turn
the dragging on)
this is what I've got so far...
numberOfDotDuplicates = 0;
dot.onPress = function()
{
numberOfDotDuplicates++ duplicateMovieClip(_root.dot,"dot"+numberOfDotDupl icates,getNextHighestDepth())
_root["dot" + numberOfDotDuplicates].startDrag(true);
}
/*
This bit below is not realy part of the problem
- but it feels like an inelegant workround
I've had to use a listener to stop the dragging
because the onRelease event is only detectable
if it happens over the original 'dot' (where the
corresponding onPress event was detected)
*/
var myListener:Object=new Object()
Mouse.addListener(myListener);
myListener.onMouseUp = function()
{
stopDrag();
}
Thanks for taking the time to read this
Simon
Problems Making Main Movie Preloader For Dynamic Multiple Clips
Hi,
I have the following code which is used to load 3 swfs into a movie clip on the main stage:
Code:
holdCard_array = [this.hold_mc.emp, this.hold_mc.nick, this.hold_mc.stren];
hold_array = ["cardtestempres.swf", "cardtestnick.swf", "cardteststrength.swf"];
l = 0;
while (l<=2) {
var card = holdCard_array[l];
card.loadMovie(hold_array[l]);
l++;
}
No problem with that - what is bugging me is how to get a preloader to give me the load progress of all the clips coming into the main movie – so that when all three clips are loaded the loader will give 100%
My best guest so far is to rather than use getBytesTotal() which will be hard with 3 individual movies, I will ascertain manually the total amount for all 3 swfs to be loaded & check against that with something like:
Code:
totalBytes=65000;
_root.hold_mc,onEnterframe=function(){
if(getBytesTotal()=> totalBytes){
goToAndStop(2);
}
}
Can You Use The Back Button In A Browser To Go Back To Go Back In A Flash Movie?
Hi
In html pages it is easy to go back (the back button in the browser) to the last page you were on. But when you have got a flash site in a html page you cannot go back to the last page in the flash site using the 'back' button in the browser. Is there anyway you can change this so that you can use the back button in a browser to go back to the last flash frame?
Making A BACK BUTTON
I know this is basic, but I am not sure of the code I should use to make a back button on my website. At the moment, I have used the code:
on (release) {
prevScene();
}
on the action script of the button, but, I am wanting to jump between movies. ive made each page of the website in a seperate movie, and they arelinked by HTML.
What code do I use to enable the user to go back to the previous page??
Making A Back Button
Maybe i'm blind and just can't find it, but how would i make a back button for a flash animation that will be the index page of my website? i have an animated logo, and then two buttons move in. one says enter the other, leave. i have the enter button working to take me to the homepage but how do i make a back button to take the person back to whatever site they were just at?
Help In Director 8.5 In Making Back Button
hi guys
can any one know director 8.5 help me
i am trying to make a back button using lingo programming in director 8.5.
The back button functions like your Ie or Netscape's
back button to go back to the page where you previously viewed.
I am quite new to this and if any one know can please help me out.
Thanks a million in advance
Making Web Page Jump Back To The Top.
I have a flash web page which is a catalog w/ dimensions of about 700x1500. You can click on each item in the list and a picture of that item will appear at the top of the page in a designated area. But because the page extends several screens down, I need to make the page "bounce" back up to the top each time you click a item. I've tried a variety of simple Actionscript sequences in the Button Actions, but my grasp of AS is fundamental at best, and I can't figure it out. I have two books on Flash, and can't find suggestions for this in either of them.
Better yet (if I can extend the question a tad) would be if upon PRESSING the button, the page jumps up to the top (where the information/picture box is), and upon RELEASE, it returns to its original location down the page.
Thanks to anyone who can help,
K
|