RE: [Flashcoders] How to create Radio Buttons with Grouping

2008-05-01 Thread Cor
Wich Flash version? -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens ACE Flash Verzonden: woensdag 30 april 2008 22:20 Aan: flashcoders@chattyfig.figleaf.com Onderwerp: [Flashcoders] How to create Radio Buttons with Grouping I dragged 2 radio buttons on

[Flashcoders] How do I remove methods of superclass in AS2?

2008-05-01 Thread Alistair Colling
Hiya, thanks for checking this. I have a custom class that I am using as kind of button. The thing is I now want to remove the onPress and onRelease methods as there is a nested movieclip I want to attach these events to. What I would like to know is can I remove or nullify the methods of

RE: [Flashcoders] How do I remove methods of superclass in AS2?

2008-05-01 Thread Karim Beyrouti
How about: class Classes.NoAnswerBut extends Classes.AnswerBut{ function NoAnswerBut(){trace(NoAnswerBut created);} public function onPress(){}//no actions here public function onRelease(){}//no actions here } Another option is to override

RE: [Flashcoders] How do I remove methods of superclass in AS2?

2008-05-01 Thread Cor
You can with override -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Alistair Colling Verzonden: donderdag 1 mei 2008 13:21 Aan: Flash Coders List Onderwerp: [Flashcoders] How do I remove methods of superclass in AS2? Hiya, thanks for checking this. I

[Flashcoders] Random incriments [AS3]

2008-05-01 Thread SJM - Flash
Hi Guys Im writing an application where you can manipulate images increse/decrease size rotate flip etc... but i need to keep the actual image size in memory for outputing (following on to my 'Reading position info X, Y, H W' question). Im trying to set the values for the actual image so

[Flashcoders] PrintJob - Mac vs. PC PDF error

2008-05-01 Thread Radley Marx
Hey all, I have a project containing a diagram that needs to be printed. Often the diagram is too large for a single page, so it's sliced/spread over multiple pages. Further, there's an option that the page may include a header and footer. The code was all developed and tested on a

Re: [Flashcoders] Random incriments [AS3]

2008-05-01 Thread Glen Pike
Hi, This is possibly due to rounding errors. If you want the components to remain the same size, you should set the size of one using the size of the other... selectedImage.width *= 1.1; imgWidthVar = selectedImage.width; etc. Glen SJM - Flash wrote: Hi Guys Im writing

Re: [Flashcoders] Random incriments [AS3]

2008-05-01 Thread SJM - Flash
Hi Glen thanks for your reply, this is a continuation really from what you told me about Pythagoras to do this i need the actual image height and width. Normally i would do it this way but when the selected image is rotated selectedImage will be wider than imageWidth and will not output the

Re: [Flashcoders] PrintJob - Mac vs. PC PDF error

2008-05-01 Thread Glen Pike
Hi, I have been doing some work with PrintJob in AS2 Flex recently. I managed to get it working okay for single pages in AS2 and 2 page spreads in AS3, not sure what you mean by a PDF error, but are you sure it's not your printer driver. I have been using CutePDF Writer which has

Re: [Flashcoders] How do I remove methods of superclass in AS2?

2008-05-01 Thread Alistair Colling
Thanks for your responses guys, I have removed onPress/onRelease events as you suggested onPress = undefined ; onRelease = undefined ; delete(onPress); delete(onRelease); but now my nested mc will

Re: [Flashcoders] Random incriments [AS3]

2008-05-01 Thread Glen Pike
Hi, I am a bit confused as to what you want to do... If you rotate the image, I think it will return the width and height of it's bounding box, but I think you are saying you want to shrink the bounding box so it matches your original size??? - If you do this, you will shrink the

Re: [Flashcoders] How do I remove methods of superclass in AS2?

2008-05-01 Thread Alistair Colling
Thanks for your responses guys, I have removed onPress/onRelease events as you suggested onPress = undefined ; onRelease = undefined ; delete(onPress); delete(onRelease); but now my nested mc

[Flashcoders] Adobe Open Screen!

2008-05-01 Thread Patrick J. Jankun
Wow, seems Adobe makes a big turn! Anybody ready that already? Great news indeed, maybe finally we can drop that crappy flash ide :] http://www.adobe.com/aboutadobe/pressroom/pressreleases/200804/050108AdobeOSP.html -- fancy skills to pay the bills

RE: [Flashcoders] How do I remove methods of superclass in AS2?

