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




Music Skips



can someone help me please?my audio player skips on webs sites.It said to install adobe flash player 9,so i did and I put some music on my myspace page on when I push play it starts to play the it skips.I right click the song and go to setting butt there is no audio settings on adobe flash player 9.and I dont know how to fix it?did I do something wrong or is there another online audio player I can use?thanx,mark.



Adobe > Flash Media Server
Posted on: 05/17/2007 02:30:14 PM


View Complete Forum Thread with Replies

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

Image Skips.........
I have a button that activates a movie but the image in the movie does a little skip, it kind of jumps .......why iz that???

While Loop Skips
When I debugging this script using breaking points, it works like I want it to, but when I test it, it just skips past the first song, and play the secong song. Here is the code and the fla, whats wrong with it?

onClipEvent (load)
{
playing = "false";
i = 0;
s = new Sound();

songList = new Array(
"http://virginiareggae.com/flash/midnitecom.mp3",
"http://virginiareggae.com/flash/midtwo.mp3"
);

conSong();

function conSong() {
while (i <= (songList.length-1)){
playing="false";
playSong();
i++;
}
i=0;
}
function playSong(){
stop();
if (playing == "false"){
s.stop();
s.loadSound(songList[i], true);
trace("i variable pla" +i);
playing = "true";
}
}
function stopSong() {
s.stop();
playing = "false";
}

function nextSong() {
if (i < (songList.length - 1))
{ i++;
trace("i variable next" +i);
} else {
i=0;
}
playing = "false";
playSong();
}
function prevSong() {
if (i > 0) {
i--;
} else {
i = songList.length -1;
}
playing="false";
playSong();
}


}

Swf Skips Every Other Scene
I've created a slide show, which works fine. But when I delete some scenes and create a swf, the swf skips every other scene. My actionscript is:

on (release, releaseOutside) {
nextScene();
}
// this makes same thing happen if you hit Enter key
on(keyPress "<Enter>") {
nextScene();
}

Any thoughts on how to fix this? Thanks

Audio Skips
can someone help me please ?on my myspace page I put some audio music on it,and when i push the play button,the music starts to play and after about 3 to 4 seconds later it starts to skip.I click on the it and it takes me to the adobe flash player 9 web site,butt there is no audio settings.Is there another audio player I can use or is there a way to fix the settings?thanz,mark.

Action Skips Out?
hi there,

i hav a big flash file having high quality animations. i hav wrote some code on timeline were the animation tends to jerk somewhat. The code stops the frame n displays another mc depending on some criteria. if i test movie using ctrl+enter it's wokring fine but if i run it in browser,sometimes it seems that that the action gets skipout.

Is it possible in flash that it may skip out frames having actions if the animation hav jerkness???


plz, clarify this.

thnx.

Flash Xml Skips
I need to make the following corrections with the flash cs3 xml slideshow.
Flash XML Slide Show SkipsBelow is the action script and xml text.
I need to make the slide show to stop skipping.
Below the “This is Photo...” caption I want a small line of text to show up.

Below is the xml and action script.
I appreciate the help.
Thank you.

xml

HTML Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
<pic>
<image>ice1.jpg</image>
<caption>This is photo 1</caption>
</pic>
<pic>
<image>ice2.jpg</image>
<h1>This is photo 2</h1>
</pic>
<pic>
<image>ice3.jpg</image>
<caption>This is photo 3</caption>
</pic>
<pic>
<image>ice4.jpg</image>
<caption>This is photo 4</caption>
</pic>
<pic>
<image>ice5.jpg</image>
<caption>This is photo 5</caption>
</pic>
<pic>
<image>ice6.jpg</image>
<caption>This is photo 6 </caption>
</pic>
<pic>
<image>ice7.jpg</image>
<caption>This is photo 7</caption>
</pic>
<pic>
<image>ice8.jpg</image>
<caption>This is photo 8</caption>
</pic>
<pic>
<image>ice9.jpg</image>
<caption>This is photo 9</caption>
</pic>
<pic>
<image>ice10.jpg</image>
<caption>This is photo 10</caption>
</pic>
</images>
Actionscript

HTML Code:
function loadXML(loaded)
{
if (loaded)
{
xmlNode = this.firstChild;
image = [];
caption = [];
total = xmlNode.childNodes.length;
for (i = 0; i < total; i++)
{
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
caption[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
} // end of for
firstImage1();
}
else
{
content = "file not loaded!";
} // end else if
} // End of the function
function nextImage()
{
if (p < total - 1)
{
++p;
if (loaded == filesize)
{
picture._alpha = 0;
picture.loadMovie("photos/" + image[p], 1);
caption_txt.text = caption[p];
} // end if
} // end if
} // End of the function
function nextImage1()
{
if (p < total - 1)
{
++p;
if (loaded == filesize)
{
picture._alpha = 0;
picture.loadMovie("photos/" + image[p], 1);
caption_txt.text = caption[p];
slideshow();
} // end if
} // end if
} // End of the function
function prevImage()
{
if (p > 0)
{
--p;
picture._alpha = 0;
picture.loadMovie("photos/" + image[p], 1);
caption_txt.text = caption[p];
} // end if
} // End of the function
function firstImage()
{
if (loaded == filesize)
{
picture._alpha = 0;
picture.loadMovie("photos/" + image[0], 1);
caption_txt.text = caption[0];
} // end if
} // End of the function
function firstImage1()
{
if (loaded == filesize)
{
picture._alpha = 0;
picture.loadMovie("photos/" + image[0], 1);
caption_txt.text = caption[0];
slideshow();
} // end if
} // End of the function
function slideshow()
{
function pause_slideshow()
{
clearInterval(myInterval);
if (p == total - 1)
{
p = 0;
firstImage1();
}
else
{
nextImage1();
} // end else if
} // End of the function
myInterval = setInterval(pause_slideshow, 4000);
} // End of the function
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("photos.xml");
listen = new Object();
listen.onKeyDown = function ()
{
if (Key.getCode() == 37)
{
prevImage();
}
else if (Key.getCode() == 39)
{
nextImage();
} // end else if
};
Key.addListener(listen);
previous_btn.onRelease = function ()
{
prevImage();
};
next_btn.onRelease = function ()
{
nextImage();
};
p = 0;
this.onEnterFrame = function ()
{
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize)
{
preloader.preload_bar._xscale = 100 * loaded / filesize;
}
else
{
preloader._visible = false;
if (picture._alpha < 100)
{
picture._alpha = picture._alpha + 10;
} // end if
} // end else if
};

////////////Try the Pause and Play Toggle button down here ////////////////////
Actionscript for buttons

HTML Code:
var playState:Boolean=true;
btn_mc.onRollOver=function(){
this.gotoAndStop(2);
}
btn_mc.onRollOut=function(){
this.gotoAndStop(1);
}



btn_mc.onRelease=function(){
this.gotoAndStop(1);
if(playState){
playState=false;
this.btnTxt_mc.gotoAndStop(2);
this._parent.stop();
}else{
playState=true;
this.btnTxt_mc.gotoAndStop(1);
this._parent.play();
}
}
I know this is a lot. I appreciate anyone's help.

My Swf Skips Only In 2 Spots....
Hi, I've created a 25 second swf intro movie, everything syns perfectly, I have the audio file streaming....but there are two places in my movie that it looks to me like it stops for a frame or two and then keeps going!....why does this happen, I have been going crazy moving stuff around but nothing seems to work. Does anyone know what can be causing this? Thank you

Loader Skips
Hi,
I am making my own flash Harry Potter Site and at the start i want a preloader, so i followed the tutorial and i have done the preloader but it doesn't work,

It loads the content (30 secs approx on dial up) on then for a split second the loaded shows saying 100% then goes off and continues to play.

You can download the flash file and swf:
http://www.dumbledoreathogwarts.com/OotP2.swf
http://www.dumbledoreathogwarts.com/OotP2.fla

Thanks!

Preloader Skips To Frame 100
After my preloader runs and it goes to the next scene (where my movie is) it starts on frame 100 of the movie. Now, the preloader is 100 frames, but shouldn't the nextscene action send it to frame 1 of the next scene? Is there a way to fix this?

Button Skips Actionscript
Hi

this is the code inserted for the actions of a "submit" button:


on (release) {
if (msgb eq "") {
errormsg("Please enter a comment.");
} else if (nameb eq "") {
errormsg("Please enter a name.");
} else {
unknown = "NO";
gotoAndPlay("record");
}
}


