Justin Clift wrote: > Ruprecht Helms wrote: > <snip> >>>> I'm interessting how do I create a fader using ming that allows me >>>> for example to change interactivly the fontsize of a given text. > <snip> > >> I'm using php. >> I thried the code of these website, but it seams to be incompatible with >> ming >> >> http://www.flashtuts.de/htdocs/flash-Tutorials-tutorials_anzeigen-79-Actionscript%20Beginner%20Level%201%20Schieberegler%20per%20drag%20and%20drop.html >> >> (page is in german) > > No worries. Personally I'm more into C these days, so I can't give you > the direct code you need. :-/ > > How far have you progressed so far with Ming and PHP? with text and shape I've done something. In using actionscript with ming I am a newby. This is what I tried: <? // some typical movie variables Ming_setScale(20.0000000); ming_useswfversion(6); $movie=new SWFMovie(); $movie->setRate(31); $movie->setDimension(550,400); $movie->setBackground(0,0,0); //$movie->setBackground(rand(0,0xFF),rand(0,0xFF),rand(0,0xFF)); // create a box $boxwidth=200; $boxheight=200; $box=new SWFShape(); $box->setRightFill(255,0,0); $box->drawLine($boxwidth,0); $box->drawLine(0,$boxheight); $box->drawLine(-$boxwidth,0); $box->drawLine(0,-$boxheight); $sp=new SWFSprite(); $sp->add($box); $sp->nextFrame(); $f1=$movie->add($sp); $f1->setName("box"); $strAction = join("", file("schieberegler.as"));; $movie->add(new SWFAction($strAction)); // save swf with same name as filename $swfname = basename(__FILE__,".php"); $movie->save("$swfname.swf",9); ?> the file schieberegler.as: onMouseDown: function () { rx=_root._xmouse; ry=_root._ymouse; onMouseMove=this.doDrawing; oldx=_xmouse; oldy=_ymouse; }, onMouseUp: function () { onMouseMove=null; }, Regards, Ruprecht ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Ming-users mailing list Ming-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/ming-users