Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: SWF::Builder, printing the swf file, rather than saving it

by hipowls (Curate)
on Jan 16, 2008 at 11:36 UTC ( #662659=note: print w/replies, xml ) Need Help??


in reply to [SOLVED] SWF::Builder, printing the swf file, rather than saving it

SWF::BinStream::File allows writing to a file handle, so use IO::Scalar to create a file handle that writes to a string and then you can print the string.

I've not tested this code but something along these lines may do what you want.

use SWF::File; use IO::Scalar; my $swf_data = ''; my $swf_fh = IO::Scalar->new( \$swf_data ); my $swf = SWF::BinStream::Write->new($swf_fh); ... $swf->close(); close $swf_fh; print $swf_data;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://662659]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2022-09-30 06:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (125 votes). Check out past polls.

    Notices?