Why Only Play Sometimes?
I'm getting user feedback from my site, and some say that it plays and some say that it doesnt play. ??? I have seen the same. I'll browse to my site and the flash movie will play fine, then a couple minutes later I'll go back to the start and it will not play. ??? any suggestions? check it out.... www.hatfieldphoto.com
thanks derek
FlashKit > Flash Help > Flash MX
Posted on: 11-05-2003, 11:55 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
- Resume Play Than Restart Play On The Play Button.
- Script Single Button To Play Frames, Then Skip Some, And Continue Play?
- Action For,button Pressed, Continue To Play MovieA Till Finished Then Play MovieB
- Helpneed Script 4 Play Button To Play From Current Frame
- How To Play Sound Automatically And Trigger The Play And Pause On The Same Button?
- Check Status Movie, Play Outro, Then Play Selected
- How To Make Flashtrack Play Auto Play When Swf Loads.
- Play A MC In Reverse ... Or Just Simply How To Play Movie Backwords?
- HOW TO PLAY A MOVIE CLIP IN REVERSE AND PLAY ANOTHER SIMULTANEOUSLY
- I Need A Movie Clip To Play, Stop And Play Again In The Next Frame
- Nested Clips, Play The Next MC May Only Play After Previous Has Really Ended
- [MX04] Click A Button Once To Play, Then Again To Play In Reverse
- I Can Play Sounds From Xml. How Do I Only Play One Sound At A Time... Kill The Other
- Actionscript Tweens Randomly Won't Play/only Play Halfway
- Add Skin And Buttons (play, Stop, Etc) To Play A Swf File
- Play And Pause Code Plays & Pauses But Won't Play Again
- Having Troubles Creating Reverse Play And Forward Play =/
- Play Movie On Rollover, Play Another On Rollout
- How To Script: Play 5 Frames Then Goto ? And Play
- Play Movie On Rollover, Then Play Backwards
- SWF With Play Button Nested In HolderMC Won't Play
- SWF With Play Button Nested In HolderMC Won't Play
- Steam And Play Audio, Not Load Then Play
- Play/Pause Change Back To Play At End?
- Play Mp3 Play Button, Im A Complete Begginner
- Movieclip Play Completely Play On Mouseover
- On Release, Play Frame, Then Play Movie?
- How To Play A Sound For 6 Times With Set Play Interval?
- On Release, Play Frame, Then Play Movie?
- AS Animation Construction And Play (pre-play Render?)
- Movie Won't Play Until I Press Menu-play
- Play Movie When Play Button Is Click.
- Play New Flash File And Play Frame
- Timeline - Play/reverse-play Control
- Day Play X Swf And @ Night Play Y Swf With Transitions
- [F8] Swf -> Load N Play Flv -> Then Continue Play Swf?
- [F8] Flv Play Dont Play From The Playlist Please Help :(
- Play, Then Wait (a Few Seconds) Then Play Etc
- Fms Ns.play(file, -2) Vs Ns.play(stream, -2)
- Buttons Just Play And Play And Play...
- Play Button+ 1loop +play Button Again (the Definitive Question)
- Play Movie Clips To Fade Off THEN Play New Movie Clip
- How Do I Tell A Clip To Play/not To Play Depending On Frame Position Of Another Clip
- Timer Play() Won't Play
- Play In - Play Out Navigation
- Stop, Then Play A MC, Then Play Again?
- Day Play X Swf And @ Night Play Y Swf
- Play Next Frame In The Current Scene Then Go To Play Other Scene
- Making One Button Play One Sound And Another Play A Different Sound
- Mp3 Array's Play Button Doesn't Play Whole Array
Resume Play Than Restart Play On The Play Button.
I have this script that works but it keeps on starting from the start of the song, than resume from where I stopped it.
myMusic = new Sound();
myMusic.loadSound("audio/track.mp3", true)
stopbtn.onRelease = function()
{
trace("sound stopped");
myMusic.stop();
};
playbtn.onRelease = function()
{
trace("sound played");
myMusic.start();
};
How do I change this code to resume when pressing the play button than starting from the start of the song. I guess it be more like a pause button than a play button.
Script Single Button To Play Frames, Then Skip Some, And Continue Play?
Just as the topic says, I want to script a button to go to and play through a motion tween, but then skip some frames to then play another motion tween all in one button press. For example, play frame 1 which plays the tween and ends at frame 10 (I have that part down fine) but then for it to skip ahead to continue to play frame 20 and then of course stop once it finishes that motion tween.
Tried a few searches but its too many words to explain so I wasnt finding anything. Its probably a simple command im just not familiar with yet. Can anyone help?
Action For,button Pressed, Continue To Play MovieA Till Finished Then Play MovieB
heres the scenerio:
1) I have 2 movie loops which are spinning lights. each have a frame each. So I have 2 frames, 1 movie on each on the timeline.
Lets call them movieA and movie B
I have a button on the same timeline but different layer
movieA which is a loop plays continously because it is on frame 1 that is on stop
This is what I would like to do.
If button is pressed it will go to next frame, but only when movieA has reached its end frame when playing
What I have now is that it interupts movie A, and just jumps straight to the next frame and movieB starts playing then, whcih looks sloppy.
Is there a script I can add to the button so that it only moves to the next frame when movieA has reached a certain frame
2)
is there a better way of writing this? here is the scenerio
movieD (buttonA)
movieC (movieC1)
movieB
------ movieA ----
hope that makes any sense: basically means. movieA is in the root level timeline. inside movieA is movieB. inside movieB is movieC. inside movieC is movie C1 and movie D. inside movieD is buttonA.
Now I want to control movie C1 with button A.
so I go to buttonA and do a release action. Now when I write the tell target (with), how do I write it the best way.
I currently write it for buttonA as:
_root.movieB.movieC.movieC1
play
also
_parent.movieC.movieC1
play
but this parent one doesnt work sometimes. Is this correct?
There must be a better way of writing this, is there? Whats the proper way of writing this.
All help appreciated. I have several questions so please share the knowledge ; )
TIA
Helpneed Script 4 Play Button To Play From Current Frame
This must be simple but I cant work it out. I have a video in a movie clip and want to assign a play button wich continues from the current frame if you pause the movieclip, instead of starting from the beggining!!!
I thought it'd be something like
on(release) {
_root.myvideomovie.gotoAndPlay(nextFrame);
}
but obviously not!
Hope thats not so stupid it shouldve been in the newbies section, ok it probably should've been but it is actionscript!
Check Status Movie, Play Outro, Then Play Selected
I'm trying to figure out how to create a conditional variable script to check to see if one of the 4 movies are finished before starting the next selected one.
I have 4 menus with 4 movie clips that have an opening and closing animation in them.
When clicking the one of the buttons I would like it to check and see if any of the movie clips are in the open position. Then have the movie that is in the open position play it's closing animation. Then play the selected category movie that the person clicked on.
I know it's all done with variables but just cant figure out how to put it together.
here is what i have so far.
menuStatus = 0;
trace(menuStatus);
but1.onPress = function() {
if (menuStatus == 0) {
menuwork.gotoAndPlay("start");
menuStatus = 1;
} else if (menuStatus == 2) {
resetMenus();
}
};
but2.onRelease = function() {
if (menuStatus == 0) {
menuwhoweare.gotoAndPlay("start");
menuStatus = 2;
}else if (menuStatus == 1){
resetMenus();
}
};
function resetMenus() {
if (menuStatus == 1) {
menuwork.gotoAndPlay("close");
menuStatus = 0;
} else if (menuStatus == 2) {
menuwhoweare.gotoAndPlay("close");
menuStatus = 0;
}
}
problem with this code is i have to click the button twice to have it work
thanks for any help in advance
How To Make Flashtrack Play Auto Play When Swf Loads.
I need to know how to make Flash Trak and it's player play auto when I test a movie or run swf file.
I don't want to click on Play Icon to play it. Just have to have it auto play for my presentation.
Thanks,
dumshi
Play A MC In Reverse ... Or Just Simply How To Play Movie Backwords?
Ok. I've got more problems, now it involves Flash 4. I've got movie clip we'll call "the rock" well, I have a button to play "the rock" forward - that's easy - however, I want a back button to play the clip backwards, a "rewind" type effect ...
am I explaining well? if now feel free to email me doo_wrong@yahoo.com thanks for your help.
Ken
(an example of what I'm looking for can be found at http://www.ccmusic.com - there's a flash movie on the right with posters or something in it, when you RollOver and image it goes to it)
I Need A Movie Clip To Play, Stop And Play Again In The Next Frame
I need a movie clip to play, stop and play again in the next frame. So pretty much i have to get the movie clip to play once and stop then when you go to the next frame it should play again once and stop again. What i have is a slide show type thing where you click on the next button to advance to the next frame and in each frame i have all the animations in their own movie clips.
-Thanks
Nested Clips, Play The Next MC May Only Play After Previous Has Really Ended
hi,
if i make a button with the "new" method of nested clips (on rollover play. _root.one.two blabla) that seems to be working quite okay, but i am still experiencing this problem that if i move too quickly over a button, it becomes very jerkey.... i made a rollover and rollout, but the rollout may only start playing once the rollover is finished...
is there a little scripting that can prevent this problem?
greetz
melvin
[MX04] Click A Button Once To Play, Then Again To Play In Reverse
Alright, so I've got this MC that is set up to play 2 other Movie clips upon being clicked, and what I would like to have happen is; upon clicking this MC again, these 2 other movie clips will being playing in reverse, and if clicked again will play forward, and so on ad infinitum.
I've attempted to do this by having this code in the first frame of the "button" MC, in a separate actions layer.
PHP Code:
stop();
this.onRelease = function() {
gotoAndPlay(2);
this._parent.wing1.play();
this._parent.wing2.play();
};
And this code on the second frame.
PHP Code:
stop();
this.onRelease = function() {
gotoAndPlay(1);
this._parent.wing1.prevFrame();
this._parent.wing2.prevFrame();
};
As of right now, this will simply play the two movie clips upon clicking, stop them and reverse them a single frame, when clicked a second time, then begin playing them again from that point if clicked a third time.
Once the two MCs finish reach their final frames, the button does nothing.
Any help would be appreciated.
Actionscript Tweens Randomly Won't Play/only Play Halfway
I'm working on a website that can be seen here
I have several tweens created using AS3 and then several tweens created just using motion tweens on the timeline. When I view my website in Firefox (latest version), about 50% of the time, the actionscript tweens will not complete the entire tween or not start altogether. On the other hand, sometimes it works flawlessly. The motion tweens created with the timeline always work in there entirety. When I view it in Safari (also latest version), the tweens work about 90% of the time, but there is a few instances where the tweens won't go all the way through their specified animation.
I was also able to recreate this effect by just testing the movie within flash. In flash, the animations either work fine or the tweens don't start when I click on the corresponding button (unlike browsers where sometime the tweens will only go halfway through their animation). It only happens in flash about 5% of the time when clicking on the nav buttons and there is no apparent pattern as to when it is going to happen or on what nav button it happens on.
Any ideas on what is causing this?
Add Skin And Buttons (play, Stop, Etc) To Play A Swf File
Hello Forum,
Is there a way to use a skin/buttons just like the FLVPlayer that will give the same control to a movie clip (aka SWF file)?
I have a few swf files that are movie clips - not video. I would like to be able to load the movie clip, and be able to start, stop, pause, mute audio just like the FLVPlayer component does, but for a swf file.
I would like to have a "component" with the buttons, etc and be able to load the movie clip using the loadMovie method, and play the movie clip. I have a clip that starts playing after I load it, but would like to load it, and have it stopped, and then play the clip using buttons, etc.
I do not want to add buttons to each of my swf files, but have one movie clip with buttons, and load a swf into it.
Any tips will help,
thanks,
eholz1
Play And Pause Code Plays & Pauses But Won't Play Again
I've got a button that I want to play an audio track; play, pause and then play again. Right now, it plays, pauses but won't play again.
I've got my as2 code in an Actions layer in the main timeline, I've got the audio in a mc, in it's own layer. The instance name is monkey7. Here's the code that I got awhile back off of this forum (I think):
Sound.prototype.pause = function():Void {
this.stop();
this.newPosition = this.position/1000;
};
pauseButton.onPress = function():Void {
paused = !paused;
if (paused) {
monkey7.pause();
} else {
monkey7.start(monkey7.newPosition);
}
};
monkey7 = new Sound();
monkey7.attachSound("monkey7.mp3");
monkey7.start(0);
I'm very newbish so if you reply with a suggestion, please act as if you're talking to a 3 year old! Thanks.
Having Troubles Creating Reverse Play And Forward Play =/
So i have looked at a lot of posts tryna get insight on how to do this but so far nothing . . . . I have an animation that i created in after effects, nothing to hard, just some icons going around in circles. so far it just plays in a continuos loop clockwise. what i would like it to do is when i hover over the left side of the SWF it reverses and plays (counter clockwise), the more i move to the left the faster it plays. . . . if i move to the right it plays clockwise, the more i move to the right the faster it plays. . . If i center my mouse on the swf is slows to a stop and i can select the icons to load the menu item. probably an external swf loaded into the main swf. . . Can someone guide me? I'd greatly appreciate it. I uploaded my FLA so you can check it out if you'd like. again, thanks in advance for all your help!
joseph
http://architectproductions.com/projects/draft2.fla
Play Movie On Rollover, Play Another On Rollout
Hi!
I have a button on the stage. I want to play a movie clip on rollover that cannot be seen on the stage until the rollover. I then want to play another movie clip when I roll off the button.
Example:
-on Rollover a ball enters the stage from the top of the screen, falls to the middle and stops.
-when I remove my mouse from the button, the ball will fall the rest of the way down the screen and dissappear.
What do you think?
Thanks!
How To Script: Play 5 Frames Then Goto ? And Play
How do I tell Flash to play five frames and then goto somewhere else and play?
Also, how can I tell Flash to play five frames and pause for 4 seconds and then play again and pause for 4 seconds without creating stop actions on frames?
thanks everyone
Here's a link to my very first flash site, let me know what you think...
http://idisk.mac.com/michalp/Public/vsoh6.html
Play Movie On Rollover, Then Play Backwards
ive got a menu im working on where i want it to roll out when you roll over it, and eventually have a little guy that comes down and pulls it down when you roll over it. when you roll off it, it plays backwards.
i made the animation, but when i tried to add the code something went wrong
i got the first help from http://flashmx2004.com/forums/index.php?showtopic=3053
so here is the file now, can anyone help me?
SWF With Play Button Nested In HolderMC Won't Play
Hi,
Thanks ahead for the help.
I have a SWF with a play and stop button nested in another SWF and it won't play!!
Can simple play buttons be placed within a Movie Clip(SWF) and function if the original SWF loads the Movie Clip using LoadMovie action into a holderMC?
SWF With Play Button Nested In HolderMC Won't Play
Hi,
Thanks ahead for the help.
I have a SWF with a play and stop button nested in another SWF and it won't play!!
Can simple play buttons be placed within a Movie Clip(SWF) and function if the original SWF loads the Movie Clip using LoadMovie action into a holderMC?
Take the files from my server to play with.
http://www.bluewoods.com/Flashkittest.zip
Thanks
Steam And Play Audio, Not Load Then Play
I have a ghetto mp3 player put together, the only problem is that i want the audio to play immediately, but right now it loads the whole audio file then plays, which takes way to long. any suggestions?
Play/Pause Change Back To Play At End?
Hi All,
I am fairly new to actionscripting so I assume this is a fairly newb question.
Basically, I have my animation that includes Play/Pause button that I rigged up. I dont want the the movie to loop therefore I put a stop(); in the first frame, since my button changes from a Play icon to a Pause Icon. For the life me I can not work out how to make my animation to go back to the start and change my icon from the Pause icon back to the Play icon.
I assume I need some If statements, that will say something along the lines of if at end change icon to play, how should this code be written????
Pause Button Code:
on (release) {
gotoAndStop(1);
_parent.stop();
}
Play Button Code:
on (release) {
gotoAndStop(2);
_parent.play();
}
I have the controller code sitting within its own movieclip.
Any help would be greatly appreciate......
Play Mp3 Play Button, Im A Complete Begginner
Hey, I basically want to make a flash banner with a mp3 file embedded which plays when you press a button, I managed to embed a mp3 file, and its playes, but it just plays automatically, i want it to be able to start when i press a button and stop when i press a button.
Is this possible, or is it a bit above the level of a begginer?
thanks.
Dom
On Release, Play Frame, Then Play Movie?
I am creating a site, and it has a animation that it has to play before loading the next section. What I cant figure out is what function I need to create so that when a user clicks on the vision button it will play the frame after stop(); which will close that section, then have it load the frame for the section that the person clicked on. The only way I can think of doing this is creating 3 different close animations for the three sections. But I figure there has to be a way to have it play the one close animation and then goto the frame which is the portfolio section or vision section (depending on the button clicked).
Thanks for the help.
How To Play A Sound For 6 Times With Set Play Interval?
Hi,
I know how to play a sound effect:
Quote:
var mySoundReq:URLRequest = new URLRequest("laser.mp3");
var mySound:Sound = new Sound();
mySound.load(mySoundReq);
mySound.addEventListener(Event.COMPLETE, playSong);
function playSong(event:Event):void {
mySound.play();
}
The above sound effect play only one time. Actually I wish to play the sound effect for 6 times and at a set play interval (e.g. play the sound effect, wait 2 seconds, play again, wait another 2 seconds......). How can I do that?
I am thinking to use a Timer object. However I have no idea how to link with the playSong function.
Thanks and best regards
Alex
On Release, Play Frame, Then Play Movie?
I am creating a site, and it has a animation that it has to play before loading the next section. What I cant figure out is what function I need to create so that when a user clicks on the vision button it will play the frame after stop(); which will close that section, then have it load the frame for the section that the person clicked on. The only way I can think of doing this is creating 3 different close animations for the three sections. But I figure there has to be a way to have it play the one close animation and then goto the frame which is the portfolio section or vision section (depending on the button clicked).
Thanks for the help.
AS Animation Construction And Play (pre-play Render?)
Is there any way to construct a MC and have each of it's frame cached as a bitmap?
Let me explain.
I would want to load dynamically a certain image that can be changed at any time.
This loaded image is animated in a MC witch applies a directionnal blur (x: 0, y: 10) to it.
The blurs fades out gradually until it stops moving.
Now some users have slower PCs.
Can't I apply a filter to an image, save it like it is in a frame of a MC, go to the next frame, apply the new filter, save, redo... Until the MC has been completly constructed dynamically?
Isn't there some kind of pre-play rendering that can be done?
I'm sure there is but then again, witch method is the most optimized?
I'll be working on this on my spare time but thought I'd post this up and see if anyone ever tried this.
Then again, maybie it's NOT a good idea...
What do you guys think?
Movie Won't Play Until I Press Menu-play
I hope one of you understands what I mean,
I made a movie with dynamicly created buttons and images.
The problem with this movie is that it doesn't shows anyting when I export it. The only way to make it show everything correctly is to hit the right mousebutton and press play in the menu.
Know I want to know if there's a way I can do this in flash.
My movie contains two frames and a stop statment at the end.
Play Movie When Play Button Is Click.
Hi all,
I am a newbie, and I did use the tutorial on how to create a video with FLV and it works beatiful. There is something I can not figuere out yet.
How do I make the movie not to start playing until I click the play button?
Any questions let me know and thank you in advance for your help.
mperez6109
Play New Flash File And Play Frame
Hi, i wish to on enter frame in flash document 1, to load and play frame 21 in flashfile 2.. is this posible?
ps. im quite newbee in flash :oops:
Timeline - Play/reverse-play Control
Hi everyone!
I've been searching for help in other sites but got some issues cause I don't know the function name I must search.
What I need its a way to control my timeline forward and rewind.
To make it easy to explain I will make a example:
Imagine that you have a movie (cars crossing a street - with trucks and buses too).
Sometimes there is just cars on the street, sometimes just trucks.
I should paste this movie into my timeline(like image sequence), in the background of my application.
In other layer will be informations, in this example, about trucks and cars.
Till this point ok. But I need to make de movie go to the frame that i choose to be the image of the movie that only have cars. Ok... this is in frame 15 of the movie. Then I click a button and go to show trucks info. I click and go to frame 30... at this point ok too. But now I click again to see about cars. Its in frame 15 and I don't want to "JUMP" (like gotoandstop)... I want the movie rewinds (in the speed that it plays) till i get frame 15.
How do I control the timeline like this?
(There will be at least 6 points in this movie that i want to stop by. And this movie begins stopped.)
Thx for any help! Cya!
Day Play X Swf And @ Night Play Y Swf With Transitions
Hi guys, just wondering if someone could point me in the direction of getting a script which during during the day plays a certain swf file and then at night a different swf file is played. And also as the night goes on the darker the movie background gets and as it comes closer to the day the brigher it gets?
Thanks in advance.
[F8] Swf -> Load N Play Flv -> Then Continue Play Swf?
Hello all!
1. How can i make my swf play and then load and play a flv video and when the video is done continue to play the swf?
2. Or.. play my swf then load and play a flv video and when the video is done load another swf.
I know how to use the flv component but i don't know how to make the swf timeline to stop and play the flv and then continue.
I'm trying hard to find info in all forums but i just can't find it..
Gurus.. please help
[F8] Flv Play Dont Play From The Playlist Please Help :(
i have this script which i bought quite long time ago
it collects video url from youtube from my xml playlist.
i would like the playlist to play the flv straight from the xml rather then collect youtube video url.
thanks for looking.
xml eg
Quote:
<item>
<title>Fergie</title>
<guid>http://youtube.com/watch?v=h1likF-xEGE</guid>
<description><![CDATA[Big Girls Don't Cry]]></description>
</item>
Quote:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
var VideoListFiles:XML = new XML();
VideoListFiles.ignoreWhite = true;
j = 0;
firstTimeOpen = true;
VideoListFiles.load("xml/videos.xml");
VideoListFiles.onLoad = function($sucesso) {
if ($sucesso) {
var XMLvideos:XMLNode = this.firstChild.childNodes[0];
for (i=0; i<XMLvideos.childNodes.length; i++) {
if (XMLvideos.childNodes[i].nodeName == "item") {
var_videoTitle = XMLvideos.childNodes[i].childNodes[0].childNodes[0].nodeValue;
var_videoUrl = XMLvideos.childNodes[i].childNodes[1].childNodes[0].nodeValue;
var_videoDesc = XMLvideos.childNodes[i].childNodes[2].childNodes[0].nodeValue;
titles_array.push(var_videoTitle);
videos_array.push(var_videoUrl);
desc_array.push(var_videoDesc);
j++;
}
}
}
if (firstTimeOpen == true) {
var_videosArrayLength = j;
j = 0;
TitleToPlay = titles_array[j];
UrlVideoToPlay = videos_array[j];
DescVideoToPlay = desc_array[j];
_root.infoBar.infoBarTxt.infoBarTitle.htmlText = TitleToPlay;
_root.infoBar.infoBarTxt.infoBarDesc.htmlText = DescVideoToPlay;
checkVideoType(UrlVideoToPlay);
firstTimeOpen = false;
}
if (constructed == true) {
constructed = false;
ns.play(constructFLVURL(_lv.video_id, _lv.t));
} else {
ns.play(VideoToPlayFLV);
}
openCloseInfoBar("open");
};
//-----------------------------------------------------------------
function checkVideoType(url:String) {
if (url.indexOf("www.youtube.com")<0) {
type = "flv";
constructed = false;
VideoToPlayFLV = url;
VideoListFiles.onLoad();
} else {
type = "youtube";
playYouTubeVideoOnStage(url);
}
return type;
}
//-----------------------------------------------------------------
function getYouTubeVariables() {
_mcl = new MovieClipLoader();
_lv = new LoadVars();
_root.createEmptyMovieClip("mc",100);
_mcl.loadClip(_root.str_youtube,_root.mc);
_mclListener = new Object();
_mclListener.onLoadInit = function(target:MovieClip) {
_lv.decode(target._url.split("?")[1]);
_mcl.unloadClip(target);
constructed = true;
VideoListFiles.onLoad();
};
_mcl.addListener(_mclListener);
}
//-----------------------------------------------------------------
function constructFLVURL(videoId:String, t:String):String {
var str:String;
str = "http://www.youtube.com/get_video.php?";
str += "video_id="+videoId;
str += "&t="+t;
return str;
}
//-----------------------------------------------------------------
function playYouTubeVideoOnStage(youtubeurl:String) {
_root.str_youtube = "http://www.youtube.com/v/"+youtubeurl.split("=")[1];
getYouTubeVariables();
}
Play, Then Wait (a Few Seconds) Then Play Etc
Hi
It would be great if someone could help me with this:
instead of having long stretches in my timeline it would be great to have a keyframe with actionscript 2 have the playhead wait a few seconds, then play.
is there an easy way to have this happen? and can i change the amount it waits on different key frames (3 seconds here, 5 seconds there) ?
thanks in advance
Fms Ns.play(file, -2) Vs Ns.play(stream, -2)
Hi,
I have a very strange problem.
I have created an application on fms. on the streams/_definst_/instance directory there is a sample flv file with name file.flv
If i have a client doing ns.play(file,-2) everything is fine. The file is delivered (streaming) nicely.
If i have the below:
Client::: ns.play(stream, -2);
Server-side: (Stream.get("stream")).play(file, -2);
The file is delivered, but it doesnt playback/flow properly. It seems like breaking(stacks) on some points and then continue.
Does anyone have any idea?
Thank you vrey much!
Buttons Just Play And Play And Play...
I'm a newbie and I'm having a problem with some flash movie-clip buttons. I've done as written in the Flash 8 Visual Quickstart Guide by Katherine Ulrich, but when I publish, the little critters just play and play...just looping the three states. Whassup? :
Also can I get a critique on my very first animation?
Thanks in advance,
Dave (click the link below)
Pierce Art and Design testfiles
Play Button+ 1loop +play Button Again (the Definitive Question)
Hi!
Iīm using the attachSound method in my movie. I have a play button and a stop button. When you click on the play button a sound begins to play. And the stop button stops it. After this,if you click on play button again, the sound begins. Hereīs all right. I use the following code to avoid the sound plays more than once at same time if you click on play button while itīs playing:
Code for play button:
on (press) {
if (!playing) {
sound1.start(0, 1);
playing = true;
}
Play Movie Clips To Fade Off THEN Play New Movie Clip
Hey guys, I've been doing a little searching and I can't find the answer to my dilemma.
I've made up some buttons that play a little movie clip animation when pressed. The scenario is like this: Push the "Illustration" button and little files pop onto the screen. Each file will be a button that opens up an image. Push the "Pictures" button and the "Illustration files" should fade off the screen so the "Pictures files" could pop in in it's place.
I can't find a way to make the "Pictures" movie WAIT for the "Illustration" movie to be done before it pop in. One goes in, and the other simultaneously goes out and I don't want that.
Is there any way?
How Do I Tell A Clip To Play/not To Play Depending On Frame Position Of Another Clip
Hi, Please help!. I'm a designer and work in flash quite a bit. However scripting is certainly not a strong point!! I want to achieve the following-when a button is clicked on the main timeline, I want it to load another clip but (this is the tricky bit) I want it to perform a play action on another clip also, but only if that movie clip is resting on a particular frame.
This is probably a piece of cake to you who know-so please help me out. Many thanks
CPF
Timer Play() Won't Play
Hi Guys,
My problem is one I just can't seem to workout. Even though it seems very simple.
I have multiple instances of a (spiral) mc on the _root. Within Spiral there is a stop action on frame one. Then at frame 2 ("start")the animation starts. frame two has the label "start". I want the instances to go to frame "start" at different times. So On the _root instances I have timers on the OnClipEvent for each instance. Here is the code on instance1:
onClipEvent(load){
count = 0
}
onClipEvent(enterframe){
this.count++
if (this.count >= 20){
this.gotoAndPlay("start")
}
}
here is the code on instance2:
onClipEvent(load){
count = 0
}
onClipEvent(enterframe){
this.count++
if (this.count >= 50){
this.gotoAndPlay("start")
}
}
Both instances go to frame 2, but it doesn't play, it stops at frame 2 ("start"). Why? I have tried putting a frame action of play() on the "Start" frame but still it stays still.
Can anyone shed some light on this please
Thanks
Play In - Play Out Navigation
Astrum!
I'm trying to create a navigation system for my website. What i'm trying to create is something i generally see all around, but i'm not able to figure out how they do that.
For example, take www.cishollywood.com navigation.
When you click on a link.. the whole section comes as a sequence playing onto the screen and then it stops. But when you click on any other Link, the sequence on stage actually rolls back.. sort of reverses, and then the new sections plays and comes in on stage.
How do you do that?
If i have 10 links.. i click a link.. the animations begins and comes on stage. I click on any other link.. how do you reverse the Movie Clip on stage to roll back and go away, and then make the new Movie Clip come and play on stage?
I'm baffled. Help would be tremendously appreciated.
Thanks.
Stop, Then Play A MC, Then Play Again?
Hi... Im really new using Flash, so Im looking for help. Hereīs the thing... I want to place a button on the first frame to go to the second frame, then on the second frame I have a Movie Clip, then I want this MC to play and when it finishes go to the 3rd frame of the main movie.
Even for me sounds easy, right?
What Im doing is placing a "Stop" at the first frame to allow the button to work, then a second "Stop" at the 2nd frame to allow the MC to play, and then at the 3rd frame a third "Stop" to read all the info. So im placing at the final frame in the MC the only code in actionscript that I thought I knew how to use... gotoAndPlay. So at the last frame of the MC I place
gotoAndStop("Scene 1", 3);
but it goes to the Frame 3 of the Movie Clip, and I want to go to the Frame 3 of the main movie.
Iīve already changed the name of the Scene and still donīt work.
Ok... I know this is probably lower than Flash 101, but I canīt do it.
Thanx to anyone who can answer this one without cracking jokes at my expense.
Day Play X Swf And @ Night Play Y Swf
hi guys, just wondering if someone could point me in the direction of getting a script which during during the day plays a certain swf file and then at night a different swf file is played.
Thanks
Play Next Frame In The Current Scene Then Go To Play Other Scene
Hello !! Everybody
I'm minny. I'm the new one who use flash ^_^
I don't know how to write this action scirpt about to play next scene -_-
How can i do ??? In the scene 1, when push the button (that it is menu), i want it play next frame in the current scene and then it go to play in the frame 1 in other scene. I have 5 menu, Each menu in their scene. How can i write this script ???
Help me please...eeee
Thank you :-)
Making One Button Play One Sound And Another Play A Different Sound
i'm very much a novice when it comes to flash.
i've created three separate buttons in three separate layers. i've also added three music files in three more layers. how can i get it so one button plays one music file and another button plays a different music file? i've tried putting "goto and play" for each button in actionscript but it doesn't seem to help.
any ideas?
i would be very grateful
Mp3 Array's Play Button Doesn't Play Whole Array
I had the same post last night - but the guy who was going to help me said he couldn't work with Flash 8 files, despite this being the Flash 8 AS 2 section of the forums... Go figure. So here's the problem again:::
I'm trying get all the mp3s in an array to play in sequence, but so far I can only get the play button to play one at a time...
In frame 1 I've got:
ActionScript Code:
_global.DIALPAD = []
now = 0;
_global.PADSOUND = new Sound();
//then on the play button I have:
on (press) {
_global.PADSOUND.loadSound(_global.DIALPAD[(++now)%_global.DIALPAD.length]);
_global.PADSOUND.start();
}Don't ask me how I came up with the button code - I don't even know anymore. At any rate, I've got other buttons that push mp3s into the array with this code:
_global.DIALPAD.push("SOUND1.mp3");
I'm trying to get the array to play all the way through and stop there. I've tried dozens of combinations of [i] and looping - all kinds of crazy nonsense trying to piece together what I could from posts and scanning other people's code, but I'm new to AS.
I will appreciate any help you can give me. Thanks!!
|