All pastes #986433 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-04-15 20:06 UTC
rendered paste body
package 
	{ 
		import flash.display.MovieClip;
		import flash.text.TextField;
		
		public class charts_as extends MovieClip
		
			{
				public function charts_as ()
				
					{	
						var myDate:dateClass = new dateClass ();
						addChild(myDate);
		
						myDate.x = 152.5;
						myDate.y = 89.8;
						myDate.alpha = 0.23;
																	
					}
			}
			
	}

// read from mysql  ---> where do i put it?

var variables:URLVariables = new URLVariables();
var varSend:URLRequest = new URLRequest("http://192.168.1.3/pam/read_quotes_for_day_xml.php");
var varLoader:URLLoader = new URLLoader;
varLoader.addEventListener(Event.COMPLETE, completeHandler);
function completeHandler(event:Event):void {
   XML.ignoreWhitespace = true;
   var theResult:XML = new XML(event.target.data);
   
   var quote1 = theResult.quote.x1;
   var quote2 = theResult.quote.x2;
   
   // 48 quotes ...
   }
varSend.method = URLRequestMethod.POST;
varSend.data = variables;
variables.date = myDate.Value.text;  // So you're posting the value 'value' from the myDate textbox
varLoader.load(varSend);