Re: [Flashcoders] AS3 MOUSE_OVER/OUT bubbling
Andrew, You might also want to check out this link: http://www.zedia.net/2008/difference-between-mouseeventroll_over-and-mouseeventmouse_over-in-as3/ It does a great job of illustrating the difference between MOUSE_OVER and ROLL_OVER. Tony http://www.lifelinewebsolutions.com On Sun, Jul 5, 2009 at 12:39 PM, Andrew Sinning wrote: > Thanks Rob. That's just the ticket. > > > Rob Romanek wrote: > >> Hey Andrew, >> >> Try setting mouseEnabled to false for your cursor sprite. >> >> hth, >> >> Rob >> >> On 5-Jul-09, at 8:40 AM, Andrew Sinning wrote: >> >> The problem is that as soon as the custom cursor's sprite becomes >>> visible, it causes a MOUSE_OUT event to get called on the image (because the >>> image is intercepting the mouse-over?) and then the custom cursor gets >>> turned off again. The result is a flashing cursor. Nice effect, but not >>> what I have in mind. >>> >>> ___ >> Flashcoders mailing list >> Flashcoders@chattyfig.figleaf.com >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >> > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Exporting Canvas to PDF or Print
You could easily have a button that calls the printer and have it print. If you look at the documentation for AS3 there is a class called PrintJob. You could alternativley use a third party package called AlivePDF which you can use to make a PDF out of your flash content, and have the user download the genereated PDF. Their site is here: http://alivepdf.bytearray.org/ Ktu On Sun, Jul 5, 2009 at 7:29 PM, K-Dawg wrote: > Hi, > > I developed a dynamic coupon engine for a client that loads coupon data > from > an XML file and draws coupons on the canvas. This all went surprisingly > well as I am relatively new to ActionScript. However, I need to be able to > make these printable, either printing the canvas or sending to a PDF. How > can I do this? > > I am figuring I could > > 1.) add a button to the page (webpage, not AS) that launches the same AS in > a separate window and calls the browser's print function. > 2.) export the canvas directly to the printer (how) > 3.) export the canvas to a PDF (how) > > Any thoughts/suggestions are greatly appreciated. > > Thanks! > > Kevin > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Exporting Canvas to PDF or Print
Hi, I developed a dynamic coupon engine for a client that loads coupon data from an XML file and draws coupons on the canvas. This all went surprisingly well as I am relatively new to ActionScript. However, I need to be able to make these printable, either printing the canvas or sending to a PDF. How can I do this? I am figuring I could 1.) add a button to the page (webpage, not AS) that launches the same AS in a separate window and calls the browser's print function. 2.) export the canvas directly to the printer (how) 3.) export the canvas to a PDF (how) Any thoughts/suggestions are greatly appreciated. Thanks! Kevin ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 MOUSE_OVER/OUT bubbling
Thanks Rob. That's just the ticket. Rob Romanek wrote: Hey Andrew, Try setting mouseEnabled to false for your cursor sprite. hth, Rob On 5-Jul-09, at 8:40 AM, Andrew Sinning wrote: The problem is that as soon as the custom cursor's sprite becomes visible, it causes a MOUSE_OUT event to get called on the image (because the image is intercepting the mouse-over?) and then the custom cursor gets turned off again. The result is a flashing cursor. Nice effect, but not what I have in mind. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Strange characters added to file when saving from AIR using fileStream
I had similair behaviour. Save the xml as UTF-8 and it should be allright. J Kenneth Kawamoto wrote: I may be wrong but that could be BOM? If you use writeUTF() and open the resulting file in a Unicode editor do you still see it? Kenneth Kawamoto http://www.materiaprima.co.uk/ Cheetham, Marcus wrote: I'm using fileStream to save a text file. This works OK, but introduces some strange characters at the beginning of the saved text. I'm saving XML data. I've kept this as an XML object and also converted it to string -- same thing always happens. Any idea how I can get rid of these characters? Thanks, This is what I end up with (note the 'g at the beginning) : 'g burger 3.95 fries 1.45 This is the Flex 3 code: http://www.adobe.com/2006/mxml"; layout="absolute" activate="createXML()"> ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 MOUSE_OVER/OUT bubbling
Did u try ROLL_OVER / ROLL_OUT to? Jiri Andrew Sinning wrote: I've read though the documentation regarding event bubbling several times, but the concept remains blurry. Perhaps this example will help me get my head around it. I want to display a custom cursor, a version of the Photoshop "flat hand" cursor, whenever the mouse is over a cropped image to indicate that it can be moved around within the frame. So, I have for the sprite of the image, MOUSE_OVER turns on and MOUSE_OUT turns off the custom cursor. The custom cursor object simply hides or displays the Mouse and has a sprite on the top level of the stage with startDrag() and stopDrag(). The problem is that as soon as the custom cursor's sprite becomes visible, it causes a MOUSE_OUT event to get called on the image (because the image is intercepting the mouse-over?) and then the custom cursor gets turned off again. The result is a flashing cursor. Nice effect, but not what I have in mind. Thanks in advance for any guidance! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] AS3 MOUSE_OVER/OUT bubbling
Hey Andrew, Try setting mouseEnabled to false for your cursor sprite. hth, Rob On 5-Jul-09, at 8:40 AM, Andrew Sinning wrote: The problem is that as soon as the custom cursor's sprite becomes visible, it causes a MOUSE_OUT event to get called on the image (because the image is intercepting the mouse-over?) and then the custom cursor gets turned off again. The result is a flashing cursor. Nice effect, but not what I have in mind. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] AS3 MOUSE_OVER/OUT bubbling
I've read though the documentation regarding event bubbling several times, but the concept remains blurry. Perhaps this example will help me get my head around it. I want to display a custom cursor, a version of the Photoshop "flat hand" cursor, whenever the mouse is over a cropped image to indicate that it can be moved around within the frame. So, I have for the sprite of the image, MOUSE_OVER turns on and MOUSE_OUT turns off the custom cursor. The custom cursor object simply hides or displays the Mouse and has a sprite on the top level of the stage with startDrag() and stopDrag(). The problem is that as soon as the custom cursor's sprite becomes visible, it causes a MOUSE_OUT event to get called on the image (because the image is intercepting the mouse-over?) and then the custom cursor gets turned off again. The result is a flashing cursor. Nice effect, but not what I have in mind. Thanks in advance for any guidance! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders