[Ming-users] error adding shape to sprite

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



using Ming 0.4 I am trying to add a SWFShape to a SWFSprite but get the following 2 errors:
Warning: add() [function.add]: Unable to find property sprite 
Fatal error: add() [function.add]: Called object is not an SWFSprite

        $shape = new SWFShape();
        $image = new SWFBitmap(fopen($image_file, "rb"));
        //$image_filled = $shape->addFill($image,SWFFILL_LINEAR_GRADIENT);
        $image_filled = $shape->addFill($image);
        $shape->setRightFill($image_filled);
        $shape->drawLine($image->getWidth(),0);
        $shape->drawLine(0, $image->getHeight());
        $shape->drawLine(-$image->getWidth(),0);
        $shape->drawLine(0, -$image->getHeight());

       $sprite =  new SWFSprite();
        $sprite->add($shape);

I've added/removed code to simplify it and get the same error.
I've verified it is loading an image but can't figure out why it errors on adding. any help would be most appreciated

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Ming-users mailing list
Ming-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/ming-users

[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux