The Flash runtime is a client-side software that cannot generate .swf files.
However, there are server-side technologies that let you do so. Languages
like PHP have libraries to create simple .swf files. If you need something
more complex, you're going to have to hook up your server-side code with the
Flex compiler. I don't think any bindings exist between PHP and mxmlc. Maybe
a Java application could use the mxmlc Ant tasks. Worst case scenario,
you'll have to invoke the compiler through shell_exec().

Before you embark upon this, let me warn you that compiling arbitrary
ActionScript code on the server might not be a good idea. Depending upon
your hosting setup, you probably can't even install the mxmlc compiler, let
alone actually running it. Then comes the security issue. The .swf file will
be compiled and stored on the server. If a malicious user manages to execute
the .swf on the server, he could do quite a few things, even inside the
Flash player sandbox.

I'd approach this with caution.

.p

On Wed, Sep 29, 2010 at 10:36 AM, <[email protected]> wrote:

> 'mxml compiler' can help generate SWF dynamically from your back-end.
>
>
> On Tue, Sep 28, 2010 at 23:59, nithya flex <[email protected]> wrote:
>
>> any tool is available?
>>
>>
>> On Wed, Sep 29, 2010 at 10:26 AM, <[email protected]> wrote:
>>
>>> Flex alone cannot achieve that !
>>>
>>>
>>> On Tue, Sep 28, 2010 at 23:42, nithya flex <[email protected]>wrote:
>>>
>>>> Hi Ramesh,
>>>>
>>>> I am not talking about Flex Builder.  I have a flex application once
>>>> user click on button it should generate swf based on the some condition.
>>>>
>>>> Hope u are able to understand my point?
>>>>
>>>> Thanks,
>>>> Nitha
>>>>
>>>>
>>>> On Wed, Sep 29, 2010 at 10:07 AM, <[email protected]> wrote:
>>>>
>>>>> Use FlexBuilder !
>>>>>
>>>>> On Tue, Sep 28, 2010 at 23:16, nithya flex <[email protected]>wrote:
>>>>>
>>>>>> Hi All,
>>>>>>
>>>>>> Any idea regarding  how to generate a SWF file by using flex
>>>>>> application.
>>>>>>
>>>>>>
>>>>>> Thanks,
>>>>>> Nithya
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Flex India Community" group.
>>>>>> To post to this group, send email to [email protected].
>>>>>> To unsubscribe from this group, send email to
>>>>>> [email protected]<flex_india%[email protected]>
>>>>>> .
>>>>>> For more options, visit this group at
>>>>>> http://groups.google.com/group/flex_india?hl=en.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Fear is an illusion, So, face it !
>>>>> RM3sh
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Flex India Community" group.
>>>>> To post to this group, send email to [email protected].
>>>>> To unsubscribe from this group, send email to
>>>>> [email protected]<flex_india%[email protected]>
>>>>> .
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/flex_india?hl=en.
>>>>>
>>>>
>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Flex India Community" group.
>>>> To post to this group, send email to [email protected].
>>>> To unsubscribe from this group, send email to
>>>> [email protected]<flex_india%[email protected]>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/flex_india?hl=en.
>>>>
>>>
>>>
>>>
>>> --
>>> Fear is an illusion, So, face it !
>>> RM3sh
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Flex India Community" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<flex_india%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/flex_india?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Flex India Community" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<flex_india%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/flex_india?hl=en.
>>
>
>
>
> --
> Fear is an illusion, So, face it !
> RM3sh
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to