Welcome to WebmasterWorld Guest from 54.161.130.145

Forum Moderators: open

Message Too Old, No Replies

Creating swf file dynamically based on user submitted data

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

New User

5+ Year Member

joined:May 21, 2008
posts: 5
votes: 0


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?
9:33 am on May 22, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 13, 2003
posts:1240
votes: 0


what do you want flash to actually do when it recieves the users data?
9:39 am on May 22, 2008 (gmt 0)

New User

5+ Year Member

joined:May 21, 2008
posts: 5
votes: 0


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

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 13, 2003
posts:1240
votes: 0


surely would be better storing the user details in a database, then passing them back into the swf at runtime?
3:33 pm on May 22, 2008 (gmt 0)

New User

5+ Year Member

joined:May 21, 2008
posts: 5
votes: 0


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

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 13, 2003
posts:1240
votes: 0


AFAIK 2 is by far the more common approach, and is the one id personally use. Cannot comment on 1 as have never tried.
8:46 pm on May 22, 2008 (gmt 0)

New User

5+ Year Member

joined:May 21, 2008
posts: 5
votes: 0


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?

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Jan 13, 2003
posts:1240
votes: 0


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