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 guess I'm never too old
for toilet humor.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
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] 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;
   if(arg2 == null) arg2 = {};

   //... rest of code
}

This has no sense in AS3 because it provides a new syntax for setting
default values fun(arg:Number=0):void.

Another example:
function funName2(flag:Number):Number
{
   if(isNaN(flag)) return someValue;
   return someOtherValue;
}

You mention using braces without somewhere to emphasize the code. I
think it is just somebodies preference how he highlights separated
logic

Usually separated logic should be done just by writing a separate
method but when there are performance issues (calling a new method
leads to redeclaration of variables) or when this part of code sets a
group of new variables (separate method returns only one value, unless
it returns an array or object - again performance issue), this may
have sense. Still, I prefer adding a commented bar or a short limerick
instead or braces.

Greg





Wednesday, December 09, 2009 (6:18:42 AM):

 Yes, your correct.
 I always use braces.
 It looks aesthetically pleasing to me and helps me separate things.

 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?

 Karl




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 partial solution, which is changing all bitmap names with JSFL and
 then clicking 600 times to assign a class name which by default is the
 symbol name. Easier than setting the name by hand for each symbol, but still
 a bit dumb.


 2009/12/2 Cedric Muller flashco...@benga.li

 but it isn't a MovieClip, is it ?
 A MovieClip can contain a (or multiple) Bitmaps, but a Bitmap cannot
 contain a MovieClip, so are these really the same ?
 and if you take lots of them: lots of Bitmaps are better than lots of
 MovieClips.
 ... or you can convert a MovieClip to Bitmap, but the opposite would be
 quite hard.

 But I may be caught in a landslide, and I don't know where I'll end  I
 answer without knowing what the inital question was. Pun me!


  Craig Bowman wrote:

 It's NOT a bug. A bitmap can't be assigned the attributes you want
 directly
 and never has. It must be wrapped inside a symbol, like a MovieClip.


 Not true, there is a fully working Bitmap symbol type just for this.




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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
{
   if(isNaN(arg1)) arg1 = 0;
   if(arg2 == null) arg2 = {};

   //... rest of code
}

This has no sense in AS3 because it provides a new syntax for setting
default values fun(arg:Number=0):void.

Another example:
function funName2(flag:Number):Number
{
   if(isNaN(flag)) return someValue;
   return someOtherValue;
}
  
The only problem with this (and yes, I have like everyone else coded 
like that), is that it doesn't explicitly indicate the intention of the 
code.


If the function is written as:

if(isNaN(flag)){
return someValue;
} else {
return someOtherValue;
}

Then the intention to return one or the other depending on the test is 
very explicit. Maybe it doesn't matter for these trivial examples, but 
the intent can be less obvious when the code is more complex.


I think every body uses the shortcuts (me too) for conditional 
statements, but I think often it's really bad practice and it's often 
proven as bad practice when begginers can't debug their code because it 
looks right.


I start off by writing.

if (i==6) doThis();

Well already I've messed up any visual clues about the nesting of code 
conditionals when I scan the page because my doThis() isn't indented 
equally with other conditional code.

Lets put that right.

if (i==6)
doThis();

Now the visual appearance of the code makes me instantly see that the 
call to doThis is nested in conditional code - it's indented to the right.

No problem, now right?

A month later I realise there's a bug and it should really be 
doThis();doThat() if i equals 6.


In my hurry I now make this update:

if (i==6)
doThis();
doThat();

And it looks right, but now my code is behaving even more badly. 
Scanning through the code doesn't give an instant clue because this wil 
be buried amongst a load of other stuff.. Only later do I realise that 
while my indents look right, the actual interpretation is:


if (i==6)
doThis();
doThat();

..something I didn't intend.

Now, if I was in the habit of writing my conditionals with braces and 
indenting my code, I would be very, very unlikely to make this simple error.


So I should habitualy write:

if (i==6) {
doThis();
}

or (depending on your own preferences)
if (i==6)
{
doThis();
}

Then I can't go wrong when I come to add extra code:
if (i==6)
{
doThis();
doThat();
}

So, in essence, adding braces even when they aren't needed will make you 
less likely to make accidental mistakes in the future.


Paul




You mention using braces without somewhere to emphasize the code. I
think it is just somebodies preference how he highlights separated
logic

Usually separated logic should be done just by writing a separate
method but when there are performance issues (calling a new method
leads to redeclaration of variables) or when this part of code sets a
group of new variables (separate method returns only one value, unless
it returns an array or object - again performance issue), this may
have sense. Still, I prefer adding a commented bar or a short limerick
instead or braces.

Greg





Wednesday, December 09, 2009 (6:18:42 AM):

  

Yes, your correct.
I always use braces.
It looks aesthetically pleasing to me and helps me separate things.



  
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?



  

Karl






___
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[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 PM) 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
 {
if(isNaN(arg1)) arg1 = 0;
if(arg2 == null) arg2 = {};

//... rest of code
 }

 This has no sense in AS3 because it provides a new syntax for setting
 default values fun(arg:Number=0):void.

 Another example:
 function funName2(flag:Number):Number
 {
if(isNaN(flag)) return someValue;
return someOtherValue;
 }
   
 The only problem with this (and yes, I have like everyone else coded 
 like that), is that it doesn't explicitly indicate the intention of the
 code.

 If the function is written as:

 if(isNaN(flag)){
 return someValue;
 } else {
 return someOtherValue;
 }

 Then the intention to return one or the other depending on the test is
 very explicit. Maybe it doesn't matter for these trivial examples, but
 the intent can be less obvious when the code is more complex.

 I think every body uses the shortcuts (me too) for conditional 
 statements, but I think often it's really bad practice and it's often 
 proven as bad practice when begginers can't debug their code because it
 looks right.

 I start off by writing.

 if (i==6) doThis();

 Well already I've messed up any visual clues about the nesting of code
 conditionals when I scan the page because my doThis() isn't indented
 equally with other conditional code.
 Lets put that right.

 if (i==6)
  doThis();

 Now the visual appearance of the code makes me instantly see that the 
 call to doThis is nested in conditional code - it's indented to the right.
 No problem, now right?

 A month later I realise there's a bug and it should really be 
 doThis();doThat() if i equals 6.

 In my hurry I now make this update:

 if (i==6)
  doThis();
  doThat();

 And it looks right, but now my code is behaving even more badly. 
 Scanning through the code doesn't give an instant clue because this wil
 be buried amongst a load of other stuff.. Only later do I realise that
 while my indents look right, the actual interpretation is:

 if (i==6)
  doThis();
 doThat();

 ..something I didn't intend.

 Now, if I was in the habit of writing my conditionals with braces and 
 indenting my code, I would be very, very unlikely to make this simple error.

 So I should habitualy write:

 if (i==6) {
  doThis();
 }

 or (depending on your own preferences)
 if (i==6)
 {
  doThis();
 }

 Then I can't go wrong when I come to add extra code:
 if (i==6)
 {
  doThis();
  doThat();
 }

 So, in essence, adding braces even when they aren't needed will make you
 less likely to make accidental mistakes in the future.

 Paul



 You mention using braces without somewhere to emphasize the code. I
 think it is just somebodies preference how he highlights separated
 logic

 Usually separated logic should be done just by writing a separate
 method but when there are performance issues (calling a new method
 leads to redeclaration of variables) or when this part of code sets a
 group of new variables (separate method returns only one value, unless
 it returns an array or object - again performance issue), this may
 have sense. Still, I prefer adding a commented bar or a short limerick
 instead or braces.

 Greg





 Wednesday, December 09, 2009 (6:18:42 AM):

   
 Yes, your correct.
 I always use braces.
 It looks aesthetically pleasing to me and helps me separate things.
 

   
 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?
 

   
 Karl
 




 ___
 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] 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 I'm far
from it. I will google what you have suggested. Thank you!
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 braces. Yes?


Karl

Sent from losPhone

On Dec 9, 2009, at 6:30 AM, Paul Andrews p...@ipauland.com wrote:


If the function is written as:

if(isNaN(flag)){
   return someValue;
} else {
 return someOtherValue;
}


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 (e.target.currentFrame == 40) { TweenMax.to(mcHandInstance2, 2,
 {x:200, startAt:{totalProgress:1}}).reverse();
  }


 You missed the first {
 Don know if that fixes everything or just this line.


Just that line. It's commented out for now. But thank you very much!
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 touching oop or classes, beno?

.m
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 = function() {changeViewOn(this);};
   myStuff[i].mc3.onRollOut = function() {changeViewOff(this);};

}

function changeViewOn(mov:MovieClip)
{
   mov._parent.alpha = 100;
}

function changeViewOff(mov:MovieClip)
{
   mov._parent.alpha = 0;
}



Lehr, Theodore wrote:

Here is the solution I came up with - a mishmosh of a few peoples help:

var myStuff:Array = [a,b,c];

for (var i:Number=0; imyStuff.length; i++) {
 var nm:String = myStuff[i];
 
 _root.mc1[nm].mc3.onRollOver = function() {

  changeViewOn(this);
 }

 _root.mc1[nm].mc3.onRollOut = function() {
  changeViewOff(this);
 }
}

function changeViewOn(mov) {
 _root[mov._parent._name].alpha=100;
}
function changeViewOff(mov) {
 _root[mov._parent._name].alpha=0;
}

Thanks!

From: flashcoders-boun...@chattyfig.figleaf.com 
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of David Hunter 
[davehunte...@hotmail.com]
Sent: Tuesday, December 08, 2009 9:22 AM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Minimizing Code: Logic Issue

i've been following this thread and may have missed a critical detail, but why 
do you need to check an instances name against an array if all you want to 
change is its alpha? or if you have extra values you need to check can't you 
just assign them to each instance when you add the rollover behaviours?
i put an example of what i mean on pastebin: http://pastebin.com/m1db46cee
hope it helps and i haven't completely missed the point and wasted your time!
david

  

From: ted_l...@federal.dell.com
To: flashcoders@chattyfig.figleaf.com
Date: Tue, 8 Dec 2009 08:58:34 -0500
Subject: RE: [Flashcoders] Minimizing Code: Logic Issue

OK - I think I MAY have found a way - which leads me to another question: how can I grab 
the FULL name of an object (ie _level0.mc1.mc2.mc3) and substring it - like 
in the example, I want to extract mc2 from the path.


