Be a Supporter!
Response to: Javascript problem.. Posted November 23rd, 2010 in Programming

I have found away around it. NOT A FIX.

The problem seems to be caused by the 'about' variable being passed in the xmlhttp.open
i do not know if this is as there is a lot of information and there is a 'limit' on the about of text that can be sent though one variable.

So the way around it was to remove the about variable...

So as i said its NOT a fix as i know can not update the about information but i shall just leave it....

Response to: Javascript problem.. Posted November 23rd, 2010 in Programming

BUMP

Update i have worked out the problem seems to be caused with this line of code:

xmlhttp.open("GET",membersave+id+"&about="+about+"&firstname="+firstname+"&lastname="+lastname+"&email="+email+"&username="+username+"&pass="+pass+"&repass="+repass+"&resetpass="+resetpass+"&day="+day+"&month="+month+"&year="+year+"&resetimg="+resetimg+"&admin="+admin+"&type=edit",true);

If i replace the above line of code with:

xmlhttp.open("GET",membersave+id+"&about=",true);

It all works but nothing is then passed onto the external page...

any ideas??

Javascript problem.. Posted November 21st, 2010 in Programming

Hello all,

Now this is going to be a complex one to explain but sure if you stick with it you might be able to help.

OK so i am trying to get a form to save with out refreshing the page.

var membersave			= '../script/member_save.php?id=';
function MEMBER_Save() {
	var id = document.getElementById('mem_id').value;
	var about = document.getElementById('mem_about').value;
	var firstname = document.getElementById('mem_firstname').value;
	var lastname = document.getElementById('mem_lastname').value;
	var email	= document.getElementById('mem_email').value;
	var username = document.getElementById('mem_username').value;
	var pass	 = document.getElementById('mem_password').value;
	var repass  = document.getElementById('mem_repassword').value;
	var day	= document.getElementById('mem_day').value;
	var month	= document.getElementById('mem_month').value;
	var year	= document.getElementById('mem_year').value;
		
	var resetpass = "off";
	if(document.member_editform.mem_reset_pass.checked == true){
		resetpass = "on";
	}else{
		resetpass = "off";
	}	
	
	var resetimg = "off";
	if(document.member_editform.mem_reset_image.checked == true){
		resetimg = "on";
	}else{
		resetimg = "off";
	}
	
	var admin = "off";
	if(document.member_editform.mem_admin.checked == true){
		admin = "on";
	}else{
		admin = "off";
	}
	
	if (window.XMLHttpRequest){// code for IE7+, Firefox, Chrome, Opera, Safari
		  xmlhttp=new XMLHttpRequest();
	}else{// code for IE6, IE5
		  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}
		xmlhttp.onreadystatechange=function(){
		if (xmlhttp.readyState!=4 || xmlhttp.status!=200){
			    document.getElementById("mem_saving").innerHTML="<img src="+LoadImage+">";
				setTimeout('errorloading(\'mem_saving\')',5000);
			}
		  if (xmlhttp.readyState==4 && xmlhttp.status==200){
			document.getElementById("mem_saving").innerHTML="";
		    var reply = xmlhttp.responseText;
			MEMBER_Reload(id,reply);
		    }
		  }
		xmlhttp.open("GET",membersave+id+"&about="+about+"&firstname="+firstname+"&lastname="+lastname+"&email="+email+"&username="+username+"&pass="+pass+"&repass="+repass+"&resetpass="+resetpass+"&day="+day+"&month="+month+"&year="+year+"&resetimg="+resetimg+"&admin="+admin+"&type=edit",true);
		xmlhttp.send();
}

To sum up the above it pulls all information from the form using the IDs then sends it to another page using GET.

This all works 100% fine on my computer but uploading online i just get the loading image going around and around.

I wonder if anyone knows of any reason why this would not work online? such as something is not set correctly on the server

Any help.

Thank you

Response to: AS3 visualization - Not working... Posted July 23rd, 2010 in Game Development

Sorry for another post.

I have just tested online and all works fine.

Thank you

My advice to you is to only grab music hosted on the same domain as your SWF.

Response to: AS3 visualization - Not working... Posted July 23rd, 2010 in Game Development

@Archawn thanks for your help but im not using newgrounds to get my sound.

but i have done some testing and worked out that if in flash compiler i try and get a file from a url such as:

http://mywebsite.com/mysong.mp3

it works fine in flash compiler.

