asFunctios and linking using PHP
Posted on 2002-04-09
What I am trying to do is create a news page. The page has a lead story and a list of headlines. I have built the site using php and it all works fine. You click on the link and it takes you to a "detailed" page were you can read the full story.
The tricky bit is that I want it to work in flash.
I have managed to get the variable to load into flash using
loadVariables ("alpha_news.php", "_root");
and it loads the varibles that I have stated in my PHP doc.
<?php echo "&title=".$alphaNews->Fields("storyTitle")?>
<?php echo "&author=".$alphaNews->Fields("storyAuthor")?>
?php echo "&summary=".$alphaNews->Fields("storySummary")?>
What I need to know is how do I get this <?php echo "&title=".$alphaNews->Fields("storyTitle")?> variable to be a link and display in flash?
I would also like to know how, when the user clicks that link (in flash) they are taken to the next frame (in flash) were the details of that news article are displayed.
I think its something to do with "asfunction" but unfortunatly I'm not that advanced yet.