homepage Welcome to WebmasterWorld Guest from 54.167.177.180
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

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

5+ Year Member



 
Msg#: 3655812 posted 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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3655812 posted 9:33 am on May 22, 2008 (gmt 0)

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

swfnewbie

5+ Year Member



 
Msg#: 3655812 posted 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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3655812 posted 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

5+ Year Member



 
Msg#: 3655812 posted 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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3655812 posted 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

5+ Year Member



 
Msg#: 3655812 posted 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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3655812 posted 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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved