Re: [Flashcoders] Flash Socket Class Does Not Wait For Flush

2009-12-09 Thread Glen Pike
:-D Dave Watts wrote: So we'd all feel better activating the toilet handle I guess. I always feel better after a flush(). If you're a ColdFusion programmer, in addition to CFFLUSH you also have the additional commands CFDUMP and CFLOG. I apologize in advance for bringing this up. I

Re: [Flashcoders] Back On Course, Still Problems

2009-12-09 Thread Greg Ligierko
Well... Code without braces may look a bit confusing, but that depends on what somebody is used to and just what you like. An example when I often bypass braces is setting default values for AS2 function arguments: function funName(arg1:Number, arg2:Object):Object { if(isNaN(arg1)) arg1 = 0;

Re: [Flashcoders] Re:Trying to set multiple images to 'export for AS' with JSFL

2009-12-09 Thread Greg Ligierko
If you haven't seen this already: http://code.google.com/p/fueljsfl/ There is a set of interesting JSFL scripts for various purposes. Also manipulation of bitmap items. But I cannot bet there is the exact case. g Wednesday, December 09, 2009 (12:48:52 AM) napisano: Thanks guys. I found a

Re: [Flashcoders] Back On Course, Still Problems

2009-12-09 Thread Paul Andrews
Greg Ligierko wrote: Well... Code without braces may look a bit confusing, but that depends on what somebody is used to and just what you like. An example when I often bypass braces is setting default values for AS2 function arguments: function funName(arg1:Number, arg2:Object):Object {

Re[2]: [Flashcoders] Back On Course, Still Problems

2009-12-09 Thread Greg Ligierko
Paul, You are perfectly right. The case of Beno's piece: if (e.target.currentFrame == 40) TweenMax.to(mcHandInstance2, 2, {x:200, startAt:{totalProgress:1}}).reverse(); ...is clearly a proof of what you say, because it already produced confusion. Greg Wednesday, December 09, 2009 (1:30:22

Re: [Flashcoders] Back On Course, Still Problems

2009-12-09 Thread beno -
On Tue, Dec 8, 2009 at 5:50 PM, Greg Ligierko gre...@l-d5.com wrote: I think Beno does not see difference between local variables (google: local variables tutorial) and class properties (google: class properties tutorial). You are correct. I don't fully understand classes, although I doubt

Re: [Flashcoders] Back On Course, Still Problems

2009-12-09 Thread Karl DeSaulniers
This is how I code. And is what I was seeing in my head when I made that observation about benos code. Your right Paul. Without braces, it can get a little run-on-sentence ish but still works. I agree Greg. It is a matter of preference. And with AS3 I believe, it is more like without

Re: [Flashcoders] Back On Course, Still Problems

2009-12-09 Thread beno -
On Tue, Dec 8, 2009 at 5:07 PM, Karl DeSaulniers k...@designdrumm.comwrote: Well I know why this code was not working. if (e.target.currentFrame == 40) TweenMax.to(mcHandInstance2, 2, {x:200, startAt:{totalProgress:1}}).reverse(); } Because it should read. if

Re: [Flashcoders] Back On Course, Still Problems

2009-12-09 Thread Matt S.
On Wed, Dec 9, 2009 at 10:20 AM, beno - flashmeb...@gmail.com wrote: You are correct. I don't fully understand classes, although I doubt I'm far from it. I will google what you have suggested. Thank you! Didnt you say: I have many years working with python? Were you able to do that without

Re: [Flashcoders] Minimizing Code: Logic Issue

2009-12-09 Thread Alain Rousseau
You can create an array of MovieClips as well and if you don't have to fetch the movieclip's parent name in order to controll it's alpha var myStuff:Array = [_root.mc1., _root.mc1., _root.mc1.] for (var i:Number = 0; i myStuff.length; i++ { myStuff[i].mc3.onRollOver =

Re: [Flashcoders] Back On Course, Still Problems

2009-12-09 Thread beno -
On Wed, Dec 9, 2009 at 11:27 AM, Matt S. mattsp...@gmail.com wrote: On Wed, Dec 9, 2009 at 10:20 AM, beno - flashmeb...@gmail.com wrote: You are correct. I don't fully understand classes, although I doubt I'm far from it. I will google what you have suggested. Thank you! Didnt you say:

Re: [Flashcoders] Back On Course, Still Problems

2009-12-09 Thread allandt bik-elliott
you will never want to as2 again ax On 8 Dec 2009, at 22:36, Karl DeSaulniers wrote: Greg, I see your point. I am more familiar with AS2, so oops. I will be migrating soon. I promise. Karl On Dec 8, 2009, at 3:50 PM, Greg Ligierko wrote: I don't think, because braces are not required

RE: [Flashcoders] Passing a Variable to Adobe Acrobat

2009-12-09 Thread Lord, Susan, CTR, DSS
That makes sense. I just wanted to make sure it wasn't an issue with how I was making the getURL call from Flash. I'm still not sure why acrobat isn't receiving the variable. Anyone know of any acrobat lists I could post this on? Thanks. -Original Message- From:

Re: [Flashcoders] how clearInterval in AS2 when swf unloaded from parent

2009-12-09 Thread allandt bik-elliott
hi just trawling through the posts and don't know if you managed to fix this problem if you're having problems with unreferenced variables in as2, there is always the _global object to fall back on. It's not a good thing to use all the time but basically you can attach a property and

Re: Re[2]: [Flashcoders] Back On Course, Still Problems

2009-12-09 Thread Dave Watts
BTW, what is the point of braces if you dont need them, except the separation of your code part. Are they needed in some situations over others? Braces let you build a code block containing multiple statements. If you want to run multiple statements in the body of a loop, or conditional, or

RE: [Flashcoders] Passing a Variable to Adobe Acrobat

2009-12-09 Thread Mendelsohn, Michael
Try acrobatusers.com. Anyone know of any acrobat lists I could post this on? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] Passing a Variable to Adobe Acrobat