From: flashcoders-boun...@chattyfig.figleaf.com 
[flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen Pike 
[g...@engineeredarts.co.uk]
Sent: Tuesday, December 08, 2009 8:02 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Minimizing Code: Logic Issue

Hmm,

Just to be clear.  I guess you are creating a number of clips on
which you set the alpha.  Then you are using an equal number of clips
that can be rolled over.  When you rollover these clips, you set the
alpha on the corresponding alpha clip.

I can see why it might be using the last array member - that would
be assigned the last time you loop through the array.  You might want to
add traces in a few more places - e.g. trace out the clip you are
messing with, trace out it's name, etc. after you assigned it?

Are you adding the clips programmatically - at runtime - or at
authortime - in the IDE?  Not 100%, but if you are adding them at
authortime, you might not be able to add to their properties.

I usually do a loop like below and attach symbols, then create
properties on them, e.g.

//Trimmed down example of adding a load of button clips
for (iBut=0; iButsection.buttons.length; iBut++) {
var btn:Object = section.buttons[iBut];
trace(button  + btn.text +  attributes:  +
btn.attributes[audioID] + ,  + btn.attributes[seqID] );

// create speech clip button
var speechMC:MovieClip =
this.speechButtons.dummy.attachMovie(audio button, speechS+iBut,
(1000+iBut));
//Assign properties.
speechMC.audioID = btn.attributes[audioID];
speechMC.seqID = btn.attributes[seqID];

//add the onRelease functionality
speechMC.onRelease = function() {
trace(onRelease  + this +  audioID  + this.audioID);
if (this.seqID  this.audioID) {
playSequenceA(this.seqID, this.audioID);
} else if (this.seqID) {
playSequence(this.seqID);
} else if (this.audioID) {
playAudio(this.audioID);
}
//Generic button handling for rollover colours...
fButtonOff(this);
}
}

Also, when you rollover and it traces - does each clip have the same
nm value - that will break it / not work.  You could always use the
_name value of the clip to find out what to change.



Lehr, Theodore wrote:


ALSO: (and this might be impacting my results... when I used this.nm it did not work at 
all... so I took this. out and just used nm, while it works they are all 
suing the last array member


From: flashcoders-boun...@chattyfig.figleaf.com 

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: I have many years working with python? Were you able
 to do that without touching oop or classes, beno?


I'm ashamed to admit it, yes. I might very well be working in classes and
what I'm doing in python could very well be oop, but I've never studied it
as such and I obviously need to. I write all sorts of things like:

def whatever(var, var2):
  stuff here

and call that from other functions. If that's classes and oop, then I've
been all over that for years. I dunno :-}

We're OT again caution
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 when the there is only
one statement ended with semicolor:

//code
if(something) doSomething(); // semicolon ends the scope here...
//code

... the second brace was ending the myLeftHand() method.


I think that that the problem with this line was that mcHandInstance2
was neither defined as a class property nor as a local variable.

I think Beno does not see difference between local variables (google:
local variables tutorial) and class properties (google: class
properties tutorial).

g

Tuesday, December 08, 2009 (10:07:34 PM) Karl DeSaulniers wrote:


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 (e.target.currentFrame == 40)  
{ TweenMax.to(mcHandInstance2, 2,

{x:200, startAt:{totalProgress:1}}).reverse();
}



You missed the first {
Don know if that fixes everything or just this line.
Karl



Sent from losPhone



On Dec 8, 2009, at 1:18 PM, beno - flashmeb...@gmail.com wrote:



On Tue, Dec 8, 2009 at 3:02 PM, Gregory Boudreaux gjboudre...@fedex.com

wrote:



What is setting e in your code?



I have no idea. This is what was suggested to me on this list once
upon a
time. I presume that's the problem. The idea was to make the mc run
when the
code entered a certain frame, as you can see by the commented-out
line and
the trace:

public function myLeftHand(e:Event=null):void
  {
  if (e.target.currentFrame == 10) { trace(yes) };
  var mcHandInstance2A:mcHand = new mcHand();
  addChild(mcHandInstance2A);
  mcHandInstance2A.x = 800;
  mcHandInstance2A.y = 200;
//if (e.target.currentFrame == 40)  
TweenMax.to(mcHandInstance2, 2,

{x:200, startAt:{totalProgress:1}}).reverse();
}

What should it be? How do I tie it in to the rest of the code?
TIA,
beno
___
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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
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] 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: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Nathan
Mynarcik
Sent: Tuesday, December 08, 2009 2:10 PM
To: Flash Coders List
Subject: Re: [Flashcoders] Passing a Variable to Adobe Acrobat

If it did not work with HTML I would check the PDF. Doesn't seem to be a
flash issue then. 

--Original Message--
From: Lord, Susan, CTR, DSS
Sender: flashcoders-boun...@chattyfig.figleaf.com
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: [Flashcoders] Passing a Variable to Adobe Acrobat
Sent: Dec 8, 2009 12:47 PM

Hello,

I am attempting to pass a variable to adobe acrobat (a pdf file) using a
URL string (certificate.pdf?name).  For some reason the pdf file is not
receiving the variable. Do any of you have any experience with this?  I
am not sure if the problem is flash or the pdf.  The pdf has a field
within it. The name of the field is the the name of the variable being
passed.

I also attempted to do this through HTML and it did not work.

Any thoughts or ideas are appreciated!

Thanks!
Susan

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

___
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] 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 pass the  
interval to that and you will have access to it wherever you are in  
your application


it's generally frowned on to use it as it usually means that the  
structure of your application is unsound (for instance, it may be  
better to create a function that clears a variable local to the loaded  
in clip and then call that before you unload the movie) but when  
you're in a tight spot, it can be the difference between hitting a  
deadline and not


when you set your interval, do it like this

_global.intervalID = setInterval(this, myfunc, 2000,  
functionParameter1, functionParameter2);


and then if you need to get rid of the interval you can use the  
following

clearInterval(_global.intervalID);

remember tho, if you have several clips trying to set the same _global  
property you may run into a situation where it gets overwritten and  
then cannot be cleared so like i said, this is a sticking plaster more  
than anything else


hope this is useful
ax



On 24 Nov 2009, at 20:10, Andrew Sinning wrote:

I have a movie that is loaded into another movie.  The child-movie  
uses an interval to periodically update itself.  My problem is that  
this continues to get triggered even after the child-movie is  
unloaded from it's parent.
I've tried using an onUnload event in the _root of the child-movie  
(_lockRoot is true), but it's doesn't seem to get triggered when the  
child-movie is unloaded.