The weird thing: if you click on the button (and all the fields are not filled in), the form will be submitted (he goes to "record"). If you click a second time on the submit button (with still all fields not filled in), then he will give an error (please enter a comment).

What's the problem?

You can see this working at www.djmark.be -> contact -> guestbook

Thx!

TabIndex Skips A Beat
I have a simple form that is in a seperate swf (called form.swf) that is loaded into the container.swf when the user navigates to the contact section.

I am using the following

Code:
fl1.tabIndex = 1
fl2.tabIndex = 2
fl3.tabIndex = 3
fl4.tabIndex = 4
fl5.tabIndex = 5
fl6.tabIndex = 6
fl7.tabIndex = 7
fl8.tabIndex = 8
fl9.tabIndex = 9
fl10.tabIndex = 10
fl11.tabIndex = 11

This works fine when testing the form.swf seperatly, but when the file is loaded into the container.swf file it takes 2 presses of the tab button to move to the next field? Either in the flash environment or online.

I have an instance name on each input box and a different var name also.

Anyone any ideas, I am using flash mx (dont have the 2004 or pro)

ActionScript Skips Some Code...
I'm making a game with Flash MX (v.7) and I use actionscript2. I have some many mcs with lots and lots of coding on them, and sometimes, Flash won't read the code properly. Let's say for exemple that:

a=0
...
if(a==0) {
_x+=10
}

Well this if a=0 it would be suposed to move _x+10, (yes it is between a onClipEvent handler...) but sometimes Flash just skips parts of the coding between those { } and I don't know why. So I thought that if I add a trace action in it I'll know if the code at least works...

a=0
...
if(a==0) {
trace("a is equal to zero")
_x+=10
}


Magically, it traces "a is equal to zero" and now it moves in _x position...
Then if I remove the trace action, it doesn't move in _x...
Some "things" like that also had happened when I click the little auto-format text button...

Could it be that some actions between {} are skipped if they seem to Flash not enough important?! Help me, this is really weird!

Flash SKIPS Frames
i have pasted this code in ten frames but flash skips so many frames that made feel frustrated...


Code:
createClassObject(RadioButton,"radio1",0, {label:"Sí", groupName:"radioGroup", data:"me", _x:260.3, _y:166.3});
createClassObject(RadioButton,"radio2",1, {label:"No", groupName:"radioGroup", data:"you", _x:260.3, _y:196.3});
mycl=new Object();
mycl.ref = this
mycl.click=function(){
trace(_root._currentframe)
nextFrame();
//_root.gotoAndStop(_root._currentframe+1)
}
radioGroup.addEventListener("click", mycl)
stop();


i just cant decide where and when i did this mistake, could anyone help me??

The Preloader Skips Frames
Hi!

I'm having some trouble with my preloader. Everything works fine except that it shows the preloading bar for a couple of seconds, then jumps to 7%. I'm using the download settings in Flash to simulate slower connections.

This is the tutorial I used:

http://www.kirupa.com/developer/mx/p...epreloader.htm

Any ideas? I'm using Flash 8.

Loading Multiple XML's Skips All But Last?
// XML //

<?xml version="1.0" encoding="iso-8859-1"?>
<node>
<image>images/img_home/1.jpg</image>
<text>This is the text</text>
</node>




// Actionscript //
// I will display the load order

var arr = new Array();

for (ii=0;ii<3;ii++) {
if (ii == 0) { load_it ("xml/home_a.xml", "$a", 200, 480, 0, 100); } // A1
if (ii == 1) { load_it ("xml/home_b.xml", "$b", 400, 480, 200, 100); } // B1
if (ii == 2) { load_it ("xml/home_c.xml", "$c", 300, 480, 600, 100); } // C1
}

function load_it (xml, container, mask_w, mask_h, mask_x, mask_y) { // C4
load_xml(xml);
onEnterFrame = function () {
if (arr[0] != undefined) { delete onEnterFrame; trace( arr[0] ); }
};
}

function load_xml(path) { // A2 B2 C2
xml_data = new XML();
xml_data.ignoreWhite = true;
xml_data.onLoad = function (ok) { if(ok) { parse_xml(xml_data); } };
xml_data.load(path);
}

function parse_xml(xml_data) { // C3
for (o in xml_data.firstChild.childNodes) {
//trace(o + ' ' + xml_data.firstChild.childNodes[o]);
arr[o] = xml_data.firstChild.childNodes[o].firstChild.nodeValue;
}
}





trace( arr[0] );
Only returns the last xml file
images/img_home/3.jpg

Notice A3 B3 do not fire?

I am sure the onEnterFrame is a bit wacky and needs to be re-written.
The arr[0] returns undifined without it...?

I left out a non-vital funtion, that's why there are extras in load_it().

Any ideas how to get this to work?
Also any “best practices” coding tips are appreciated.

Thanks,
jc

Preloader Skips Frames
I've made a preloader using a document class and the following code:

Code:
package
{
import flash.display.MovieClip;
import flash.display.Loader;
import flash.events.*;
import flash.net.URLRequest;

public class Loading extends MovieClip
{
private var url:String;
private var loader:Loader;

public function Loading()
{
url='test.swf';
var request:URLRequest=new URLRequest(url);
loader=new Loader();
initListeners(loader.contentLoaderInfo);
loader.load(request);
}

private function initListeners(dispatcher:IEventDispatcher):void
{
dispatcher.addEventListener(Event.COMPLETE,onComplete);
}

private function onComplete(event:Event):void
{
removeChild(preloader_mc);
addChild(loader);
}
}
}


The preloader_mc is a 40 frame movieclip (instanced in the first frame of the timeline). The problem is when it starts playing the test movie it starts playing at however many frames it's played. So if the preloader movie clip plays through one, it skips 40 frames, twice and it skips 80, etc.

I've tried putting a gotoAndPlay(1) after the addChild call, but that doesn't help. Any ideas?

Skips First .35 Seconds Of MP3 File
I have multiple MP3 files that I've imported in to Flash, and once imported the first .35 seconds (approx) doesn't play. I've never had a problem like this before. Any ideas?

Preloader Skips A Few Frames
Hi!

I'm trying to use the tutorial found here:

http://www.kirupa.com/developer/mx/p...epreloader.htm

for my site. I always thought that this tutorial looked easy and recommended it to many friends. But now that I'm using it myself it seems to jump to 7% and go from there. Fairly annoying.

Anybody got a clue why?

Preloader Skips To 100% Only When Live
I've built a preloader that works fine locally, when downloading files from the web address supplied. But when I post it live, the preloader shows a frame of 100% then shows the image before it has fully loaded. It 'pops' in.
What am I doing wrong? This has been driving me crazy for 4 days and any help would be much appreciated.
Thanks!
The link to the 'faulty' site is www.inadequateanimal.com/index2.html

The preloader code I am using for each quadrant is:

filename = ["01.jpg", "02.jpg", "03.jpg", "04.jpg", "05.jpg", "06.jpg", "07.jpg", "08.jpg", "09.jpg"];
path = "http://www.inadequateanimal.com/pictures/topleft/";
i = filename.length;
k = Math.floor(Math.random()*i);

_root.topleft.onEnterFrame = function() {
startLoading(path+filename[k]);
infoField._visible = true;}
function startLoading(whichImage) {
loadMovie(whichImage, topleftloader);
_root.topleft.onEnterFrame = function() {
infoLoaded = _root.topleft.topleftloader.getBytesLoaded();
infoTotal = _root.topleft.topleftloader.getBytesTotal();
percentage = Math.floor(infoLoaded/infoTotal*100);
infoField.text = percentage+"%";
if (percentage>=100) {
infoField._visible = false;
_root.topleft.gotoAndStop(2);

}
};
}
stop();

IE Skips Flash Intro
I created my first flash intro ever. It is working perfect in Firefox. When I load the page, the flash intro is there and you can click on ENTER and it brings you to the WELCOME page.

In IE, when I type the URL in the browser, the page that comes up is the welcome page. As if IE just ignores my intro.htm which contain the flash intro and skips to the next page (index.htm)

I was told that it was because of SP2 but I couldn't find any fix. Any suggestions?

Here is the code in case it helps:

<html>
<head>
<title>Untitled</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Language" content="en">
</head>

<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="750" height="550">
    <param name="movie" value="LAUBACH.swf">
    <param name="quality" value="high">
    <embed src="LAUBACH.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="750" height="550"></embed>
  </object>
</body>
</html>

Sound Loop Skips...please Help
I'm having trouble with a single sound loop.  It seems to skip at the end or beginning of the animation.  Can anyone tell me the best way to loop that sound without it skipping.

Thanks

GoToAndPlay Skips The First Few Frams
I have a large audio visual presentation piece and I want it to loop.

On the last frame I have an action gotoAndPlay frame 1. However when it does this it skips the first few sentences of the audio.

Is there a way I can prevent this from happening.

Thanks

Alan

.flv Audio Skips And Pops?
I am certain that this has something to do with the internet download settings...but I am curious as to know what the best practices are here---

I have .flv files that will skip and pop when the download bar is hit by the playhead...meaning the download is not fast enough to outrun the playhead...

but the problem is, sometimes, even when the file is completely loaded it still pops and skips...???

I used the on2 encoder and the spark encoder each with different settings each with different, but unsatisfactory results....

all these identical files play just fine on the cd-rom version of the same interface.

I used Fraunhofer MP3 with 32 kbps -- 16 sample size -- 22050 Mono sound....

Basically the default setting for On2 384K within sorenson squeeze...

the site in question is

http://store.sorinex.com/Articles.asp?ID=124

Loading Shows And Skips :(
Hi,
I am making my own flash Harry Potter Site and at the start i want a preloader, so i followed the tutorial and i have done the preloader but it doesn't work,

It loads the content (30 secs approx on dial up) on then for a split second the loaded shows saying 100% then goes off and continues to play.

You can download the flash file and swf:
http://www.dumbledoreathogwarts.com/OotP2.swf
http://www.dumbledoreathogwarts.com/OotP2.fla

Thanks!

[F8] Flash Skips Preloader And Components
Hello.
Im having some trouble with a preloader I recently made. I've just started to learn actionscript, so I think that you guys will spot the mistake pretty fast.

Ok. On frame 1 I have this code:

PHP Code:



var alltladdat =_root.getBytesTotal()

onEnterFrame=function(){
var laddat = _root.getBytesLoaded();
var procent = Math.floor((laddat/alltladdat)*100);
_root.textfield.text=procent;
if (laddat>=alltladdat)
{
_root.gotoAndStop(2);
}
}




And on frame 2 I have some component checkboxes and a component combobox.

When I publish the file in Flash 8, it skips the preloader and moves directly to frame 2, and thereby not loading the components. But if i publish it again, (swf is up and running), by pressing Ctrl+Enter, it starts with the preloader and loads the components. Why is that? I want Flash to load the preloader and then move on to the components on the "first" publish.

I have set the settings to load components on frame 2 under the:
File->Publish Settings->Settings>"Export frame for classes"

I've attached the .fla in a WinRAR archive.

Any help is appreciated!

I Want A Button That Skips 50 Frames When Clicked
I have a button and when i click it i want the main timeline to skip 50 frames.

how can i do this?

my only ideas are

mc1.onRelease = function() {
gotoAndPlay(+50)
}

and

mc1.onRelease = function() {
_currentframe =+ 50
}

sincerly
rbr1234






























Edited: 01/14/2007 at 02:07:36 PM by rbr1234

Slide Show Loops Or Skips To Pic
I'm just learning flash. Created a 23 pic slide show. Along the bottom are pic numbers from 1 to 23. If u dont move ur mouse over a number, when it gets to the 23rd pic it starts again. Moving the mouse over a number shows that pic and pauses there. Moving it off the number makes the slide show continue.

Here is my action script up to 4 buttons. Its alot of repeating. I'm sure I can decrease the number of lines. Could someone show me?

play();
function handleRollOver2( pEvent:MouseEvent):void
{
if( pEvent.target == p2btn )
{
gotoAndStop( 50 );
}
}
function handleRollOut2( pEvent:MouseEvent):void
{
if( pEvent.target == p2btn )
{
gotoAndPlay( 51 );
}
}
function handleRollOver1( pEvent:MouseEvent):void
{
if( pEvent.target == p1btn )
{
gotoAndStop( 21 );
}
}
function handleRollOut1( pEvent:MouseEvent):void
{
if( pEvent.target == p1btn )
{
gotoAndPlay( 22 );
}
}
function handleRollOver3( pEvent:MouseEvent):void
{
if( pEvent.target == p3btn )
{
gotoAndStop( 80 );
}
}
function handleRollOut3( pEvent:MouseEvent):void
{
if( pEvent.target == p3btn )
{
gotoAndPlay( 81 );
}
}
function handleRollOver4( pEvent:MouseEvent):void
{
if( pEvent.target == p4btn )
{
gotoAndStop( 110 );
}
}
function handleRollOut4( pEvent:MouseEvent):void
{
if( pEvent.target == p4btn )
{
gotoAndPlay( 111 );
}
}
p2btn.addEventListener( MouseEvent.ROLL_OVER, handleRollOver2 );
p2btn.addEventListener( MouseEvent.ROLL_OUT, handleRollOut2 );
p1btn.addEventListener( MouseEvent.ROLL_OVER, handleRollOver1 );
p1btn.addEventListener( MouseEvent.ROLL_OUT, handleRollOut1 );
p3btn.addEventListener( MouseEvent.ROLL_OVER, handleRollOver3 );
p3btn.addEventListener( MouseEvent.ROLL_OUT, handleRollOut3 );
p4btn.addEventListener( MouseEvent.ROLL_OVER, handleRollOver4 );
p4btn.addEventListener( MouseEvent.ROLL_OUT, handleRollOut4 );

Bytes Preloader Skips On 56k & Streams Swfs
hi,

i'm using a simple preloader,
(http://www.flashkit.com/tutorials/Actionscripting/Basic/Simple_P-Tony_Vol-597/index.shtml)

here's the problem,

i have a main swf, in the main swf i use 'loadmovie' to load external swfs,

i use the same preloader for the main swf as the external swf.

on a 56k the preloader works on the main swf but not on the external swf. it flashes on then the rest of the movie starts to stream in which sounds and looks
awful....

would any of you know how to solve this problem?? or know why it's happening...

thanks in advance

--
jane

SWF File Skips/Jumps Back To Beginning
I have serveral swf files that I generated with video in them. Nothing to major but still 7 or 8 megs. These will be imported into a projector and packaged on cd. The problem is that sometimes the swf will play partially through and then jump back and play from the beginning. Then it might continue to play from the beginning get maybe 2/3 of the way through and then jump back again. Finally it might play from beginning to end. Any ideas?

Would a preloader fix this? I thought that it would play regardless; that it would just play poorly, not jump to the beginning. Thanks to all!

Double Click On Button Skips Keyframes
How can I stop the playhead skipping two keyframes if a user double clicks on a button? Currently a single click works fine in navigating my site, but as many people are prone to double click anything on a computer screen to get response it's becoming a real problem.

My site is at

www.jasonfisherjones.com

Flash CS3/AS2.0

Looping Functions Problem, It Just Skips To The Last Instance
Hello All,

I am using Actionscript and the problem I am having is the I am running a for loop to execute a function which loads the variables from XML and then another function to load an external SWF which will load the variables from the first function. Here is the code snippet

for(i=0;i<2;i++) {
createproduct();
displayproduct();
}

Currently, createproduct will create a series of arrays with the new data. The displayproduct() function pushes the data out into a image loader. However, my guess is that the loop is executed so quickly, that the data becomes the last instance in the for loop and therefore displays the same(last instance) data for both displayproduct function. Is there any way to have a function wait till the previous function completes? That way when I fun the script, it will show up 2 instances of the image loader with the appropriate data. Thank you in advance!

-Ivan

ProgressBar Skips First Frames From Loaded Movie
Im using a ProgressBar control and copied the code exactly from the help. It works but the problem is the loade movie skips the first 10 or 15 frames at the begining. I think this happens because the movie starts before its shown. How can i fix this? I wanted to use some event from the loaded movie, but is not posible....

Heres the code


PHP Code:



import fl.containers.UILoader;import fl.controls.Label;import fl.controls.ProgressBar;var url:String = "84pcmovie.swf";var myUILoader:UILoader = new UILoader();myUILoader.autoLoad = false;myUILoader.source = url;myUILoader.move(10, 10);myUILoader.scaleContent = false;myUILoader.name="mcClip";myUILoader.load(); var myProgressBar:ProgressBar = new ProgressBar();myProgressBar.source = myUILoader;myProgressBar.name="prgs";myProgressBar.move((stage.width/2)-50, stage.height/2);myProgressBar.addEventListener(ProgressEvent.PROGRESS, progressHandler);myProgressBar.addEventListener(Event.COMPLETE, completeHandler);addChild(myProgressBar)var myLabel:Label = new Label();myLabel.text = "xx";myLabel.autoSize = TextFieldAutoSize.LEFT;myLabel.move(myProgressBar.x, myProgressBar.y + myProgressBar.height);addChild(myLabel);function progressHandler(event:ProgressEvent):void {    //trace("progress:", event.bytesLoaded, event.bytesTotal, int(event.currentTarget.percentComplete) + "%");    myLabel.text = event.bytesLoaded + " de " + event.bytesTotal + " bytes cargados.";}function completeHandler(event:Event):void {    myProgressBar.removeEventListener(ProgressEvent.PROGRESS, progressHandler);    myProgressBar.removeEventListener(Event.COMPLETE, completeHandler);    removeChild(myProgressBar);    removeChild(myLabel); addChild(myUILoader); } 

Bytes Loader - End Of Scene Only Loads, Skips All Other Frames
Hi all,

I am using the Bytes Loader to load what seems to be a rather simple tweened main scene. However, it completely skips all of the tweening and goes right to the last frame, although I have specified for the loader to start at frame one in the main scene (it has a label). Also, and I think this is an MX thing, the loader starts at like 50% hahaha. Any suggestions? I will post the .fla if necessary.

Thanks a lot,
Nick

Movie Clip Skips Frames And Sticks On Reload
I have a MC placed on a single frame of my main movie timeline, the MC displays a series of details then pauses using a setInterval script before fading out and back into another set of details, this happens about 10 times with different details each time.

The MC plays perfectly when the main movie first runs, but when you go elsewhere on the main movie timeline (other pages) and then return to the frame with the MC in (homepage), the MC seems to behave randomly! It gets stuck repeating only two or three of the fades and sometimes flashs up a couple of frames from other fades!?

Any ideas what could be happening?

Any solutions?

Any advise much appreciated, cheers.

Site Skips Stop Actions Upon Initial Visit.
Hi, I developed a site that does something strange upon first visit. go to www.oceo.com and notice after you select a venue from the opening page that the movie keeps playing without stopping. When I reload the page the problem doesn't happen anymore. Even if you don't experience this problem on your computers, can someone explain why this might be happening?

Thank You.

Using Keyboard To Launch Sounds - Skips/plays Multiples
as the title of this thread suggests, I'm using the keyboard to play mp3 audio in the root folder - these mp3s are in arrays, but anyway here's the code:

keylistener = new Object();
keylistener.onKeyDown = function() {
if(Key.isDown(70)) {
stopAllSounds();
_global.ARRAYSOUND = new Sound();
_global.ARRAYSOUND.loadSound(_global.MYARRAY[(now++)%_global.MYARRAY.length]);
_global.ARRAYSOUND.start();
}
};
Key.addListener(keylistener);
///////////

the problem is that when I press the key, most of the time it only plays once, like it's supposed to, but sometimes it plays a split second of one sound, then plays the next sound in the array - and if you hold down the key, you can hear it skipping through all of the sounds in the array until you let go, and it plays one

I need to use the keyboard to launch mp3s in an array, but I don't want the multiples - or the skipping

Is there any way to make it so that regardless of whether I press it once, tap it quickly or hold it down it will only play the next mp3 in the array?

the biggest problem is the multiple-playing - I can deal with the skipping through when you hold it down, I can avoid doing that - but I don't understand why it's playing part of one and then the next when I only push the button once

it's as if half-way down is considered 'pressed' as is down and half-way up or something...

Flash Movie Audio Skips / Squeaks / Beeps
So I'm having a heck of a problem when viewing a Flash movie that has very low-quality audio. It is an online seminar where there is a voice-over along with some slides that change as the movie progresses. Don't ask me why they used Flash, they just did. What I hear sounds like the audio is skipping. It's a hard sound to describe but it sounds like digital static essentially. It's a sort of squeak noise, or other times kind of a "bleep", but not the "beep" noise you get from your computer when an error occurs.

The problem does not occur on other computers, just my brand-new desktop. The other Flash videos that I've watched on YouTube have had no problem whatsoever. The problem computer looks like this:

Windows XP Home SP2
IE 7 (Same problem with Firefox)
Flash 9 (latest download as of Sept 01 '08)
Integrated audio on Gigabyte motherboard - Realtek Audio HD

I've reinstalled the drivers with the latest from Gigabyte, but still no luck. I've also tried a number of other things, such as checking my sound settings in the Windows control panel, but to no avail. Can someone please help? My wife needs to access these seminars really badly, and I have no idea what's wrong.





























Edited: 09/09/2008 at 06:32:36 AM by BobGrimshaw

ScrollPane Component Skips Preloader Part Of External Swf
I had an external swf loading nicely into a scrollpane but after adding 2 frames at the beginning of this external swf (to have a preloader), I noticed the scrollpane component disregards the preloader entirely and instead behaves as though its not there. If I test the external swf by itself, the preloader works fine. I saw someone else post this issue a while back but no one had provided an answer.

I am sure many people out there prepare swfs destined to be viewed thru the main movie's scrollpane - how do you guys integrate the preloading?

Thanks!

ScrollPane Component Skips Preloader Part Of External Swf
I had an external swf loading nicely into a scrollpane but after adding 2 frames at the beginning of this external swf (to have a preloader), I noticed the scrollpane component disregards the preloader entirely and instead behaves as though its not there. If I test the external swf by itself, the preloader works fine. I saw someone else post this issue a while back but no one had provided an answer.

I am sure many people out there prepare swfs destined to be viewed thru the main movie's scrollpane - how do you guys integrate the preloading?

Thanks!

Flash Movie Making Unexpected Frame Skips
Hi!

I have a movie (links: html - swf - fla) which I've been working on and I've just about got it finished and working correctly. However there is just one bug which I can;t explain and I;ve checked the AS over and over.

If you try it at the above link you will see that when you click the central logo, an animation runs. On completeion you have the option to choose 3 buttons. However, if you resize the browser once it has reached this stable stage, the animation continues as if the user had clicked one of the buttons.

I just can't explain it! Please help!

How To Change Buttons On Music Player Depending On Whether Music Is Playing Or Stoppe
When my music is playing, I want my play button to be blackened in. When the music is stopped, I want my stop button to be blackened but my play button to go back to it's original state.

Right now, when my cursor is over the button, it will change the rollover state. That's easy to do.

How can this be accomplished...do i need multiple layers?

Can I Loop A Specific Section Of Music In Flash After The Music Intro Plays?
Hi! My question involves looping audio in flash. I already know how to make a section of audio in an audio-editing program that loops and make it loop continuosly in Flash. What I would like to do now is take an audio clip that has an intro section and a "body" section and after the intro has played, loop back to the beginning of the "body" section continously. I assume it would involve sending it back to a specific millisecond?

Anyway, can anyone help me out with this one? Or is it even possible?

Thanks,
aswhitehead

How To Make MC Clip Play When Music Starts, Stop MC When Music Stops
Hey,

I've got a audio player on my flash website and I want to have a audio spectrum analyser (those little squares that move up and down randomly) start playing when the user starts playing music and then stop when they stop the music.

Is there a simple way to do this?

Cheers

Max

Links Of Bg Music Or Intro Music For Flash
Can anyone give me links of websites where they supply music background whether they are Royal free or i have to purchase it. Thanks a lot!!!

Display Music's Details As The Music Playing?
Hi

I saw something similiar at Flashkit - Sound FX, when you click on it, you would be able to play the music yet at the same time, display the music "detail", when the it high tone, the display go up high when the tone is low, the display go down?(Hope im not wrong in describing it)

http://www.flashkit.com/soundfx/Interfaces/

Can someone teach me how it work? Thanks

Preload Music And Fade In Music
Hi, i'm looking for a script that preloads my music. once it's loaded it should start playing the music with a fade in.

Anybody can help me with this. My actionscript-skills are very poor.

This is the code that i'm using for the moment, without preload and fadein. It uses a random of 3 tracks.

Loops = new Array("track01.mp3","track02.mp3","track03.mp3");
choice = random(Loops.length);
mySound = new Sound();
mySound.loadSound(Loops[choice], true);

thx
scarlac

Q On Music Array And Preloading Music
is there a way in flash where i have the play , next track , stop , and they load the music dynamically when pressed??? Using an array?

Music On/off
i want to be able to turn the music on and off with one button. the music is loaded into level 1 right now.

any suggestions??

thanks for your help

This Is All About Music
I got tons of mp3 and and i would like to know if i can put them in my animationz. If i can, could you tell me how? And can I cut out some parts of the songz?
thx for replying.

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