ActionScript.org Forums

ActionScript.org Forums (http://www.actionscript.org/forums/index.php3)
-   Server-Side Scripting (http://www.actionscript.org/forums/forumdisplay.php3?f=45)
-   -   Ming questions (http://www.actionscript.org/forums/showthread.php3?t=65925)

wickedboy 02-23-2005 04:19 PM

Ming questions
 
Dear all,

I'm trying to get into using Ming and I've already have a couple of problems. I've searched the net for a few really basic tuts but only come up with a few. If anyone could steer me in the right direction I'd be very happy!

Noob question 1: When I've entered the code in notepad, what extension would I use when saving?

2. Can I create the graphics, buttons etc in Flash and simply attach the Ming code in the AS Panel?

3. Can Ming codes be used within a projector or does it have to call the server?

Sorry if these are really lame questions, but I rerally can't find the answers anywhere...

WB

andehlu 02-23-2005 07:09 PM

i dont know alot aboout it but ming is a php library that compiles swf output on the fly by the php module... So, you wouldnt even need flash, you code it in PHP save as .php and run it from a php enabled webserver.

wickedboy 02-23-2005 07:17 PM

cheersa, but can I run it from a projector without accessing server?

andehlu 02-23-2005 07:29 PM

no it requires php.

wickedboy 02-23-2005 07:52 PM

Damn...any other way of creating swf's from an exe file without reading from an external txt file?

andehlu 02-23-2005 08:04 PM

what are u trying to do exactly? You want to dynamically create swf files from a projector file?

wickedboy 02-23-2005 08:31 PM

kind of...users fill in some txt boxes then click button and a SWF is saved on desktop for users to use themselves, I've seen it done before but have no idea how. Apparentl there's a software that can do that for you some how...

facereplays 02-25-2005 04:23 PM

you can do it with ming
 
should load vars (those text filled in 'forms') to some url where you have php script - something like this
PHP Code:

<?php


Ming_setScale
(20.0);


  
$f = new SWFFont("../fonts/times.fdb");
////some font format used only for ming
  
$t = new SWFText();
  
$t->setFont($f);
  
$t->moveTo(2002400);
  
$t->setColor(0xff0xff0);
  
$t->setHeight(1200);
  
$t->addString($my_text_from_flash);


  
$m = new SWFMovie();
    
$m->setDimension(750,450 );
  
$m->nextFrame();
    


$m->save($dynamic_name.'.swf');
$var_to_flash='newmovie_url='.$full_url.'/'$dynamic_name.'.swf';
echo 
$var_to_flash;
?>

the script will send back to projector the url of newly created swf
to get this thing to the desktop is another story...
note that the ming PHP module has to be installed on the server

wickedboy 02-25-2005 04:25 PM

Thanks I'm gonna try it out!

JerryScript 02-26-2005 09:51 AM

FYI- Ming is not limited to PHP. It is actually a C library, and can be used with several languages once the library is compiled. There are examples at the Ming homepage that show it being used with C++, Perl, Python, and of course PHP.

Using it with C++ would require good knowledge of your system environment, and the compilers used, as well as their dependancies. If using Windows, Ming is a bit tricky to compile, but there is info available at kromman.info

Yes you can create the app you describe. However, it would probably be the first of it's kind. There are third party projector creation applications that I would recommend you look into first.


All times are GMT. The time now is 05:33 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger