[flexcoders] PlotChart Multiple Values Per Point

2009-11-03 Thread pliechty
I created a PlotChart with a single plotseries.  My data has multiple values 
for the same point.  How do I select all the items?  

Each point contains a query.  I want to display the query for each one.  So I 
need to be able to select them all.

I am capturing the PlotChart change event.  It notifies me when a point has 
been selected.  But it only notifies me of one of the many values for that 
point.



[flexcoders] I want print component to be invisible in the ui

2009-05-15 Thread pliechty
I want to print a component in Flex without it showing up in the UI.  I have 
tried setting visible = false and includeInLayout = false.  Nothing prints when 
I do that.  If those are true, then it shows up in the ui.  I just need to 
print a component without it showing up in the ui.  



[flexcoders] Re: Printing Images with printJob.addObject

2009-05-15 Thread pliechty
You can do printing with dynamic images, you just have to wait until the images 
are loaded before adding them to the printjob.  Listen for the Event.COMPLETE 
event to know when the images are loaded.  I am doing it and it works fine.

--- In flexcoders@yahoogroups.com, bnuenemann bened...@... wrote:

 Thanks for this, but the images are embedded.
 
 In my sample i use the same image (and same path). I can see the
 images, if i donĀ“t remove the child. But the images disappear at printing.
 
 Do you have working code with embedded images?
 
 
 
 --- In flexcoders@yahoogroups.com, nathanpdaniel ndaniel@ wrote:
 
  Using the PrintView component, you have to embed images for them 
  to show up.  I also asked the same question, but no one has ever 
  come up with a good solution.  So it works fine if you have static 
  images, but trying to load them dynamically will never work with 
  what's available now! :D  Hope this helps!
  
  --- In flexcoders@yahoogroups.com, bnuenemann benedikt@ wrote:
  
   here my problem:
   
    File: printimage.mxml ---
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
   layout=absolute 
   mx:Script
   ![CDATA[
import mx.core.*;
import mx.printing.*;
public function doPrint():void {
   var printJob:FlexPrintJob = new FlexPrintJob();
   if (printJob.start()) {
   var thePrintView:PrintView = new PrintView();
   addChild(thePrintView);
   printJob.addObject(printcontainer); // works fine 
   printJob.addObject(thePrintView);  //will show second page
   without images
   removeChild(thePrintView);
   }
   printJob.send();
   }
}
   mx:Canvas backgroundColor=#ff id=printcontainer 
  width=100
   height=100
 mx:Image width=100 height=100 source=myimage.png/
  
   /mx:Canvas
   mx:Button label=Print click=doPrint() /
   /mx:VBox
   /mx:Application
    File: PrintView.mxml ---
   ?xml version=1.0?
   mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; 
   backgroundColor=#ff 
 height=650 width=550 paddingTop=50 paddingBottom=50
   paddingLeft=50
mx:VBox width=500
 mx:Image width=100 height=100 source=myimage.png/
/mx:VBox
   /mx:VBox
   
   
   If i add the image without the printview-template the images (jpg,
   gif, png) are visible, but with the PrintView it will show only 
  white
   space on the print-output.
   
   Any suggestions?
  
 





[flexcoders] Re: Text Looks Ugly When PrintAsBitmap=true

2009-03-11 Thread pliechty
Blendmode helped but it is still not smooth.  I am surprised this works like 
this.  This is the default setting.  I am sure many other people are doing 
this.  Embedding the fonts is not an option.  Thanks

--- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote:

 --- In flexcoders@yahoogroups.com, pliechty pliechty@ wrote:
 
  We print images in our application. I can print fine with 
  printAsBitmap=false, but I want to set the smooth flag on the image. I have 
  to set printAsBitmap=true to get the smooth flag to take effect, but my 
  text looks horrible. Is there a way to have smooth images and nice looking 
  text?
 
 
 What happens if you set the blendMode to layer on the text that you are 
 printing?





[flexcoders] Text Looks Ugly When PrintAsBitmap=true

2009-03-10 Thread pliechty
We print images in our application. I can print fine with printAsBitmap=false, 
but I want to set the smooth flag on the image. I have to set 
printAsBitmap=true to get the smooth flag to take effect, but my text looks 
horrible. Is there a way to have smooth images and nice looking text?



[flexcoders] Scale To Fit

2009-03-05 Thread pliechty
Does Flex have a scale to fit mechanism?  I would like to scale a component to 
fit in the visible screen space.



[flexcoders] Print Inverted Image?

2009-03-04 Thread pliechty
I am trying to print an image with a filter on it.  The filter inverts the 
colors of the image.  I add the imgBox to the printJob.  But, the image doesn't 
print with the filter applied.  Here is the code:

  mx:Script
  ![CDATA[
private function invert():void
{
  var matrix:Array = new Array();
  matrix = matrix.concat([-1,  0,  0, 0, 255]);
  matrix = matrix.concat([ 0, -1,  0, 0, 255]);
  matrix = matrix.concat([ 0,  0, -1, 0, 255]);
  matrix = matrix.concat([ 0,  0,  0, 1,   0]);
  imgBox.filters = [new ColorMatrixFilter(matrix)];
}
   ]]
   /mx:Script

  mx:VBox id=imgBox width=100% height=100% borderColor=red 
borderStyle=solid borderThickness=2
common:SmoothImage id=sourceImg complete=previewPage() 
horizontalAlign=center/
  /mx:VBox





[flexcoders] Custom Binding Question

2009-02-12 Thread pliechty
I am using custom binding in one of my classes.  I have one problem.  
I fire an event when a property is set, but the bound object is an 
mxml component that has not been created yet.  Normal binding will 
wait until it is created and then set the bound value.  How do I mimic  
this behavior in a custom bound object?






[flexcoders] Mask stops working when scaling hits .91

2009-01-30 Thread pliechty
I apply a mask to my Canvas component which works great.  I have a 
child component of the Canvas which is an image that gets scaled.  
When the scaling of the child hits .91, the mask stops working.  Any 
ideas?