Quantcast
Channel: Adobe Community : All Content - AIR Development
Viewing all articles
Browse latest Browse all 2954

create links in AS3 with PHP

$
0
0

I've got this code that retrieve data from my SQL Data Base into my AS3 code.

My table (data base) has this rows : "id", "title", "price", "information", "mail".

In my AS3 code I loaded "title".

Php Code :

while(

$row = mysql_fetch_array($sql_result))

{ $theTitle = $row["theTitle "];

$phptheTitle= $phptheTitle.' </br> '.$theTitle ;

echo  "phptheTitle=". $phptheTitle;

}

AS3 code :

var myResult:String= evt.target.data.phptheTitle;

output_txt.htmlText = myResult;

So my output_txt is displaying all items in the row "title".

Now, is it possible to create a link for each title(in AS3) ? In order to display "price", "information", "mail" when we click on the title(each title has their own "price", "information" and "mail", contain in my database).

Exemple : The AS3 code displays "Computer". When I click on "ipod Touch" it displays "price", "information" and "mail" that is contains in my database.

 

Here's a short video of what I'd like to do : http://sendvid.com/whdm4sjf


Viewing all articles
Browse latest Browse all 2954

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>