Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Animation Controls Within AS3 Transitions? Is This Possible?


I created a multimedia Flash file (cartoons, photos, sound included), and to run the animation, my team created some simple buttons (stop, play). We have some complex Actionscript running portions of our animation, including the fl.transitions.easing classes and a playInterval sequence. As a result, it seems that our play buttons do not work within the easing transitions or the playInterval. (For instance, when i hit the stop button during a photo transition, the animation only pauses once the transition is over.)

I have not found anything in the AS3 books explaining how to integrate playbutton controls with easing and the playInterval functions. Is this possible?

I guess we could simply export our animation to YouTube and use the YouTube player controls, but I cannot find a good format for this, or a free software that will convert the fla file into a YouTube acceptable format. Any/all advice very welcome!!!!




KirupaForum > Flash > ActionScript 3.0
Posted on: 09-03-2008, 10:53 PM


View Complete Forum Thread with Replies

Sponsored Links:

Animation Controls, 'if' Script I Think?
Currently I need a bit of help regarding some buttons and if commands. I've not done any Flash in months so any help you can give me to write the script I need would help. Darn MX2004!

I have a looped animation of four rotating towers these represent four sections to link off to. If you click on a button for that section it will then play an animation showing the other three towers split off. The split animation can only happen at one corresponding frame, for each section in the loop so I need a button script that says something like

on release
set variable =
tower section one [or two, three, etc.] (I think?)

and a frame script

If frame = section one then play 'split 1' animation
if frame does not= section one then play loop

Then of course it will loop round to the move, hit the section one frame marker and the script will run and then the split anim will play.

View Replies !    View Related
[CS3] Syncing Animation & Sound Controls
Hi, this is a bit complicated to explain, but I'll try. I'm using Actionscript 3.

I have a play/pause toggle button that's working beautifully. I'd like to sinc the soundtrack to the same play/pause button. So far, clicking play/pause will stop both the animation and the soundtrack, but I'm having trouble getting the sound to play again.

The play/pause button, 'p_p', is made with two frame labels: 'play' and 'pause', which allow it to switch back and forth. In the code below, 'soundtrack' is the sound. Is this enough to go by, and can anyone help me to restart my sound??


var pp:Boolean = true;
var tl:soundtrack= new soundtrack();
var sc: SoundChannel = tl.play();
var isPlaying:Boolean = true;
var pos:Number = 0;


function ppState(event:MouseEvent) {
if(pp) {
stop();
event.target.gotoAndStop('pause');
pp = false;
}else{
play();
event.target.gotoAndStop('play');
pp = true;
}
}
p_p.addEventListener(MouseEvent.CLICK, ppState);

p_p.addEventListener(MouseEvent.CLICK, pauseMusic);
function pauseMusic(e:Event):void
{
if(isPlaying)
{
pos = tl.position;
sc.stop();
isPlaying = false;
}
}

View Replies !    View Related
Slider That Controls A Movieclip Animation
Hey guys, I'm wondering if there's anyway to modify the current slider in the Kirupa's tutorial ( http://www.kirupa.com/developer/mx/slider.htm ) so that it would control animation of a movieclip.


Simply put, I'm making a animated movieclip that will only play when user movie the slider.

Any help will be greatly appreciated!

View Replies !    View Related
Animation Transitions
Hi

This is my first ever post but long time visitor. I have a question i'm hoping someone can help me.

I am creating a flash website for a client and they have a list of portfolios with a simple slide show of their work. You can click on one of their clients on the main menu and the slide show of that clients work will begin a slideshow animation. Now, when the end user clicks on another link the current animation ends and will display the new slideshow but there is a pause and a blank screen before it loads up the new set of images to display. What i am trying to do is when the user clicks on another client on the list the current animation pauses then begins the new animation but without showing a blank screen. Im basically trying to create a very smooth transition. I have been told to use a z-index movie where one animation thats currently playing will pause and the new animation will begin playing over the last.

I can try to upload the current work in progress but im unsure if the client will allow it.

If this question is unclear i will try to explain further.

Thank you for any help.

iesol

View Replies !    View Related
Help Regarding Animation Transitions
hi guys!!