But if i try the same song in a browser the Visualization fail to work.

So you are right it is something to do with getting audio from another server.

but im just hoping this is not the problem when working online...


Hello,

I been making a music player and have just about finished it,
and i have now published it and viewed in a browser and the
visualization does not show? but everything else does?

can anyone give me maybe a reason why it would not work?

Eli Stone

Response to: AS3 - Trying to get Sound.length Posted July 21st, 2010 in Game Development

At 7/20/10 02:35 PM, Nano256 wrote: Nevermind, I see you did. But ~sigh~ you just traced soundLength variable, the value you stored BEFORE it loaded. You need to trace sound.length in that Event.COMPLETE listener.

Sorry for posting the whole thing, and sorry for being a little bit noobie :)

but thanks for your help :)

all fix

Finished code:

sound.addEventListener(Event.COMPLETE, findsongLength);

function findsongLength(event:Event)
{
	songLength = sound.length;
	trace(songLength);
}
Response to: AS3 - Trying to get Sound.length Posted July 20th, 2010 in Game Development

At 7/20/10 11:30 AM, Nano256 wrote:
At 7/20/10 10:47 AM, captinx wrote: it does not make any difference,
and seeing as i am running it off my computer there should be no time delay in loading (i think)
Oh, well, I'm still sure that it has to take some time to grab it. Post the code you tried on my behalf.

well before i shorted the code down just for the bit that i thought was the problem.

here is the whole code:

import flash.events.MouseEvent;
import flash.events.Event;
import flash.media.Sound;
import flash.net.URLRequest;
import flash.media.SoundLoaderContext;
stop();
//number that is redefined when the pause button is hit
var pausePoint:Number = 0.00;
//a true or false value that is used to check whether the sound is currently playing
var isPlaying:Boolean;
//is looping on/off?
var loopOn:Boolean;
var urlID:Number;
var artID:Number;
var songID:String;
var artistID:String;
var songLength:Number;


if (root.loaderInfo.parameters.urlID != undefined)
{
	urlID = root.loaderInfo.parameters.urlID;
}
else
{
	urlID = 1000000000000;
}
if (root.loaderInfo.parameters.artID != undefined)
{
	artID = root.loaderInfo.parameters.artID;;
}
else
{
	artID = 1000000000000;
}
if (root.loaderInfo.parameters.artistID != undefined)
{
	artistID = root.loaderInfo.parameters.artistID;;
}
else
{
	artistID = "Error";
}
if (root.loaderInfo.parameters.songID != undefined)
{
	songID = root.loaderInfo.parameters.songID;;
}
else
{
	songID = "File not found.";
}
trace("urlID: "+urlID);
trace("artID: "+artID);
trace("artistID: "+artistID);
trace("songID: "+songID);

// FONT STYLES AND BOX PLACEMENT
var myFormat:TextFormat = new TextFormat();
myFormat.size = 12;
myFormat.align = TextFormatAlign.CENTER;
var SongTitle:TextField = new TextField();
SongTitle.defaultTextFormat = myFormat;
SongTitle.text = artistID + " - " + songID;
addChild(SongTitle);
SongTitle.border = false;
SongTitle.wordWrap = true;
SongTitle.width = 500;
SongTitle.height = 16;
SongTitle.x = 0;
SongTitle.y = 219;
SongTitle.background = true;
SongTitle.backgroundColor = 0x5c7fa0;
// FONT STYLES AND BOX PLACEMENT

// LOAD ALL SOUND SYSTEM AND GRAPHICS
//think of the soundchannel as a speaker system and the sound as an mp3 player
var url:String = "xxxxxxxxxxxxxxxxxxxxxxxx";// URL of the song
var soundChannel:SoundChannel = new SoundChannel();
var sound:Sound = new Sound();
sound.load(new URLRequest(url));
sound.addEventListener(Event.SOUND_COMPLETE, soundCompleteHandler);
var ba:ByteArray = new ByteArray();
// LOAD ALL SOUND SYSTEM AND GRAPHICS
songLength = sound.length;

// LOADS IMAGE IN
var imageLoader:Loader = new Loader();
imageLoader.load(new URLRequest("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"));
imageLoader.contentLoaderInfo.addEventListener(Event.INIT, loadComplete);

function loadComplete(event:Event):void
{
	addChildAt(imageLoader, 0);
	imageLoader.width = 500;
	imageLoader.height = 235;
	imageLoader.x = 0;
	imageLoader.y = 0;
}
// LOADS IMAGE IN



//Play and stop event buttons
xstop.addEventListener(MouseEvent.CLICK, clickStop);
xplay.addEventListener(MouseEvent.CLICK, clickPlayPause);
xloop.addEventListener(MouseEvent.CLICK, clickLoop);
addEventListener(Event.ENTER_FRAME,findSongPosition);
sound.addEventListener(Event.COMPLETE, findsongLength);

soundChannel = sound.play();
isPlaying = true;
loopOn = false;

// finds were the song is at the moment
function findSongPosition(event:Event)
{
	var songPostion = soundChannel.position;
	var rounded1 = Math.round(songPostion) / 1000;
	var rounded2 = Math.floor(rounded1);
	xtimeleft.text = rounded2;
	//trace(songLength); cant find song length
}

// finds songlength
function findsongLength(event:Event)
{
	trace(songLength);
}

// The visualization is drawn into a sprite named gr
var gr:Sprite = new Sprite();
gr.x = 0;// move visualization left
gr.y = 100;// move visualization up down
addChild(gr);

//The timer is set to fire every 50 milliseconds. Feel free to change the number to see what happens.
var time:Timer = new Timer(50);
time.addEventListener(TimerEvent.TIMER, timerHandler);
time.start();

//What happens when the audio starts;
function completeHandler(event:Event):void
{
	// you could load the images and such in here if you want.
	//event.target.play();
}

//The timer is turned off when the end of the audio file is reached
function soundCompleteHandler(event:Event):void
{
	trace("SongEnd...");
	if (loopOn)
	{
		// play from start
		pausePoint = 0.00;
		soundChannel = sound.play(pausePoint);
	}
	else
	{
		time.stop();
	}
}

function timerHandler(event:TimerEvent):void
{
	// Change the true parameter in computeSpectrum to false to have bouncing bars above and below the line.
	//Change the color of the bars by changing the color of the lineStyle and the beginFill methods.
	// Make the box bigger by changing the 2 in var w:uint to a larger number
	// If the object is being used as a mask the stroke and the fill will be ignored.
	SoundMixer.computeSpectrum(ba, false);
	var i:int;
	gr.graphics.clear();
	gr.graphics.lineStyle(0, 0x5c7fa0);
	gr.graphics.beginFill(0x5c7fa0);
	gr.graphics.moveTo(0, 0);
	var w:uint = 2;
	for (i=0; i<512; i+=w)
	{
		var t:Number = ba.readFloat();
		var n:Number = (t * 100);
		gr.graphics.drawRect(i, 0, w, -n);
	}
}

// pause and play event;
function clickPlayPause(evt:MouseEvent)
{
	if (isPlaying)
	{
		pausePoint = soundChannel.position;
		soundChannel.stop();
		isPlaying = false;
	}
	else if (!isPlaying)
	{
		soundChannel = sound.play(pausePoint);
		isPlaying = true;
	}
}
// stop event
function clickStop(evt:MouseEvent)
{
	if (isPlaying)
	{
		soundChannel.stop();
		isPlaying = false;
	}
	pausePoint = 0.00;
}
// loop function turns on and off
function clickLoop(evt:MouseEvent)
{
	if (loopOn)
	{
		loopOn = false;
		trace(loopOn);
	}
	else if (!loopOn)
	{
		loopOn = true;
		trace(loopOn);
	}
}

// this is a bit complicated, but I will try to explain anyway.  
// first we make a rectangle and set its width to 100.  
var rectangle:Rectangle = new Rectangle(0,0,50,0);

// then we need a varible to check if the handle is being dragged.  
var dragging:Boolean = false;

// the eventlistener for startdragging  
volume_mc.mySlider_mc.addEventListener(MouseEvent.MOUSE_DOWN, startDragging);
function startDragging(event:Event):void
{

	// here we tell flash the margin on where it should be able to drag, (remember 100 pixels back and forth)  
	volume_mc.mySlider_mc.startDrag(false,rectangle);
	dragging = true;

	// This is very important, an eventlistener so we can change the volume, not only make it look good.  
	volume_mc.mySlider_mc.addEventListener(Event.ENTER_FRAME, adjustVolume);
}

// well here is the adjust volume function, its not that complicated  ;
function adjustVolume(event:Event):void
{

	// we make a variable to calculate the volume from the slider handle position and divide it by 100  
	var myVol:Number = volume_mc.mySlider_mc.x / 50;
	// then we set it with the mySoundTransform  
	var mySoundTransform:SoundTransform = new SoundTransform(myVol);
	if (soundChannel != null)
	{
		soundChannel.soundTransform = mySoundTransform;
	}
}

// and of cause the stop draggin function, I dont feel the need to explain it.  
stage.addEventListener(MouseEvent.MOUSE_UP, stopDragging);
function stopDragging(event:Event):void
{
	if (dragging)
	{
		dragging = false;
		volume_mc.mySlider_mc.stopDrag();
	}
}

xD

Response to: Medals Aren't Showing On Game Page Posted July 20th, 2010 in Game Development

Might be as your not very nice to people on the forums, your browser or even computer thinks that you don't deserve a medal?

Response to: AS3 - Trying to get Sound.length Posted July 20th, 2010 in Game Development

it does not make any difference,
and seeing as i am running it off my computer there should be no time delay in loading (i think)


Hi,

Im new to AS3 and am struggling to try and get the .length on my sound to work.

when i run the music play it trace's out what the .length is.

All i get is: 0

Here the code i am trying:

// LOAD ALL SOUND SYSTEM 
var url:String = "xxxxxxxxxxxxxxxxxx"; // URL of the song this is correct on my PC
var soundChannel:SoundChannel = new SoundChannel();
var sound:Sound = new Sound();
sound.load(new URLRequest(url));
songLength = sound.length;
// LOAD ALL SOUND SYSTEM 

addEventListener(Event.ENTER_FRAME,findSongPosition); 

soundChannel = sound.play();
isPlaying = true;
loopOn = false;

// finds were the song is at the moment
function findSongPosition(event:Event) {  
var songPostion = soundChannel.position;
var rounded1 = Math.round(songPostion)/1000;
var rounded2 = Math.floor(rounded1);
	xtimeleft.text = rounded2;
//	trace(songLength); cant find song length
}

So i can find where i am in the song but not the end, all i get is 0.

What am i doing wrong?

Place help thank you.

Eli Stone

Response to: AS3 Image load Posted July 20th, 2010 in Game Development

Thank you very much :)

have a nice day.

Eli

AS3 Image load Posted July 20th, 2010 in Game Development

Hi,

I am really new to AS3 and am finding it much harder to understand and use.

I am trying to get an image to be loaded in and resized and sent to the back so that everything else is on top of it.

now here is the code i am using:

// LOADS IMAGE IN
var imageLoader:Loader = new Loader();
var image:URLRequest = new URLRequest("http://www.blueidea.com/articleimg/2006/08/3904/images/image-2.jpg");
imageLoader.load(image);
addChild (imageLoader);
imageLoader.x = 0;
imageLoader.y = 0;
//imageLoader.width = 500; this does not work
//imageLoader.height = 260  this does not work
// LOADS IMAGE IN

So everything loads fine but the image is at the front of the screen so you can not see anything behind it, and it does not resize.

Please help thank you very much

Eli Stone

Response to: Php Make Images Like Wiki. Posted June 19th, 2010 in Programming

Problem has been solved, need to re-assign "$WhereImage_Start" and "$WhereImage_End"

function findImage($string){
/* The Var's */
	$Image_found 		= false;
	$ImageName 			= array();
	$mystring			= $string;
	$Image_Start   		= '[[Img:';
	$Image_End   		= '/Img]]';
/* The Var's */
/* Find if the Img tags are there */
	$ImageCount1 		= substr_count($mystring, $Image_Start);
	$ImageCount2		= substr_count($mystring, $Image_End);
/* Find if the Img tags are there */
/* Find out where they are */
	$WhereImage_Start 	= strpos($mystring, $Image_Start);
	$WhereImage_End 	= strpos($mystring, $Image_End);
/* Find out where they are */
/* If the counts equal the same continue */
if($ImageCount1 == $ImageCount2){
if ($WhereImage_Start !== false && $WhereImage_End !== false) {
		$Image_found = true;
	}
/* Start the loop */
if($ImageCount1 >= 1 && $Image_found == true){
	for($i=0;$i<$ImageCount1;$i++){
		$WhereImage_Start 	= strpos($mystring, $Image_Start);
		$WhereImage_End 	= strpos($mystring, $Image_End);
		$Find_image = substr($mystring, $WhereImage_Start+6, ($WhereImage_End-6)-$WhereImage_Start);
		$replace = IMG_LINK."/$Find_image";
		$search = "$Image_Start$Find_image$Image_End";
		$mystring = str_replace($search, $replace, $mystring);
	}
/* End the loop */
/* Return new string */
	echo $mystring."<br/></br>";
}
}else{
/* Error Return start string*/
	echo $mystring;	
}
}
Php Make Images Like Wiki. Posted June 19th, 2010 in Programming

Hi,

So im trying to make a php function that turns [[Img:testimage.png/Img]] to and url to the image.

e.g.
from: [[Img:testimage.png/Img]]
To: http://localhost/~eli/MusicSite/image/bg .png

$string="Change this to an URL [[Img:testimage.png/Img]] And this one [[Img:testimage1.png/Img]]";

function findImage($string){
/* The Var's */
	$Image_found 		= false;
	$ImageName 			= array();
	$mystring			= $string;
	$Image_Start   		= '[[Img:';
	$Image_End   		= '/Img]]';
/* The Var's */
/* Find if the Img tags are there */
	$ImageCount1 		= substr_count($mystring, $Image_Start);
	$ImageCount2		= substr_count($mystring, $Image_End);
/* Find if the Img tags are there */
/* Find out where they are */
	$WhereImage_Start 	= strpos($mystring, $Image_Start);
	$WhereImage_End 	= strpos($mystring, $Image_End);
/* Find out where they are */
/* If the counts equal the same continue */
if($ImageCount1 == $ImageCount2){
if ($WhereImage_Start !== false && $WhereImage_End !== false) {
		$Image_found = true;
	}
/* Start the loop */
if($ImageCount1 >= 1 && $Image_found == true){
	for($i=0;$i<$ImageCount1;$i++){
		$Find_image = substr($mystring, $WhereImage_Start+6, ($WhereImage_End-6)-$WhereImage_Start);
		$replace = IMG_LINK."/$Find_image";
		$search = "$Image_Start$Find_image$Image_End";
		$mystring = str_replace($search, $replace, $mystring);
	}
/* End the loop */
/* Return new string */
	echo $mystring."<br/></br>";
}
}else{
/* Error Return start string*/
	echo $mystring;	
}
}

findImage($string);

This is what the function returns:
Change this to an URL http://localhost/~eli/MusicSite/image/te stimage.png And this one [[Img:testimage1.png/Img]]

Now this is not right it should have done both of them, but i can not get it two do more then one.

Please can someone explain and help me to get it to do as many Img tags as there are.

Thanks for any help
Eli Stone

flash visualization *Help* Posted March 25th, 2010 in Game Development

Hey,

I am having a little problem.
I am using the flash SoundMixer.computeSpectrum.

to make a flash visualization for my music player.
It all works inside flash.

but if i run it on the internet the visualization does not show up can anyone help with this?

AS3 CODE:

stage.showDefaultContextMenu = false; // stops right click.
// defines vars
var my_songs:XMLList;
var my_total:Number;
var slc:SoundLoaderContext = new SoundLoaderContext(10000);// buffer waits untill loaded 10seconds

var my_sound:Sound;
var my_channel:SoundChannel;

var current_song:Number = 0;

var song_position:Number;
var song_paused:Boolean;

var ba:ByteArray = new ByteArray(); // byte array for viz

//Loads XML

var myXMLLoader:URLLoader = new URLLoader();
myXMLLoader.load(new URLRequest("song.xml"));
myXMLLoader.addEventListener(Event.COMPLETE, processXML);// porcessXML
addEventListener(Event.ENTER_FRAME, viz); // runs viz 


// process function
function processXML(e:Event):void {
	var myXML:XML = new XML(e.target.data);

	my_songs = myXML.SONG;
	my_total = my_songs.length();

	playSong(0);

	myXMLLoader.removeEventListener(Event.COMPLETE, processXML);
	myXMLLoader = null;

}

// play songs function
function playSong(mySong:Number):void {
	var myTitle = my_songs[mySong].@TITLE;
	var myArtist = my_songs[mySong].@ARTIST;
	var myURL = my_songs[mySong].@URL;
	var myAlbumArt = my_songs[mySong].@ALBUMART;


	title_txt.text = myTitle;
	artist_txt.text = myArtist;
	scrollBar.tscroll_txt.text = "Title: "+myTitle;
	scrollBar.ascroll_txt.text = "Artist: "+myArtist;
	
	if (my_channel) {
		my_channel.stop();
	}

	my_sound = new Sound();
	my_sound.load(new URLRequest(myURL), slc);
	my_channel = my_sound.play();
	loadImage(myAlbumArt);
}


// pause btn.
pause_btn.addEventListener(MouseEvent.CLICK, onPause);
function onPause(e:MouseEvent):void {
	if (my_channel) {
		song_position = my_channel.position;
		my_channel.stop();
		song_paused=true;
		pause_screen.gotoAndStop(2);
	}
}


// play btn
play_btn.addEventListener(MouseEvent.CLICK, onPlay);
function onPlay(e:MouseEvent):void {
	if (song_paused) {
		my_channel = my_sound.play(song_position);
		song_paused=false;
		pause_screen.gotoAndStop(1);
	} else if (!my_channel) {
		playSong(current_song);
	}
}



//---VOLUME SLIDER---//
var dragging:Boolean = false;
var rectangle:Rectangle = new Rectangle(0,0,100,0);
volume_mc.slider_mc.addEventListener(MouseEvent.MOUSE_DOWN, dragIt);
stage.addEventListener(MouseEvent.MOUSE_UP, dropIt);

function dragIt(e:Event):void
{
	volume_mc.slider_mc.startDrag(false,rectangle);
	dragging = true;
	volume_mc.slider_mc.addEventListener(Event.ENTER_FRAME, adjustVolume);
}

function dropIt(e:Event):void
{
	if (dragging)
	{
		volume_mc.slider_mc.stopDrag();
		dragging = false;
	}
}

function adjustVolume(e:Event):void
{
	var vol:Number = volume_mc.slider_mc.x / 100
	var st:SoundTransform = new SoundTransform(vol);
	if (my_channel != null)
	{
		my_channel.soundTransform = st;
	}
}



//--- LOAD ALBUM ART---//
var imageLoader:Loader;
function loadImage(url:String):void {
// Set properties on my Loader object
imageLoader = new Loader();
imageLoader.load(new URLRequest(url));
imageLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imageLoading);
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);

}
 
function imageLoaded(e:Event):void {

// Load Image
imageArea.addChild(imageLoader);

}
 
function imageLoading(e:ProgressEvent):void {	
var loadedPercentage:Number = (e.bytesLoaded / e.bytesTotal) * 100;
imageArea.LBI.text = "Loading Album Art....";
if (loadedPercentage == 100 ) {
imageArea.LBI.text = "";
}
}


// viz grafics
function viz(e:Event):void
{
	graphics.clear();
	graphics.beginFill(0x8da6c3,1);
	graphics.moveTo(-1, 130);
	SoundMixer.computeSpectrum(ba);
	for(var i:uint=0; i<256; i++)
	{
		var num:Number = -ba.readFloat()*90 + 130;
		graphics.lineTo(i*2, num);
	}
	graphics.lineTo(460, 260);
	graphics.lineTo(0, 260);
	graphics.lineTo(-1, 130);
}

HTML EMBED CODE

<object height="260" width="460" title="Music Player" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param value="/swf/mp3player.swf" name="movie"/>
<param value="high" name="quality"/>
<embed height="260" width="460" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" quality="high" src="/swf/mp3player.swf"/>
</object>

Thanks for any help
Eli

Response to: AS2 Help Please Posted May 28th, 2009 in Game Development

Thanks guys for your fast replys.

They all worked fine :)

AS2 Help Please Posted May 28th, 2009 in Game Development

Hi,

I am making a game don't really need to go into much detail about the game but im trying to make a wall that if the player (its a square)

is bigger than i certain height wont be able to go thought then when it becomes bellow the height it can go thought it.
so here is the AS2

onClipEvent (enterFrame) {
	if (this.hitTest(_root.player1 && _root.player1._height>13)) {
		
_root.player1._x -= _root.player1.Pspeed;

	} else {

	}
}

so its the normal hitTest thing and it works fine if you remove the "&& _root.player1._height>13" but im not sure if thats how you are ment to write it out for the height.

Thanks
Eli

Response to: Boundaries Errors?! Posted May 27th, 2009 in Game Development

At 5/27/09 01:50 PM, Yambanshee wrote: try:

onClipEvent (enterFrame) {
if (this.hitTest(_root.player1)) {
_root.player1._y += _root.player1.Pspeed;
}
}

hi,

