# Help with scripting plz ^^

**URL:** <https://forum.kirupa.com/t/help-with-scripting-plz/1986>\
**Category:** Uncategorized\
**Created:** [March 30, 2002, 2:31am UTC](https://forum.kirupa.com/t/help-with-scripting-plz/1986 "2002-03-30T02:31:26Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 30, 2002, 2:31am UTC](https://forum.kirupa.com/t/help-with-scripting-plz/1986/1 "2002-03-30T02:31:26Z")

</div>

ok… i got 12 buttons… 10 buttons are for choosing audiotrack and button no:11 is for loading that track and then play it. button no:12 is just an audio off button. now i only need to know what scripting i should be using on the different buttons… and yes every audiotrack is a single .swf… i also wanna see the audiotrack get downloaded in %… tnx

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 30, 2002, 8:32am UTC](https://forum.kirupa.com/t/help-with-scripting-plz/1986/2 "2002-03-30T08:32:23Z")

</div>

for the selecting buttons, just set a variable, called “url” for example, like button 1 on(release){url=song1.swf;}  
For the 11th one, to load it in, on(release){loadMovie(url,target or level)  
For 12th, unload (url)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 30, 2002, 3:33pm UTC](https://forum.kirupa.com/t/help-with-scripting-plz/1986/3 "2002-03-30T15:33:18Z")

</div>

ok im sure this works but as i said i wanna be able to see the song get downloaded in % aswell… any ideas?  
🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 30, 2002, 4:05pm UTC](https://forum.kirupa.com/t/help-with-scripting-plz/1986/4 "2002-03-30T16:05:19Z")

</div>

I have a MP3 player on my site, I have 35 songs, and all load, but I havent been able to figure out a way to put percents. I wish I could show U but my site is down.

TitrationX

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 31, 2002, 4:36am UTC](https://forum.kirupa.com/t/help-with-scripting-plz/1986/5 "2002-03-31T04:36:25Z")

</div>

well lets jsut say that i use GetBytesLoaded on button 11  
(load audio) any ideas what i should use for scripting on the everything to make it work with % ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 31, 2002, 9:12am UTC](https://forum.kirupa.com/t/help-with-scripting-plz/1986/6 "2002-03-31T09:12:02Z")

</div>

What you’re asking is preloading, right ?  
pom 0]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 31, 2002, 7:20pm UTC](https://forum.kirupa.com/t/help-with-scripting-plz/1986/7 "2002-03-31T19:20:28Z")

</div>

yes preloading each audio.swf into level2…  
the 10 audio buttons is only _arming_ and then u have to press the “load audio” button to actually make it preload the audio track and show the % loaded.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 31, 2002, 11:57pm UTC](https://forum.kirupa.com/t/help-with-scripting-plz/1986/8 "2002-03-31T23:57:28Z")

</div>

gotta be somone in this forum how to make this work ? cmon flash gods!!! show me the power of the dark side 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 1, 2002, 9:07am UTC](https://forum.kirupa.com/t/help-with-scripting-plz/1986/9 "2002-04-01T09:07:50Z")

</div>

I don’t understand the problem. Do you know how to make a preloader ?? If you don’t, I suggest you take a look at the Best of Kirupa forum, and if you do, I really don’t see the trouble. ??

pom 0]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 1, 2002, 11:38pm UTC](https://forum.kirupa.com/t/help-with-scripting-plz/1986/10 "2002-04-01T23:38:17Z")

</div>

well if i did i wouldnt be asking this right ?? the thing isnt just a “preloader” but rather an arming system for those 10 audio buttons… example: u press one of the 10 audio buttons to choose a song, when selected the song u want, u gotta press this button #11 “load audio button”. and its when u press the “load audio button” it should preload the external song.swf and show the loading progress with %.

hope this cleared it up for u…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 3, 2002, 1:29am UTC](https://forum.kirupa.com/t/help-with-scripting-plz/1986/11 "2002-04-03T01:29:04Z")

</div>

isnt there anybody who knows to solve this for me ? plz i need help here…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 3, 2002, 1:31am UTC](https://forum.kirupa.com/t/help-with-scripting-plz/1986/12 "2002-04-03T01:31:30Z")

</div>

isnt there anybody who knows to solve this for me ? plz i need help here…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 3, 2002, 5:37am UTC](https://forum.kirupa.com/t/help-with-scripting-plz/1986/13 "2002-04-03T05:37:12Z")

</div>

If you’re loading the movies separately then each swf file must have it’s own preloader (well maybe not, but that’s the only way I know how to do it. 🙂 )

Check this thread for details about how to build a preloader. Do one and just copy the frames into each new movie.

[pub40.ezboard.com/fkirupa…ID=9.topic](http://pub40.ezboard.com/fkirupafrm24.showMessage?topicID=9.topic)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 3, 2002, 6:25am UTC](https://forum.kirupa.com/t/help-with-scripting-plz/1986/14 "2002-04-03T06:25:17Z")

</div>

check out this url: [www.theory7.com](http://www.theory7.com) in the menu bar to the right they got an music jukebox with 9 different tracks… EXACTLY like that 1 is it that i need help to do… 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 3, 2002, 7:02am UTC](https://forum.kirupa.com/t/help-with-scripting-plz/1986/15 "2002-04-03T07:02:46Z")

</div>

Well, they are definitely loading each separately.

In MX it’s going to be a little different than it has been in the past. I don;t think that I’m going to be able to offer much more than the example below.

How much do you know about the loadMovie(); method?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 3, 2002, 8:14am UTC](https://forum.kirupa.com/t/help-with-scripting-plz/1986/16 "2002-04-03T08:14:56Z")

</div>

I have a movieclip that shows the percentage loaded for a certain target. And if you load different movies into the target it shows ther percentage loaded for them. And when it hits 100% or has already been loaded before it says “loaded”. I didn’t know this was that hard to do…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 3, 2002, 8:24am UTC](https://forum.kirupa.com/t/help-with-scripting-plz/1986/17 "2002-04-03T08:24:16Z")

</div>

cool…

actually when I was writing that above I was kind of thinking how silly it was to say that each separate movie would have to have it’s own preloader. The getBytesLoaded, will work on an object just as well as any timeline that it’s located in.

Sorry to be misleading there.

Definitely I think that is one of the pieces that this gentlemen is looking for.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 3, 2002, 10:41am UTC](https://forum.kirupa.com/t/help-with-scripting-plz/1986/18 "2002-04-03T10:41:57Z")

</div>

sounds great! u think u could send me that .fla so i can check it out ? [believe@bonetmail.com](mailto:believe@bonetmail.com) … but also ? doesnt i need to make like an arming system for the “select song” buttons ? i mean u first press the song u want, and then u press that “load audio” button to make it actually load the song… any ideas of how it should be written? and tnx guys… 🙂