ive been into puzzle since yesterday, and my brain sores already.lol.
im trying to achieve a transitions between animations when buttons are clicked

Lets say, I have 2 buttons: home and about us, and lets say I have a big word of "home" on the middle of the stage(this represents the animation)
Now when I click the about us button, the word "home" on the middle of the stage will fade out then when its totally faded out another animation will fade in (which is the word "ABOUT US"). And vice versa with the home button.

note: i placed the animations and playback inside a movieclip.


I noticed that my method wont work out anymore if I have more than 2 buttons, since 2 buttons im already encountering conlficts, what more to have more than 2 buttons.

So I asked for your advice, or tips of how to do it properly, with proper actionscript maybe.



if you want ill email you my test file so you have an idea on what im talkin about.

View Replies !    View Related
Actionscript=transitions=animation Help
Ok i just read this tid bit of informatin, thanks thegoodfght from billybussey.com and it is about page transitions, and playing a smooth animation for a transition. However i read it tried it and got confused. Can anyone clear this up for me, and explain it in an easier way?

Thanks



1)create new movie in flash 5
2)create a blank mc and align it to the top left corner and give it the INSTANCE name of "nextmc"
3)create an mc with a box sliding from off canvas to covering the whole screen.
4)now, on this keyframe, put loadmovie and stop. for loadmovie, ur not putting the actual movie position, but, a variable. so put _root.nextmovie in the location, and chck the "expression" box. and for target put _root.nextmc
5)now animate that box off canvas again.
make the first frame of this mc blank.
7)go back to the root timeline
create 3 buttons. 1, 2, and 3. these will represent ur basic navigation.
9)on each button, do, on press, set the variable _root.nextmovie to #.swf (# the same number button u put the actionscript on, so on butotn 1, u set _root.nextmovie to 1.swf)
10)now, click on the mc we created(with the box animation) and give it the INSTANCE name of "loaderanim"
11)go back to ur buttons, and after the set variable, do telltarget _root.loaderanim PLAY
12)create a new movie (keep the first oen open)
13)put soemthing on the canvas so that u know what the movie is(you'll be saving and exporting this movie as 1.swf)
14)on the first line put Telltarget _root.loaderanim PLAY
15)export as 1.swf
1make another movie, put whatvcer u want on it, then export it as 2.swf, repeat then expot as 3.swf.
17)now, export the very first movie we created, as whatvr u want. now, if theyre all in the same directory, once u open the main movie, and click on the buttons u creared the loading animation will play, and when the desired movie loads, the rest of the load aniamtion will play out, and boomm, u got ur movie. any confusion, post, and i'll asnwer. and, i'm really tired right now, so i'm expecting confusion. peace and love y0
-mikey

View Replies !    View Related
Jerky Animation Transitions
I'm creating an animated music video in flash using art from illustrator and tweening the movements in flash. There is the basic animation of the band on the stage and then separate vignette movieclips that are closeups stuck in every so often in order to break things up a bit.

Everything goes pretty well until I have to transition from the stage shot and the vignettes and vice versa. I get a lag then choppy quick movement when I tween to 0% alpha on the clips to transition.

Anyone have suggestions on how to get rid of the lag?

There are MANY movieclips so I don't want to animate with AScript unless I have to but will go back if that is my only option, if so would anyone have good suggestions on how to do that?

View Replies !    View Related
Transitions When Using Only Actionscript For Animation
Hi. I’ve read the transitions tutorial and understand how that works, however, the site that I am building uses actionscript for its animation rather than timeline effects (for the most part). I was wondering if anyone had any suggestions on creating smooth transitions between external swf when the animations are done in actionscript?



Right now in my external .swf I have two frames, the first frame is the intro the second is the outro. The only difference between the two frames is the actionscript is reversed from fading in to fading out (etc.) on the second. There is no “midframe” per say, it just stops on the first frame because there is a “stop();” on it. When the user clicks out of that section it just moves and plays the second frame. This works, however I fear that that method will get me into trouble later on. Is there a better way of doing this?


Thanks

View Replies !    View Related
Animation Between Transitions In Main Movie
I've searched the forums, but can't find anything similar.

I have an animation in my main movie that I want to run in between externally loaded MCs, but I'm having trouble...

My buttons are not on the _root, they are in the 10th frame of a movie beneath the root (along with the AS for them because I have other animations that need to load first).

Here's the code I have on one of the buttons:


Code:
linkBio.onRelease = function() {
if (_root.currMovie == undefined) {
_root.currMovie = "bio";
_parent.myDragon.easeX(-100);
_parent.pageContainer.loadMovie("bio.swf");
} else if (_root.currMovie != "bio") {
if (_parent.pageContainer._currentframe >= pageContainer.midframe) {
_root.currMovie = "bio";
_parent.pageContainer.play();
}
}
}
myDragon is located on the _root (above this mc) and it's not working at all. Works if I call it from the _root however. The problem(I think) is that the movie is loading and disrupting that call to play the myDragon animation.

I can't think of any way to use setInterval with this because the myDragon animation is using a prototype function and it's not responding to the timer. In fact, none of my actionscripted movements respond to it - I've attached that code below, as well....

AS on _root timeline for the myDragon MC:


Code:
MovieClip.prototype.easeX = function(to){
this.onEnterFrame = function(){
this._x = to-(to-this._x)/1.1;
if(this._x > to-1 && this._x < to+1){
this._x = to;
delete this.onEnterFrame
}
}
}
myDragon.easeX(-100);
Any suggestions on how to get the dragonfly (myDragon) to animate before the external movie is fully loaded? I was thinking of making the myDragon clip a Global, but I don't know how (if it's necessary). I'm trying to keep the filesize down by keeping the dragonfly in the main movie - it's supposed to fly across the screen, while the external movie is loading in (text appears to float into place behind it)...

thanx!

View Replies !    View Related
2 Player Game. Moving Cars Controls Help With Controls
hi i have the controls for car number 1 that would be the arrow keys if

