Re: [Flashcoders] Append variables to SWF server-side
The reason I want this server side is the SWFs are loading dynamic content via a database, and I want users to be able to download a SWF with this dynamic data embedded in the swf so they can use it in their own websites. I did find this tool which looks promising (allbeit limiting) http://hossy.net/sssc.php On 2/26/07, Andy Herrman [EMAIL PROTECTED] wrote: So, how is the user viewing the SWF? Is it embedded in an HTML page? If so, you could just make those parameters defined in the HTML, and then have the SWF know to look for the parameters at runtime. The SWFs I use do a lot of that. -Andy On 2/26/07, Mick G [EMAIL PROTECTED] wrote: Does anyone know if there is a way to add data to a SWF file server-side? Eg. I have a swf that site on my server. I want users to be able to select an option from a dropdown such as Select a color: BLUE. This would then send them a SWF to download that has the variable color=blue embedded into the SWF. I guess this would mean the server would need to recompile a SWF which would require large CPU so I'm not sure if this is possible but thought I'd ask anyway. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Append variables to SWF server-side
search FlashVars ;) Mick G escribió: Does anyone know if there is a way to add data to a SWF file server-side? Eg. I have a swf that site on my server. I want users to be able to select an option from a dropdown such as Select a color: BLUE. This would then send them a SWF to download that has the variable color=blue embedded into the SWF. I guess this would mean the server would need to recompile a SWF which would require large CPU so I'm not sure if this is possible but thought I'd ask anyway. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Append variables to SWF server-side
That seems pretty inefficient. Why not just make a Flash Var with the color and have the SWF render that dynamically? I remember some solutions along those lines (including Macromedia Generator) circa 2000, but it just wasn't a great way of doing things like that. SWFs already have intelligence--they're not flat images or baked animations. On 2/26/07, Mick G [EMAIL PROTECTED] wrote: Does anyone know if there is a way to add data to a SWF file server-side? Eg. I have a swf that site on my server. I want users to be able to select an option from a dropdown such as Select a color: BLUE. This would then send them a SWF to download that has the variable color=blue embedded into the SWF. I guess this would mean the server would need to recompile a SWF which would require large CPU so I'm not sure if this is possible but thought I'd ask anyway. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- T. Michael Keesey Director of Technology Exopolis, Inc. 2894 Rowena Avenue Ste. B Los Angeles, California 90039 -- The Dinosauricon: http://dino.lm.com Parry Carney: http://parryandcarney.com ISPN Forum: http://www.phylonames.org/forum/ ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Append variables to SWF server-side
HI Mick ! Consider the open source utility SWFMill Providing the server is compatible with one of it's builds then 1. Get a PHP to do : swfmill swf2xml [swfname.swf] [file.xml] 2. Edit the XML file which step 1 produces from PHP 3. Get PHP to do: swfmill xml2swf [fiel.xml] [swfname.swf] This should do the job and SWFMill seems to work brilliantly on content up to Flash 8 (Goes a bit funny on Flash 9/Flex) Hope this helps Post more if it doesn't ! Mick G wrote: Does anyone know if there is a way to add data to a SWF file server-side? Eg. I have a swf that site on my server. I want users to be able to select an option from a dropdown such as Select a color: BLUE. This would then send them a SWF to download that has the variable color=blue embedded into the SWF. I guess this would mean the server would need to recompile a SWF which would require large CPU so I'm not sure if this is possible but thought I'd ask anyway. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Append variables to SWF server-side
So, how is the user viewing the SWF? Is it embedded in an HTML page? If so, you could just make those parameters defined in the HTML, and then have the SWF know to look for the parameters at runtime. The SWFs I use do a lot of that. -Andy On 2/26/07, Mick G [EMAIL PROTECTED] wrote: Does anyone know if there is a way to add data to a SWF file server-side? Eg. I have a swf that site on my server. I want users to be able to select an option from a dropdown such as Select a color: BLUE. This would then send them a SWF to download that has the variable color=blue embedded into the SWF. I guess this would mean the server would need to recompile a SWF which would require large CPU so I'm not sure if this is possible but thought I'd ask anyway. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] Append variables to SWF server-side
You should look into flasm (http://flasm.sourceforge.net/) or any code injecting software out there Mick G wrote: Does anyone know if there is a way to add data to a SWF file server-side? Eg. I have a swf that site on my server. I want users to be able to select an option from a dropdown such as Select a color: BLUE. This would then send them a SWF to download that has the variable color=blue embedded into the SWF. I guess this would mean the server would need to recompile a SWF which would require large CPU so I'm not sure if this is possible but thought I'd ask anyway. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com