Re: [Flashcoders] Re: AIR Printing V.S. Sytem issue
This is an old problem, in the past I fixed that creating a VBScript to print the job or programs like JPrintor , flash studio pro or zinc . These days I wrap the swf using ActiveX in a C# program that handles the print. CrAzYcAlL. Omar Fouad wrote: is the list working? On Dec 29, 2007 4:23 AM, Omar Fouad <[EMAIL PROTECTED]> wrote: Hello, How can I prevent windows to show the system Print dialog box (as in start printing without any notice) when doing a PrintJob() in AIR? thanks in advance -- Omar M. Fouad - Digital Emotions http://www.omarfouad.net This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Getting the project directory path in AIR
What version of Air ? "flash.desktop.NativeApplication" is for beta2 and beta3 if you're using an older version you need to use "flash.System.Shell" instead. CrAzYcAlL * *Omar Fouad wrote: flash.desktop.NativeApplication is not a Class in the AS3 library,,, On Dec 31, 2007 12:45 AM, CrAzYcAlL <[EMAIL PROTECTED]> wrote: use InvokeEvent : import flash.events.InvokeEvent; import flash.desktop.NativeApplication; import flash.filesystem.File; var appDir:File; NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, onInvoke) function onInvoke (invokeEvent:InvokeEvent):void{ appDir = invokeEvent.currentDirectory; trace ( appDir.nativePath ); } CrAzYcAlL Omar Fouad wrote: Hey, Um doing some kiosk database driven Application in AIR, and I need to return the absolute directory path of the .fla file itself in order to be able to write files in the same application directory. I tried: var path:File.applicationStorageDirectory; trace(path.nativePath) // it returned some other directory inside "documents and settings" any Idea? ___ 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 creating sprite instances in a loop
and, of course, you can't forget addChild(). []'s andrei On Dec 30, 2007 2:50 PM, Piers Cowburn <[EMAIL PROTECTED]> wrote: > I'm not quite sure if I understand your question fully but I think > the problem you're having is that you need to do something with them > - for example if you pushed each new sprite into an array then you'd > have a reference to each of them, but the you're doing it at the > moment you'll just lose the reference to the old one each time. > > Piers > > > On 30 Dec 2007, at 16:23, Matt Muller wrote: > > > Hi, does anyone know how to create individual sprite instances in a > > loop > > > > for (var j:uint = 0; j < _columns; j++) > > { > > var sprite:Sprite = new Sprite(); > > } > > > > this just over writes the sprite. > > > > thanks > > > > MaTT > > ___ > > 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] Getting the project directory path in AIR
flash.desktop.NativeApplication is not a Class in the AS3 library,,, On Dec 31, 2007 12:45 AM, CrAzYcAlL <[EMAIL PROTECTED]> wrote: > use InvokeEvent : > > import flash.events.InvokeEvent; > import flash.desktop.NativeApplication; > import flash.filesystem.File; > > var appDir:File; > NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, > onInvoke) > function onInvoke (invokeEvent:InvokeEvent):void{ >appDir = invokeEvent.currentDirectory; >trace ( appDir.nativePath ); > } > > CrAzYcAlL > > Omar Fouad wrote: > > Hey, > > Um doing some kiosk database driven Application in AIR, and I need to > return > > the absolute directory path of the .fla file itself in order to be able > to > > write files in the same application directory. > > > > I tried: > > > > var path:File.applicationStorageDirectory; > > trace(path.nativePath) // it returned some other directory inside > "documents > > and settings" > > > > any Idea? > > > > > > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- Omar M. Fouad - Digital Emotions http://www.omarfouad.net This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Getting the project directory path in AIR
use InvokeEvent : import flash.events.InvokeEvent; import flash.desktop.NativeApplication; import flash.filesystem.File; var appDir:File; NativeApplication.nativeApplication.addEventListener(InvokeEvent.INVOKE, onInvoke) function onInvoke (invokeEvent:InvokeEvent):void{ appDir = invokeEvent.currentDirectory; trace ( appDir.nativePath ); } CrAzYcAlL Omar Fouad wrote: Hey, Um doing some kiosk database driven Application in AIR, and I need to return the absolute directory path of the .fla file itself in order to be able to write files in the same application directory. I tried: var path:File.applicationStorageDirectory; trace(path.nativePath) // it returned some other directory inside "documents and settings" any Idea? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Re: AIR Printing V.S. Sytem issue
Omar Fouad wrote: > is the list working? Yes, but it's Sunday, it's the week between Christmas and New Year's, and not many people are working today. It's going to be pretty sporadic until Wednesday or Thursday, probably. I wish I could answer your question about AIR, but somebody will. Be patient. Cordially, Kerry Thompson ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Re: AIR Printing V.S. Sytem issue
is the list working? On Dec 29, 2007 4:23 AM, Omar Fouad <[EMAIL PROTECTED]> wrote: > Hello, > > How can I prevent windows to show the system Print dialog box (as in start > printing without any notice) when doing a PrintJob() in AIR? > > thanks in advance > -- > Omar M. Fouad - Digital Emotions > http://www.omarfouad.net > > This e-mail and any attachment is for authorised use by the intended > recipient(s) only. It may contain proprietary material, confidential > information and/or be subject to legal privilege. It should not be copied, > disclosed to, retained or used by, any other party. If you are not an > intended recipient then please promptly delete this e-mail and any > attachment and all copies and inform the sender. Thank you. -- Omar M. Fouad - Digital Emotions http://www.omarfouad.net This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] This actionscript error is driving me mad
Unfortunately, pnt is not assigned anywhere else. It only appears in those lines of code I have already sent. If I replace them with pnt.x=pnt.x; pnt.y=pnt.y; the code works fine! But anything else fails. Well, that would be the equivalent of commenting out the lines since no change would take place. One thing to notice (still on the vein of my previous email) is this - you create pnt on that "pnt = new..." line, but on the next loop iteration, if those initial pnt.x lines are not commented, you are just re-assign values to them. You'd be changing the value of the pnt instance just created on the previous pass of the loop. Later reassign a new copy of Point to the pnt variable just creates a new Point, but the original point (from the previous loop iteration) still has its values changed. I am thinking this could be an internal Flash bug. Where should I report this? I am willing to send all of my code if this could help tracing out the bug. Honestly? While I can't seem to understand what's wrong in your code or in its output - I don't know what's the expected result after all and I can't see it running - I'd say this is hardly the case of an 'internal' Flash bug. Chances are, somebody would have already run into something this big. It's nothing personal, but at this stage, I'd say there's a much higher probability that there's an error in your algorithm. Adobe has some way to report bugs, somewhere on their website, though. Zeh ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] as3 creating sprite instances in a loop
I'm not quite sure if I understand your question fully but I think the problem you're having is that you need to do something with them - for example if you pushed each new sprite into an array then you'd have a reference to each of them, but the you're doing it at the moment you'll just lose the reference to the old one each time. Piers On 30 Dec 2007, at 16:23, Matt Muller wrote: Hi, does anyone know how to create individual sprite instances in a loop for (var j:uint = 0; j < _columns; j++) { var sprite:Sprite = new Sprite(); } this just over writes the sprite. thanks MaTT ___ 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] This actionscript error is driving me mad
Dear Zeh, thank you for your reply. 2007/12/30, Zeh Fernando <[EMAIL PROTECTED]>: > > var p1:Point = new Point(10, 20); > var p2:Point = p1; // not a copy, but a reference > p2.x = 0; > trave (p1.x); // traces 0, not 10 > > That's the only thing I can imagine. I guess it will depends on what's > on the [snip] part of your code. Is anything (that's also part of the > pathB array) assigned to pnt? Unfortunately, pnt is not assigned anywhere else. It only appears in those lines of code I have already sent. If I replace them with pnt.x=pnt.x; pnt.y=pnt.y; the code works fine! But anything else fails. I am thinking this could be an internal Flash bug. Where should I report this? I am willing to send all of my code if this could help tracing out the bug. BTW, happy new year! :) Bill Kotsias wrote: > > ...[snip]... > > private var pnt:Point = new Point(); > > private var dirp:int; > > private var fastp:int; > > private var i:int; > > private var pathB:Array; > > ...[snip]... > > for (dirp=fastp; dirp<=i; dirp++) { > >// BUG!!! If I UNCOMMENT 1 of the 2 following lines, code gets mixed > up. > >// pnt.x=pathB[dirp][0].x+pathB[dirp][2].x; > >// pnt.y=pathB[dirp][0].y+pathB[dirp][2].y; > > pnt=new > Point(pathB[dirp][0].x+pathB[dirp][2].x,pathB[dirp][0].y+pathB[dirp][2].y); > > if (addElement(pnt, dirp, pathB[dirp][2], pathB[dirp][3]+1)) > return pathF; > > } > ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] as3 creating sprite instances in a loop
Hi, does anyone know how to create individual sprite instances in a loop for (var j:uint = 0; j < _columns; j++) { var sprite:Sprite = new Sprite(); } this just over writes the sprite. thanks MaTT ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders