4/...and return the builded swf. Here, We need to synchronize the output of a shell command to the script return.
I don't know if MXMLC returns some code (which you can figure out success/failure situation).. But it does return standard message... MXMLC would generate SWF on your file system... I suggest you looking at mxmlc.jar, may be you can use it's API directly, that would give you more control. But yes you can still do things with MXMLC...probably doing little parsing on MXMLC messages... -abdul On 1/22/07, gdoucen <[EMAIL PROTECTED]> wrote:
Hi Abdul, 1/ the first approach has sense but is not my favorite, 2/ I'm more interested by the second approach. A such solution would be really clean and powerfull...not so far from the flexifier application where they use private java api to do the job. So what have we got ? 1/I have got a graphical interface that help me building my slideshow by dragging images,shapes,audio (what i want) to the scene. 2/When pushlishing, an xml description of the scene (images && swf assets to embed at compile, items properties) is transmitted to the server-side script (php, java ???). 3/This script create my MXML file and call the mxmlc compiler to generate the swf... 4/...and return the builded swf. Here, We need to synchronize the output of a shell command to the script return. Can u precise the last point? Have u got a working example. I will make some test. Thanks again for your help. --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, "Abdul Qabiz" <[EMAIL PROTECTED]> wrote: > > If I am right, you want to let user design something and then generate > SWF... > > There are different ways, people do that:- > > 1) You write two pieces (editor and player), editor let users design and you > serialize all information on server in database, xml or whatever. Player > loads XML and renders the content. > > 2) You want a monolithic piece (SWF) that contains the entire stuff... > > I guess, you are talking about second? > > You can do that by embedding all resources in SWF and letting user download > the final output. You can run MXMLC as CGI or process? to do that... > > Once user has done designing, you save the entire design (Canvas) > information in some intermediate format, pass it to server-side script which > can construct a MXML file for it, run MXMLC on MXML to generate SWF... > > Does that make sense? But I would suggest you going for first approach .... > > -abdul > > On 1/21/07, gdoucen <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I want to create a light scrapblog application as a personnal project. > > Which techniques scrapblog or similar apps use to create the swf online ? > > > > Thanks for your help. > > > > > > >