2009-12-09 Thread Dave Watts
That makes sense.  I just wanted to make sure it wasn't an issue with how I was making the getURL call from Flash.  I'm still not sure why acrobat isn't receiving the variable. Anyone know of any acrobat lists I could post this on? Here's the list of URL parameters you can send to a PDF on a

Re: Re[2]: [Flashcoders] Back On Course, Still Problems

2009-12-09 Thread allandt bik-elliott (thefieldcomic.com)
yep - same in as2 and as3 On Wed, Dec 9, 2009 at 5:21 PM, Dave Watts dwa...@figleaf.com wrote: BTW, what is the point of braces if you dont need them, except the separation of your code part. Are they needed in some situations over others? Braces let you build a code block containing

Re: [Flashcoders] Back On Course, Still Problems

2009-12-09 Thread Greg Ligierko
Using just a set of functions is not oop. It's rather procedural programming. However it works, it is difficult to reuse or make something really large scale or cooperate with other programmers basing on procedural code. You can write procedural-AS3, but there is not point of doing that. And you

Re: [Flashcoders] Back On Course, Still Problems

2009-12-09 Thread allandt bik-elliott (thefieldcomic.com)
classes used in oop are generally separate .as files (in flash) that are templates that create custom objects which interact with each other (it is possible to program oop as a single file using as1-style prototype chains but these are outdated and frankly painful) a class would consist of

Re: [Flashcoders] Back On Course, Still Problems

2009-12-09 Thread allandt bik-elliott (thefieldcomic.com)
if you genuinely want to learn about programming, i'd recommend getting essential actionscript 3.0 by colin moock or Friends of Ed's Foundation Actionscript 3.0 with Flash CS3 and Flex (Paperback). I've seen plenty of people try to learn by reading random stuff from the web and seeing if they can

Re: Re[2]: [Flashcoders] Back On Course, Still Problems

2009-12-09 Thread Karl DeSaulniers
Good to know. Thanks for all the responses. I learn a little more each day. :)) Best, Karl Sent from losPhone On Dec 9, 2009, at 1:09 PM, allandt bik-elliott (thefieldcomic.com) alla...@gmail.com wrote: yep - same in as2 and as3 On Wed, Dec 9, 2009 at 5:21 PM, Dave Watts

[Flashcoders] Delivering a flah christmas card by email

2009-12-09 Thread Paul Andrews
A client has asked for a flash based Christmas card - no surprise there. All of the email delivery options I have seen for such cards have been rather pedestrian - with the email just referencing a link to a HTML page for the recipient to click. Given the amount of emails I get with embedded

RE: [Flashcoders] Delivering a flah christmas card by email

2009-12-09 Thread Nathan Mynarcik
At my old place of work we would design an HTML page that had the same theme as the Flash Card. Had an image be a link/button to the Flash Card page. Inserted the HTML in an email and shipped out. You are pretty limited since you have to deal with an email. -Original Message- From:

Re: [Flashcoders] Delivering a flah christmas card by email

2009-12-09 Thread Karl DeSaulniers
There are some great e-card creation PHP files out there. Might be an option. The php creates the email and sends it out. You just create the form in flash or HTML that sends the variables to the php file. JAT Karl On Dec 9, 2009, at 8:32 PM, Nathan Mynarcik wrote: At my old place of work

Re: [Flashcoders] Delivering a flah christmas card by email

2009-12-09 Thread Karl DeSaulniers
Here is a quick one I found that you can expand on. You can even drop in your own HTML. create a php file called sendEmail.php or something to that effect. ? //change this to your email. $to = th...@email.com; //can assign a form variable here too $from = y...@email.com; //can

Re: [Flashcoders] Delivering a flash christmas card by email

2009-12-09 Thread Paul Andrews
Karl DeSaulniers wrote: There are some great e-card creation PHP files out there. Might be an option. The php creates the email and sends it out. You just create the form in flash or HTML that sends the variables to the php file. JAT Karl Yes, but the email content is still basically a link.

Re: [Flashcoders] Delivering a flah christmas card by email

2009-12-09 Thread Paul Andrews
OK, thanks Karl. Paul Karl DeSaulniers wrote: Here is a quick one I found that you can expand on. You can even drop in your own HTML. create a php file called sendEmail.php or something to that effect. ? //change this to your email. $to = th...@email.com; //can assign a form variable

Re: [Flashcoders] Delivering a flah christmas card by email

2009-12-09 Thread Karl DeSaulniers
Np. That example is very basic. There is a lot of things missing. Like checking variables before sending. You can also expand it to utilize a database. Then you create a email list page, select the persons you want to email to and hit send. With some modifications, you can have it send to

Re: [SPAM] Re: [Flashcoders] Delivering a flah christmas card by email

2009-12-09 Thread Paul Andrews
Karl DeSaulniers wrote: Np. That example is very basic. There is a lot of things missing. Like checking variables before sending. You can also expand it to utilize a database. Then you create a email list page, select the persons you want to email to and hit send. With some modifications, you

Re: [SPAM] Re: [Flashcoders] Delivering a flah christmas card by email

2009-12-09 Thread Karl DeSaulniers
May be a little tricky, but what you could do is have the swf housed on your server and reference it in your html email. If they have display html enabled, your swf should load fine. With the SWFs object/embed other content options, you can set a regular JPEG with a link if they don't have

Re: [SPAM] Re: [Flashcoders] Delivering a flah christmas card by email

2009-12-09 Thread Peter B
Spent some time looking into this years ago. Though it is possible to do (as Karl suggested, you can store the SWF somewhere on-line and embed via an HTML email), I would suggest it's not wise to. The main consideration for me is that I *hate* being forced to download something in my email, no

Re: [SPAM] Re: [Flashcoders] Delivering a flah christmas card by email

2009-12-09 Thread Karl DeSaulniers
If your swf is just an animation with no user interaction, you could convert it to a gif and all will be embedded and will work on most systems. Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list

Re: [SPAM] Re: [Flashcoders] Delivering a flah christmas card by email

2009-12-09 Thread Karl DeSaulniers
I agree. But if its just a small swf, it might not hurt. Depends on what your sending I think. Karl On Dec 9, 2009, at 10:24 PM, Peter B wrote: Spent some time looking into this years ago. Though it is possible to do (as Karl suggested, you can store the SWF somewhere on-line and embed via

[Flashcoders] Publish transparent .gif file in AS3

2009-12-09 Thread Sumeet Kumar
Hi All, In one of my project, i need to output a transparent .gif image from my flash application. I am using flash player 9. Is there any way by which i can publish the image in as3? Any suggestion or help in this regard would be a great help Thanks in Advance. Regards Sumeet Kumar