I have an annoying problem with Flash.
I want to get the data from a PHP page (which collects data from a MySQL database). That part works alright for what is needed.
http://freyta.net/mysql/hot.php?name=shane
is the link to the data.
Now I load my data data using
PHP Code:
onClipEvent (load) { i = new LoadVars(); i.load("http://freyta.net/mysql/hot.php?name=shane", this, "GET"); }
which recieves the data "127="...
How do I get rid of that equals sign :S
Sorry for the really dumb question
06-11-2008, 12:40 AM
Rapidshare
It works?
06-11-2008, 12:41 AM
Blinger1
No, it has the stupid equals sign...
I can't just load the data "127"... (it works fine on the webpage but when i load it into flash it adds the = sign)
The PHP page if you're interested whats on it (doesn't have to be a php page, can be a html/text/etc page)
Live content:
"&myMessage=Joygasmic blowjob"
PHP code:
PHP Code:
<?php
// Using PHP just to explain
$variable = 'Joygasmic blowjob';
echo '&myMessage=' . $variable;
?>
Hope this helped.
06-11-2008, 11:45 PM
Blinger1
Okay that worked :)! (it got the variable properlly)
But, now my rotation won't work :S?
PHP Code:
onClipEvent (load) {
data = new LoadVars();
data.load("http://www.freyta.net/flashData.php");
data.onLoad = function(success) {
i = data.myMessage;
if (success) {
trace(i);
if (_root.mcobj._rotation<tobe) {
_root.mcobj._rotation++;
}
}
};
}
Why doesn't that work?
This is really stupid :eusa_wall
07-11-2008, 10:24 AM
Protege
I dont understand what you are trying to do, explain more and I can help you.
07-11-2008, 10:27 AM
Blinger1
Okay...
Here is my idea.
I want to make an application called the 'hot-o-dometer'. Its like a speedometer but instead of saying mph or kmph, it tells you how 'hot' you are..
How it works:
I get a variable (which we called myMessage) from a remote location, and then dial turns that many degrees to point to how 'hot' you are..