Jump to content

Simple Looper Tutorial


Guest Symatic

Recommended Posts

How To Make A Looper With Macromedia Flash - by DJ Symatic

 

This tutorial assumes you have a basic knowledge of Macromedia Flash. It does not cover creating and editing images, but I tend to do that in Photoshop and import everything into Flash once I'm done.

 

 

1: start a new document.

 

2: import a background image.

 

3: import your sounds to library as .WAV or .AIFF. (file > import > import to library)

 

4: right-click on individual sound in the library window. select "linkage"

 

Select "export for actionscript" and "export in first frame". Give the sound an ID (eg: if your sound is called "mysound3" then give it an ID as "mysound3ID")

 

5: create a button. (draw a shape or import an image, then right-click on it, select "convert to symbol", select "button" and give it a name.

 

TIP: you can make invisible buttons, which are useful if you just have a background image and you don't want to add other images all over it. (eg, your image is a picture of lots of people, and you want to click on each of their faces to start each audio loop.) To make a button invisible you click on the button once, and in its properties panel (at the bottom of the screen) you select the drop down menu called "colour", select "alpha" and set it to zero.

 

 

6: right-click your button, and select "actions". a window will open and you can paste the following bit of code into it.

 

 

 

 

on (press) {

 

looperSound.stop()

looperSound = new Sound(this);

looperSound.attachSound("xxxxxxxx");

looperSound.start(0, 9999);

 

}

 

 

 

 

7: replace the bit of code that says "xxxxxxxx" with the ID tag of the audio loop you want to play with this button. (eg: mysoundID)

 

8: make a stop button. all you need to do is make another button just like the others, except the code you put in looks like this:

 

 

 

 

on (press) {

 

looperSound.stop()

 

}

 

 

 

 

9: Go to file>publish settings. click on the "flash" tab, and click on "set" right next to "audio stream". Set bitrate to maximum and quality to "best". You can convert stereo to mono to save you space when you upload the file.

Click on "set" next to "audio event" and put the same settings in.

 

10: Click on publish and you're done!

  • Like 2
Link to comment
Share on other sites

  • 8 months later...

8: make a stop button. all you need to do is make another button just like the others, except the code you put in looks like this:

 

 

on (press) {

 

looperSound.stop()

 

}

 

 

do you know how to make a stop button stop the playing loop but also play a 'one-off' sound at the same time? Thanks

Link to comment
Share on other sites

Guest Symatic

not sure i'm afraid.

 

i just googled stuff and gradually figured it out. i know sweet FA about actionscript coding!

 

 

I'm guessing here, but you may be able to write this :

 

on (press) {

 

looperSound.stop()

looperSound = new Sound(this);

looperSound.attachSound("xxxxxxxx");

looperSound.start();

 

}

 

 

and replace 'xxxxxxxx' with the ID of your stop sound. i just removed the numbers after the 'loopersound.start(0,9999)' so it wont loop, it should just play a sound once.

 

as i said i dont know though, i'd check on google.

 

good luck!

Link to comment
Share on other sites

not sure i'm afraid.

 

i just googled stuff and gradually figured it out. i know sweet FA about actionscript coding!

 

 

I'm guessing here, but you may be able to write this :

 

on (press) {

 

looperSound.stop()

looperSound = new Sound(this);

looperSound.attachSound("xxxxxxxx");

looperSound.start();

 

}

 

 

and replace 'xxxxxxxx' with the ID of your stop sound. i just removed the numbers after the 'loopersound.start(0,9999)' so it wont loop, it should just play a sound once.

 

as i said i dont know though, i'd check on google.

 

good luck!

 

that did it Sy, simple when you think about it. it's just playing a .wav but not looping it over and over. thanks

Link to comment
Share on other sites

yeah that worked, nearly doubled the file size from 6MB to 10MB for whatever reason. Also made the hyperlink work properly (not sure why though.)

 

The hyperlink was pretty easy to make, just enter the following script in the action properties for a button or image or whatever:

 

 

on (release) {

getURL("http://www.digitalvertigo.co.uk");

}

Link to comment
Share on other sites

  • 4 years later...

Now that Macromedia flash is no longer available on the mac. Is there any mac tool for making loopers? Thanks!

You could make it in HTML5 and use Hype3

No experience with Hype3, but i was looking at it about 5 minutes ago for other reasons hahaha

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...