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




Problem: Sounds That Skip



I have a long-ish presentation movie that loads a number of sounds, one after another. I have the ability to pause a sound, and resume and skip to the next sound. I'm trying to get it ready for being live, so I'm trying to break it because god knows if I don't, someone will. I've noticed that if I skip forward a bunch of times in a row, real fast, once I stop the sound that's currently playing skips. Is this a cache issue or something that I can adjust to keep it from doing this? I'm using the load sound method, and they are not streaming. Thank you. Rick



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 09-13-2004, 11:43 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Problem: Sounds That Skip
I have a long-ish presentation movie that loads a number of sounds, one after another. I have the ability to pause a sound, and resume and skip to the next sound.

I'm trying to get it ready for being live, so I'm trying to break it because god knows if I don't, someone will.

I've noticed that if I skip forward a bunch of times in a row, real fast, once I stop the sound that's currently playing skips.

Is this a cache issue or something that I can adjust to keep it from doing this?

I'm using the load sound method, and they are not streaming.

Thank you.

Rick

Help - Flash Splash Page, Skip, Skip Always, Play.
Hello,

I am trying to give users a way to skip the splash page this time, or ALWAYS skip it. I made that happen by using placing this code on the "skip always" button: (website: http://www.evbc.org/frog/main/index.html )

on(release, keyPress "<Enter>"){
user.data.name = "skip";
user.flush();
_root.gotoAndStop(50);
}

In the first frame of the timeline, I have this code to see if we should skip:

user = SharedObject.getLocal("user_profile");
trace(user.data.name)
if (user.data.name != "skip"){
_root.gotoAndPlay(2);
} else {
trace(user.data.name);
getURL("http://www.evbc.org/frog/main/home.aspx");
}

Ok, so far so good, but if they ever want to play the intro again, how can I set the "SKIP" variable back to "PLAY"? The SharedObject feature will only let you read/write from the same .swf.

Thanks for any help,

-fjhughes

Skip Flash Intro This Time Only V. Skip Always
Hi there.

I am currently looking for code that would allow the visitor to choose whether or not they want to skip the intro only during this visit or if they would like to skip it permanently. I currently have a script that places a cookie on the users machine and automatically does not show the intro for up to 30 days afterwards. However, I am needing something a bit more flexible instead that allows the user to choose.

Can anyone help? Please?

Thanks in advance.

Flash Intros.....to Skip Or Not To Skip?
Hi folks,

I'm creating a site for a company and this thing is driving me crazy!!
The index or main page has a Flash Intro..BUT they want the intro to be played just the first time someone visits the website, in other words,everytime you open a browser window. If you play the intro, go to another page, and then return to the main, the movie should start from the last frame.

I tried to fix this with Local Shared Objects...but i'm only able to play the full animation in my first visiit! Then the "cookie" do not allow me to play the animation ANYMORE! I want to reset the cookie everytime i close the browser window.....HOW?

Flash Intros.....to Skip Or Not To Skip?
Hi folks,

I'm creating a site for a company and this thing is driving me crazy!!
The index or main page has a Flash Intro..BUT they want the intro to be played just the first time someone visits the website, in other words,everytime you open a browser window. If you play the intro, go to another page, and then return to the main, the movie should start from the last frame.

I tried to fix this with Local Shared Objects...but i'm only able to play the full animation in my first visiit! Then the "cookie" do not allow me to play the animation ANYMORE! I want to reset the cookie everytime i close the browser window.....HOW?

How Do I Disable All Sounds Including Background Music And Button Rollover Sounds?
Hey, you don't know how long I've been on this forum last night and no one was able to help me with this. I have no clue how to do this. Basically what I want to do is create a site with a bunch of buttons with a Over State Sounds and a Down State Sounds. I have done so already with the file I have been working on at home. Now, I also have background music playing on my flash site. I already have a button that says, turn off music which is using the stop all sounds command. But now, I want a button that disables all the sounds on the whole entire site including background music and button over and down state sounds. I have tried the stop all sounds action but that DOES NOT WORK. Another action that I tired was the globalsound action where it puts the volume to 0, but all that does is stop the background music. It doesn't kill the button over and down state sounds. So what action script would I need in this case? I have been looking for this action scrpt for hours on end and havn't had any luck with anything.

Please help.

Thank You.



Chris

Disable Background Sounds And Button Over And Down State Sounds With An Action? How?
Hey, you don't know how long I've been on this forum last night and no one was able to help me with this. I have no clue how to do this. Basically what I want to do is create a site with a bunch of buttons with a Over State Sounds and a Down State Sounds. I have done so already with the file I have been working on at home. Now, I also have background music playing on my flash site. I already have a button that says, turn off music which is using the stop all sounds command. But now, I want a button that disables all the sounds on the whole entire site including background music and button over and down state sounds. I have tried the stop all sounds action but that DOES NOT WORK. Another action that I tired was the globalsound action where it puts the volume to 0, but all that does is stop the background music. It doesn't kill the button over and down state sounds. So what action script would I need in this case? I have been looking for this action scrpt for hours on end and havn't had any luck with anything.

Please help.

Thank You.



Chris

Rand Generate Sounds Multiple-sounds
I got background sound playing (looped) in a movieclip. How could I randomly play other sounds while the background sound is playing? No mouse actions involved here. My objective is to play other sounds while bgsound is playing at any given time or specific times.

Example: playing looped sound and have a short sound clip play when the looped bgsounds hits 20th loop.

Dunno if this is even possible, but hopefully someone can explain how and show a example. thx

Sounds.. Help Needed With Sounds And Actions..
alright i need some help on starting and stopping sound with a toggle switch, using this code on the toggle button:


on (press) {
if (music=yes) {
tellTarget ("soundtrack") {
gotoAndStop ("stop");
}
} else if (music=no) {
tellTarget ("soundtrack") {
gotoAndPlay ("go");
}
}
}

soundtrack contains 4 frames: 1st frame label = "go" actions = music="yes"
2nd frame music event is there
3rd frame action = stop
4th frame action = music="no", stop all sounds, stop

im also using an animated movie clip for a button, and im trying to when the music is off, have it animate, and when the music is on, have it still. my code for this is on the instance "clip" and is basically the same as above except it uses gotoAndStop ("raystop") if music="yes"

can anyone please tell me why none of this seems to work at all?

Linkage - Sounds Stopping Other Sounds?
Hi all,

OK

i have a Christmas Card game that i am trying to put a "jingleBell" sound to. I am using linkage. I dont know if this is the right way to do this but i have put the call to the "jinglebell" sound in a movieclip with the first frame having the following actions

===============================================
bellSound = new Sound(this);
bellSound.attachSound("bells");
bellSound.start();
===============================================

the sound is 5 seconds long and i am trying to loop the sound. My framerate is 60 fps so at the 300th frame of the jinglebell MC, i have a simple gotoAndplay (1).


I also have a cannon on the main stage - if someone not of flash mind was reading this they would think i was doolally!!!! - The cannon fires snowballs and on firing i have another linked sound "fire". the code for the snowball sound is on it's timeline and is as follows

================================================
throwSound = new Sound(this);
throwSound.attachSound("throw");
throwSound.start();
================================================



1. My jinglebell sound only plays once and does not loop again

2. Sometimes the bell sound comes back, but when the cannon is fired, the bells disappear

3. The cannon sound is always present and works as required


Any ideas as to how to get the jingle bell sound to loop and not be effected by the cannon fire sound?

I know that using ActionScript to stop a sound that is linked on the main timeline will stop all others on the main tomeline too, but the sounds here are all located within seperate movieClips.

Any help gratefully recieved

Thanks in advance


gilseb

Stop All Sounds = Play All Sounds
Ok, I'm pulling my hair out

I have 3 movies Layered togehter.
1- Sound file with someone speaking
2- Index moive that loads the Sound file
3- Sound On/Off button

On the Sound On/off moive I would like the button to stop all sounds and then continue playing the same sounds when clicked one again. (Basically pick up where the animation currenlty is.)

Attached is what I have been currently trying. I stops the sounds, but dose not continue to play when - click to start the sound again.

What gives GGGGRRRRRRRRRRRRRRRRRRRRRRRR!

Sounds: Faders And Stopall Sounds
Hi can any one help me with sound in flash

I 've created an 8 track mixing deck with 8 separate faders which fade in attached/linked sounds. I have also created a master
volume fader that I would like to beable to control the master volume. I can't seem to get the master volume control to work.
is there a specific script for the master volume???

summary: 8 faders, 1 master control volume. Would like master control volume to fade all 8 sounds up or down in volume.
(but not changing the actual separate fader volumes...just over all master sound!

StopallSounds(part of the same project)
with in the movie of the 8 track mixer I have a stop and play buttons,
I have attached the script 'stopallsounds' to the stop button which stops the sounds but I cant seem to restart the sounds,
is there a script like playall sounds which will restart the sounds?

can any one help

kind regards
paul

Backgrounds Sounds Vs. Button Sounds
Hi!

I have tried browsing briefly through the forum, but failed locating anything similar to my issue.

I have a background music playing, and buttons that makes different noises when you roll over them. The issue is that I can't stop ONLY the buttonsound when you scroll away from the button.

The code looks like this:
------------------------------
on (press, release) {
gotoAndStop(215);
}
on (rollOut)
{stopAllSounds();}
------------------------------

I'm aware that it is the stopAllSounds that makes all sounds stop, the key is to make a code that stops only the button sound.

Cheers!

-David

Play Sounds After Stop All Sounds
Dear all,

I have a question which I hope someone can answer: my flash animation starts immediately when a visitor comes to the page. I have a stop button which stops the animation and the sound which comes with it (speaker voice). A play button plays the animation after the stop button was pressed. But the play button only plays the animation, not the speaker voice. How do I do this? I want the sound to start were it was stopped, just like the animation.

I'm using Flash mx 2004, version 7.2

Thanks in advance for your replies

/Bo from Sweden

Stop All Sounds And Start All Sounds
I have one button with the "stopAllSounds" actionscript on it. what would the actionscript be if I want to use the same button to start the sound again?

Skip
Hi,

My Problem:
Main movie to load external.swf and i need a skip button to skip my external movie from frame(1) jump to frame(150), so Instead of put my skip button in my external move, i put it at my main timeline(main movie), got reason to put it there.

(From main movie)On the skip button i use :

on(release)
{
_level1.gotoAndPlay(150);
}

but this not working, i'm sure i put it wrong. Can someone help me pls. Thanks

Why Does This Cause It To Skip?
I have this actionscript that works fine until you try and move your mouse

once you move it, the frame skips back to the beginning

why??


Code:
onClipEvent (enterFrame) {
stop();
}

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

How Do I 'Skip Intro'?
I tried posting this problem earlier... but I don't think I explained it properly.

This is my problem:

I have a Flash file that has the following:

- On frame 1 a button that takes you to frame 10 when clicked.
- On frame 5 a massive picture that is 500kb, say.
- On frame 10 there is a lightweight graphic, that doesn't take up much space.

Now, I thought that I could load the Flash file and skip loading the middle bit by clicking on the button on frame 1. Well, no... it doesn't quite work like that! You have to wait until the middle bit has loaded. : (

I had no idea that was the case...? I simply assumed that the above method was how 'skip intro' buttons were done?

Anyway... I'd really appreciate if someone could tell me how I should implement the above.

Thanks.


Jam


PS My reeeally simple code, the one I'm having trouble with, is available at:

http://www.programtrading.co.uk/testing/delnow.6.swf
and
http://www.programtrading.co.uk/testing/delnow.6.fla

Skip Option
What is the action script for allowing a person to skip to the end of the movie?

Skip Intro
Hi guys, can anyone tell me how can i make a "skip intro"?
Thanks!

Skip Intro
what action script does the skip intro button need

Skip Intro
If there was a level under Newbie that would be me. I have gotten a movie clip started but I am unable to get the skip intro to work. How do I get my movie to stop and the skip intro to work correctly?
I'm using Flash MX
TIA

Skip Frames
Hi

Here´s my problem, I want as soon as I hit a button, a certain frame is skipped, or the actions containing that frame to be ignored.

This is the situation. I have a closing scene, but multiple links that need to display this very same closing scene. If i could set at the end all ´goto scripts´ that lead to ´home´, ´links´ etc.. ( in seperate frames ofcourse), and as soon I click the button ´Links´ it start playing the closing scene, but skips all frames until it reaches the redirection frame that leads to the ´Links´ section.

Did I explain it clear enough ?
Plz respond, I really need to know this...

How To Skip Instructions
I have a projector I have made and on the first frame I have the instructions on how to do every thing then you click a button and go into the main program. What I would like to have is some way that after the first time some one uses the program there can be a button on the instruction screen that the can press and each time after that it just skips that frame. I am useing flash 5
Thanks for any help

Can I Skip SWFs?
Here it is:

I have a main movie in the shape of a TV with VCR controls. I'm loading .swf's into it and they run in order one-after-another.

How can I let users skip to the next or last movie in the list, using the buttons on the main movie???

Please Help...

Skip Intro
Hi im working on a flash file with an intro animation,
check it out if you like--
www.teddyrichards.com


I would like a skip intro button
but I built the intro file on the main timeline and it contains three layers of mc's. It would be hard for me to redo the intro as an external loaded swf.

Any way to add a skip intro button here?
thanks

Skip Thy Preloader
Hi, I'm using getBytesLoaded / getBytesTotal to see if the scene is loaded and if so goto next scene, I was wonder how I could have the preloader (scene1) not play if it has already been loaded. Currently when i press teh history back button and then move forward again it plays the preloader, when I know its has already been cached, so how can i skip the preloader playing when already previously visited / loaded?

thank, using flash v5

How Do You Skip Frames?
lets say when a button is released, it will play from frame 1 to 10 then it will skip the 11th frame then go to the 12th frame

btw, the 11th frame has a stop action script on it

thanks

guys. btw im just recycling the timeline, there's an exisiting animation there for instance when you click on the services button it will play from frame 1 to 11, now what i want is to re use the frame 1 to 10 , ex. when you click on the contact us button it will play from frame 1 to 10 but i will skip the frame 11 then proceed to frame 12. by using the Gotoandplay at frame 10 the services animation will skip to frame 12

hope it make sense...

now my question is what's the action script that i will put in the button so when click it will play from frame 1 to 10 then skips 11 then it will go to frame 12

thanks

Skip Movie
how can i skip my flash movie and go into other page?

Skip Button
I need an actionscript to be able to click a button and it go to a frame. can anyone help...i'm still learning so take it easy on me..

How To Skip Over A Intro
Here's my problem. I have a site with intro text animations for each page. What I want to happen is once the user views the animation once, I don't want them to view it again. Ex. if a user clicks on the same link previouly viewed they would go straight to the info on that page.

Help, this is driving me crazy.

Thanks

Skip Intro
Hi Folks.

I have 3 buttons, skip intro, English, Arabic in my Flash MX Presentation, and I want to close the complete Flash Presentation when the user clicks on the skip intro, or the English button, or the Arabic Button, i dont want the presentation to appear continuely, i want it to be closed as clicked on the buttons and immediately it should go to the Webpage i have linked in the Skip Intro, Arabic or English Buttons. Please provide me the code.

Thanks for the Help.

Feroze.

How To Skip Specific Tag From XML ?
Hi ,

i am using tree component in flash . it reads the data from XML . this is my flash script .

// load and assign data source
myTreeDataProvider = new XML();

// ignore whitespace in XML (important)
myTreeDataProvider.ignoreWhite = true;

// load external XML file
myTreeDataProvider.load("http://localhost/lister.php");

// onLoad handler for XML data
myTreeDataProvider.onLoad = function()
{
myTree.dataProvider = myTreeDataProvider;
}


// set up tree listener
myTreeListener = new Object();

// nodeOpen event handler
myTreeListener.nodeOpen = function ( eventObject )
{
myStatusArea.text += "<li>"+ eventObject.node.attributes.label + " opened.</li>";
}

// nodeClose event handler
myTreeListener.nodeClose = function ( eventObject )
{
myStatusArea.text += "<li>"+ eventObject.node.attributes.label + " <i>closed</i>.</li>";
}

// change event handler
myTreeListener.change = function ( eventObject )
{
// the selected node
var theSelectedNode = eventObject.target.selectedNode;

// the label of the selected node
var theSelectedNodeLabel = theSelectedNode.attributes.label;

// add a status message to the status message text area component
myStatusArea.text += "<li>"+ theSelectedNodeLabel + " <b>selected</b>.</li>";

}



This is my XML

- <root>
- <node label="admin">
- <node label="templates">
<branch label="" />
</node>
<branch label="" />
</node>


I want to skip the tag " <branch label="" /> " .but dont tell me to delete or modify the XML.

Any idea ?

Thanx
Shan

I Skip Publishing
I've been adjusting all my streaming sounds for my movies in the sound properties box (I have no event sounds) and then I just hit "test movie" and save that version for my website which seems to work fine. They're just simple cartoon animations....is there some reason that maybe I should 'publish' the movie or use 'publish settings' instead?

Skip Button
I would like to create a button in my movie that allows a person to skip the intro if they choose.
Here what I have on the button:

on (release) {gotoAndPlay("Scene 1","Frame 300");

}

But, when the actual movie plays, the button is ignored and the movie continues as usual. What is the best way to create a kind of "skip intro" button?

Skip Intro Get URL
Hi Friends,

Can anyone please tell me how I might enable the user to select "skip intro" (FLASH movie) and by doing so, close the FLASH intro and open my main html page.
I tried [on release get url] script. It does load my html page, but the FLASH movie keeps playing. I want it to close.

Many thanks in advance for any advice you can offer.

Scene Skip
I know how to make a preloader and all that and im new to flash MX, but the actionscript is a little different,

Whats the exact go to and stop code if i want it to go to scene 2?

I feel retarded... lol

Skip To Frame When I Want
Right now I have a flash movie that goes untill frame 20, and on frame 21 at the bottom of the script it has go to and play 20, so it loops. I was wondering if there was a way to skip to frame 22, after the text has typed itself out.

Skip Button
ok first off, im guessing that when you click on a skip button, it takes you to a later part/ frame in the timeline right/

so if i had a movie, then there was a stop function, and i had the skip button take it to after the stop(); function it would play the rest of the time line right?

thank you for reading this.


EDIT: oops i just realized that this was saposed to be in the actionscript forum, so if there is anyone who can move this, can you please?

Skip Refresh
I've developed a flash header which starts after it has fully loaded with:

Code:
stop();
onEnterFrame = function () {
if (getBytesTotal() == getBytesLoaded()) {
nextFrame();
}
};
After the short animation it stops at the last frame, showing a menu on the left side. On clicking the menu buttons, different pages are loaded. Of course with the same header on top.

But then, the header starts from the beginning again, cause another page is loaded. So it's refreshed. Is there a way to skip this reloading of the flash header upon navigating to different sections of the site? So that on navigating to another page it starts on the last frame, skipping the animation and showing the menu right away?

Skip Menu
Can anybody help me with this:
It's just that the Skip button that I made isn't working. I don't know what went wrong! I am making this presentation but I wanted to put a skip button on the top right corner of my presentation so that the user have the choice to skip that 17.4 sec. animation that i use to introduce my instructional material. So what I did was I made a new layer for that skip button then on that button i put the actionscript:

on (release) {
gotoAndPlay("Scene 2", "frame_1" );
}

When I test my movie with those action script the button isn't working until the animation is finished... so it doesn't serve it purpose to skip the presentation if the user wants to.

anybody? PLEASE...

Skip Intro
How do I skip Intro, whats the action script to do so?

I have a button on my animation and I want go to the last frame on the animation how would I do so.

This is what I type in and It gives me errors please help me with this problem.

BTW I have flash 8 and I dont know the exact script thanks in advance

Code:

Code:
onRelease() {

gotoAndPlay(631);

}
Errors:

Code:
**Error** Scene=Scene 1, layer=Skip Button, frame=1:Line 1: Syntax error.
onRelease() {

Total ActionScript Errors: 1 Reported Errors: 1

Can't Skip The Flash?
Hi all,
I really need your helps.

hrrp://wildfishsushi.com
The above site I recently created. I have three links on the page.
Arlington heights, deefield are 2 image links. swordfish in the flash is getURL.
I also have three text links at the bottom.

Either one of them I click in IE doesn't work. I have to wait until loadMovieNum done then the links work. I use loadMovieNum for an external sound.swf. After the sound.swf loaded, the speaker icon will show out, then the links will work.

The page is working on Firefox, Netscape, Safari. However, it just doesn't really work correctly in IE. How can I solve the problem? Thank you very much.

Ian

How To Skip This Script ?
I used this script to create a text effect in the intro movie of my site.
I tried to create a skip button, but i can't seem to be able to skip the intro effect.
Has anyone suggestions ?

You can downoad the flashfile here
Thx alot,

Sonny

Skip Preloader
I posted this in the Action Script forum but didn't get any feedback so maybe someone in this forum can help. Is there a way to skip the preloader animation if the site has already been loaded and is in the cache? What if I use a code like the following:

this.onEnterFrame = function () {
var amount:Number = this.getBytesLoaded() / this.getBytesTotal() *100;
loader._xscale = amount;
if(amount == 100) {
this.gotoAndPlay(3);
}
}

But instead of relating the percentage loaded to the width of the loader graphic ( loader._xscale = amount; ) is there a way of relating it to the progress of a movieclip?

Thanks in advance.





























Edited: 10/16/2007 at 08:08:47 AM by GabrielW

FLV Slight Skip... Any Help?
Hey guys,

I am working on a project that can be found here:

http://clients.light-power.com/RPI_flash/production

the problem is, there is a slight hiccup within the first 5 seconds or so. it doesnt always happen, but mostly in IE which is weird. here is the code i am using to load the netstream:



any thoughts?







Attach Code

var netConn:NetConnection = new NetConnection();
netConn.connect(null);
var netStream:NetStream = new NetStream(netConn);
netStream.onStatus = function(infoObject) {
if(infoObject.code == "NetStream.Play.Stop"){
gotoAndPlay("Scene 3", 1);
};
status_txt.text += "Status (NetStream)" + newline;
status_txt.text += "Level: "+infoObject.level + newline;
status_txt.text += "Code: "+infoObject.code + newline;
};
my_video.attachVideo(netStream);
netStream.setBufferTime(5);
netStream.play("RPIweb.flv");

























Edited: 11/09/2007 at 06:02:08 AM by majormite

Skip Animation After It's Seen Once. AS 1.0
I want to have mercy on viewers and skip unneccesary after they've been viewed once. So far I've only been able to find a tutorial for 2.0 and I've kind of hacked it down to the following code (so for all I know it could be very wrong, but I feel like I'm on the right track). I'm relatively new to AS, so I'm wondering what some of the script means, particularly "val" and "par."

My other "requirement" is that the code all be able to be run from the first frame of the movie.

Thanks for any help!








Attach Code

//-----skipOpen---

var today = new Date();
var so = SharedObject.getLocal("time");
var period = 31000;

if((today - so.data.val)<period){
so.data.val = today;
so.flush();
play();
}
else{
so.data.val = today;
par = "skip";
stop();
}

Skip Track
Well, after altering my music player so it plays through 1 frame instead of 1 frame plays 1 track and so on. I'm having a problem now with how to skip tracks.

Previously i would skip tracks by simply having a button direct to the next frame, but now i have the actionscript so 1 song plays after the other i'm a bit stuck.

The best idea i can come up with is to use CASE statments and then have an IF statment on the skip button to make it select the next track(case).


or is it possible to direct actionscript to specific lines of actionscript?

Anyone got any better/easier ways of inplementing this?

Cheers

Flakx.





























Edited: 02/28/2007 at 05:06:09 AM by Flakx

Skip Preload
Is it possible to have your movie skip its preloader if your swf has already been cached in a browser?
so you can avoid having it quickly blink on the screen everytime you visit the page?
i haven't had any luck finding information on this.
-thanks

Copyright © 2005-08 www.BigResource.com, All rights reserved