473,386 Members | 1,758 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Can get it right: variables from php

137 100+
Hello guys,
I pretty new to actionscript and i need some variables from a php script.
But i always get an error "Error opening url"
This is what i have in flash:
Expand|Select|Wrap|Line Numbers
  1. var succes:Boolean;
  2. Minutes = new Date();
  3. DataLoad = new LoadVars();
  4. DataLoad.load("http://www.mysite.com/playing.php", gegevens);
  5.  
  6.  
  7. DataLoad.onLoad = function(succes){
  8.     if(succes){
  9.  
  10.         TxtDj.text += " Dj Paul";
  11.         NowArtist.text = DataLoad.NowArtist;
  12.         NowTitle.text = DataLoad.NowTitle;
  13.         NextArtist.text = DataLoad.NextArtist;
  14.         NextTitle.text = DataLoad.NextTitle;
  15.         PreviousArtist.text = DataLoad.PrevArtist;
  16.         PreviousTitle.text = DataLoad.PrevTitle;
  17.  
  18.     }else{
  19.         NowArtist.text = "Error loading data";
  20.     }
  21. }
  22.  
In the php script i declared some variables as:
Expand|Select|Wrap|Line Numbers
  1.  
  2. echo '&NowArtist=' . urlencode($music['artist']);
  3. echo '&NowTitle=' . urlencode($music['title']); //and so on...
  4.  
What the hek i'm doing wrong?

Regards!
Paul
Oct 11 '08 #1
1 1651
djpaul
137 100+
Never mind.
I got it working.
It didn't work in the IDE and had to change the address to:
Expand|Select|Wrap|Line Numbers
  1. dataLoad.onLoad("http://www.mysite.com/playing.php?" + math.Random() * 10000;
This is for F*** internet explorer so he get's and sets the new text in the dynamic textboxes.

Gr Paul
Oct 15 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Chris | last post by:
If I'm thinking right, this should work...can someone help me understand why it's not. //$loop = 1 $test = "num$loop"; //test should now equal "num1" $ttest = $$test; //ttest should now...
8
by: Bo Wisén | last post by:
Hi, A project in VB6 recently worked without any problems but now it's complaining when I try to use 'Right$'. In immediate mode, when I'm typing 'print left$("123456",2)' I get the correct...
9
by: Carsten Gehling | last post by:
Oh how often this subject may come up... The thing is, I've come to the decision of abandoning PHP as much as possible (old projects still remain...), and use Python for all purposes. Reason:...
3
by: deanfamily11 | last post by:
Ok, here's another problem I'm having. I've tried several different things, but I just can't get anything to be right justified. Any thoughts? #include <iostream> #include <iomanip>...
12
by: deanfamily11 | last post by:
Now, I've made a program that when the user enters 3 numbers, it is supposed to tell the user if it is a right triangle by using the quadratic equation (a^2 + b^2 = c^2). Now, granted it can be...
12
by: Chris Stankevitz | last post by:
I declare two variables and call a function. The second to last statement seems fishy to me. My other non-static function calls to other methods in the same class do not have "this" line. ...
0
by: Emee | last post by:
Hi, Could someone please help me with this: I've got a list of employees grouped by Department and then Possition. The names of the employees are listed in the Details section. I've created a...
1
by: Chris | last post by:
I have a form that has the ID values of various fields from listboxes, etc., which are generated from a db query, assigned to variables. The variables hold the returned $_POST fine, but I also...
3
by: wwwursa | last post by:
I am trying to use the Right function in a VB6 program. I have used it used many times before in other programs. When I press the enter key after entering the code line, the word "Right" turns...
0
by: ravinder1983 | last post by:
Hi All, I am new to this world of php. I tried getting oci8 work with php but to no avail. The error i recieve is "Warning: ocilogon() : OCIEnvNlsCreate() failed. There is something wrong with...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.