Jump to content

hansolo

Members
  • Posts

    214
  • Joined

  • Last visited

Everything posted by hansolo

  1. The browswer is only echo out the php which is dslpayed here "&pageID=29" and the code is told to echo this which is imilar to print echo =" &pageID=29" The issue is not the php think. i dont think it the path either. i think the code i wrote before with clip event . As uploading path from a external text editor has been successful . When i uploaded the code with text editor. I had create a variable then load then check the load and then output this to dynamic text box with the path of the text editor . All this hon in the example below. ( i still do have a problem of how is this is possible with a php file http://fav.me/d5rool3
  2. I see the code in the browser. I have wrrote a couple of different php files and i dont have problem loading an external file text fie . As shown below. Later today i tell you exactly what read in the browser by the php file . I dont have access till later tonight as at work.. cheers var myLoadVars:LoadVars = new LoadVars; //loads the path of the file myLoadVars.load("test.txt"); //creates a function if file loads boolean if success myLoadVars.onLoad = function(success:Boolean){ if(success){ // loads the external text file titled homeText in the text editor // in the dynamic text box named "dynamicTextBox" dynamicTextBox.text =this.homeText; } }
  3. this code you have sent below also i will load an external txt file. I can do that already in flash as2. I still wont be able to load the php file if its as2 or as3 . Thats the issue so how would i load the php file with this text I can load a text file in as3. I still can load the php file so im in the same position var myTextLoader:URLLoader = new URLLoader();myTextLoader.dataFormat=URLLoaderDataFormat.VARIABLES;myTextLoader.addEventListener(Event.COMPLETE, onLoaded);function onLoaded(e:Event):void {trace(e.target.data.myTitle);trace(e.target.data.myBody);trace(e.target.data.myURL);}myTextLoader.load(new URLRequest("myText.txt")); /____________________________________
  4. yes it is php code the php is not the issue. The php is correct as load http://localhost/myfile.php . it loads the issue is not loading into flash but not showing in th text box . As i think the file does load but no show intext box <?phpabcmyVar=abc" instead of "myVar=abc".?>
  5. My games are in as2 and i will go to as3 once after . All i need to do is load a php file into a text box . I know there is only small part not working as load the value true. so the load vars is working i have the small hpfile correct is well . there one simple fustrating thing i am missing . please can some one see what this mistake is submit_button.onRelease = function(){// Load what?var result_lv:LoadVars = new LoadVars();result_lv.onLoad = function(success:Boolean) {if (success) {result_ta.text = "We are in business.";} else {result_ta.text = "Error connecting to server.";}};//now the magicvar StoreshowResults = result_lv.load("http://localhost/test.php");result2.text = StoreshowResults;}
  6. ive tested and the flash file is loading and the php file is loading on the internet. However there does seem to be an issue with text not going in the dynamic text box of the clip event if place this on the timeline in the method below of loading php into flash file .. myData = new LoadVars();myData.onLoad = function() { // instant name of text box and i think iplace the variable name at the end myText_txt.text = variablename ;}; // would this be were to put the file path to the php file myData.load("myText1.txt "localhost\myfolder/myfile.php );
  7. I dont normally use clip events either. I dont know why there is aneed in the tutorial to convert the text box into a movieclip. Would it be better if i give the text box an instant name and then place code on the main timeline instead. The reason for me coming across this tutorial is looking at the best way to create a database with mysql and php to create a score board for my flash games. i am new to php and mysql . I do have expereince in flash as2
  8. http://www.kirupa.com/developer/acti..._php_mysql.htm loading a php file in my flash file. I am getting the following error .no text of the php file is showing in the text box. When i play the file from the wamp/www which is the local host folder . I get a message saying flash has stopped an unsafe operation. Need to change settings to allow this. I have recently changed the settings and removed the flash waring but theres still no text in the dynamic text box on stage from the php file onClipEvent (load) {//assuming you have a personal web server and PHP installed locallyloadVariables("http://localhost/test.php",'>http://localhost/test.php", this, "GET");} I have add what i belive to be the correct file path on the settings www.localhost/test.php and there i still no text in the box. I have named the vairiable box as the tutorial asks not the instant name cheers any help on this be grateful When i play the file from the wamp/www which is the local host folder . I get a message saying flash has stopped an unsafe operation. Need to change settings to allow this. I have recently changed the settings and removed the flash waring but theres still no text in the dynamic text box on stage from the php file the code on the movie clip which is dynamic text box converted to a movieclip. The fist stage of the tutorial .I have named the variable name "myVar" ActionScript Code: onClipEvent (load) { //assuming you have a personal web server and PHP installed locally loadVariables("http://localhost/test.php", this, "GET");}php code ActionScript Code: <?php/The value of $x would be printed to the screen but the SWF would not read the data $x = "abc";print $x;//The value of $x would be printed to the screen and because of the prefix 'myVar=', //the SWF will //interpret this as being the intended value for the variable myVar in the SWF print "myVar=$x";?>?>
  9. sometimes my script is working and other time the connection is failing.the server is localhost a it on my pc. scores i the name of the database created so i cant see why its not connecting ?php$dbhost = 'localhost';$dbuser = 'root';$dbpass = 'mypassword'; $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql'); mysql_select_db("scores", $conn) or die ('no database');echo 'successful connection'; ?>
  10. I am currently locked out my wamp server its on my desktop . i assum thats local host. I ve uninstalled and reinstalled the same error appears . MySQL said: #1130 - Host 'localhost' is not allowed to connect to this MySQL server phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
  11. i want to align my flash file to the centre of the page. I think i am using html5. I understand tables are not allowed in html5.They have been deprecated. I have the following code wrote below cheers <!DOCTYPE html><html><body><table><tr><embed src="animation splash page.swf" width="800" height="600" wmode="transparent" /><t/able></body></html>
  12. Ive resolve theissue. Its fine what you say aboove is correct and thaks for the help
  13. Hello im using the code below this paragraph to embed an swf file. Thi works fine on my desktop.I have successfully uploaded the files to an ftp host .orgfree.com.I save the files as index.htmland the flash file is called flash.swf. height is 800 pixels and width i 600 pixels I dont know were the files are uploaded to the web . i am out of The instructions mentions this the server path directly below Some scripts require server path. Yours is /home/vhosts/flashgamestest.orgfree.com.Should i be uploading the files to wordpress what vital parts am i missing .________________________________________________________________________________below is saved as index.html______________________________________________________________________________<!DOCTYPE html><html><body> <h1>i work fine on personal computer(lost on the ftp part )</h1><embed src="folder/flash.swf" width="800" height="600" wmode="transparent" /></body></html>
  14. <embed src="http://sites.google.com/site/mysitename/flash.swf" width="540" height="140" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed> ive tried to embed a flash file to my google site. Every time ive tried to change the html code in the edit panel . When i save the code and open the panel google added and broke the code. My issue is were can upload and embed this flash file . I dont have anissue embedding a file on my desktop. in text editor like notepad.
×
×
  • Create New...