Skip to main content
Participant
May 23, 2006
Question

creating multiple dynamic text !

  • May 23, 2006
  • 2 replies
  • 354 views
Hello All ,

Actually I am stuck into one point is anyone help me out from I will be very thankfull for the same.........

I am displaying the recordes from mysql to flash using dynamic text but I can not able to show one by one record using flash and php.

I am able to show all recordes in component ! that is in text area I already done that........

What I Need in Brief !
I need to show the data from mysql one by one in flash ! I am trying to create the array of dynamic text and assign the value from php itself but not working properly

If anyone help me out it will be the Best thing in my Programming Profession

Thanks in Advance...............

Thanking You,
Mr.Milind.
This topic has been closed for replies.

2 replies

Inspiring
May 24, 2006
to give you a brief idea;

your PHP code should have a loop with output in the form
print "&wishtext" . i . "=".$r[2]; . "&"

so your output is
&wishtext0 = abc&
&wishtext1 = mnop&
&wishtext2 = xyz&


now using loadVar class; you can load the data in flash. It will come in flash as
var wishtext0 = abc
var wishtext1 = mnop
var wishtext2 = xyz


Now simply apply for..in loop you can access all the variables

Participant
May 25, 2006
Hello Deepak !

Thanks for your help but now I am having parse error and that is :-


parse error, unexpected '.'


so please let me know syntaxtically if I am mistaken this code I am following currently :-
print "&wishtext".i."=".$r[2];."&"

thanks for your reply please let me know regarding this problem

like your surname joshi as mazya mom chya maheracha surname ahe...
2m91_2
Inspiring
May 23, 2006
Hi,

if you could provide us with the code you've tried to do it, maybe we can fix it, but your description of the problem is a bit general.

(As always posting sources fla and as would help helping you)
Participant
May 24, 2006
Thanks for your highly concern !

I will attache one sample fla over here containing all the things ! please let me know if you need anything more !

at the current stage I am able to show one record coming from the database.

I used 3 dynamic text name,address,email which I assigned from the php file coming from the database.

but I want to show say 10 name,address,email one by one using movie clip how I can do that one that I want...

I attached my sample fla include all the code here please go through it and let me know !

Thanks in Advance