Re: [Flashcoders] SoundChannel.position bug on SOUND_COMPLETE
Flash_Tiger's have talked about this quite a bit. A recent comment was... [Flash_Tiger] BUG: channel.position doesn't work with mp3s below 128kbps] John Patrick Matte | BLITZ wrote: I'm experimenting with the SoundChannel in Flash CS3. On SOUND_COMPLETE, the position of the channel is always smaller than the length of the sound. Shouldn't these be the same values? Anybody knows what's going on? My sounds are wav files in the library, compressed in mp3 or uncompressed, the result is the same. They are 44.1 Hz, 16-bit Stereo. Patrick Matte Interactive Director Ph: 310-551-0200 x214 Fax: 310-551-0022 [EMAIL PROTECTED] BLITZ - 3415 S Sepulveda Bl, Ste 500 - Los Angeles, CA 90034 - www.blitzagency.comhttp://www.blitzagency.com/ (!) Be sure and check out BLITZ Labshttp://labs.blitzagency.com/?utm_source=patrickmatteutm_medium=signature_link, our blog for all the latest and greatest. ___ 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] open word document from flash
Hi Mendelson I download Buddy API but I'm not able to open word file from director I can open txt file by baOpenFile() can you tyell me to open word file or excel from director using Buddy API. thanks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Type Coercion errors when loading remote Interfaces
Hi all, I'm working on an API to allow developers to write apps which connect to an AMFPHP service. For security reasons, we're placing all the code that actually deals directly with the service in a connector SWF which sits on our server and is loaded in the developer's app by a loader class which loads the connector and provides an interface to it. An architecture decision has been made to use callback functions to get messages back to classes in the app, so when the connector receives messages from the service, it calls callback methods in any object which has registered itself as a listener (It also dispatches events like a proper implementation should, but these callbacks are a legacy hangover from the AS2 version. Y'all know how it is ;) ). To this end, I've defined two interfaces: IAPIConnector, which defines the available methods on the single class in the connector SWF, and IAPIListener, which defines the callbacks which should be present in a listening class. Classes make calls through a variable in the connector class cast as IAPIConnector, and the connector calls methods on objects cast as IAPIListener. This way, neither the loader contains any imported connector code (just the interface definition) and vice versa. This works as expected when both SWF files are on the local filesystem, but when I attempt to load the Connector from a remote location, I get errors along these lines: TypeError: Error #1034: Type Coercion failed: cannot convert api.test::[EMAIL PROTECTED] to api.interfaces.IAPIListener. (when passing a listener class [which definitely does implement IAPIListener] to the loaded connector class ) TypeError: Error #1034: Type Coercion failed: cannot convert api::[EMAIL PROTECTED] to api.interfaces.IAPIConnector. (when trying to cast an instance of the loaded connector class to IAPIConnector [ which it definitely does implement] in the loader class) This really has me scratching my head. My best guess is that there's some kind of ApplicationDomain weirdness going on which is causing both SWFs to have their own independent definitions of the Interfaces, and so therefore complaining when something from the other SWF, which implements its own definition of the interface, is passed through. I am, however, explicitly using a LoaderContext to load the connector into a child of the current ApplicationDomain, like so: $loader = new Loader(); $loader.contentLoaderInfo.addEventListener( Event.COMPLETE, onAPILoaded ); var cxt:LoaderContext = new LoaderContext(); cxt.applicationDomain =new ApplicationDomain( ApplicationDomain.currentDomain ) $loader.load( new URLRequest( swfUrl ), cxt ); And if that was wrong, surely it wouldn't work locally either? It's driving me mental! Any insights very gratefully received, Henry ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Printing filters from the Flash Player
Hi there, We use filters (shadows and glows) to make the scene look better. At some point a user can print what they've created, but the print shows no filters. Is there an easy way to get the filters on the print? Gert-Jan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] open word document from flash
Hi Bassam, I don't have my Director documentation in front of me at the moment, but I believe it's this: Result = baOpenFile(fullPathToFile, Normal) -- returns a numeric value of whether or not it worked. That line of code needs the *full* path to the file name, and it opens the app based on the associated file extension. The Normal opens the app how it's normally opened, i.e., minimized, maximized. It should be working, can you post the line of code? - MM -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bassam M Sent: Friday, October 24, 2008 6:37 AM To: [EMAIL PROTECTED]; Flash Coders List Subject: Re: [Flashcoders] open word document from flash Hi Mendelson I download Buddy API but I'm not able to open word file from director I can open txt file by baOpenFile() can you tyell me to open word file or excel from director using Buddy API. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] open word document from flash
Another option is to use MDM Zinc to wrap your flash movie in. This is really simple and offers a cross-platform solution. It is fairly expensive though if that is the only reason you need to use the third party wrapper. I have also used a bat file from a bloke called Northcode - do a search on Flashkit.com and there is a long thread on this subject. Good luck! P -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mendelsohn, Michael Sent: 24 October 2008 13:35 To: Flash Coders List Subject: RE: [Flashcoders] open word document from flash Hi Bassam, I don't have my Director documentation in front of me at the moment, but I believe it's this: Result = baOpenFile(fullPathToFile, Normal) -- returns a numeric value of whether or not it worked. That line of code needs the *full* path to the file name, and it opens the app based on the associated file extension. The Normal opens the app how it's normally opened, i.e., minimized, maximized. It should be working, can you post the line of code? - MM -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bassam M Sent: Friday, October 24, 2008 6:37 AM To: [EMAIL PROTECTED]; Flash Coders List Subject: Re: [Flashcoders] open word document from flash Hi Mendelson I download Buddy API but I'm not able to open word file from director I can open txt file by baOpenFile() can you tyell me to open word file or excel from director using Buddy API. ___ 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] attachMovie() with non-library-symbols
Have your received my email with the Test SWF? What's an RSL ? Remote Shared Library. Imagine Main.swf loading Sub.swf. Sub.swf consists of Library Symbol exported for AS and for runtime sharing! Then in Main.swf Symbols from Sub.swf can be attached as if they were directly in Main.swf. Symbols from Main.swf can always be attached to Sub.swf or its childs (without being exported for runtime sharing). I'm not sure that the movie *is* working. I mean, could as well be that the attachMovie with unexistent symbols are just garbage in the SWF, or hooks for the case in which the movie is loaded by another one, which contain the syms, but optional. As long as you work with third party SWF files, we can only make speculations about its content and how it was coded. You should work with SWF files, where the source is available. Is the sym library of a 'loader' movie supposed to be available to 'loaded' movies for use ? yes, see above but the sym library of a loadED movie is only available to the loadER movie, when exported for runtime sharing (RSL). hth, Matthias ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Printing filters from the Flash Player
Gert-Jan van der Wel wrote: Hi there, We use filters (shadows and glows) to make the scene look better. At some point a user can print what they've created, but the print shows no filters. Is there an easy way to get the filters on the print? Have you tried printAsBitmap? I found that was the only way to get some stuff to print the same way it was displayed, even when filters weren't involved (like some hand-drawn shadows using transparent fills). My project was written in AS2; I don't know whether the implications are different for code running in AVM2. (code simplified from my app, untested) -- private function printPoster():Void { var posterPrintJob:PrintJob = new PrintJob(); if (posterPrintJob.start()) { var pgsQueued:Number = 0; this.printPg._visible = true; //printPg is the MovieClip to print var printArea:Object = {xMin:0, xMax:printPg._width, yMin:0, yMax:printPg._height}; var printOptions:Object = {printAsBitmap:true}; if (posterPrintJob.addPage('printPg', printArea, printOptions)) { pgsQueued++; } if (pgsQueued) { posterPrintJob.send(); } } } -- ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Printing filters from the Flash Player
Hi Jim, Yeah we tried the printAsBitmap option, but it didn't make much of a difference. We're now looking at creating a BitmapData and printing that. Maybe that works. Gert-Jan Op 24 okt 2008, om 15:17 heeft Jim McIntyre het volgende geschreven: Gert-Jan van der Wel wrote: Hi there, We use filters (shadows and glows) to make the scene look better. At some point a user can print what they've created, but the print shows no filters. Is there an easy way to get the filters on the print? Have you tried printAsBitmap? I found that was the only way to get some stuff to print the same way it was displayed, even when filters weren't involved (like some hand-drawn shadows using transparent fills). My project was written in AS2; I don't know whether the implications are different for code running in AVM2. (code simplified from my app, untested) -- private function printPoster():Void { var posterPrintJob:PrintJob = new PrintJob(); if (posterPrintJob.start()) { var pgsQueued:Number = 0; this.printPg._visible = true; //printPg is the MovieClip to print var printArea:Object = {xMin:0, xMax:printPg._width, yMin:0, yMax:printPg._height}; var printOptions:Object = {printAsBitmap:true}; if (posterPrintJob.addPage('printPg', printArea, printOptions)) { pgsQueued++; } if (pgsQueued) { posterPrintJob.send(); } } } -- ___ 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] Flash / Flex Wiki Framework / API
Hi, I am looking for a actionscript framework or api which will help build a wiki for a Flex application. Typical Wiki functionality (integration with Wiki application or support for Wiki within Flex) (Freedom to construct pages and mini-sites of content) Rich Text Editor functionality including ability to support inline images, external links, etc. Ability to manage/organise content created within Flex (or Wiki within Flex) by creating hierarchical folders and/or tags to organise pages Ability to freely manage page layout, preferably with a minimum of technical knowledge (such as WML) Support for external feeds within Wiki Support for threaded discussions as part of or adjacent to Wiki Any suggestions appreciated. thanks, MaTT ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] h264 video looks blurry/crappy in flash
Hey All Has anybody experieced h264 video being more crappy when played through flash instead of i.e. the quicktime player If you compare these two: In flash http://agentzoo.dk/temp/videotests/?file=mp4/ bancpost720_16-9.mp4w=702h=394 the file directly: http://agentzoo.dk/temp/videotests/mp4/bancpost720_16-9.mp4 You will see a big quality differece - Notice how blurry the video and subtitles looks and how compressed the text and logo looks in flash. The video has carefully been compressed in episode with flash compatible settings... Cheers, B) Søren MOTION INTERACTIVITY dslnc studio - www.desilence.net +34 93 268 0953 / +34 61 555 9963 (mobile) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] open word document from flash
When using Buddy to launch external files, I've always used a 3 step approach. First, find the user's doc viewer with: App = baFindApp(doc) Then, string the app path and the doc path together, converting the paths to short file names: myFile = the moviePath myworddocument.doc appFile = baShortFileName(App) baShortFileName(myFile) Then, open the file in the correct app: baRunProgram(appFile, normal, false) Error checking at each step, of course. I've used this method with pdf, xls, wmv, doc, and ppt successfully. Should work with any windows file type. Bob Hi Bassam, I don't have my Director documentation in front of me at the moment, but I believe it's this: Result = baOpenFile(fullPathToFile, Normal) -- returns a numeric value of whether or not it worked. That line of code needs the *full* path to the file name, and it opens the app based on the associated file extension. The Normal opens the app how it's normally opened, i.e., minimized, maximized. It should be working, can you post the line of code? - MM Hi Mendelson I download Buddy API but I'm not able to open word file from director I can open txt file by baOpenFile() can you tyell me to open word file or excel from director using Buddy API. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] h264 video looks blurry/crappy in flash
do you, by any chance, use the video.smoothing = true ? by looking at the video, it seems this option is set to true hth, Cedric Hey All Has anybody experieced h264 video being more crappy when played through flash instead of i.e. the quicktime player If you compare these two: In flash http://agentzoo.dk/temp/videotests/?file=mp4/ bancpost720_16-9.mp4w=702h=394 the file directly: http://agentzoo.dk/temp/videotests/mp4/bancpost720_16-9.mp4 You will see a big quality differece - Notice how blurry the video and subtitles looks and how compressed the text and logo looks in flash. The video has carefully been compressed in episode with flash compatible settings... Cheers, B) Søren MOTION INTERACTIVITY dslnc studio - www.desilence.net +34 93 268 0953 / +34 61 555 9963 (mobile) ___ 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] Disabling Print Screen key
If you have any Macs in your target audience, remember that the OS's screen capture routine doesn't involve the clipboard, but creates a PNG file directly on the desktop. Remember too that there is a variety of screen grab utilities out there on either platform... this might be a losing battle. -Jim Pedro Taranto wrote: In AS2 I used to create an onEnterFrame loop to overwrite the clipboard content using the System.setClipboard(string) function, it still works in AS3 Bests, -- Pedro Taranto Andrew Murphy wrote: Hi. :) I'm attempting to disable using the Print Screen button for an AS3 movie on a web page. The stage doesn't appear to fire a KeyboardEvent.KEY_DOWN when the Print Screen key is pressed. Is there a way to detect the Print Screen key? Or another method for disabling the user's ability to do a Print Screen screen cap of a Flash movie? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] h264 video looks blurry/crappy in flash
Detection script has the wrong version format: 9,1,1,5 Should be: 9,0,115,0 As for the blurryness, like Cedric said, it's probably the video.smoothing property. Without it though, the video (especially text at the end) looks very jagged. regards, Muzak - Original Message - From: Søren Christensen [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Friday, October 24, 2008 5:15 PM Subject: [Flashcoders] h264 video looks blurry/crappy in flash Hey All Has anybody experieced h264 video being more crappy when played through flash instead of i.e. the quicktime player If you compare these two: In flash http://agentzoo.dk/temp/videotests/?file=mp4/ bancpost720_16-9.mp4w=702h=394 the file directly: http://agentzoo.dk/temp/videotests/mp4/bancpost720_16-9.mp4 You will see a big quality differece - Notice how blurry the video and subtitles looks and how compressed the text and logo looks in flash. The video has carefully been compressed in episode with flash compatible settings... Cheers, B) Søren ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Disabling Print Screen key
Thanks for remember that Jim, I forgot to say that it just worked on windows in my tests it didnt work on linux nor mac, but it was OK for the project I developed but you have to remember that the user wont be able to copy anything while your flash is running, even in the background -- Pedro Taranto On Fri, Oct 24, 2008 at 1:37 PM, Jim McIntyre [EMAIL PROTECTED] wrote: If you have any Macs in your target audience, remember that the OS's screen capture routine doesn't involve the clipboard, but creates a PNG file directly on the desktop. Remember too that there is a variety of screen grab utilities out there on either platform... this might be a losing battle. -Jim Pedro Taranto wrote: In AS2 I used to create an onEnterFrame loop to overwrite the clipboard content using the System.setClipboard(string) function, it still works in AS3 Bests, -- Pedro Taranto Andrew Murphy wrote: Hi. :) I'm attempting to disable using the Print Screen button for an AS3 movie on a web page. The stage doesn't appear to fire a KeyboardEvent.KEY_DOWN when the Print Screen key is pressed. Is there a way to detect the Print Screen key? Or another method for disabling the user's ability to do a Print Screen screen cap of a Flash movie? ___ 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] Disabling Print Screen key
It's one of those things where 'abuse' comes to mind. Short of not allowing flash to do such a thing, if such an overwrite of the clip-board is occurring there should be a warning to the user, otherwise they might wonder why they can't use copy-paste anymore! I wonder what it is that would be so critical you don't want a screen shot...? I've never seen a system that stops someone from taking a screen shot when they still really wanted one, in the end it's just an annoying feature that disrupts everyone's time/sanity! With kind, Seb. Pedro Taranto wrote: Thanks for remember that Jim, I forgot to say that it just worked on windows in my tests it didnt work on linux nor mac, but it was OK for the project I developed but you have to remember that the user wont be able to copy anything while your flash is running, even in the background -- Pedro Taranto On Fri, Oct 24, 2008 at 1:37 PM, Jim McIntyre [EMAIL PROTECTED] wrote: If you have any Macs in your target audience, remember that the OS's screen capture routine doesn't involve the clipboard, but creates a PNG file directly on the desktop. Remember too that there is a variety of screen grab utilities out there on either platform... this might be a losing battle. -Jim Pedro Taranto wrote: In AS2 I used to create an onEnterFrame loop to overwrite the clipboard content using the System.setClipboard(string) function, it still works in AS3 Bests, -- Pedro Taranto Andrew Murphy wrote: Hi. :) I'm attempting to disable using the Print Screen button for an AS3 movie on a web page. The stage doesn't appear to fire a KeyboardEvent.KEY_DOWN when the Print Screen key is pressed. Is there a way to detect the Print Screen key? Or another method for disabling the user's ability to do a Print Screen screen cap of a Flash movie? ___ 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] Disabling Print Screen key
The company I work for does online surveys (amongst other things) and they can include showing people images of proposed products/campaigns/etc. A client asked if we can keep our panelists from keeping copies. Our response has been, No. But we can make it a little more difficult. So they asked us to research any means for making it more difficult that we could come up with. I couldn't think of any way to get around the Print Screen key, so I thought I'd ask here and see if anyone else had done it. I like the cleverness of the System.setClipboard method, except that it could make for a poor user experience and doesn't completely fix the problem. C'est la vie. Thank you all for sharing your insights with me. ^_^ Andrew Murphy Interactive Media Specialist [EMAIL PROTECTED] Delvinia 214 King Street West, Suite 214 Toronto Canada M5H 3S6 P 416.364.1455 ext. 232 F 416.364.9830 W www.delvinia.com CONFIDENTIALITY NOTICE This email message may contain privileged or confidential information. If you are not the intended recipient or received this communication by error, please notify the sender and delete the message without copying or disclosing it. AVIS DE CONFIDENTIALITÉ Ce message peut contenir de l'information légalement privilégiée ou confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu par erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en détruire le contenu sans le communiquer a d'autres ou le reproduire. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of sebastian Sent: Friday, October 24, 2008 2:00 PM To: Flash Coders List Subject: Re: [Flashcoders] Disabling Print Screen key It's one of those things where 'abuse' comes to mind. Short of not allowing flash to do such a thing, if such an overwrite of the clip-board is occurring there should be a warning to the user, otherwise they might wonder why they can't use copy-paste anymore! I wonder what it is that would be so critical you don't want a screen shot...? I've never seen a system that stops someone from taking a screen shot when they still really wanted one, in the end it's just an annoying feature that disrupts everyone's time/sanity! With kind, Seb. Pedro Taranto wrote: Thanks for remember that Jim, I forgot to say that it just worked on windows in my tests it didnt work on linux nor mac, but it was OK for the project I developed but you have to remember that the user wont be able to copy anything while your flash is running, even in the background -- Pedro Taranto On Fri, Oct 24, 2008 at 1:37 PM, Jim McIntyre [EMAIL PROTECTED] wrote: If you have any Macs in your target audience, remember that the OS's screen capture routine doesn't involve the clipboard, but creates a PNG file directly on the desktop. Remember too that there is a variety of screen grab utilities out there on either platform... this might be a losing battle. -Jim Pedro Taranto wrote: In AS2 I used to create an onEnterFrame loop to overwrite the clipboard content using the System.setClipboard(string) function, it still works in AS3 Bests, -- Pedro Taranto Andrew Murphy wrote: Hi. :) I'm attempting to disable using the Print Screen button for an AS3 movie on a web page. The stage doesn't appear to fire a KeyboardEvent.KEY_DOWN when the Print Screen key is pressed. Is there a way to detect the Print Screen key? Or another method for disabling the user's ability to do a Print Screen screen cap of a Flash movie? ___ 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 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Printing filters from the Flash Player
Hi, Here is some AS2 code that I wrote to do this - the _toPrint is a MovieClip containing lots of stuff with filters on. There is scaling too - depending on whether the user has chosen portrait or landscape - for later AS3 code, I worked out the orientation and rotated the printed image - not bitmapped though... The whole lot is rendered to a Bitmap, then printed. Hope this helps. I may even get round to blogging it one day :) Glen private function _print():Void { //start a print job with the _toPrint... // create PrintJob object var my_pj:PrintJob = new PrintJob(); // display print dialog box, but only initiate the print job // if start returns successfully. if (my_pj.start()) { // use a variable to track successful calls to addPage var pagesToPrint:Number = 0; //we need to scale the object too! var h:Number = my_pj.pageHeight; var w:Number = my_pj.pageWidth; var xs = w / _toPrint._width; var ys = h / _toPrint._height; trace(page dimensions + w + , + h + scale + xs + , + ys + to print + _toPrint._xscale + , + _toPrint._yscale ); var _printWidth:Number; var _printHeight:Number; var scale:Number = (xs ys) ? xs : ys; if (xs ys) { _printWidth = Math.floor(xs * _toPrint._width); _printHeight = Math.floor(xs * _toPrint._height); } else { _printWidth = Math.floor(ys * _toPrint._width); _printHeight = Math.floor(ys * _toPrint._height); } trace(to print + _toPrint._xscale + , + _toPrint._yscale + = + _toPrint._width + , + _toPrint._height); // add specified area to print job //now do our bitmap thingy.. var printedImg:MovieClip = this.createEmptyMovieClip(printedImg, this.getNextHighestDepth()); printedImg.beginFill(0xff, 1); printedImg.moveTo(0, 0); printedImg.lineTo(my_pj.pageWidth, 0); printedImg.lineTo(my_pj.pageWidth, my_pj.pageHeight); printedImg.lineTo(0, my_pj.pageHeight); printedImg.lineTo(0, 0); printedImg.endFill(); var printBmp:BitmapData = new BitmapData(my_pj.pageWidth, my_pj.pageHeight, false, 0xff); printedImg.attachBitmap(printBmp, 1); var mtx:Matrix = new Matrix(); mtx.scale(scale, scale); printBmp.draw(_toPrint, mtx); // repeat once for each page to be printed if (my_pj.addPage(printedImg, null, {printAsBitmap:true})) { pagesToPrint++; } _toPrint._xscale = _toPrint._yscale = 100; if (pagesToPrint 0) { my_pj.send(); // print page(s) } printBmp.dispose(); delete printBmp; printedImg.unloadMovie(); } } Gert-Jan van der Wel wrote: Hi Jim, Yeah we tried the printAsBitmap option, but it didn't make much of a difference. We're now looking at creating a BitmapData and printing that. Maybe that works. Gert-Jan Op 24 okt 2008, om 15:17 heeft Jim McIntyre het volgende geschreven: Gert-Jan van der Wel wrote: Hi there, We use filters (shadows and glows) to make the scene look better. At some point a user can print what they've created, but the print shows no filters. Is there an easy way to get the filters on the print? Have you tried printAsBitmap? I found that was the only way to get some stuff to print the same way it was displayed, even when filters weren't involved (like some hand-drawn shadows using transparent fills). My project was written in AS2; I don't know whether the implications are different for code running in AVM2. (code simplified from my app, untested) -- private function printPoster():Void { var posterPrintJob:PrintJob = new PrintJob(); if (posterPrintJob.start()) { var pgsQueued:Number = 0; this.printPg._visible = true; //printPg is the MovieClip to print var printArea:Object = {xMin:0, xMax:printPg._width, yMin:0, yMax:printPg._height}; var printOptions:Object = {printAsBitmap:true}; if (posterPrintJob.addPage('printPg', printArea, printOptions)) { pgsQueued++; } if (pgsQueued) { posterPrintJob.send(); } } } -- ___ 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 -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list
Re: [Flashcoders] Type Coercion errors when loading remote Interfaces
Hi, There is a bug in Jira which looks like your problem: http://bugs.adobe.com/jira/browse/ASC-3529 I had strange behaviour the other day with loaded classes, but it was different to yours - I just remembered finding this on the way... Glen -- Glen Pike 01326 218440 www.glenpike.co.uk http://www.glenpike.co.uk ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] NetStream.Play.FileStructureInvalid
Hello, I met the -NetStream.Play.FileStructureInvalid- The documentation is poor: Flash Player detects an invalid file structure and will not try to play this type of file. Supported by Flash Player 9 Update 3 and later. My problem is that the mp4 file (created with ffmpeg) plays well 9 out of 10 times and only throws this error in when the browser cache is emptied or the file plays for the first time on a virgin browser. Not at all consistent. Anybody any clue. BTW: detecting this error can be solved by tracking down the NetStream.Play.FileStructureInvalid , disconnecting the netconnection, reconnect and simply play it again. But that still keeps me clueless. Latcho ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders