@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23



Comments:

<0> so the sounds do load
<1> mysound.position == undefined
<0> wich is undefined as long as the sound has not completed loading ; what is undefined ?
<1> a variable
<1> the position
<1> the streaming option when loading mp3 was especially made for what you want to do... so use it :P
<0> scroll._x = scroll_bar._x
<0> so the scroll x is equal to the scroll bar (pane) x
<0> that's until the sound loads
<0> when the sound loads, the scroll._x (the variable we've been talking about) is modified
<1> i already got that
<0> the problem i see would be like that: after the sound LOADS COMPLETELY, that variable can be modified, and it becomes 0 because mysound.position does not change
<0> but i don't get why mysound.position does not change, even if the sound WAS LOADED
<1> the position is always 0
<1> its not the loaded position
<1> but the position its is playing currently



<0> oh, yes
<0> mysound.position is undefined
<0> sorry
<0> if the position was 0, then the scroll thing should be place right
<1> during loading it is undefined
<0> yes
<1> and as long as its not playd its undefined
<0> yes
<0> the problem is that, even if the song was loaded and it should start playing, the position remains undefined
<0> so the song does not start
<0> movAX13h, some help ?
<1> yes, use streaming :)
<2> look here
<2> http://mordecai.lizweb.no/demo
<1> or here www.filip-sound.com
<1> everyone uses streaming :)
<0> movAX13h, but i still don't see what that has to do with my problem
<2> streaming is beautiful
<1> it would keep your position updated and not undefined
<0> i'll try it, ok
<0> morde-wrk, that mp3 player ain't working in Opera browser
<2> opera and ie uses the exact same plugin?
<0> have no idea :)
<0> what kinda plug in ?
<1> works in my opera
<2> that would be your flash8 plugin
<0> flash8 on both browsers
<0> http://www.alphadesign.3x.ro/indexXP/mp3player2.html
<0> made them streaming
<0> how does it work now
<1> there is something wrong with your maths
<1> its getting negative
<3> what's the actionscript command to have an .swf play fullscreen?
<0> why ?
<3> or is it a publish setting?
<3> hey mov btw:)
<1> hi log
<1> for the projector?
<3> projector or swf
<3> either way
<3> i only remember director/lingo command
<3> :)
<0> movAX13h,
<0> s_length = _root.sound_length-_root.mysound.position;
<0> min2 = int(s_length/(60*1000));
<0> sec = int((s_length-min2*60*1000)/1000);
<0> ==========
<1> fscommand("fullscreen","true")
<0> sound_length is the length of the sound, of course
<3> hmm, i need f8 for my mac
<3> will make life much easier in the longrun
<0> sec is the variable the text field uses
<3> my work bought for pcs
<3> but i have only mac @home
<2> something seriously wrong with your duration counter Zdrenga
<1> sound_length is what?
<0> sound_length is the length of the sound, of course
<1> in ms?
<4> yes
<1> SmurfMX how could you know what he entered?
<1> :)



<0> yes, movAX13h
<4> i'm the snake charmer :o
<1> ok :)
<0> sound_length = mysound.duration;
<4> and the duration and position commands always return ms
<1> Zdrenga you dont get that value unless the file is completely loaded
<0> i know that
<1> you get it, but its not the total lenght
<5> mornin freaks
<2> what's with the winamp look=?
<2> sup G
<0> then what is it ?
<1> there is no way Zdrenga
<0> movAX13h ????
<1> how could flash know how long a mp3 on some server is???
<1> unless its not loaded
<0> well, the song is loaded
<0> i don't get u
<0> the sound is loaded
<0> and then, flash gets the duration (length) of that sound
<0> what's wrong with that ? i don't get it
<6> anyone know much about webhosting etc, pls msg me
<0> movAX13h, in the function that makes the sound start playing, i have this : sound_length = mysound.duration;
<1> wich is wrong.
<0> can you please explain why ?
<1> because its not granted that its already 100% loaded .. so you'll get some random value
<0> the function is only executed when getBytesLoaded = getBytesTotal
<1> so you dont use streaming=
<1> ?
<0> yes, i do
<7> i have thumb nail images in my gallery, should i convert those to graphic symbols? or is that pointless if i'm not gonna keep reusing them?
<1> with streaming you dont need to preload it
<0> i noticed that
<1> Zdrenga you just start the playback ... and it does all the rest for you
<1> sneakerz whatever you wish
<0> i don't understand why it doesn't get mysound.duration right
<2> mmm.. thumbnails.. sounds like something you wanna click
<0> there are some things in this mp3 player that depend on mysound.duration value
<7> i changed my mind, im not gonna have the thumbnails clickable
<0> can you please tell me why it doesn't get mysound.duration right ?
<0> is it because it's on a web server?
<1> Zdrenga i told its not possible to get the duration unless its all loaded... and streaming means that it starts playback even its not all loaded
<1> you dont need to preload the sounds
<1> just start them
<1> streaming makes it wait for some time till it gets enough to start the playback
<1> then it plays and loads the rest meanwhile
<0> movAX13h, even though i am using streaming, i am not allowing the sound to play until it's all loaded
<1> thats totally makes NO sense.
<1> streaming is invented to prevent from loading all first
<0> after the sound is loaded, the part with " Loading ... xxxxxx of yyyyyy" goes away and the names of the songs appear: Track one, track two and Vali Barbulescu
<1> you dont need to wait for all loaded
<1> you can make it work like winamp
<0> movAX13h, but i want to
<0> i understand that i don't need to wait for all to load, but i want to
<1> then dont use streaming
<0> we're getting nowhere :)
<0> just tell me this much: if the sound was loaded, can flash check the duration of the sound, when on a web server ?
<1> yes
<0> ok, 10x
<0> not i have to squeeze my mind why it's not getting the duration, because the sounds are fully loaded
<0> :)
<0> *now
<1> what does it trace?
<7> do you recommend using a Loader component to show large photos in a photo gallery?
<1> trace(mysound.duration);
<7> im not familiar with the Loader... i just found it in the help section
<1> sneakerz i'd recommend a loader
<0> well, on my computer it works great, no problem at all, it traces the duration right
<0> but i can't trace it on a web server
<7> whats the best way to scroll through images on the loader?
<1> Zdrenga then its a initialisation problem... you want to get the duration too soon
<0> i think i will place some dynamic text field in there to trace the duration on the server
<1> Zdrenga you can also load the mp3 from the server and test locally
<0> i thought about that, but " sound_length = mysound.duration; " is placed in a function that is called only when the user clicks on the sound to play (and the user can click on the sound to play only after the sound is loaded)


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #flash
or
Go to some related logs:

geeniz
#linuxhelp
#politics
1950SQ
#beginner
#politics
#beginner
#delphi
#linuxhelp
keyboard + fecal matter



Home  |  disclaimer  |  contact  |  submit quotes