Thanks!
___
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: 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 whatever, or if you think you may want to do that in
the future, you should use braces. Some people prefer to always use
them, because they prefer the appearance or because they don't know
that they're sometimes optional. I'm in the first category, myself - I
always use them, because I think it makes my code easier to read. In
general, I prefer my code to be formatted vertically rather than
horizontally, if you know what I mean.

This is how braces work in all C-style languages I've seen, including
JavaScript 1.0+. I suspect it works the same way in AS2. It definitely
works that way in AS3.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
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 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 web server:
http://www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters.pdf

Note that this list is fairly limited - you can't just send any old
URL parameters to a PDF, only the ones on this list.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 multiple statements. If
 you want to run multiple statements in the body of a loop, or
 conditional, or whatever, or if you think you may want to do that in
 the future, you should use braces. Some people prefer to always use
 them, because they prefer the appearance or because they don't know
 that they're sometimes optional. I'm in the first category, myself - I
 always use them, because I think it makes my code easier to read. In
 general, I prefer my code to be formatted vertically rather than
 horizontally, if you know what I mean.

 This is how braces work in all C-style languages I've seen, including
 JavaScript 1.0+. I suspect it works the same way in AS2. It definitely
 works that way in AS3.

 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/

 Fig Leaf Software provides the highest caliber vendor-authorized
 instruction at our training centers in Washington DC, Atlanta,
 Chicago, Baltimore, Northern Virginia, or on-site at your location.
 Visit http://training.figleaf.com/ for more information!
 ___
 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] 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 would have to place all library item
on the stage, name them (properties - instance name) and do stuff
with them.

Beno...
The difference is that in oop you have various classes that may (but
not necessarily) construct their instance objects. Classes have their own
methods (functions of classes) and their own properties (like
variables of classes). Any object constructed by a class has all
these methods and properties.

In AS2 and AS3 both methods and properties may be private or public
(there are more than that two in AS3, but basically let's consider
private and public).

Now you can consider a class called Dog. The class Dog has methods
startBarking() and stopBarking(). Its instance can do all that its
class define: 


 var instanceOfDog : Dog = new Dog();
//(instance name)^  (type)^   (class)^

 instanceOfDog.startBarking();

 /// and somewhere later

 instanceOfDog.stopBarking();

... and you can create another instance of Dog, but the new instance is a
completely separate object (they do not bark at once, for example).

---

Local variables are those that you create temporally in a function/method
body. Other functions/methods do not see these variables. They are
visible only in the scope of one function/method after being declared
until the function ends:

function fun1()
{
   // here nobody has seen rolf yet...
   
   var rolf:Dog = new Dog();   //of course you have to import
//your Dog class before instantiating it

   // (.) here the compiler sees rolf because has a reference to it
   // in the computer memory.
}
function fun2()
{
   // in this function (or method) nobody knows about rolf's
   // existance...
}

... I have to end here. This is a longer story. Use google to reach
tutorials about AS3 object oriented programming basics.


g


Wednesday, December 09, 2009 (4:50:44 PM) beno- wrote:

 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: I have many years working with python? Were you able
 to do that without touching oop or classes, beno?


 I'm ashamed to admit it, yes. I might very well be working in classes and
 what I'm doing in python could very well be oop, but I've never studied it
 as such and I obviously need to. I write all sorts of things like:

 def whatever(var, var2):
   stuff here

 and call that from other functions. If that's classes and oop, then I've
 been all over that for years. I dunno :-}

 We're OT again caution
 beno
 ___
 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] 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 properties (or variables in procedural parlence)
which allow the class/object to store data and / or methods (or functions)
which allow the class/object to execute functionality

what you've described is more a procedural style of coding where the whole
program exists in a single block of code with all of it's variables and
functions in one place. This isn't oop (object oriented programming).

http://en.wikipedia.org/wiki/Object-oriented_programming
http://en.wikipedia.org/wiki/Procedural_programming

hope this helps
ax



On Wed, Dec 9, 2009 at 3:50 PM, beno - flashmeb...@gmail.com wrote:

 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: I have many years working with python? Were you able
  to do that without touching oop or classes, beno?
 

 I'm ashamed to admit it, yes. I might very well be working in classes and
 what I'm doing in python could very well be oop, but I've never studied it
 as such and I obviously need to. I write all sorts of things like:

 def whatever(var, var2):
  stuff here

 and call that from other functions. If that's classes and oop, then I've
 been all over that for years. I dunno :-}

 We're OT again caution
 beno
 ___
 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] 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 muddle through it and they invariably become a massive burden to anyone
