Forum Moderators: open
the "processed" php file that has the variables has:
Figure 1.)
<FORM action="non" method="post">
HTML: <input type="text" name="datext" size="40" value="<a href='<?php echo $siteurl; ?>view/<?php echo $id; ?>'><img src='<?php echo $siteurl; ?>image/<?php echo $id; ?>.jpeg'></a>">
<br/>CODE: <input type="text" name="datext" size="40" value="[url=<?php echo $siteurl; ?>view/<?php echo $id; ?>][img]<?php echo $siteurl; ?>image/<?php echo $id; ?>.jpeg[/img][/url]"></FORM>
<br/>URL: <a href='<?php echo $siteurl; ?>view/<?php echo $id; ?>'><?php echo $siteurl; ?>view/<?php echo $id; ?></a>
I am trying to load the generated Code:
figure2.)
[url=<?php echo $siteurl; ?>view/<?php echo $idz; ?>][img]<?php echo $siteurl; ?>image/<?php echo $idz; ?>.jpeg[/img][/url]
into the .swf so it can be copied onto their clipboard easily.
here is the actionscript i am using to try and load the above string into the .swf:
mylv = new LoadVars();
mylv.onLoad=function(){
textBox.textBox.text =mylv.variable1;
}
mylv.load("processed.php");
I try to assign a value to the variable1 on the processed.php page(where the .swf will be placed)
<?PHP
print "&variable1=<a href='<?php echo $siteurl; ?>view/<?php echo $id; ?>'><img src='<?php echo $siteurl; ?>image/<?php echo $id; ?>.jpeg'></a>&"
this comes nowhere near close to working.
I need to assign figure 1. (above) or part of figure 1. to textBox.textBox.text = "FIGURE 1.";
any light on this would be greatly appreciated!
TY regards, frogz
<param name="flashvars" value="id=<?php echo $id; ?>">
.....
flashvars="id=<?php echo $id; ?>"
Anoother is to use an XML file and import the XML into Flash, which gives you more control over nested attributes and associative values, but for a single value, FlashVars will work.