Welcome to WebmasterWorld Guest from 54.242.63.214

Forum Moderators: open

Message Too Old, No Replies

Creating swf file dynamically based on user submitted data

     

swfnewbie

9:37 pm on May 21, 2008 (gmt 0)

5+ Year Member



As part of my website, i want to create an swf file based on user submitted data. The swf would just play on the browser - no flash based forms etc.. Please advise on the best approach - especially from the performance angle..
For PHP, i have come across Ming doing a google search.. also Flex though it might be an overkill for this?

benihana

9:33 am on May 22, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



what do you want flash to actually do when it recieves the users data?

swfnewbie

9:39 am on May 22, 2008 (gmt 0)

5+ Year Member



What i would like is this: User enters details using a form and submits. Then based on this info and using a template, a swf file is created on the server and stored. User can then access this customised swf later when required.

Regards
Ram

benihana

3:01 pm on May 22, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



surely would be better storing the user details in a database, then passing them back into the swf at runtime?

swfnewbie

3:33 pm on May 22, 2008 (gmt 0)

5+ Year Member



Yes, i should have mentioned.. i will be storing the user-entered values in the database.. Then we have 2 options..
1. Generate the swf immediately on the server after storing the values in the database.
2. Generate the swf at runtime when the user requests for the swf

Will 2 have performance implications and also make the application look slow for the user as the data is fetched from the db and swf is being built?

Which option is better and how best to do it?

Thanks
Ram

benihana

3:43 pm on May 22, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



AFAIK 2 is by far the more common approach, and is the one id personally use. Cannot comment on 1 as have never tried.

swfnewbie

8:46 pm on May 22, 2008 (gmt 0)

5+ Year Member



Would you use somthing like FLEX for option 2?

And if i choose to implemrnt option 1, how can this be done? using Ming in PHP?

benihana

8:51 pm on May 25, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You certainly could use flex, but you can do a lot between flash istelf and php to store simple db stuff.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month