No the code it self works fine.
but basically the code is on too different movie clips works on one but no the other and i dont understand why.

Boundaries Errors?! Posted May 27th, 2009 in Game Development

*POSTED IN WRONG PLACE BEFORE*

Hi,

making a flash game which in needs boundaries that can be easy moved and changed around for each level.

Now i did the coding my self. Instead of having the boundaries on the "player" it self i put it on the boundaries,
Which in my head means that i can move them where i want n the "player" should still not be able to go though them.
This is the code i used:

onClipEvent (enterFrame) {
	if (this.hitTest(_root.player1)) {
	_root.player1._x += _root.player1.Pspeed;
	}
}

This is only for the left wall. and works fine.
But if i copy that "Wall/boundarie" and past it just bellow with the same code looks and everything. The top one still works but the 2nd one does not.

Im not sure why? is it cuz to things can have the same code? but i done it before for the coins that seems to work fine.

can somone explain how to fix this and tell me what i am doing wrong.
Thanks
Eli

Boundaries Problems?! Posted May 27th, 2009 in Programming

hi,

making a flash game which in needs boundaries that can be easy moved and changed around for each level.

Now i did the coding my self. Instead of having the boundaries on the "player" it self i put it on the boundaries,
Which in my head means that i can move them where i want n the "player" should still not be able to go though them.
This is the code i used:

onClipEvent (enterFrame) {
	if (this.hitTest(_root.player1)) {
		_root.player1._x += _root.player1.Pspeed;

	}
}

This is only for the left wall. and works fine.
But if i copy that "Wall/boundarie" and past it just bellow with the same code looks and everything. The top one still works but the 2nd one does not.

Im not sure why? is it cuz to things can have the same code? but i done it before for the coins that seems to work fine.

can somone explain how to fix this and tell me what i am doing wrong.
Thanks
Eli

New Music Video Posted May 19th, 2009 in General

Hey Me and sum mates made a music video.

It be good you you people would take a look tell us what you think.

And hope you enjoy.

The Ding Dong Song CLICK HERE

Thanks
Eli Stone

Response to: Voice Actor Wanted Posted May 18th, 2009 in Audio

Still looking for male voice part only for a few lines to go in a short animation.

In Bold are the lines that need to be done.

Please PM me if your interested

Thank you
-------------------------------------

Male: Is she still looking at me?

Female: (sigh) ahhhhhh (romantic love way.)
*Male Looks a Female Confused*

Female: (utring under breath) i love i love i love i love.
Male: Sorry are you talking to me? (confused)

*Female blob pops and disappears*

Male: (shocked) Where she gone?! (looks around)

*Female Blob pops back above his head*
Male: (still Shocked) oh no.... (in a depressing tone)

Female: Hello :) (really happy and cute)

Male: (sigh)

End.

------------------------------------

Response to: Voice Actor Wanted Posted May 10th, 2009 in Audio

Male and Female Voice wanted. To play blob like characters for a short flash animation for school.
Male: young voice playing mainly confused or shocked.
Female: young voice playing in love not as big vocal part.
PM me or Email

Sorry i posted this in a new topic before i did not mean to do that.
Thanks

Voice Actor Wanted

Response to: Try Honesty Collab Posted February 16th, 2008 in Game Development

At 2/15/08 08:50 AM, Lard-lad wrote: lookin nice, captainx

Thanks

----------------------------------------
------------

i have started to color it in i was wondering if i should color it in or leave it as just lines? i leave links to both versions bellow. All answers welcome.

In Color

Just Lines

Just to Remind none of them are finished

Thanks
-Eli

Response to: Try Honesty Collab Posted February 13th, 2008 in Game Development

okie good good, might be done sooner than i thought thou

here is what i have so far. (its on my site thingee)

Part 20 By Eli Not finished yet

Response to: Try Honesty Collab Posted February 13th, 2008 in Game Development

how long do we have left to do it?

cus im doing it FBF so might take abit... but should look good :D

Response to: Try Honesty Collab Posted February 12th, 2008 in Game Development

hay i would like to take part 20 if i may :D

thankzz

Response to: Xmas Game Collab 07 Posted December 5th, 2007 in Game Development

hay this sounds good i try and see what i can do :D

got to think of a good idea yay :D

Response to: test a game Posted July 23rd, 2007 in Game Development

okie i just looked at it and its well prity bad need 2 get a nicer layout and maby more point to the game..add sum extra bits 2 it i dono sum more fun things...