(Key.isDown(Key.RIGHT)) {
this._rotation += manuverSpeed;
} else if (Key.isDown(Key.LEFT)) {
this._rotation -= manuverSpeed;
}
if (Key.isDown(Key.UP)) {
if (speed<speedMax) {
speed += accel;
}
} else if (Key.isDown(Key.DOWN)) {
if (speed>-speedMax) {
speed -= accel;
but how can i make controls for car 2 ... i wann use wasd but i cant figure out how the key.a doesnt work.

View Replies !    View Related
Drag Controls Override All Other Controls On Movie?
I have a movie that loads into the main timeline and can be dragged around using:


on (press) {
startDrag("");
}
on (release) {
stopDrag();

}

That works great except that to close that movie again I've added a little button to say on press, unload movie.

Problem is none of the buttons or links on that page will work while it is being dragged around. How can I make the links and buttons work but still make the movie draggable?

View Replies !    View Related
Transitions Between External SWFs W/ Symbol Transitions - HELP
So I've been pouring over this forum looking for a solution to my problem. (this is probably a little lengthy, so I apologize in advance).

I've been using the techniques in the tut: Transitioning between external SWFs
to create a little flash movie to be used for work. I've created files to mimic the tut, ALMOST to the T.

Somethings that I have changed... I'm using a transition on a symbol to fade in and out. I'm also using a gray gradient in the first 12 frames as a "woohoo, look at me" intro.

So my problem is that when I start the mainmovie.swf file it's supposed to pull in the first swf file (section1.swf) and go through the same actions as the above tut. But what is REALLY happening is that section1.swf starts, but it's only the gray gradient. When I click on button 2, I get the same gradient, only this one loops (which isn't supposed to happen). Same thing with section 3.

I've gone through the code (which should be right, because I cut/pasted into flash, changing only the file names), but also doesn't mean much, because this is my first dive into AS.

Yes, I have five buttons and only three external fla files, I figured, let me get these working first, and then do the other two buttons.

On top of this, I wanted to get the entire sequence to play and loop three times. But my main concern is to get the buttons working. I would attach the files, but they are too big, even zipped.

HELP PLEASE! Thank you in advance,
~V

View Replies !    View Related
Player Controls For Swf Similar To The Flv Player Controls Component?
Is there a component that is similar to the flv component that will control playback of a swf? or can this component also be used for a swf? I tried to create a player that uses loadmovie to load a swf, which works, but when i tried to create play, pause, forward (next scene), rewind (previous scene) etc it doesnt work and the audio and playback of the animation doesnt follow the controls when i click on the buttons. t hanks

View Replies !    View Related
Need Urgent Help How To Combine Transition Class Tween Animation And Keyframe Animation?
Hi! I have a transitional tween class animation assigned to "mc_logo" on frame 1. However on frame 100, I have "mc_logo" animated on the timeline by regular keyframe animation.
I have assigned the tween class animation to "mc_logo" on frame 1 and the regular timeline animation starting on frame 100 does not execute now when I test the movie...why?

Do I need to end/clear the tween class animation so the regular timeline animation will work again?

Here is the code on frame 1 so far:

import mx.transitions.*;
import mx.transitions.easing.*;
import flash.filters.*;
var LogoTweenY:Tween = new Tween(mc_logo, "_y", Bounce.easeOut, -120, 171, 30, false);

Thank you in advance for your help.
Attila

View Replies !    View Related
OnMouseOut{freeze Button Animation, Reverse Animation Back To..}
This is my question in an action script "perspective", since i dont wanna spend the time typing this question out in plain english..

How would i implement this effect into a button I made that contains a MovieClip as the over state? ::

onMouseOut{
stop button's Over animation on current showing/playing frame;
then reverse animation back to start
OR
fade out current showing/playing Over animation frame, back to the button's load state (not over)
};

View Replies !    View Related
Playing A New Intro Animation On Release During The Previous Outro Animation?
I know about external swfs and having intros and outros, but I want my intros and outros to overlap...

for example, I want a background that's red and rotates when you click button 1, but I want to it rotate and change yellow when I click button 2, or rotate and change green when I click button 3...

I don't want it to rotate than fade to black and finish before the next animation has started, cause otherwise I don't get the smooth colour change from red to yellow, rather it's red to black than yellow...any tutorials that can help me?

thanks...it's hard to explain

View Replies !    View Related
Simulating Hieracical Animation Tween Mixed With Timeline Animation..
The theory was that I animate my clip say across the stage using frames in the main timeline. So this animates fine, but when I use the Tween class inside this clip the timeline animation is destroyed! the tween class for the clip was just doing some animation repeating, like as if it was the clips own timeline...this overpowers the parent animation and the slide across the stage doesnt happen...

why? and is there a solution more importantly.

View Replies !    View Related
Key Controls
i want to control a movie clip on the stage by keys on the keyboard...

arrow up = forward
arrow down = back
arrow left = spins left (anti clockwise)
arrow right = spins right (clockwise)

also if the object is facing in a diagnal direction then when pressing arrow up, it should head in that diagonal direction..

please help

basically my flash movie looks like a birds eye view of a character running about the stage but has objects in his way.
i also want to know how to make objects that the character cant get passed and that the character cant runn of the stage.

View Replies !    View Related
Key Controls
i want to control a movie clip on the stage by keys on the keyboard...

arrow up = forward
arrow down = back
arrow left = spins left (anti clockwise)
arrow right = spins right (clockwise)

also if the object is facing in a diagnal direction then when pressing arrow up, it should head in that diagonal direction..

heres and example of what i want :

http://www.flamjam.com/lab/ice_skater_popup.htm

please help

i also want to know how to make objects that the character cant get passed and also that the character cant run off the stage.

View Replies !    View Related
.exe Controls
does anyone know how to disable the Play, Rewind, Step Forward, and Step Back controls on an .exe file. Or even to disable the keyboard shortcuts for these controls?

thanks

View Replies !    View Related
Mov Controls?
Hello everybody.

I'm trying to find out how to put the control bar at the bottom of an MOV file in Flash MX. I work on Windows XP.

I've placed the MOV in it's own FLA file, and published it as an SWF.

A click of the button calls the SWF and it plays perfectly...but it has no controller (play, rewind, stop) at the bottom.

How can I make this appear so the user has control?

(I tried to do a search so I didnt have to bother anyone, but I couldn't find what I was looking for)

Thank you for your time.

pug

View Replies !    View Related
MC Controls MC - How
Hi All,

I have a question to which I am hopin g someone out there will be able to answer for me.

Here it is, I have a movie that contains two frames (first one being the preloader). On the second I have two movie clips - one called "playbox" and the other called "control".

Within the movie clip "control" timeline first frame I want to put another movie clip named "trigger" (like the horse!). What I want to happen is when the movie clip hits the first frame, it tells the movie clip "playbox" to go to and stop on a certain frame for example 6.

Is this possible and if so how can I do it?

It won't be controlled by a button just when that specific frame is entered.

Hope someone can help me out here.

D

View Replies !    View Related
How Do I Add The Controls
How do I add the controls such as play, pause,...? I would guess it's done in HTML, therefore I have added my coding below.


<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"

codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflas

h.cab#version=7,0,0,0" width="208" height="190" id="fcd"

align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="fcd.swf" />
<param name="loop" value="false" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="fcd.swf" loop="false"

quality="high" bgcolor="#ffffff" width="208" height="190"

name="Untitled-1" align="middle" allowScriptAccess="sameDomain"

type="application/x-shockwave-flash"

pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

View Replies !    View Related
Swf Controls
Sorry in advance if this is very obvious.

Is it possible to add basic controls (play/stop/vol) to a .swf file similar to the skins that are used for flv? Or do you have to build them from scratch?

Cheers
Noel

View Replies !    View Related
Mc Controls
is there a way you can tell a mc to play once you enter certain 'frame name' ?

View Replies !    View Related
FLV Controls
PPl,

I've imported a .flv into my movie and masked the file which look and work really well. Now my client has asked about creating a sound on/off btn for the movies. Thing is when I use the StopAllSounds action, it freezes the movie at the sametime. I then thought about setting the root volume to 0 but this seem to do nothing. Is there an easy way to achieve this?

It seems that actionscript can talk to the .flv so I would have thought this would be possible!

Thanks in aticipation

View Replies !    View Related
Map Controls
Hello, I've been working on some map controls, zoom and pan, and I'm having trouble getting the map to stop on the edge when the user has zoomed in. If they never zoom then it's fine but it's almost like when they zoom it stretches the pixels of the movieclip and what was once 1 pixel now becomes a 20x20 pixel block, is this making sense?

I'm going to attach the file here so take a look and let me know what you all think. You'll notice that when you pan left it stops fine on the left edge but if you zoom in and then pan left, it jumps at the left edge. Thanks and please help!

View Replies !    View Related
Controls
hi i've been trying to look for simple control functions for play pause rewind stop and forward.
i put the play and stop ones...(btw i'm still new to actionscript)

Stop
on (press) {
gotoAndStop(1);
}

Play
on (press) {
gotoAndPlay("movie");
}


like i know its really crappy but i need simple ones like this, coz the other ones that i found on this forum or everywhere else were all, the ones like:

Playing=false
stopped=false
paused=true

These ones never work!... my buttons arn't working.

I'm just making a 30 second movie, as an assessment, and need to have these controls on there. please help. Thank you.

Paul

View Replies !    View Related
Flv Controls
Well here is what i came up with but ... when u click to fast it goes pass the Cue point ... If anyone knows how to reword this .... I would be grateful....

Code:
var cArray:Array = ["one","2","3","4","5","6","7","8","9","10","11","12","13","two","15","16","17","18","19","20","21","22","23","24","25","26","three","28","29","30","31","32","33","34","35","36","37","38","39","four","41","42","43","44","45","46","47","48","49","50","51","52","53","five","55","56","57","58"];
var cIndex:int = 0;
forward_mc.dir = 1;
backward_mc.dir = -1;
function chapterMove (e:MouseEvent):void {
cIndex += e.currentTarget.dir

chSeek(cArray[cIndex]);


}
function chSeek(id:String):void{
var pt:Object = vid.findCuePoint(id, CuePointType.ACTIONSCRIPT);;
vid.seek(pt.time);
vid.stop();
images_mc.gotoAndStop(pt.name);
}

View Replies !    View Related
Map Controls...
Hi all! I'm new here at Actionscript.org and I have a problem that has been giving me fits for a few days. I've searched the archives and I didn't find anything specific to my question.

Situation:
I am creating an interactive CD ROM which has a world map in it. This map needs to have the following, clickable zoom in and out buttons, clickable directional buttons and the ability to drag. I currently have all of the above requirements coded and working but I'm running into a few issues.

Here is a screenshot of the map page:
http://www.malocs.com/forums/map.gif


1. The onClipEvent code that is placed on the movieclip is capturing random mouseDown and mouseUp events and triggering the dragging function. This results in the map following the mouse when the user did not intend to click and drag the map. This happens on RANDOM mouse clicks and it is not easily recreated. It could happen after the user clicks the zoom out button ten times or it could happen when the user clicks the left directional button only once.

Here is the code that is placed on the movieclip:

ActionScript Code:
onClipEvent (mouseDown) {
  if (this.hitTest(_root._xmouse, _root._ymouse)) {
    this.startDrag();
  }
}

onClipEvent (mouseUp) {
  if (this.hitTest(_root._xmouse, _root._ymouse)) {
    this.stopDrag();
  }
}
2. I'm having problems with the movieclip RANDOMLY inverting when the user clicks the zoom out and zoom in buttons.

Here is the code for the zoom out button:

ActionScript Code:
on (press) {
    mapSlide._xscale -= 35;
    mapSlide._yscale -= 35;
}

Here is the code for the zoom in button:

ActionScript Code:
on (press) {
    mapSlide._xscale += 35;
    mapSlide._yscale += 35;
}

Here is the code for the left direction button:

ActionScript Code:
on (press) {
    mapSlide._x += 75;
}

Here is the code for the right direction button:

ActionScript Code:
on (press) {
    mapSlide._x -= 75;
}

Here is the code for the up direction button:

ActionScript Code:
on (press) {
    mapSlide._y += 75;
}

Here is the code for the down direction button:

ActionScript Code:
on (press) {
    mapSlide._y -= 75;
}

Here is the code for the recenter button:

ActionScript Code:
on (press) {
    mapSlide._x = -97;
    mapSlide._y = 5;
    mapSlide._xscale = 75;
    mapSlide._yscale = 75;
}

Please help as I am totally dumfounded as to why the onClipEvent function randomly executes when the user clicks on the map navigation buttons. I'm also dumfounded as to why the map will randomly invert and scale when the user clicks any of the zoom or nav buttons.

Like I stated earlier these problems are random which leads me to believe that I have a problem with my logic. Please advise.

View Replies !    View Related
Controls SWF HELP HELP HELP
hI
I want load many swf & control thise away from buttons.....
1- play swf
2- stop swf
3- pause
4- forward
5- rewind
6- load in specific space
7- next swf
8- previous swf
9- copy current swf & paste in specific place in PC
10- scroll bar control in swf.

HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP

View Replies !    View Related
FLV Controls
After getting the buffertime right, another problem occured:
my .swf for the controls doesn't appear on the video on the site.
The .swf that loads the .flv and the .swf for the controls are in the same folder, local and on the server that hosts my site. When I check the movie local, the controls are in place. But when I upload it, the controls aren't loaded.

Anyone have a clue??

Thanks in advance :-)

View Replies !    View Related
Key Controls
Hey all,

Appreciate any help anyone can give me.

I am trying to add keyboard controls to my movie. I currently have a pause and play button, along with next, previous, etc. All works fine. The problem I am having is two fold.

I have added this code to my pause button.

on (keyPress "<Space>") {stop();
}

But for some reason it isn't working. I have seen that I should probably use Key Listeners... but I am not exactly sure what I need to do with those.

The second issue, can the space bar have dual functionality? Say on release stop, and on release play? so that the user only has to hit the space bar to start and stop the movie?

Thanks for any/all help.

View Replies !    View Related
Controls
is it possible that by using one button to control two flash?

View Replies !    View Related
X And Y Controls With XML
I am using XML to build a picture gallery with thumbnails, and I am trying to arrange them. and I understand how to control the X and Y positioning using the "declare instances" part of scripting.

Can anyone help?

View Replies !    View Related
FLV Controls
I have several FLV's loading into a blank movie clip on a timeline. each FLV in encoded to have controls for volume and scrubbing through the video. I have a '_visable' code at the end of each individual FLV to 'hide' it which works fine until the scrollbar is moved on the FLV then it throws it completely out and it hides all wrong and even doesnt come back when the button is pressed agin to launch it. any ideas how i can get around this issue? I dont want the movies to unload, just hide when they are finished or indeed another one is loaded prior to the previous one ending.

thanks for any advise.

View Replies !    View Related
SWF Controls Another SWF
I need one flash file to control the timeline of another flash file in the same html page. Is this possible? Of so how do I go about it?

Please help. Thnx

View Replies !    View Related
Play/Pause For Animation/Nested Animation And Sound
Hello and Goodmorning, afternoon or evening.

I am relatively new to actionscripting and have come upon a problem I'm sure is probably easy but for some reason I can't make it work.

Basically I have a presentation that plays several voice over sequences that match up with accompanying animations which are mostly movie symbols that house the animation sequences. Well now the client wants to put a pause/play button on the presentation and I haven't been able to make it work... I put in stops but the movie symbols still play out the sequence and the voice over starts over... not sure what to do... HELP!... and thanks ahead of time.

Raul.

View Replies !    View Related
Help Linking Hit Detection To Animation In A Game (death Animation)
Hi everyone - I've just been experimenting with creating games in flash MX 04 and I've come across a problem that's had me stuck for a few hours now. I have just about everything working in my practice game, except when my character gets hit with the projectile... it won't go to the death movieClip that's located in the character's main movie clip (on frame 6 of it).

If anyone could check out the project file and let me know what i'm doing wrong it'd be greatly appreciated. The controls for the game are just the arrow keys to move the character, and down ducks - avoiding the projectile.

Thanks

View Replies !    View Related
Stopping Animation From Playing Before Another Animation Has Finished (On Keypress)
Hi guys

I've linked to the project I'm current working on; essentially, what it does is play a ripple animation at specific points on the stage when certain keys are pressed. What I'm trying to do at the moment is stop people from hammering one key many times, and creating several instances of a ripple in one location. As well as looking strange, it also slows down Flash considerably ;-)

I'm not really sure where to start, but what I'm thinking of would work as follows: -

Person pushes 'Q', and a ripple is triggered at the coordinates relative to that key. If they press 'Q' again, it is impossible to trigger another ripple at that location until the current ripple animation has finished. The same is true with all of the other keys (Q, E, S, Z, C, Up, Down, Left Right) when pressed.

However, it should still be possible to trigger ripples at the same time with different keys. For example, someone could press three different keys at the same time, and see three different ripples which play at the same time and overlap, etc.

Hope that's clear enough - if anyone could help me out with this, it would be most appreciated.

- Thanks!

http://www.joshbarton.co.uk/flash/Ripple_Project.fla

View Replies !    View Related
Trouble Adding Animation To Existing Rollover Animation
Hey all,

I'm using Flash 8. I have a picture of a building which is segmented into floors. Upon rolling over a grouping of floors the user sees either a blue overlay, indicating they can click, or a gray overlay simply describing what the floor is. I already have some actionscript in place and I don't need to alter it, I just added more animation to an existing movieclip rollover, but it's not quite working. On one of the floors that rolls-over gray, I want an additional rollover with some text. So I made a movie clip of the rollover animating out and the type coming in and I just added it to the gray fade in movie clip since there was already onRollover actionscript in place there. However, the rollover kept playing over and over again. So, of course I added a Stop action. Then, the animation didn't work anymore, it just rolled over to the final state of that animation. Does anyone have any ideas of what I can do, or what I can do as an alternative? I'll post the actionscript in case that helps. Like I said, the rollover "rolls-over" but either loops (without a Stop action), or rolls over to the final frame in the animation (with a Stop action).

Thanks!
Mc

View Replies !    View Related
[CS3] Create Animation That Runs From Button Click After Another Animation Has Run
Hi,

I am a newbie to flash & actionscript. I have, though, learnt the basics of flash animation, tweens & bits of actionscript and have created an animation movie consisting of sevral layers.
I have the movie stopping at the end and the graphics are all converted to buttons.
Now, from this end point, i want the user to click on one of the images (buttons) and then the flash movie to start a sub-animation.
BUT i don't know how to do this.
Do i need to create a new scene to do this or do i need to extend the layers and add the additional animation to the layers or do i need to add new layers to the same scene?
ALternatively, do i need to this in actionscript?

Please let me know what is the method of doing this in Flash. This seems like a simple thing which i've seen in flash movies before but i can't find any answers or tutorials on how to do this.
Please give me the steps involved in creating a second animation runnable from a click in the 1st animation.

To clarify further, my aim is to make the movie clip interactive using different motions 9or animations so that when an object in the 1st animation is clicked a different animation starts. So how can i achieve this?

Regards, shuja

View Replies !    View Related
Making An Animation Fade Into Another Animation When A Button Is Released?
okay, so I have for exmaple a red animated background for 'home' but when someone clicks 'media' for example, I want that red animated background to fade into a green animated background.

I tryed using external swfs, but I don't know how to make the outro animation of the first red swf fade into the intro animation of the second green swf, so it creates the effect of red into green, rather than red to black, than black to green.

any tutorials that could help me?

View Replies !    View Related
Anybody Know How To Use Volume Controls?
I wanted to know how to change the volume on my flash movie from within itself. It has the option but I can't figure out how to use it. It's under "Objects", then "Sound" then "SetVolume". Anybody know how to use this?

View Replies !    View Related
Disabling Controls ?
How can I disable the options such as zoom; play; forward, etc... when a user right clicks, for example, on a movie?

Ideally, I would like to disable all options except "about macromedia flash player x", as I've seen on some websites.

The flash menu on http://www.macromedia.com website would be an example.

Thanks for any help.
If this is a fully covered subject somewhere else, a link would be appreciated too.

View Replies !    View Related
Sound Controls
Im trying to make a good sound control and I have a a MC with different frames containing repeating sounds. TO change the tracks the user just presses a button that changes the frames which changes the sound. I've made a stop button but how do I make a play button that will play the track the user had selected?

View Replies !    View Related
2 Sound Controls?
I've linked 2 sounds to my movie and created a slider. Is it possible to create 2 sliders to control the volume of each sound seperately?

Everything I try drops the volume on both instead of just one.

View Replies !    View Related
Sound Controls
OK!
here is the thing,
I have animation with several sounds,.. when I start with one sound that comes latter I need to stop the one that started earlyer, but when I use

s = new Sound();
s.attachSound(_root.sound1);
s.stop()

it stops also the sound that it comes latter, (the sound that is playing, but it is not attached like one first).

also the same thing is, when I use the, setVolume, or setPan, the two of my sound are starting to behive the same,
(if i make the value of the setVolume lesser the two of my sounds will become quiet, also if I setVolume to louder the bouth will become loud, but attached only one..)



please I could realy use help on this one,
thanks!

View Replies !    View Related
Sound Controls
I want to know how can I create a sound control, just on/off will do,

This is a large project and I don't think I can use the setvolume() control because there is a number of sound files running throughout. I just want a simple swith the sound off and switch it back on again option...any ideas?

View Replies !    View Related
Still Goofy Controls
Unload helps some but actionscript MC on level1 ( called from a button within scene 2) sends the main movie to another (third) page even though nothing on the second page refers directly to that third page.

Once I go backand start all over from the main page and over to the second page, then the stop button works and actually stops and unloads the A.S. MC.

I am confused. Grrrrr.
I am probably doing this the "hard way".
Should I post the coding here ?

View Replies !    View Related
Please Help With Sound Controls
i followed the instructions that come with flash help to make sound controls (volume and balance) it works if i open it as a swf but as soon as i put it into html it does not the buttons jump to top right as you click on them

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved