Solved

What do I need to create a swf on the fly - can it be done?

Posted on 2004-03-31
7
385 Views
Last Modified: 2007-12-19
Hey guys, I'm trying to create an app that the user can input which xml file to load, and then click a button and it publishes a swf - is there some sort of appication/software out there that lets me do that?

the app is to be used by ppl with no knowledge of xml or flash.

thanks.
blu.
0
Comment
Question by:blue-genie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 9

Assisted Solution

by:krishnaprathab
krishnaprathab earned 200 total points
ID: 10773507
Hi blu,

 To my knowledge there is no software which can do what you are trying to do. There are some free softwares like MING and GIMP on sourceforge.net but they can create only shapes on the fly. Even I was trying to do exactly the same which you are trying to do but my search ended in vain. So dont waste your time searching for one. There is only one way you can do it is using softwares like FlashStudio Pro or Director and write xml files but they cant create swf files on the fly.

 I heard that JSFL which is a Javascript API for Flash MX2004 is very powerful and has such facilities but I dont know how much its true as its very new to the industry and I have not tried doing anything with it.

Thanks,
KP
0
 
LVL 1

Accepted Solution

by:
pcazella earned 50 total points
ID: 10810224
Sounds like you are mixing dynamic web pages (ASP/JSP/PHP or something) with Flash.  I've heard that you can build Flash components to be used in such pages and have parameters passed via URL or Form varialble into the SWF.  This, I have not tried myself, only seen it in tutorials.  

Another way to get the variable into the swf file is to have the active page dynmaically build the parameters on the end of the "movie" value.  In the swf, load the variable first thing and use it how ever you'd like.

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  codebase="http://download.macromedia.com/"  
  WIDTH="250" HEIGHT="300" id="flaMovie1">
  <PARAM NAME=movie VALUE="flaMovie1.swf?XMLFilename={Filename}">
  <PARAM NAME=quality VALUE=high>
  <PARAM NAME=bgcolor VALUE=#FFFFFF>
  <EMBED src="flaMovie1.swf?flaMovie1.swf?XMLFilename={Filename}"
    quality=high bgcolor=#FFFFFF WIDTH="250" HEIGHT="250" NAME="flaMovie1"
    TYPE="application/x-shockwave-flash"
    PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
  </EMBED>
</OBJECT>

http://www.permadi.com/tutorial/flashQueryString/

You could also create the selection form in Flash and simply load the choosen XML file into a DataSet via the XMLconnector given the structure of the XML is the same.  If the structure of the XML file could potentially be different, this way would not be easy.

0
 
LVL 9

Expert Comment

by:krishnaprathab
ID: 10868855
Can you please close this question. If you need more help let me know.

Thanks,
KP
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 39

Author Comment

by:blue-genie
ID: 10868898
i'll close the question when i get an answer or if i feel its suitably been open long enough for someone to suggest something or the adminstrators decide to close it.
0
 
LVL 1

Expert Comment

by:pcazella
ID: 10869481
Obviously you are a Flash expert, almost master, based on the questions you have answered in the past and your current yearly (#4)/ overall (#12) ranking here  in the Flash channel.  Please help me understand why my suggestions are not viable solutions to your problem.  

If there is more information you can provide about the content, purpose, and scope of your project please post it so we can better contribute.
0
 
LVL 39

Author Comment

by:blue-genie
ID: 10869545
pczella, i haven't had a chance to try your suggestion out yet, thus my comment to krishnaprathalo - who asked me to close the question - i'll let you know when i get a chance to try it out. Unfortunately, I have other deadlines to attend to too.

blu.
0
 
LVL 39

Author Comment

by:blue-genie
ID: 10958238
the bottom line, it can't be done.

i've given pczella a couple of pts for the effort. thanks.
blu.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question