Music Length
Another newbie question. Music length - is it an actionscript? I'd like to change the play duration of the music being played before it loops. Thanks in advance.
ActionScript.org Forums > Flash General Questions > Flash 9 General Questions
Posted on: 06-27-2008, 09:02 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Video Length Does Not Match Music Length
I want to have a 3 minute wav file loop infinitely over a 20 second flash video which also loops infinitely. The only way I have found to do this is to copy and paste the video so it repeats itself for 3 minutes, then the whole thing loops. Is there a way to run my 3 minute wav file in the background of my 20 second video conveniently?
Here is an example of what I have already made:
http://www.limdallion.com/Characters/Pyk/Pyk.shtml
WAV Music File Length
Would a 3 min 32 sec WAV Christmas Song be too long to import into the Flash library. I ran into a problem with my current graded assignment when I attempted to import this particular 3 min 32 sec song into the library. I got a message on the screen that all the files couldn't be copied....so the import failed. I wouldn't be attempting this except I really wanted this final assignment for the semester to be special. Can anyone help me with this? I can't shorten the sound file as it would result in an awkward result....or am I on the right track that the file is simply to long in which case I need to find another Christmas Carol or song as a substitute of shorter duration?. Please advice. I would appreciate it
Mp3 Sound Length And Played Length
hey i have an mp3 players, is a lot of code so im not going to post it all at.
but what i want is something to tell me the length of the sound and the current playing time..
well i will post this much of the code that i made i just don't know how to turn it into minutes and seconds.
Code:
private function onEnterFrame(event:Event):void
{
// this is the total estimated time
estimatedTotal = Math.ceil(snd.length / (snd.bytesLoaded / snd.bytesTotal));
// this is how much the sound played in %
position = Math.round(100 * (sc.position / e));
// i was just testing with aprogress bar
run.setProgress(p, 100);
}
so how i turned this code that works into minutes and seconds.
Mp3 Length Don't Match Timeline Length
I got myself a simple setup - an animation playing against an audio track. I've used 'use imported mp3 quality' in the export dialogue box. I've got a root timeline of 814 frames long. At 25 fps this gives me a timeline length of 32.5 seconds - this should be the same length as the mp3.
however the mp3 finishes about 5 seconds before the timeline?
How are you meant to sync audio to animation if there is that much discrepency? I haven't got anything processor intensive on the timeline.
Difference Bw Array.length() & Array.length
Hello
I have a question about AS3 array length method. sometimes if you use array.length() it gives error while other times it works fine and same is the case with array.length can anyone explain the difference please?
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
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
For (i=0; I<bw.length; I++)
Flash MX
What's wrong with this code???? It triggers as soon as I enter test mode and nothing is written in input text field(t1)
bw = ["item1", "item2", "item3", "item4"];
var contentPass = true;
for (i=0; i<bw.length; i++) {
if (t1.indexOf(bw[i]) != -1) {
contentPass = false;
break;
}
}
if (!contenPass) {
loadMovieNum("anyMovie.swf", 1);
}
Thx
Alek
Length Of Fla
i'm building a flash anim in MX and the total time (after story boarding) will come in at around 8 minutes. its various library mov files placed one after the other in a scene,
is there anything that dictates how many frames i can use? my time line seems to go on forever but the swf runs fine on the machines i've tested it on.
any thoughts?
XML Length
Hi, I just can't get the length of my firstChild s
Maybe I have misunderstood something, can anyone help, please?`
my XML file:
<foo>
<item0></item0>
<item1></item1>
<item2></item2>
</foo>
<foo>
<item0></item0>
<item1></item1>
<item2></item2>
</foo>
...
ActionScript:
XmlObj.firstChild.length
I get undefined.
How do I count how many foo s there are
regards,
T.Andersen
XML Length
Hi
How can I get the length of <employees> here
<?xml version="1.0" encoding="iso-8859-1"?>
<offices>
<city name="Oslo" offices="7" x="224" y="269" map="test_vektor_by.swf">
<office name="Kjell B1 Oslo1" map="test_vektor_gate2.swf">
<vadress>test 1</vadress>
<vcity>test 1</vcity>
<phone>22 55 88 24</phone>
<email>post@kb.no</email>
<employees>
<employee name="Mette Marit1">
<title>Daglig og faglig leder Statsaut. eindomsmegler MNEF1</title>
<phone>37 00 66 55 44</phone>
<mobile>93 65 48 98</mobile>
<email>mette@estate.no</email>
</employee>
<employee name="Mette Marit2">
<title>Daglig og faglig leder Statsaut. eindomsmegler MNEF2</title>
<phone>37 00 66 55 44</phone>
<mobile>93 65 48 98</mobile>
<email>mette@estate.no</email>
</employee>
<employee name="Mette Marit3">
<title>Daglig og faglig leder Statsaut. eindomsmegler MNEF3</title>
<phone>37 00 66 55 44</phone>
<mobile>93 65 48 98</mobile>
<email>mette@estate.no</email>
</employee>
<employee name="Mette Marit4">
<title>Daglig og faglig leder Statsaut. eindomsmegler MNEF4</title>
<phone>37 00 66 55 44</phone>
<mobile>93 65 48 98</mobile>
<email>mette@estate.no</email>
</employee>
</employees>
</office>
</city>
</offices>
thanks in advance
best regards
T
MP3 Length
Hi all,
I was wondering if anyone knows where there is a good tutorial on obtaining an MP3's duration.
I will be loading MP3's from XML playlist and think I know how to calculate the sound position of a streamed mp3.
Any help?!
Thx everyone
BRb
.flv Length
Hi
How can i get the length of a progressive video .flv with as3?
Thanks
XML Length
Hi,
I have an xml object of unknown length that I want to display on the screen. Know all of the atrributes.
Ie: if the xml object was:
Code:
<xml>
<Object>
<id>954</id>
<adressemail>Jake@hotmail</adressemail>
</Object>
<Object>
<id>955</id>
<adressemail>Colin@bikerVille.com</adressemail>
</Object>
</xml>
We would know that there are Objects with an id and an adressemail.
Just wondering how we know that there are two Objects. I dont think the following works b/c xmlInstance.length always returns 1.
ActionScript Code:
for(var i:int=0; i<xmlInstance.length;i++){
//stuff
}
Just want to loop through all Objects and put their data into textFeilds.
Thanks
Flv Length?
I'm new to Cs4, but apparently I can't import video footage directly into the timeline anymore.. Which throws me off in many ways, a) I can no longer determine the length of the given footage b) I can no longer see the footage to add additional text layers etc and c) Apparently there's no exception to the rule. It's FLV or you're out of luck.
What gives?
Are there any other straight formats you can simply import?
Flv Length
hi!
im just doing a small flv player with Communication Server.
In order to make the "scrub bar" works, I have to know dinamically
the length of the flv video. Ive read that there is the api command
Stream.length(name) but how do I use it? How can I call this function from the client side to the server side and have back this value before I start play my video?
tnx!!
bye
FLV 11 Min. In Length
I have been tasked with placing a video clip eleven minutes in length online. I have the FLV playing as an external progressive download. I took from reading Macromedia's documentation that progressive downloads are best for lengthy video.
Quote:Flash Player 7 introduced progressive download, a technique where external FLV files are cached on the user's local hard drive and played through the host SWF at runtime with no limitation to the file's size or duration. Audio and video stays in sync and the frame rate is completely independent from that of the movie host...For lengthy audio/video content that requires fairly straightforward delivery, external progressive FLVs can be a good choice.
About XML Length
hi,
how can i find the number of xml symbols? For example, i have:
Code:
<guestbook><entry firstName="John"><myText>Test</myText></entry></guestbook>
There are 8 symbols, right? How can i get them..? I want to format (by setTextFormat) each line, so i need to tell flash wich index it must start on...
Thanks for any reply.
Andy
Length Of Sound
If I dynamically import a sound (using generator), is there anyway to reference the length of this sound?
Text Length
Is there anyway i can find the on-screen width of an unknown piece of text?
Sound Length
Is there any way to determin the length of a sound used in a sound object?
String Length
Does anybody know the maximum length of a string? If there is one, are there any ways of getting around it?
Char Length?
whats the function for getting the length of an input text
MCs & Frame Length...please Help
From what I understand, when you are loading a MC from a blank MC, you don't need to have the frames in the main timeline be as long as the frames of the MC being loaded...When I load the MC on a blank one, if I don't have the frames the same length (the frame length on the main time line is one frame long), the MC only flashes in for the length of one frame...what am I doing wrong?
Length Of ASCII Value 0
Hi Gang,
Happy New Year.
I'll start this year off with an easy question (hopefully). I'm trying to convert some ASP scripts into Actionscript for the purpose of encrypting game high scores and game id numbers as they are passed back and forth between the browser and Flash.
At one point I'm doing an Xor operation or "^" in actionscript. The result of which is a new number that is turned into a character. For example ....
s = acsii 115
5 = ascii 53
115^53 = 70
string.fromCharCode(70) = F
These "encrypted" characters form a new string which is sent back to the browser. The Achilles heel here seems to be when I'm trying to evaluate fromCharCode(0) I end up with no character at all. Its length is zero. This throws off my encryption string.
I thought ASCII went from 0 to 255. Why does actionscript not recognize this when in ASP ASCII zero evaluates into a char of length 1?
TIA,
Randy
Text.length
For flash 5
Can anyone please explain how I can use script to make an MC alter its width to match the number of characters in a dynamic text box.
I tried:
_root.box._width=_root.myWord.text.length*10;
where box is the name of the MC and myWord is the variable name of the dynamic text field. It didn't work.
Many thanks
Array Length
Howdy, please can someone give me a bit of assistance.
I have an array, which is made up of 10 different words. What I’m trying to do is check through the whole array and return the word which is the largest (.length).
Many thanks, Mike.
(Flash MX)
Trying To Set Max Input Length
Trying to make the max input length 2 characters only...
Have tried several variations of code to no avail..
can someone help me out here...!
thnx...
Mycode:
TextField.prototype.removeMovieClip = removeMovieClip;
this.createTextField("nameTF", 10, 255, 170, 40, 20);
nameTF.type = "input";
nameTF.border = nameTF.background=true;
nameTF.backgroundColor = 0x00ff00;
nameTF.tabIndex = 1;
selection.setFocus("nameTF");
aformat.size = 12;
aformat.color = 0x000000;
Array Length
How can I tell how many objects there are in an array?
And then create an new array with that amount of items within it?
Specifying The Length Of A Preloader
I am bringing this up again because I am still puzzled. www.eye4u.com has little fades between each page. Someone suggested that these were most likely the preloaders them selves. If you watch the movie between the pages, you will notice that they play just long enough to mesh perfectly with the next page. Is there a way to specify that you want the page to load, but no matter what you want your preloader animation to play through?
Ryan
For(i=0; I<mc.length;i++) Question
Can anyone help me to extract from a for loop the sum of variables ??
Code:
for (a=0;a<x;a++){
text.lenght = value here;
text2.lenght = second value here;
}
now, how do i take out text.lenght+text2.lenght out of the for loop ?
i don`t know if i made myself clear but i`ll post here part of the code
Code:
for(var p = 0; p<noutati.length; p++){
_root.data_noutate = this.firstChild.childNodes[p].childNodes[0].firstChild.nodeValue;
_root.noutate = this.firstChild.childNodes[p].childNodes[1].firstChild.nodeValue;
//_root.noutate.attachMovie("datax", "datax1", 0);
main.text_str.htmlText += _root.data_noutate + "<br>" + _root.noutate;
if (_root.noutate.length < 46){
trace("mai mic de 46. are :" +_root.noutate.length);
var marime_r2 = 10;
}else{
trace("mai mare de 46. are :" +_root.noutate.length);
var marime_r2 = (Math.ceil(_root.noutate.length/46))*10;
}
//_global.marime_text = marime_totala*(10 + marime_r2); // numar noduri (primu` nod + cate randuri are nodu` 2);
//trace(this.firstChild.childNodes[p].childNodes[1].nodeName +":"+ marime_text);
//trace(marime_text);
}
Variable Length
I am bulding a blogg within Flash to mi syte, now the problem is when i've loaded all the post with the information needed of every post, in text field only appears 4 or 5 post in average, this post that apear, have all the information i program, but why not show all the post in ths textfield???
I believe this is for a load variable length problem.
Does anybody knows the limit permited to load variables?
Or anny suggestion about this problem???
THANX
Text Length..
hi all,
thanks for the worderful service by flashkit.
heres my problem,
i made an application which allowa the user to input some information and get a filled form printed....everything works fine except a tiny (probably micro) problem.
i use a input field to let the user input the text and a dynamic field to display it.i cant restrict the input field with max no of charactors so that the dynamic field doesnt overflow.
in n nutshell is there a way that i can control the no of charractors entered into input field according to the length of the dynamic field....so that its always restricts the user from entering more charractors more than the size of display wich will look unproffessional...max length of the input field doesnt wok for this
thanks
Max Length Querystring
I've made a flah movie that loads some variables from a querystring (moviename.swf?query=string). In FireFox this works perfectly, but in Internet Explorer it doesn't. It begins loading the page and doesn't show the movie at all.
Is there a maximum length for a querystring in Internet Explorer?
FYI, my querystring is about 1700 characters long.
Text.length
Thanks for looking!
I have found that "returns" contained in dyn loaded text (from a .txt) are overlooked in textVar.length counts, but are in fact reflected in the display. This in turn is throwing my text row count WAY off. I haven't been able to figure out how to account for returns in the text file. Any help?
Thanks everyone!
1M.
[F8] Grabbing MP3 Length
Hey,
I'm creating an audio player, and i have a sound loading in, but i dont know how to grab the song length to make the scrubber bar dynamic
here is my code:
Code:
music = new Sound();
music.loadSound("track1.mp3");
segment=0;
playmusic=false;
temptimer=0;
musiclength=20600;
timer.timer=0;
pb._visible=false;
is there a way to grab the MP3 length so i can make a variable to use for musiclength?
Text Box Length?
Hi,
I haven't touched flash in over a year now, I had made a website a ways back that dynamically loaded text files into text boxes... Either something recently happened or there was always this error but it seems that the text box has a max length or something as the two biggest text files it loads it isn't displaying all of it. The text files are not that big... the biggest is 9.2kb. Is there anything I can do to make sure the text box loads and displays all the text?
Thanks,
ChaseNYC
Length Of An Mp3 File
I am opening an mp3 with the statement:
mySound.loadSound(Directory);
.
I want to know the length(time of the song) of the mp3
so that I can manage the Timer running.
Does anyone know the command for this?
Thank You.
[F8] Length Of An Mp3 File
I am opening an mp3 with the statement:
mySound.loadSound(Directory);
.
I want to know the length(time of the song) of the mp3
so that I can manage the Timer running.
Does anyone know the command for this?
Thank You.
How To Get The Length Of An XML File?
Just wondering how to return the length of an XML file. Say I have 5 sets of cities that include names & images. I tried length() but it always returns 1. I'm now assuming this isn't like an array.
Getting The Length Of A Loaded FLV
hey gang,
I hope this is a quick one. I am building my own Flash Video player, because the pre-baked componets suck in my humble but accurate opionion :-)
My problem is: How do I get the total length (time) of the FLV once loaded into the NetStream object? Anyone? Anyone? Thanks.
Length Of Object?
so, i'm using an Object as an associative array, and i need to know if it has only 1 element. object.length doesn't work, that's only for arrays. any ideas?
|