June 11, 2009


Filed under: code, flash, internet, open source, tech, tutorial, web development — bardicknowledge @ 8:50 pm

Well this gave me a bit of a run around, but I have finally (I think) got it all sorted out : red5 running on windows through wamp. This isn’t really that big of a feat but it’s the first time I’ve done something like it and I’d like to explain step by step how to get it working since none of the guides I read held your hand through the whole set up.  So I will ^^

If you don’t know what Red5 is here’s a snippet from Wikipedia that explains the basic idea:

Red5 is considered as a free alternate to Adobe Flash Media Server, and supports many of the same feature sets. It has a few additional feature sets such as the ability to intercept live streams, and the ability to easily plug in other Java libraries such as Hibernate.

So, my first attempt was to use tomcat, but that didn’t work so so well, and since I have a wamp server already running I figured it would be best to use that. After some googling  I found other people that had already done this, on the  Red5 mailing list , here.

Pretty much I’m just gonna copy their nine steps and add my additional comments since their way works, it’s just a little vague though.

  1. Install wamp
  2. Create a directory named “red5-server” into C:\wamp\www
  3. Download and install TortoiseSVN
  4. right-click on C:\wamp\www\red5-server folder and click SVNCheckout
  5. enter  the url from which red5-server will be downloaded :
  6. download ant from the apache software foundation (manage dependencies for compilation)
  7. Extract ant to a folder where ever you want. Just remember it’s path since you will need to add it to your system variables later. I put it at : C:\apache-ant-1.7.1
  8. Download the JDK 6 and install
  9. Add ant and javac.exe to your system’s Path variable (right click on my computer – > Advanced – > Enviroment Variables – > Find variable Path in System Variables and edit. You need to add the path to the javac.exe which is in your JDK installation (default on xp for me : C:\Program Files\Java\jdk1.6.0_14\bin) and the bat files for ant (C:\apache-ant-1.7.1\bin) . Make sure that each variable is separated by a semi colon or it won’t work.)
  10. open a shell on C:\wamp\www\red5-server
  11. just type ant server – if ant is not found your system variables are set up wrong. If during building it says that it can’t find tools.jar where it expected the easiest solution is to find where the tools.jar file is on your pc and copy it to where the ant expects it. If at the end of the build it says it can’t find javac.exe, you either installed the wrong version of java or your system vars are set up wrong.
  12. You can install samples demo via the administration console http://localhost/RED5-server/webapps/installer/index.html

And there ya go -Red5 through your wamp installation.


July 31, 2007

mp3 player – ActionScript

Filed under: actionscript, code, design, flash, internet, music, open source, software, tech, web development, XML — bardicknowledge @ 8:07 am

Hey for anyone that reads this. It has been a little bit, but I have a new code snippet for ya’s. It’s a pretty simple mp3 player that you could easily embedded on a site.

Here’s there script (link). It uses a pretty simple XML also.

<t st=”songtitle” l=”url” a=”artist” />

Give it a whirl. I will be trying to remake it with a slider on the next version and make it smaller.

July 17, 2007

Fade background color in new color : actionscript

Filed under: actionscript, code, design, flash, internet, open source, program, software, tutorial, web development — bardicknowledge @ 9:53 am

Have ya ever wanted to change your background color during runtime using actionscript instead of having a timeline event? Did you by any change want to have it fade from it’s current color to the new color with the click of a button?

Well, if so today’s your lucky day. For a site I’m working on I needed to make the buttons when clicks change the background color, so I set out to do it. The first and pretty much only problem I encountered was when you changed the background it would show the stage background and not the last color showed. So if I click red and then clicked orange I would want it to fade from red to orange. Well what I was getting was red, white, then fade to orange. But after about 15 minutes or so of playing I figured out a way around it.

So anyways, it works now and you can easily change the speed of fade by changing the alpha added to itself. Here’s the link. Hope it’s of some use to ya’s ^_^

July 10, 2007

asfunction – multiple variable update

Filed under: actionscript, internet, open source, software, tech, web development — bardicknowledge @ 11:37 am

So yesterday I wrote an article(link) about how one can expand the usefulness of asfunction using a little script that allows for multiple variables.

Well I just discovered that it doesn’t seem to work when the variable is larger than 1 character. Now this limits it’s usefulness significantly so I am attempting now to rewrite it to handle anything between the special character of choice. The main reason I am rewriting this is because I need it for today. Luckily I am at work for another 3 and a half hours so I *should* be able to complete it today, which case I’ll post it online later.

So if anyone wants to use it, just gimme a few hours, maybe a day and I’ll be back with an update script that you can use.


I’m back with an update! I have fixed the problem and  now you can use the script to pass any many variables that are as long as you like through asfunction! YAY! I hope this is of some use to some people out there. The script is pretty straight forward.  I am going to try to make it a little quick and smaller but I don’t have time at the moment.

That update may come today or tomorrow, but I will let ya’s know when I update the script.

July 9, 2007

asfunction – Use more than one variable!

Filed under: actionscript, design, musings, open source, program, software, tech, tutorial, web development — bardicknowledge @ 10:40 am

So I was trying to use asfunction to pass two variables, well because I needed two. So after a few hours of looking for a pre-existing script to do this or some other way to do it I just do frustrated and wrote my own script that will let me pass (theoretically) as many variables as my heart desires.

It’s a rather simple/small script that plays off how asfunction treats all text after the first comma as a string. So realizing this you can use special characters (I use a comma) to separate your variables. You then pass the single string that contains your vars to a function that searchers for that special char and breaks the string apart and puts your vars into an array.

Get it? Simple, eh?

Anyways, link to source script.

Older Posts »

Blog at