homepage Welcome to WebmasterWorld Guest from 54.196.206.80
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
Creating swf file dynamically based on user submitted data
swfnewbie




msg:3655814
 9:37 pm on May 21, 2008 (gmt 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?

 

benihana




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

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

swfnewbie




msg:3656172
 9:39 am on May 22, 2008 (gmt 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

benihana




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

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

swfnewbie




msg:3656438
 3:33 pm on May 22, 2008 (gmt 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

benihana




msg:3656452
 3:43 pm on May 22, 2008 (gmt 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.

swfnewbie




msg:3656803
 8:46 pm on May 22, 2008 (gmt 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?

benihana




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved