Hi Wayne,
 
Could you please post some code, possibally with the xml file to? It will help us reproduce the problem that you are facing and find a solution to it.
 
Thanks,
-sam

 
On 8/16/06, wayneposner <[EMAIL PROTECTED]> wrote:

Unfortunately, when a user requests a print job it will mean print
all the images.

cacheAsBitmap....been having problems with bitmaps as they don't
seem to load into an IUIComponent. Any insite into possibly why?



Wayne

--- In flexcoders@yahoogroups.com , "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> Yeah, I'm not saying load all of the images at one time, just the
> ones that you want to print. Possible use of cacheAsBitmap here
too.
>
> -TH
>
> --- In flexcoders@yahoogroups.com, "wayneposner" <wayne.posner @>
> wrote:
> >
> > I thought about doing that, but am concerned about the
possiblity
> of
> > loading anywhere from 500 to 1000 2k-10k images into memory and
> how
> > it will affect the system while waiting for all those images to
> > load. Additionally, I need to add some metadata text which is
> also
> > coming from the XML file. Which brings me back to one at a time
> or
> > somehow preloading each image before the canvas is rendered.
> >
> > Wayne
> >
> > --- In flexcoders@yahoogroups.com, "Tim Hoff" <TimHoff@> wrote:
> > >
> > > Hi Wayne,
> > >
> > > This a little out of my area, but maybe it will spark an
idea.
> > > Instead of loading the images that you want to print, one-at-a-
> > time,
> > > into a canvas. You could load all of the images, at the same
> > time,
> > > into a Repeater (or a list-based control). On
creationComplete
> of
> > > the Repeater, add the child (Repeater) to the PrintJob.
> > >
> > > If you are also embedding the images, this approach may
consume
> a
> > > lot of CPU resources. But, I'm sure that you can find a
balance
> > > here.
> > >
> > > Hope this helps,
> > > Tim
> > >
> > > --- In flexcoders@yahoogroups.com, "wayneposner"
<wayne.posner@>
> > > wrote:
> > > >
> > > > I've been trying to figure this one out for about a week now
> > with
> > > no
> > > > success.
> > > >
> > > > I'm trying to load a bunch of images dynamically from an XML
> > file,
> > > > pass each image, one at a time, to a Canvas and then print
> that
> > > > Canvas, but only being prompted with the print dialog for
the
> > > first
> > > > image. If I just pass the image to the canvas, the print
> > command
> > > > has executed before the image loads.
> > > >
> > > > If I use an event listener for the complete action on my
> canvas
> > I
> > > > get the print dialog for every canvas that tries to print,
> > > provided
> > > > I instatiate a new FlexPrintJob in my event handler--as
> opposed
> > to
> > > a
> > > > global FlexPrintJob which simply results in an empty print
job.
> > > >
> > > > I've tried writing a preloader using the Loader class and a
> > > sprite
> > > > to hold the image and then add the sprite to my canvas, but
> my
> > > code
> > > > fails at the addChild() statement at run time because flex
> > cannot
> > > > coerce the Loader into an IUIComponent.
> > > >
> > > > I've also tried a preinitialze event on my canvas which
calls
> > the
> > > > image.Load command for an mx:image tag, but that doesn't
work
> > > either.
> > > >
> > > >
> > > > It seems like I'm running out of options here. I didn't
think
> > it
> > > > would be so difficult to print multiple pages of images in
> > Flex.
> > > > Can someone please help!!!!
> > > >
> > > > Thanks
> > > > Wayne
> > > >
> > >
> >
>


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





YAHOO! GROUPS LINKS




__,_._,___

Reply via email to