that has to work with them so please don't try to side step the work of
learning how to code

good luck
a

On Wed, Dec 9, 2009 at 7:19 PM, allandt bik-elliott (thefieldcomic.com) 
alla...@gmail.com wrote:

 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 properties (or variables in procedural parlence)
 which allow the class/object to store data and / or methods (or functions)
 which allow the class/object to execute functionality

 what you've described is more a procedural style of coding where the whole
 program exists in a single block of code with all of it's variables and
 functions in one place. This isn't oop (object oriented programming).

 http://en.wikipedia.org/wiki/Object-oriented_programming
 http://en.wikipedia.org/wiki/Procedural_programming

 hope this helps
 ax



 On Wed, Dec 9, 2009 at 3:50 PM, beno - flashmeb...@gmail.com wrote:

 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: I have many years working with python? Were you able
  to do that without touching oop or classes, beno?
 

 I'm ashamed to admit it, yes. I might very well be working in classes and
 what I'm doing in python could very well be oop, but I've never studied it
 as such and I obviously need to. I write all sorts of things like:

 def whatever(var, var2):
  stuff here

 and call that from other functions. If that's classes and oop, then I've
 been all over that for years. I dunno :-}

 We're OT again caution
 beno
 ___
 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: 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 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 multiple statements. If
you want to run multiple statements in the body of a loop, or
conditional, or whatever, or if you think you may want to do that in
the future, you should use braces. Some people prefer to always use
them, because they prefer the appearance or because they don't know
that they're sometimes optional. I'm in the first category, myself  
- I

always use them, because I think it makes my code easier to read. In
general, I prefer my code to be formatted vertically rather than
horizontally, if you know what I mean.

This is how braces work in all C-style languages I've seen, including
JavaScript 1.0+. I suspect it works the same way in AS2. It  
definitely

works that way in AS3.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!
___
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] 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 HTML, is a clickable link still my only/best option?


Paul
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Andrews
Sent: Wednesday, December 09, 2009 8:20 PM
To: Flash Coders List
Subject: [Flashcoders] Delivering a flah christmas card by email

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 HTML, is a clickable link still my only/best option?

Paul
___
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] 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 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: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of  
Paul Andrews

Sent: Wednesday, December 09, 2009 8:20 PM
To: Flash Coders List
Subject: [Flashcoders] Delivering a flah christmas card by email

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 HTML, is a clickable link still my only/best option?

Paul
___
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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 assign a form variable here too
$subject = Hello! This is an HTML email;  //can assign a form  
variable here too


//begin of HTML message
$message = EOF
html
  body bgcolor=#DCEEFC
center
bLk!!! I am receiving an HTML email../b br
font color=redThanks!/font br
a href=http://www.yoursite.com/;yoursite.com/a
/center
  brbr*** Now you Can send HTML Email br  
RegardsbrMOhammed Ahmed - Palestine

  /body
/html
EOF;
   //end of message
$headers  = From: $from\r\n;
$headers .= Content-type: text/html\r\n;

//options to send to cc+bcc
//$headers .= Cc: [email]...@p-i-s.cxom[/email];
//$headers .= Bcc: [email]em...@maaking.cxom[/email];

// now lets send the email.
mail($to, $subject, $message, $headers);

echo Message has been sent!;
?

Found it here : http://www.webhostingtalk.com/showthread.php?t=416467

HTH,

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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. I was wondering if 
I can specifically avoid the recipient having to click through to a 
link. There might have been a trick I wasn't aware of.
Nathans suggestion to have an image in the same theme as the card, is 
probably the best method of delivery if html is enabled.


Paul



On Dec 9, 2009, at 8:32 PM, Nathan Mynarcik wrote:

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: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul 
Andrews

Sent: Wednesday, December 09, 2009 8:20 PM
To: Flash Coders List
Subject: [Flashcoders] Delivering a flah christmas card by email

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 HTML, is a clickable link still my only/best option?

Paul
___
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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
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] 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 here too
$from = y...@email.com;  //can assign a form variable here too
$subject = Hello! This is an HTML email;  //can assign a form 
variable here too


//begin of HTML message
$message = EOF
html
  body bgcolor=#DCEEFC