2008-05-01 Thread Karim Beyrouti
That is why I recommend this approach: class Classes.AnswerBut extends MovieClip{ function AnswerBut(){ trace(AnswerBut created); addMouseEvents(); } public function _onPress(){

RE: [Flashcoders] How do I remove methods of superclass in AS2?

2008-05-01 Thread Merrill, Jason
Override the functions instead with the override keyword. Something like this: override public function onPress(e:Event):void { } Jason Merrill Bank of America Global Technology Operations LLD eTools Multimedia Join the Bank of America Flash Platform Developer Community Are you a Bank

RE: [Flashcoders] How do I remove methods of superclass in AS2?

2008-05-01 Thread Karim Beyrouti
Sadly - override is AS3 only ... not AS2... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: 01 May 2008 15:26 To: Flash Coders List Subject: RE: [Flashcoders] How do I remove methods of superclass in AS2? Override the functions

Re: [Flashcoders] PrintJob - Mac vs. PC PDF error

2008-05-01 Thread Radley Marx
Thnx Glen, I forgot to mention this is AS2 (an old project). No Flex involved, just Flash Player 8 ( above). background So, PrintJob offers the ability to spread out a large image over several pages. This works fine. The trickier part is a printout that requires a header MC and footer

Re: [Flashcoders] Random incriments [AS3]

2008-05-01 Thread SJM - Flash
Glen, no i do not want to shrink the image i just want to maintain the original valuesthen calculate the increas/decreas info (ie original W 100, H 80 + [1 click] = W 110, H 90) so i can use Pythagoras in asp to do its job as you mentioned!! ... I am guessing you are trying to store your

RE: [Flashcoders] How do I remove methods of superclass in AS2?

2008-05-01 Thread Merrill, Jason
Yeah, I just noticed the poster said AS2, not 3... disregard. Jason Merrill Bank of America Global Technology Operations LLD eTools Multimedia Join the Bank of America Flash Platform Developer Community Are you a Bank of America associate interested in innovative learning ideas and

[Flashcoders] Import image on runtime

2008-05-01 Thread Omar Fouad
Hi list, In an Air - Flash CS3 application I am trying to Import an image with browseForOpen() and getting the event.currentTarget of the File Object and converting it to a BitmapData like this: private function OnFileSelect(e:Event):void { var BD:BitmapData = new BitmapData(300, 400, false);

Re: [Flashcoders] PrintJob - Mac vs. PC PDF error

2008-05-01 Thread Glen Pike
Hi, It sounds like you are going through the right process. Are you checking the return value of PrintJob.addPage() If it does not like what you are doing, it will return false, so you can catch this and maybe trace out an error to see if that is a problem I have just been

Re: [Flashcoders] Import image on runtime

2008-05-01 Thread Glen Pike
You will probably need to load your file as an image/MC/similar first, then draw that into your bitmap. Omar Fouad wrote: Hi list, In an Air - Flash CS3 application I am trying to Import an image with browseForOpen() and getting the event.currentTarget of the File Object and converting it to a

Re: [Flashcoders] Random incriments [AS3]

2008-05-01 Thread Glen Pike
Hi, You can do some trigonometry to get the missing dimensions. The distance from 0, 0, to X,0 - top corner of your image = X2, the distance from 0,0 to 0, Y - the LH corner of your image = Y2: theta = selectedImage._rotation * Math.Pi / 180; //(How much your image is rotated in

Re: [Flashcoders] How do I remove methods of superclass in AS2?

2008-05-01 Thread Ian Thomas
Doesn't make any difference - the same thing works in AS2, you just don't use the 'override' keyword. Override has been added to AS3 to perform additional compile checking (and possibly to allow optimisation), not to add new functionality. And, from whatever the other bit of the thread was:

Re: [Flashcoders] Import image on runtime

2008-05-01 Thread Omar Fouad
You mean Loading it using the path from resolvePath()? On Thu, May 1, 2008 at 6:20 PM, Glen Pike [EMAIL PROTECTED] wrote: You will probably need to load your file as an image/MC/similar first, then draw that into your bitmap. Omar Fouad wrote: Hi list, In an Air - Flash CS3 application

Re: [Flashcoders] Import image on runtime

2008-05-01 Thread Glen Pike
I am not sure because I am not familiar with AIR and files, but to get BitmapData you usually need a source, I don't think AIR will be able to join up the source with a reference to a file without you actually opening up the file somehow. For Flash / Flex, you have to load it with Image /

Re: [Flashcoders] Import image on runtime

2008-05-01 Thread Omar Fouad
OK Glen. Thanks for your help by the way. Hasta On Fri, May 2, 2008 at 1:17 AM, Glen Pike [EMAIL PROTECTED] wrote: I am not sure because I am not familiar with AIR and files, but to get BitmapData you usually need a source, I don't think AIR will be able to join up the source with a