Not sure of your entire data flow and starting poing but assuming the PHP
script is the start point here is a possible structure using LoadVars. It is
a minimal skeleton but should work, you need to comment or uncomment the
first two lines of PHP. You may want to use XML since it looks like you will
have repeating variables and this can be easily modified for XML.
PHP:
<?php
//$blog_pwdtf = false;
$blog_pwdtf = true;
if($blog_pwdtf){
//display title and password box
echo "&showTF=true";
}
else{
//display title,post,post data
echo "&showTF=false";
}
?>
Flash (Just a request example for this pass. Can also do a send to send the
login data):
// Frame 1 code below and a text box that says "loading..."
// Frame 2 Your display title and password box and another set of code to
send it. Temporarily just place a text box that says "Future display of
title and password"
// Frame 3 Your display display title,post,post data. Temporarily just
place a text box that says "Future display of title, post and post data"
// Frame 4 Display of failed data comm to server. Temporarily just place a
text box that says "Error contacting host."
var my_lv:LoadVars = new LoadVars()
my_lv.onLoad = function(success)
{
if (success)
{
if (my_lv.showTF == "true") // Var from PHP
{
gotoAndStop(2)
}
else
{
gotoAndStop(3)
}
}
gotoAndStop(4)
}
my_lv.load("blogGetter.php")
stop()
Once you get this down, then you can ask about how to send down the
post,post data and how to design a screen to show it.
--
Lon Hosford
www.lonhosford.com May many happy bits flow your way!
[quoted text, click to view] "lwq" <webforumsuser@macromedia.com> wrote in message
news:dl6sms$acm$1@forums.macromedia.com...
The data to be sent(to be diaplayed in flash)from my code has two formats:
one is just display all the variables
the other is a display of some variables plus a password box when one
variable
is true
eg.(according to my code)
if($blog_pwdtf){
//display title and password box
}
else{
//display title,post,post data
}
So if the $blog_pwdtf is set to true
the "if" will be true and whatever is outputed
otherwise the "else" will be true