[Flashcoders] Scroll Bar formula problem

2007-06-25 Thread O. Fouad
Hi, I can't figure out how I can move a masked MC according to the position of the scroll bar. I tried this code with a scrollbar a mask and MC (the content) yp = scrollbar._y; scrollRatio = MC._height/mask._height; scrollbar._height = mask._height/scrollRatio; //gets the height of the

Re: [Flashcoders] Scroll Bar formula problem

2007-06-25 Thread O. Fouad
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of O. Fouad Sent: Monday, June 25, 2007 1:15 AM To: Flashcoders mailing list Subject: [Flashcoders] Scroll Bar formula problem Hi, I can't figure out how I can move a masked MC according to the position of the scroll bar. I tried this code

Re: [Flashcoders] Dimensions of loading swf file

2007-06-23 Thread O. Fouad
u can load the external swf into a movieclip (as usual) and get the _height _width of the movieClip, of course after it loads entirely On 6/20/07, natalia Vikhtinskaya [EMAIL PROTECTED] wrote: Hi Is it possible to know dimensions of loading swf file? How I can get width and height? Thank you

Re: [Flashcoders] Having MovieClip behaviours in a class..

2007-06-09 Thread O. Fouad
Jesse i got a problem with the static methods u wrote... a second box overrides the first... ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Having MovieClip behaviours in a class..

2007-06-09 Thread O. Fouad
Oh... fixed it..never mind my last post :D Thanks all! ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software

[Flashcoders] Having MovieClip behaviours in a class..

2007-06-08 Thread O. Fouad
Ok, this is just frustrating me... somebody help me please :( i've got this class DrawBox that as it says, draws a box on the stage.. class DrawBox extends MovieClip { var myMC:MovieClip; public function DrawBox(boxName:String) { this.myMC =

Re: [Flashcoders] Having MovieClip behaviours in a class..

2007-06-08 Thread O. Fouad
this is just an example.. u know i wanted to apply some custom effect to a movieClip and using mc.applyFX(bla bla) instead of applyFX(mc, bla bla); Just like mc_tween's mc.alphaTo() for example... -- O.Fouad - Digital Emotions ___

Re: [Flashcoders] Having MovieClip behaviours in a class..

2007-06-08 Thread O. Fouad
thanks :D but why should i use static methods I am trying to create some color effect shortcuti wont need to create new instances. If i have a movieClip on my stage i wouldlike to have it myMC.someEffect(par); ___

Re: [Flashcoders] Having MovieClip behaviours in a class..

2007-06-08 Thread O. Fouad
continued... just the same way when in actionsript 1 i write: MovieClip.prototype.myEffect = function () { //some code here } myMC.myEffect(); ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] Having MovieClip behaviors in a class..

2007-06-08 Thread O. Fouad
Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of O. Fouad Sent: Friday, June 08, 2007 7:09 PM To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] Having MovieClip behaviours in a class.. thanks :D but why should i use static methods I am trying to create

Re: [Flashcoders] OT: Spiderman 3 === Worst movie ever

2007-05-07 Thread O. Fouad
Spiderman 3 Is just great. I kinda cried at the end :P. I also read that it had a great success all over the world. Than again u can't tell ppl not to watch the movie... :) On 5/7/07, Parvaiz Patel [EMAIL PROTECTED] wrote: Nice story action line up together. I like Spiderman:3

Re: [Flashcoders] AS2: generating new instances dynamically?

2007-05-01 Thread O. Fouad
are u executing the class post view? On 5/1/07, Andy Herrman [EMAIL PROTECTED] wrote: Or have the function return it, which is what it seems like would be the right thing for that method. -Andy On 5/1/07, Ron Wheeler [EMAIL PROTECTED] wrote: I am not sure if you are showing all the code

Re: [Flashcoders] swf to jpeg

2007-04-23 Thread O. Fouad
Uli is right maybe u can use some server side... but i think u said Desktop application On 4/22/07, Lists [EMAIL PROTECTED] wrote: You can save BitmapData using ByteArray in AS3. Tinic Uro has written JPEG and PNG encoders, as have some others. Check out www.kaourantin.net for more info.

Re: [Flashcoders] swf to jpeg

2007-04-21 Thread O. Fouad
I know that you can extract the bitmap Data from a movieClip and attach it to an empty movieClip by using the BitmapData class. You cannot save, though, the movieClip BitmapData on your computer by using actionscript. You'll need a Flash expander tool as Zinc for example... It can save bitmaps