@# 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> 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)
<0> that's a good idea, 10x
<0> movAX13h, i place " trace(mysound.position); " in the function that is called when the user clicks on play; it traces "undefined"
<0> still, the sounds start playing
<0> =====
<0> function playa() {
<0> if (playing != true) {
<0> music_started=true;
<0> playing = true;
<0> mysound = new Sound();
<0> mysound.loadSound(mp3_song[i], true);
<0> mySound.setVolume(mp3_player.volume_percent);
<0> mySound.setPan(mp3_player.pan_percent);
<0> mysound.start((_root.pos)/1000, 1);
<0> sound_length = mysound.duration;
<0> trace(mysound.position);



<0> }
<1> mySound != mysound
<1> and dont paste code here please
<0> sorry
<1> try to use the pastebin
<0> ok
<1> http://pastebin.sekati.com
<2> anyone know much about webhosting here
<0> movAX13h, i am using flash MX, so it's not case sensitive
<0> anyway... it's obvious that all the functions in function playa() are executed and work fine, since the song starts playing
<0> but i have no idea why mysound.duration is undefined
<1> i guess the duration is not available right after the start
<1> trace it in some later point
<0> ok
<0> well, if the duration is not available right after the start, how comes it works fine localy and even online on some computers?
<1> on your local machine it doesnt have to make a dns lookup and no http requests ... so its much faster
<0> so, the question would be: how comes the duration is available right after the start on some computers and on other's it isnt ?
<0> yes, but works fine on some other computers
<1> depends on the connection speed and computer speed
<0> that play the file from the server
<0> checked it yesterday on a low connection and worked fine
<1> things like that come of not coding properly
<1> no offend
<0> none taken
<1> things like mySound and mysound :)
<0> well, since using flash mx, it's no difference
<0> tell me something
<1> why do you request the duration only once?
<1> and not every frame?
<1> in some update_progressbar function
<0> why not? i only request it AFTER the song is loaded completely
<0> so why should i get the same value every frame ?
<1> because you should have all the maths in one place
<1> progressbar.gotoAndStop(Math.round(mySound.position*100/mySound.duration));
<1> if your progressbar has 100 frames
<1> no need for an extra variable
<0> so tell me: if i publish my movie to flash player 6 (highest available player in flash mx) and i test the swf with flash player 8, will there be differences in playing?
<1> no
<0> k
<0> then i am confused
<0> i'll try something
<0> it's not so easy with that progressbr, because it is draggable
<1> progressbar.onPress = function() { this.knob.startDrag(); } progressbad.onRelease = function() { this.knob.stopDrag(); set_new_position(this.knob._x); }
<1> its all babycode...
<1> :)
<1> its not workung but could give you some hints
<1> working*
<1> progressbar.knob._x = (Math.round(mySound.position*100/mySound.duration));
<3> http://ize.badne.ws/doc.mp3 im getting better with fruity loops, this sounds almost like music ;D
<4> how's it goin movAX13h?
<1> i'm fine thanks
<5> how can i make a "pre cent" bar?
<5> like my flash is gonna read my DB and he sees i got score 8/10
<5> i want to animated like it's filling to 8
<5> like generating statastics in a gmae
<3> make it a width of 100 pixels
<3> 8/10 = _xscale 80
<5> yeah that part i understand :E
<1> Math.round(100*(current/8))



<5> but how to make the animation
<5> so it goes like [|| ]
<3> you just have to update it every frame with your percent value
<5> [|
<5> [||
<3> sec
<5> [|||
<5> etc
<1> sanz have one clip where you have the progress
<3> http://newgrounds.com/flash/NewgroundsPreLoader.fla
<3> you can use this a base
<3> easy to understand :)
<5> Aight lemme check ^^
<5> yes but how to do this if nuthing is loading
<5> this goes like checks how much is load
<5> 10 is load --> goto 1 and cycles untill 100
<1> you should start writing complete sentences.
<1> :)
<5> =)
<5> ah i got and idea
<5> make a loop with for
<5> for($i;$i<=8;$i++) { }
<1> sanz this is PHP
<1> for (i=0; i<8; i++) { } <-- this is AS
<5> i am "learing" flash for 1000 years now :P
<5> flash dont got $ infront of a var?
<1> hehe yes.
<1> $ is php only
<5> allota lang gor $
<5> mwah:P
<5> i++ doesnt work :/
<1> hi DJ
<6> helllo babe :D
<1> gaylord.
<6> we make the game :D
<6> hi movAX13h trans :]
<6> ... :}
<1> wich one?
<6> pac man :D
<1> heh
<6> lol ;)
<6> naa just f with ya
<6> a drawning game
<1> ok :)
<6> it's multiplayer flash game one person drawning a picture and others guess what picture it is and that person that first say a good answer will get points
<6> when your draw time is over someone else starts to drawn :}
<1> i know that game
<6> ya i know it to have even a link to it
<6> but it sux some font missing
<6> etc crushesh explorer :/
<1> http://www.isketch.net/isketch.shtml
<6> yep
<6> exacly
<1> thats the game
<1> very cool
<1> but its shockwave... not flash
<6> yea but we wanna amke the game that will have fonts when you log in lol
<6> yea
<6> we wanna try to do some flash one
<6> wanna help ? :}
<1> sorry, have no time :)
<6> bastard :]
<6> ;)
<1> ***bitch.
<6> wow :]
<6> have to wait for k0ma then :]
<1> hehe... 2 losers, 1 game ...
<1> that will be great fun :)
<6> o you bastard...
<1> haha
<1> sorry
<1> was not serious
<6> not giving a f what you say check my new site www.scootertechno.pl


Name:

Comments:

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






Return to #flash
or
Go to some related logs:

cockpony
azureus force decentralized tracking
delphi mediaplayer resource stream
#windows
#hardware
#nhl
I need my space bullshit
#stocks
dovecot Mailbox isn't selectable
#sex



Home  |  disclaimer  |  contact  |  submit quotes