center
bLk!!! I am receiving an HTML email../b br
font color=redThanks!/font br
a href=http://www.yoursite.com/;yoursite.com/a
/center
  brbr*** Now you Can send HTML Email br RegardsbrMOhammed 
Ahmed - Palestine

  /body
/html
EOF;
   //end of message
$headers  = From: $from\r\n;
$headers .= Content-type: text/html\r\n;

//options to send to cc+bcc
//$headers .= Cc: [email]...@p-i-s.cxom[/email];
//$headers .= Bcc: [email]em...@maaking.cxom[/email];

// now lets send the email.
mail($to, $subject, $message, $headers);

echo Message has been sent!;
?

Found it here : http://www.webhostingtalk.com/showthread.php?t=416467

HTH,

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
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] 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 everyone all at once.
;)

Happy coding!

Karl

On Dec 9, 2009, at 9:14 PM, Paul Andrews wrote:


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 here too
$from = y...@email.com;  //can assign a form variable here too
$subject = Hello! This is an HTML email;  //can assign a  
form variable here too


//begin of HTML message
$message = EOF
html
  body bgcolor=#DCEEFC
center
bLk!!! I am receiving an HTML email../b br
font color=redThanks!/font br
a href=http://www.yoursite.com/;yoursite.com/a
/center
  brbr*** Now you Can send HTML Email br  
RegardsbrMOhammed Ahmed - Palestine

  /body
/html
EOF;
   //end of message
$headers  = From: $from\r\n;
$headers .= Content-type: text/html\r\n;

//options to send to cc+bcc
//$headers .= Cc: [email]...@p-i-s.cxom[/email];
//$headers .= Bcc: [email]em...@maaking.cxom[/email];

// now lets send the email.
mail($to, $subject, $message, $headers);

echo Message has been sent!;
?

Found it here : http://www.webhostingtalk.com/showthread.php?t=416467

HTH,

Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
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


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 can have it send to everyone all at once.
;)

Happy coding!

Karl
Thanks Karl, though I should say I was pretty comfortable with the 
generation of emails through a PHP mailer. In this case the project is 
pretty simple - generic flash animation which isn't personalised and I 
anticipate I won't be at all involved in mailing it out.


My main query was really more about the best way to deliver the flash 
animation in the email content and the answer so far seems to be what 
the only way I knew before - via a link.


Paul
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 flash or it doesn't work  
in the email, that sends them to your swf online.

if all else fails.

Or possibly you can do a file attach and have the swf sent with the  
message
and with the swf placement in your html email, reference the  
attachment in the message..
When you attach the file, look for the PHP mailer script that sends  
the binary data attachment.  May help.
You could make a link in your message that just downloads your  
attachment to their HD.
Most email programs have a tmp folder to store attachments that you  
could reference.

Oh, and set your swf security priority to network only.
Although, I think this may be doing a little too much though.

Karl


On Dec 9, 2009, at 9:37 PM, Paul Andrews wrote:


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 can have it send to everyone all at  
once.

;)

Happy coding!

Karl
Thanks Karl, though I should say I was pretty comfortable with the  
generation of emails through a PHP mailer. In this case the project  
is pretty simple - generic flash animation which isn't personalised  
and I anticipate I won't be at all involved in mailing it out.


My main query was really more about the best way to deliver the  
flash animation in the email content and the answer so far seems to  
be what the only way I knew before - via a link.


Paul
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 matter how great it may be. Give
your users the choice as to whether they want to see the content or
not. Also, some email clients automatically block the display of
images - I'm assuming SWFs will be the same? What if the user has
downloaded their emails and is viewing then offline? What if they
don;t have FlashPlayer (or the right version of it) installed...So
many variables, so much potential to alienate your target market.
Better to provide a link and leave it to your user's discretion...imho

Pete
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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 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 matter how great it may be. Give
your users the choice as to whether they want to see the content or
not. Also, some email clients automatically block the display of
images - I'm assuming SWFs will be the same? What if the user has
downloaded their emails and is viewing then offline? What if they
don;t have FlashPlayer (or the right version of it) installed...So
many variables, so much potential to alienate your target market.
Better to provide a link and leave it to your user's discretion...imho

Pete
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Karl DeSaulniers
Design Drumm
http://designdrumm.com

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[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

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders