[Flashcoders] to apply the property to the all the dynamic text boxes in my file.

2006-12-14 Thread Walkoli, Nilesh (Cognizant)

Hi ,







Please anyone help me to apply the property to the all the dynamic text
boxes in my file.



I am referring some text boxes by name and some by variable. I want to
apply the autosize property to all the dynamic  textboxes in the file at
the start only.











Thnx in advance . Please do reply if anyone knows.



Thanks and regards,



Nilesh Walkoli

Programmer Analyst

Cognizant Technology Solutions

Plot # 26, Rajiv Gandhi Infotech Park,

MIDC, Hinjawadi, PUNE - 411 057

Vnet: 22253

Mob : 9881872422





This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply 
e-mail and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing 
or copying of this email or any action taken in reliance on this e-mail is 
strictly
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] flv encoder.

2006-12-14 Thread Muzak
http://www.google.com/search?hl=en&q=ffmpeg&meta=


- Original Message - 
From: "Sachin patil" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Friday, December 15, 2006 6:08 AM
Subject: Re: [Flashcoders] flv encoder.


hi,

can you please give me more information on ffmpeg encoding. will this
encoding method be able to encode the video into flv format.

Sachin.




___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] MX transitions: Website that shows examples?

2006-12-14 Thread Micky Hulse

Micky Hulse wrote:
Anyone know of a similar site that lets you test different variations of 
the transition classes?


Thanks for all the replies all, I really appreciate the advice and links. :)

And yes, Fuse looks very cool.

Found this vid tut site a while back that does a good job at showing 
some basics:


*Animating with Fuse*


But a lot of my projects are very simple (banners, adverts, simple 
animations)... I find that mx.transitions does the trick (or Tween 
Extended, see below)... although, if I am ever in a situation where Fuse 
is the better option, I will most definitely use it (seems like it would 
be over-kill for the basic stuff.) :)


And thanks for the links to the other options... those look nice too. 
Going to read-up on them now (Transition and tween explorer, and MC 
Tween.) :D


What do you all think about Tween Extended?

(Found under AS2 classes)


Seems like a great way to animate multiple properties at once. I am 
using it my current project and it seems to work great.


So, out of all the above mentioned classes/scripts, what is best?

1. Fuse -- From what I have gathered, this is great for big projects, 
but not so much for the small things.

2. Transition and tween explorer -- ?
3. MC Tween -- ?
4. Tween Extended -- ?

Out of the last 3, which is the better choice? I like the fact that 
Tween Extended allows for multiple properties on one line... Seems like 
a must-have feature. Which is the most light-weight? Which is coded 
better (which would probably mean more light-weight and smaller in file 
size)?


Of course, it sounds like all of this will change with AS3. I can not 
wait to make the upgrade. :P


Many thanks all, I hope your December is going well. :)
Cheers,
Micky


--
 Wishlist: 
   Switch: 
 BCC?: 
   My: 
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] flv encoder.

2006-12-14 Thread Sachin patil

hi,

can you please give me more information on ffmpeg encoding. will this
encoding method be able to encode the video into flv format.

Sachin.


On 12/15/06, tom bouillut <[EMAIL PROTECTED]> wrote:


you can script ffmpeg encoding easily
if your server is a linux , a simple sh script can do the work
uploading video using http process is limited so for big videos uploads
, you may prefer using ftp or sftp way
tom bouillut
Sachin patil a écrit :
> Hi All,
>
> Can anyone help on this.
>
> "i have a requirement in which i want to automate the encoding process
> for
> flash videos. uploaded videos must me encoded in flv formate
> automatically
> and should be avalable for viewing".
>
> please help me if anyone has done this before.
>
>
> Regards,
> Sachin.
> ___
> 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
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>

___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] flv encoder.

2006-12-14 Thread tom bouillut

you can script ffmpeg encoding easily
if your server is a linux , a simple sh script can do the work
uploading video using http process is limited so for big videos uploads 
, you may prefer using ftp or sftp way

tom bouillut
Sachin patil a écrit :

Hi All,

Can anyone help on this.

"i have a requirement in which i want to automate the encoding process 
for
flash videos. uploaded videos must me encoded in flv formate 
automatically

and should be avalable for viewing".

please help me if anyone has done this before.


Regards,
Sachin.
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Attaching bitmap data to arbitary coords

2006-12-14 Thread John VanHorn

http://chattyfig.figleaf.com/pipermail/flashcoders/2006-July/169819.html

On 12/12/06, Mike Mountain <[EMAIL PROTECTED]> wrote:


Charles

I'm well aware of both those methods, but they still won't let you
position the bitmap data anywhere other than with the registration point
at TL or positively offset from the TL.

Cheers

M

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Charles Parcell
> Sent: 11 December 2006 17:30
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Attaching bitmap data to arbitary coords
>
> You can of course use copyPixels() as well.
>
> http://livedocs.macromedia.com/flash/8/main/1948.html
>
> Charles P.
>
>
> On 12/11/06, Charles Parcell <[EMAIL PROTECTED]> wrote:
> >
> > Yeah, I think you are looking for the draw() method of BitmapData.
> >
> > http://livedocs.macromedia.com/flash/8/main/1950.html
> >
> > See the comments as well.
> >
> > Charles P.
> >
> >
> >
> > On 12/10/06, Martin Jonasson <[EMAIL PROTECTED]> wrote:
> > >
> > > This is what i use in i a project of mine:
> > >
> > > var myMatrix:Matrix = new Matrix();
> > > myMatrix.rotate(clip._rotation * 0.0174532925199433); var
> > > translateMatrix:Matrix = new Matrix();
> > > translateMatrix.translate(clip._x, clip._y);
> > > myMatrix.concat(translateMatrix);
> myBitmapData2.draw(clip, myMatrix)
> > >
> > > (this is stolen straight from my code, with nothing added
> to make it
> > > more understandable, but it should be rather self explanatory)
> > >
> > >
> > > Mike Mountain skrev:
> > > > Consider the following, Flash 8:
> > > >
> > > > var w=200
> > > > var h=200
> > > > holder=this.createEmptyMovieClip ("bmp1",
> > > > this.getNextHighestDepth()); var bmpData1:BitmapData = new
> > > > BitmapData(w, h, true, 0x);
> bmp1.attachBitmap(bmpData1, 2,
> > > > "auto", true);
> > > >
> > > > This will attach the bitmapdata so it's top left is situated at
> > > > the
> > > reg
> > > > point of the mc, how do I attach it, or later move it
> so the reg
> > > > point of the MC is situated at any point I wish,
> without using nested MC's?
> > > >
> > > > The problem being I want to make an exact bitmap copy of the
> > > > contents
> > > of
> > > > an MC, which could have it reg point set anywhere - and
> I want the
> > > > new copy to inherit the same registration point, but
> like I said
> > > > before - without having to resort to nested MC's -
> surely this is
> > > > possible and I'm missing something blindingly obvious?
> > > >
> > > > Cheers
> > > >
> > > > M
> > > >
> > > > ___
> > > > 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 Premier Authorized Adobe
> > > > Consulting and Training http://www.figleaf.com
> > > > http://training.figleaf.com
> > > >
> > > >
> > > >
> > > >
> > >
> > > ___
> > > 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
> > > Premier Authorized Adobe Consulting and Training
> > > http://www.figleaf.com http://training.figleaf.com
> > >
> >
> >
> ___
> 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
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com http://training.figleaf.com
>
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
John Van Horn
[EMAIL PROTECTED]
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] flv encoder.

2006-12-14 Thread Sachin patil

Hi All,

Can anyone help on this.

"i have a requirement in which i want to automate the encoding process for
flash videos. uploaded videos must me encoded in flv formate automatically
and should be avalable for viewing".

please help me if anyone has done this before.


Regards,
Sachin.
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] MX transitions: Website that shows examples?

2006-12-14 Thread shang liang

I love mc_tween!
http://hosted.zeh.com.br/mctween/

--
/*
Bored, sometimes.
*/
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] MX transitions: Website that shows examples?

2006-12-14 Thread slangeberg

I generally use this tool for Tween dev:

http://weblogs.macromedia.com/mc/archives/2006/04/transition_and.cfm

http://weblogs.macromedia.com/mc/archives/TransitionExplorer.zip

-Scott

On 12/14/06, slangeberg <[EMAIL PROTECTED]> wrote:


I've yet to use Fusekit (only used MX tras / tween) and have been quite
happy with performance / usability.

I realize that Fusekit's API is far more sexy and desireable, but so far
haven't seen them do anything that I can't accomodate myself. Such as a
Sequence, Parallel, etc.

AS3 will also encapsulate most of this functionality in a very handy
manner. Not sure about the size / performance ratio, but it's seemed fine to
me, from what I've used so far.

-Scott

On 12/14/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>
> >>I second this testament.
> >>I have been using the Fuse Kit for a bit & am very happy with it.
>
> Just to chime in, the Fuse kit is HUGE.  I would recommend against it in
> some situations where performance is a factor.  If it doesn't effect
> performance, it's a great set of classes.  Just be sure to test test
> test.  I ripped it out of a project because it brought my RIA to a
> crawl.
>
> Jason Merrill
> Bank of America
> Learning & Organizational Effectiveness
>
>
>
>
> ___
> 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
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



--

: : ) Scott





--

: : ) Scott
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] MX transitions: Website that shows examples?

2006-12-14 Thread slangeberg

I've yet to use Fusekit (only used MX tras / tween) and have been quite
happy with performance / usability.

I realize that Fusekit's API is far more sexy and desireable, but so far
haven't seen them do anything that I can't accomodate myself. Such as a
Sequence, Parallel, etc.

AS3 will also encapsulate most of this functionality in a very handy manner.
Not sure about the size / performance ratio, but it's seemed fine to me,
from what I've used so far.

-Scott

On 12/14/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:


>>I second this testament.
>>I have been using the Fuse Kit for a bit & am very happy with it.

Just to chime in, the Fuse kit is HUGE.  I would recommend against it in
some situations where performance is a factor.  If it doesn't effect
performance, it's a great set of classes.  Just be sure to test test
test.  I ripped it out of a project because it brought my RIA to a
crawl.

Jason Merrill
Bank of America
Learning & Organizational Effectiveness




___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--

: : ) Scott
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] How to set component styles?

2006-12-14 Thread Mendelsohn, Michael
Hi list...

Should be a simple question:
How do you set styles on checkbox components?  It's not working for me.
In my singleton class:

import mx.controls.CheckBox;
import mx.controls.Label;

class o {
function o() {
_global.CheckBox.setStyle("color", "0xFF");
_global.Label.setStyle("color", "0xFF");
_global.Label.setStyle("textDecoration", "underline");
}
}


Thanks,
- Michael M.

___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] disable flvplayback seekBar

2006-12-14 Thread Alain Rousseau
check to see if this will help you

http://livedocs.macromedia.com/flash/8/main/3480.html#wp3797830


It might disable all controls but you could turn them back on the same way 
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Appenzellar
Sent: 14 décembre 2006 13:10
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] disable flvplayback seekBar

I have 2 videos. During the first video I want to not show or disable the
flvplayback seekBar, but I want to show/enable the seekBar during the 2nd
video

 

Here is the code that is playing both videos...

 

listenerObject.complete = function(eventObject:Object):Void {

if (vid.contentPath == "qthigh4.flv") {

playerBar.gotoAndStop(1);

vid.play("12-07-06.flv");

}

};

 


Michael Appenzellar
Sr. Web Applications Developer


Mirame Interactive

http://www.mirameinteractive.com

301-663-5672 x6413

 

___
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
Premier Authorized Adobe Consulting and Training http://www.figleaf.com
http://training.figleaf.com


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.18/586 - Release Date: 2006-12-13
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.18/586 - Release Date: 2006-12-13
 

___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: RE: [Flashcoders] Area of a triangle using perimiter values only

2006-12-14 Thread Jordan Snyder

Nice Alain!

On 12/14/06, Alain Rousseau <[EMAIL PROTECTED]> wrote:

 Speaking of Triangles, I made an utility Class to help me solve Triangle
problems
and the formulas are all taken from mathworld website

It will help you get the missing values of your triangles :

Hope it helps someone out there ...


Alain


/***
**
*
*   Triangle Solver
*
*   File: TriangleSolver.as
*   Created by: [EMAIL PROTECTED]
*

*/
/***
**
*
*
*   Class: TriangleSolver
*
*   Class that helps solving triangle equations, all the methods are
static
*   so there is no need to create an instance of the class
*
*   Math reference : http://en.wikipedia.org/wiki/Triangle
*
*   Usage Example :
*
*   import ca.daroost.utils.TriangleSolver;
*   // lets say that we have a rectangle triangle of known height and
width and we are looking for the hypotenuse
*   var hyp:Number = TriangleSolver.hypothenuse(100, 50);
*
*

*/
class ca.daroost.utils.TriangleSolver {
//

/***
**
*
*  Properties
*


*/
//
public static var DEGTORAD:Number = Math.PI/180;
public static var RADTODEG:Number = 180/Math.PI;

//

/***
**
*
*  Constructor : TriangleSolver
*


*/
//
function TriangleSolver() {

}
//

/***
**


**
**
**
Methods
**


**


*/
//
//

/***
**
*
*  Method : hypothnuse
*
*  The Pythagorean theorem
*
*   @param : a - the a side
*b - the b side
*


*/
//
// c = sqrt(a^2 + b^2)
public static function hypothenuse(a:Number, b:Number):Number {
var c:Number;
c = Math.sqrt(Math.pow(a,2)+Math.pow(b,2));
return c;
}
//

/***
**
*
*  Method : sineRule
*
*  Refers to the sine rule
*  c/sin(angleC) = a/sin(angleA) = b/sin(angleB)
*
*   @param : c - the c side
*angleC - the angle opposed to the c
side
*a - the a side
*angleA - the angle opposed to the a
side
*


*/
//
//
public static function sineRule(c:Number, angleC:Number, a:Number,
angleA:Number):Number {
if ( (angleC == undefined) || (angleC == null) ) {
angleC = Math.asin(c*Math.sin(a)/angleA);
return angle;
} else if ( (c == undefined) || (c == null) ) {
c = a*Math.sin(angleC)/Math.sin(angleA);
return c;
}
}
//

/***
**
*
*  Method : cosRule
*
*  Refers to the cosine rule which is the extended version
of the Pythagorean theorem
*  c^2 = a^2 + b^2 - 2*a*b*cos(angleC)
*
*   @param : c - the c side
*a - the a side
*b - the b side
*angleC - the angle opposed to the c
side
*


*/
//
public static function cosRule(c:Number, a:Number, b:Number,
angleC:Number):Number {
if ( (angleC == undefined) || (angleC == null) ) {
angleC =
Math.acos((Math.pow(a,2)+Math.pow(b,2)-Math.p

RE: [Flashcoders] Area of a triangle using perimiter values only

2006-12-14 Thread Alain Rousseau
 Speaking of Triangles, I made an utility Class to help me solve Triangle
problems
and the formulas are all taken from mathworld website 

It will help you get the missing values of your triangles :

Hope it helps someone out there ...


Alain


/***
**
*
*   Triangle Solver
*
*   File: TriangleSolver.as
*   Created by: [EMAIL PROTECTED]
*

*/
/***
**
*
*
*   Class: TriangleSolver
*
*   Class that helps solving triangle equations, all the methods are
static
*   so there is no need to create an instance of the class
*
*   Math reference : http://en.wikipedia.org/wiki/Triangle
*
*   Usage Example : 
*
*   import ca.daroost.utils.TriangleSolver;
*   // lets say that we have a rectangle triangle of known height and
width and we are looking for the hypotenuse
*   var hyp:Number = TriangleSolver.hypothenuse(100, 50);
*
*

*/
class ca.daroost.utils.TriangleSolver {
//

/***
**
*
*  Properties
*


*/
//
public static var DEGTORAD:Number = Math.PI/180;
public static var RADTODEG:Number = 180/Math.PI;

//

/***
**
*
*  Constructor : TriangleSolver
*


*/
//
function TriangleSolver() {

}
//

/***
**


**
**
**
Methods
**


**


*/
//
//

/***
**
*
*  Method : hypothnuse
*
*  The Pythagorean theorem
*
*   @param : a - the a side
*b - the b side
*


*/
//
// c = sqrt(a^2 + b^2)
public static function hypothenuse(a:Number, b:Number):Number {
var c:Number;
c = Math.sqrt(Math.pow(a,2)+Math.pow(b,2));
return c;
}
//

/***
**
*
*  Method : sineRule
*
*  Refers to the sine rule
*  c/sin(angleC) = a/sin(angleA) = b/sin(angleB)
*
*   @param : c - the c side
*angleC - the angle opposed to the c
side
*a - the a side
*angleA - the angle opposed to the a
side
*


*/
//
// 
public static function sineRule(c:Number, angleC:Number, a:Number,
angleA:Number):Number {
if ( (angleC == undefined) || (angleC == null) ) {
angleC = Math.asin(c*Math.sin(a)/angleA);
return angle;
} else if ( (c == undefined) || (c == null) ) {
c = a*Math.sin(angleC)/Math.sin(angleA);
return c;
}
}
//

/***
**
*
*  Method : cosRule
*
*  Refers to the cosine rule which is the extended version
of the Pythagorean theorem
*  c^2 = a^2 + b^2 - 2*a*b*cos(angleC)
*
*   @param : c - the c side
*a - the a side
*b - the b side
*angleC - the angle opposed to the c
side
*


*/
//
public static function cosRule(c:Number, a:Number, b:Number,
angleC:Number):Number {
if ( (angleC == undefined) || (angleC == null) ) {
 

Re: Re: [Flashcoders] site check please: swfobject issues

2006-12-14 Thread Count Schemula

Thanks everyone. Looks like a false alarm. It only her aunt, with,
more than likely an OLD computer. I'm still trying to get the specs.

I did put a link that goes to the Flash download in case of no flash
present. I'll also add this "detect=false"

Although, apparently, her problem was it was catching her and forcing
to download the player every time.

Anyhow, there was only one problem computer, at first I thought there
were several.

Thanks.

On 12/13/06, T. Michael Keesey <[EMAIL PROTECTED]> wrote:

It seems that the problem is pretty limited. Do you offer a link that
bypasses detection? E.g., in the replaced text:

Click here to enter the site, bypassing
Flash detection.


--
count_schemula
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] MX transitions: Website that shows examples?

2006-12-14 Thread Merrill, Jason
>>I second this testament.
>>I have been using the Fuse Kit for a bit & am very happy with it.

Just to chime in, the Fuse kit is HUGE.  I would recommend against it in
some situations where performance is a factor.  If it doesn't effect
performance, it's a great set of classes.  Just be sure to test test
test.  I ripped it out of a project because it brought my RIA to a
crawl.  

Jason Merrill
Bank of America 
Learning & Organizational Effectiveness
 
 
 
 
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Area of a triangle using perimiter values only

2006-12-14 Thread Merrill, Jason
Thanks - all, yes Jake saw it first and others chimed in with the same
thought, my numbers did not compute because they did not make a
triangle.  I have it working now.  

The formula is fine, and this function works for me as long as the
values come from a true triangle:

public static function areaOfTriangle(a:Number, b:Number,
c:Number):Number{
return (Math.sqrt((a+b+c)*(b+c-a)*(c+a-b)*(a+b-c)))/4;
}

Thanks eveyrone!

Jason Merrill
Bank of America 
Learning & Organizational Effectiveness
 
 
 
 
 
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re[2]: [Flashcoders] Area of a triangle using perimiter values only

2006-12-14 Thread Iv
Hello,

TMK> Actually, this does return "NaN" for some numbers, but it's pretty
TMK> simple to realize why. For example, it returns "NaN" if you input side
TMK> lengths of 1, 2, 4.
- it is not triangle.


-- 
Ivan Dembicki

[EMAIL PROTECTED] || 
http://www.design.ru

___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] MX transitions: Website that shows examples?

2006-12-14 Thread Ryan Pescatore Frisk

I second this testament.
I have been using the Fuse Kit for a bit & am very happy with it.

Ryan

---
Strange Attractors Design
[EMAIL PROTECTED] | www.strangeattractors.com
---


On Dec 14, 2006, at 6:56 PM, [EMAIL PROTECTED] wrote:

I found the mx transition tweens to be troublesome to work with. I  
would

recommend Fuse Kit at:

http://mosessupposes.com/Fuse/index.html

This does everything you wish mx tweens did and more. It allows you to
create sequenced animation, animate filters and filter properties.  
It also
has a shortcuts mode that creates many property shortcuts that are  
very

useful.

For example there is a _scale shortcut that sets both _xscale and  
_yscale.


_mc._scale = 50;

You can also set blur with Blur_blur. For example:

_mc.Blur_blur = 10;

And animate with:

_mc.Blur_blurTo( 0, 2 );

The first line would set the blur to 10 and the second would  
animate the

blur down to 0 over two seconds. Both the x and y.

It also supports all of Robert Penner's easing equations. For example:

_mc.slideTo( 275, 200, 2, 'easeOutElastic', 1, 'all_done()' );

The line above would animate _mc to the center of the stage over two
seconds time using the easeOutElastic method, delay 1 second before
starting and call the all_done() function when finished.

It works very well I have not run into any problems yet.
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com








___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Area of a triangle using perimiter values only

2006-12-14 Thread T. Michael Keesey

On 12/14/06, T. Michael Keesey <[EMAIL PROTECTED]> wrote:

Heron's formula looks pretty simple:


Actually, this does return "NaN" for some numbers, but it's pretty
simple to realize why. For example, it returns "NaN" if you input side
lengths of 1, 2, 4. Why? Well, you try building a triangle with sides
of those lengths and let me know how far you get
--
T. Michael Keesey
The Dinosauricon: http://dino.lm.com
Parry & Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] disable flvplayback seekBar

2006-12-14 Thread Michael Appenzellar
I have 2 videos. During the first video I want to not show or disable
the flvplayback seekBar, but I want to show/enable the seekBar during
the 2nd video

 

Here is the code that is playing both videos...

 

listenerObject.complete = function(eventObject:Object):Void {

if (vid.contentPath == "qthigh4.flv") {

playerBar.gotoAndStop(1);

vid.play("12-07-06.flv");

}

};

 


Michael Appenzellar
Sr. Web Applications Developer


Mirame Interactive

http://www.mirameinteractive.com

301-663-5672 x6413

 

___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] MX transitions: Website that shows examples?

2006-12-14 Thread mitch
I found the mx transition tweens to be troublesome to work with. I would
recommend Fuse Kit at:

http://mosessupposes.com/Fuse/index.html

This does everything you wish mx tweens did and more. It allows you to
create sequenced animation, animate filters and filter properties. It also
has a shortcuts mode that creates many property shortcuts that are very
useful.

For example there is a _scale shortcut that sets both _xscale and _yscale.

_mc._scale = 50;

You can also set blur with Blur_blur. For example:

_mc.Blur_blur = 10;

And animate with:

_mc.Blur_blurTo( 0, 2 );

The first line would set the blur to 10 and the second would animate the
blur down to 0 over two seconds. Both the x and y.

It also supports all of Robert Penner's easing equations. For example:

_mc.slideTo( 275, 200, 2, 'easeOutElastic', 1, 'all_done()' );

The line above would animate _mc to the center of the stage over two
seconds time using the easeOutElastic method, delay 1 second before
starting and call the all_done() function when finished.

It works very well I have not run into any problems yet.
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Detect Security Settings

2006-12-14 Thread Vishal Kapur

Check out the "Flash Player Trust Configuration files" section of:
http://www.adobe.com/devnet/flash/articles/fplayer8_security_04.html

The configuration file could be updated by your install program.

-- Vishal


On 12/5/06, Holth, Daniel C. <[EMAIL PROTECTED]> wrote:


Is there a way to detect a user's global security settings?  As in, if they 
have 'Always Allow' or 'Always Ask' checked.  Is there a way to change these 
settings without being connected to the internet?

We are developing an application that runs off a CD and our users are getting errors that 
"x.swf is trying to communicate with y.html".  We have found some ways to 
eliminate this, but there are still instances in the course (due to third party apps) 
that this still occurs.

We are planning on adding instructions on how to change their settings, but we 
would prefer to only show these instructions if the user actually needs to 
change them.

Thanks
-Dan

This e-mail and its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Area of a triangle using perimiter values only

2006-12-14 Thread T. Michael Keesey

Heron's formula looks pretty simple:

function triangleArea(a:Number, b:Number, c:Number):Number {
   // Check that all arguments are positive and finite.
   if (!(a > 0) || !(b > 0) || !(c > 0) || !isFinite(a) ||
!isFinite(b) || !isFinite(c)) {
   throw new Error("Invalid argument(s) for triangleArea: " +
arguments.join(", "));
   }
   // Calculate semiperimeter.
   var s:Number = (a + b + c) / 2;
   // Calculate and return area using Heron's formula.
   return Math.sqrt(s * (s - a) * (s - b) * (s - c));
}

--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry & Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: Re: [Flashcoders] Area of a triangle using perimiter values only

2006-12-14 Thread Jordan Snyder

Jason,

It must be true that your inputs are incorrect, BUT to answer your
question about distributive methods - I was just thinking about
condensing that formula.  If you did that(and they do it in the next
step on the MathWorld link) then you have to multiply every term in
parens by every other term in parens and you get all of that whacky
a^4, b^4 business.  As it is, you're supplying your function with the
values of a, b, and c, so you can add them in the parens and multiply
out the whole numbers.  False alarm there!

Cheers

On 12/14/06, Nex Ninek <[EMAIL PROTECTED]> wrote:

Negative result of ((a+b+c)*(b+c-a)*(c+a-b)*(a+b-c)) is not possible if a,b,
and c are lengths of a triangle's sides.  The first term will always be
obviously positive, and so will the other three terms -- they  are simply
the sum of  the lengths of two sides less the third side, and you can't have
a triangle where that isn't true.  It's most likely that your input numbers
to the formula are incorrect.  Trace that to find your problem.

On 12/14/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>
> I'm trying to figure the area of a triangle in Actionscript using the
> perimeter values only, not the traditional simple formula:
>
>  area = (height/2)*base
>
> because figuring the height is tricky given the triangle will be drawn
> in odd ways (i.e. a not horizontally alinged base), so I am exploring
> other triangle area forumulas that only take in the perimiter values
> (a,b,c), like Heron's formula or this one, which I like:
>
> given a,b,c are the length of the sides of the triangle, then the
> formula is:
>
>squareRoot of: (a+b+c)(b+c-a)(c+a-b)(a+b-c)
> ___
>  4
>
> So in trying to translate that to actionscript, I wrote:
>
> public static function areaOfTriangle(a:Number, b:Number,
> c:Number):Number{
> return (Math.sqrt((a+b+c)*(b+c-a)*(c+a-b)*(a+b-c)))/4;
> }
>
> But the problem is (a+b+c)*(b+c-a)*(c+a-b)*(a+b-c) results in a negative
> number, and this the square root cannot be taken.  Or perhaps I am
> interpreting the forumula incorrectly:
> http://mathworld.wolfram.com/TriangleArea.html
>
> What am I doing wrong here?  Thanks.
>
> Jason Merrill
> Bank of America
> Learning & Organizational Effectiveness
>
>
>
>
> ___
> 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
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
Jordan Snyder
Applications Developer
Image Action LLC
http://www.imageaction.com
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Area of a triangle using perimiter values only

2006-12-14 Thread Iv
Hello Jason,

public function getTriangleArea (a:Number, b:Number, c:Number):Number {
 var p:Number = (a+b+c)/2;
 return Math.sqrt(p*(p-a)*(p-b)*(p-c));
}


-- 
Ivan Dembicki
__
[EMAIL PROTECTED] | http://www.artlebedev.ru | http://www.sharedfonts.com

___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Area of a triangle using perimiter values only

2006-12-14 Thread Nex Ninek

I'd stick to using Heron's rule -- there is no reason why it shouldn't work
given correct inputs, and it is less expensive computationally.

On 12/14/06, Danny Kodicek <[EMAIL PROTECTED]> wrote:


> I'm trying to figure the area of a triangle in Actionscript
> using the perimeter values only, not the traditional simple formula:
>
>  area = (height/2)*base

Try: area = 1/2 * a * b * sin(C), where C is the angle between the two
sides
a and b. You can calculate C using the cosine rule: c^2 = a^2 + b^2 - 2ab
*
cos(C). A bit of manipulation will give you sin(C) in terms of cos(C) so
you
can avoid using any trig (sorry I have to rush so I don't have time to do
it
right now)

HTH
Danny

___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Area of a triangle using perimiter values only

2006-12-14 Thread Nex Ninek

Negative result of ((a+b+c)*(b+c-a)*(c+a-b)*(a+b-c)) is not possible if a,b,
and c are lengths of a triangle's sides.  The first term will always be
obviously positive, and so will the other three terms -- they  are simply
the sum of  the lengths of two sides less the third side, and you can't have
a triangle where that isn't true.  It's most likely that your input numbers
to the formula are incorrect.  Trace that to find your problem.

On 12/14/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:


I'm trying to figure the area of a triangle in Actionscript using the
perimeter values only, not the traditional simple formula:

 area = (height/2)*base

because figuring the height is tricky given the triangle will be drawn
in odd ways (i.e. a not horizontally alinged base), so I am exploring
other triangle area forumulas that only take in the perimiter values
(a,b,c), like Heron's formula or this one, which I like:

given a,b,c are the length of the sides of the triangle, then the
formula is:

   squareRoot of: (a+b+c)(b+c-a)(c+a-b)(a+b-c)
___
 4

So in trying to translate that to actionscript, I wrote:

public static function areaOfTriangle(a:Number, b:Number,
c:Number):Number{
return (Math.sqrt((a+b+c)*(b+c-a)*(c+a-b)*(a+b-c)))/4;
}

But the problem is (a+b+c)*(b+c-a)*(c+a-b)*(a+b-c) results in a negative
number, and this the square root cannot be taken.  Or perhaps I am
interpreting the forumula incorrectly:
http://mathworld.wolfram.com/TriangleArea.html

What am I doing wrong here?  Thanks.

Jason Merrill
Bank of America
Learning & Organizational Effectiveness




___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Area of a triangle using perimiter values only

2006-12-14 Thread Jake Prime

Hi Jason

If the number is coming out negative the most likely reason is that
the numbers you are supplying do not make a triangle. (e.g. two sides
are length 1 each and the third is 2 or more). I've tested your code
and it does produce positive numbers for all valid triangles I've
tried.

Jake

On 14/12/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:

I'm trying to figure the area of a triangle in Actionscript using the
perimeter values only, not the traditional simple formula:

 area = (height/2)*base

because figuring the height is tricky given the triangle will be drawn
in odd ways (i.e. a not horizontally alinged base), so I am exploring
other triangle area forumulas that only take in the perimiter values
(a,b,c), like Heron's formula or this one, which I like:

given a,b,c are the length of the sides of the triangle, then the
formula is:

   squareRoot of: (a+b+c)(b+c-a)(c+a-b)(a+b-c)
___
 4

So in trying to translate that to actionscript, I wrote:

public static function areaOfTriangle(a:Number, b:Number,
c:Number):Number{
return (Math.sqrt((a+b+c)*(b+c-a)*(c+a-b)*(a+b-c)))/4;
}

But the problem is (a+b+c)*(b+c-a)*(c+a-b)*(a+b-c) results in a negative
number, and this the square root cannot be taken.  Or perhaps I am
interpreting the forumula incorrectly:
http://mathworld.wolfram.com/TriangleArea.html

What am I doing wrong here?  Thanks.

Jason Merrill
Bank of America
Learning & Organizational Effectiveness




___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: Re: [Flashcoders] Area of a triangle using perimiter values only

2006-12-14 Thread Pete Miller
Without looking up the source of that formula (i.e., just based on what
you wrote), I determine this:  that in order for the result of
multiplication to be negative, one of the terms containing subtraction
must be negative.  In order for that to occur, one side of your triangle
is longer than the sum of the other two.  That is impossible.  Check
your parameters.

P.

>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:flashcoders-
>> [EMAIL PROTECTED] On Behalf Of Jordan Snyder
>> Sent: Thursday, December 14, 2006 11:36 AM
>> To: Flashcoders mailing list
>> Subject: Re: Re: [Flashcoders] Area of a triangle using perimiter
values
>> only
>> 
>> I recind half of what I said after actually thinking about it, but
>> maybe it's a different perspective ;)
>> 
>> 
>> On 12/14/06, Jordan Snyder <[EMAIL PROTECTED]> wrote:
>> > To dodge your question, couldn't you just use the simple distance
>> > forumula to determine the base even when it's not horizontal?  I
dont'
>> > know much about your application or if you'll have the points where
>> > the triangle's points lie, but that's just an idea.
>> >
>> > Oh, but I just thought of something from my old rusty brain.  I
looked
>> > at the formula on the mathworld page; would that not indicate a
>> > distributive method of multiplication?  Again, rusty, but a
thought.
>> >
>> > Let us know what you figure out!!
>> >
>> >
>> > Cheers
>> >
>> > On 12/14/06, Merrill, Jason <[EMAIL PROTECTED]>
wrote:
>> > > I'm trying to figure the area of a triangle in Actionscript using
the
>> > > perimeter values only, not the traditional simple formula:
>> > >
>> > >  area = (height/2)*base
>> > >
>> > > because figuring the height is tricky given the triangle will be
>> drawn
>> > > in odd ways (i.e. a not horizontally alinged base), so I am
exploring
>> > > other triangle area forumulas that only take in the perimiter
values
>> > > (a,b,c), like Heron's formula or this one, which I like:
>> > >
>> > > given a,b,c are the length of the sides of the triangle, then the
>> > > formula is:
>> > >
>> > >squareRoot of: (a+b+c)(b+c-a)(c+a-b)(a+b-c)
>> > > ___
>> > >  4
>> > >
>> > > So in trying to translate that to actionscript, I wrote:
>> > >
>> > > public static function areaOfTriangle(a:Number, b:Number,
>> > > c:Number):Number{
>> > > return (Math.sqrt((a+b+c)*(b+c-a)*(c+a-b)*(a+b-
>> c)))/4;
>> > > }
>> > >
>> > > But the problem is (a+b+c)*(b+c-a)*(c+a-b)*(a+b-c) results in a
>> negative
>> > > number, and this the square root cannot be taken.  Or perhaps I
am
>> > > interpreting the forumula incorrectly:
>> > > http://mathworld.wolfram.com/TriangleArea.html
>> > >
>> > > What am I doing wrong here?  Thanks.
>> > >
>> > > Jason Merrill
>> > > Bank of America
>> > > Learning & Organizational Effectiveness
>> > >
>> > >
>> > >
>> > >
>> > > ___
>> > > 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
>> > > Premier Authorized Adobe Consulting and Training
>> > > http://www.figleaf.com
>> > > http://training.figleaf.com
>> > >
>> >
>> >
>> > --
>> > Jordan Snyder
>> > jordansnyder.com
>> > Applications Developer
>> > Image Action LLC
>> > http://www.imageaction.com
>> >
>> 
>> 
>> --
>> Jordan Snyder
>> Applications Developer
>> Image Action LLC
>> http://www.imageaction.com
>> ___
>> 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
>> Premier Authorized Adobe Consulting and Training
>> http://www.figleaf.com
>> http://training.figleaf.com
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: Re: Re: [Flashcoders] Area of a triangle using perimiter values only

2006-12-14 Thread Jordan Snyder

ALL RIGHT

I'm a silly billy.  I used your code and it works just fine.  Maybe
the problem isn't in this function.

I'm using Flash 8/AS2.

Cheers

On 12/14/06, Jordan Snyder <[EMAIL PROTECTED]> wrote:

I recind half of what I said after actually thinking about it, but
maybe it's a different perspective ;)


On 12/14/06, Jordan Snyder <[EMAIL PROTECTED]> wrote:
> To dodge your question, couldn't you just use the simple distance
> forumula to determine the base even when it's not horizontal?  I dont'
> know much about your application or if you'll have the points where
> the triangle's points lie, but that's just an idea.
>
> Oh, but I just thought of something from my old rusty brain.  I looked
> at the formula on the mathworld page; would that not indicate a
> distributive method of multiplication?  Again, rusty, but a thought.
>
> Let us know what you figure out!!
>
>
> Cheers
>
> On 12/14/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
> > I'm trying to figure the area of a triangle in Actionscript using the
> > perimeter values only, not the traditional simple formula:
> >
> >  area = (height/2)*base
> >
> > because figuring the height is tricky given the triangle will be drawn
> > in odd ways (i.e. a not horizontally alinged base), so I am exploring
> > other triangle area forumulas that only take in the perimiter values
> > (a,b,c), like Heron's formula or this one, which I like:
> >
> > given a,b,c are the length of the sides of the triangle, then the
> > formula is:
> >
> >squareRoot of: (a+b+c)(b+c-a)(c+a-b)(a+b-c)
> > ___
> >  4
> >
> > So in trying to translate that to actionscript, I wrote:
> >
> > public static function areaOfTriangle(a:Number, b:Number,
> > c:Number):Number{
> > return (Math.sqrt((a+b+c)*(b+c-a)*(c+a-b)*(a+b-c)))/4;
> > }
> >
> > But the problem is (a+b+c)*(b+c-a)*(c+a-b)*(a+b-c) results in a negative
> > number, and this the square root cannot be taken.  Or perhaps I am
> > interpreting the forumula incorrectly:
> > http://mathworld.wolfram.com/TriangleArea.html
> >
> > What am I doing wrong here?  Thanks.
> >
> > Jason Merrill
> > Bank of America
> > Learning & Organizational Effectiveness
> >
> >
> >
> >
> > ___
> > 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
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
>
>
> --
> Jordan Snyder
> jordansnyder.com
> Applications Developer
> Image Action LLC
> http://www.imageaction.com
>


--
Jordan Snyder
Applications Developer
Image Action LLC
http://www.imageaction.com




--
Jordan Snyder
Applications Developer
Image Action LLC
http://www.imageaction.com
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Area of a triangle using perimiter values only

2006-12-14 Thread Merrill, Jason
>>To dodge your question, couldn't you just use the simple 
>>distance forumula to determine the base even when it's not 
>>horizontal? 

yes, I could, but again, that's not what I'm after - I want to get the
area based on the length of the sides.  Thanks though.  

>>would that not 
>>indicate a distributive method of multiplication? 

My brain is even rustier - can you explain?  

I had thought 

(a+1)(b+1)(c+1)  meant (a+1)*(b+1)*(c+1) but then maybe I'm off?

Jason Merrill
Bank of America 
Learning & Organizational Effectiveness
 
 
 
 
 
 

>>-Original Message-
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Jordan Snyder
>>Sent: Thursday, December 14, 2006 11:27 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] Area of a triangle using perimiter 
>>values only
>>
>>To dodge your question, couldn't you just use the simple 
>>distance forumula to determine the base even when it's not 
>>horizontal?  I dont'
>>know much about your application or if you'll have the points 
>>where the triangle's points lie, but that's just an idea.
>>
>>Oh, but I just thought of something from my old rusty brain.  
>>I looked at the formula on the mathworld page; would that not 
>>indicate a distributive method of multiplication?  Again, 
>>rusty, but a thought.
>>
>>Let us know what you figure out!!
>>
>>
>>Cheers
>>
>>On 12/14/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>>> I'm trying to figure the area of a triangle in Actionscript 
>>using the 
>>> perimeter values only, not the traditional simple formula:
>>>
>>>  area = (height/2)*base
>>>
>>> because figuring the height is tricky given the triangle 
>>will be drawn 
>>> in odd ways (i.e. a not horizontally alinged base), so I am 
>>exploring 
>>> other triangle area forumulas that only take in the 
>>perimiter values 
>>> (a,b,c), like Heron's formula or this one, which I like:
>>>
>>> given a,b,c are the length of the sides of the triangle, then the 
>>> formula is:
>>>
>>>squareRoot of: (a+b+c)(b+c-a)(c+a-b)(a+b-c) 
>>> ___
>>>  4
>>>
>>> So in trying to translate that to actionscript, I wrote:
>>>
>>> public static function areaOfTriangle(a:Number, b:Number, 
>>> c:Number):Number{
>>> return 
>>(Math.sqrt((a+b+c)*(b+c-a)*(c+a-b)*(a+b-c)))/4;
>>> }
>>>
>>> But the problem is (a+b+c)*(b+c-a)*(c+a-b)*(a+b-c) results in a 
>>> negative number, and this the square root cannot be taken.  
>>Or perhaps 
>>> I am interpreting the forumula incorrectly:
>>> http://mathworld.wolfram.com/TriangleArea.html
>>>
>>> What am I doing wrong here?  Thanks.
>>>
>>> Jason Merrill
>>> Bank of America
>>> Learning & Organizational Effectiveness
>>>
>>>
>>>
>>>
>>> ___
>>> 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
>>> Premier Authorized Adobe Consulting and Training 
>>> http://www.figleaf.com http://training.figleaf.com
>>>
>>
>>
>>-- 
>>Jordan Snyder
>>jordansnyder.com
>>Applications Developer
>>Image Action LLC
>>http://www.imageaction.com
>>___
>>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
>>Premier Authorized Adobe Consulting and Training
>>http://www.figleaf.com
>>http://training.figleaf.com
>>
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Area of a triangle using perimiter values only

2006-12-14 Thread Danny Kodicek
 > I'm trying to figure the area of a triangle in Actionscript 
> using the perimeter values only, not the traditional simple formula:
> 
>  area = (height/2)*base

Try: area = 1/2 * a * b * sin(C), where C is the angle between the two sides
a and b. You can calculate C using the cosine rule: c^2 = a^2 + b^2 - 2ab *
cos(C). A bit of manipulation will give you sin(C) in terms of cos(C) so you
can avoid using any trig (sorry I have to rush so I don't have time to do it
right now)

HTH
Danny

___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: Re: [Flashcoders] Area of a triangle using perimiter values only

2006-12-14 Thread Jordan Snyder

I recind half of what I said after actually thinking about it, but
maybe it's a different perspective ;)


On 12/14/06, Jordan Snyder <[EMAIL PROTECTED]> wrote:

To dodge your question, couldn't you just use the simple distance
forumula to determine the base even when it's not horizontal?  I dont'
know much about your application or if you'll have the points where
the triangle's points lie, but that's just an idea.

Oh, but I just thought of something from my old rusty brain.  I looked
at the formula on the mathworld page; would that not indicate a
distributive method of multiplication?  Again, rusty, but a thought.

Let us know what you figure out!!


Cheers

On 12/14/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
> I'm trying to figure the area of a triangle in Actionscript using the
> perimeter values only, not the traditional simple formula:
>
>  area = (height/2)*base
>
> because figuring the height is tricky given the triangle will be drawn
> in odd ways (i.e. a not horizontally alinged base), so I am exploring
> other triangle area forumulas that only take in the perimiter values
> (a,b,c), like Heron's formula or this one, which I like:
>
> given a,b,c are the length of the sides of the triangle, then the
> formula is:
>
>squareRoot of: (a+b+c)(b+c-a)(c+a-b)(a+b-c)
> ___
>  4
>
> So in trying to translate that to actionscript, I wrote:
>
> public static function areaOfTriangle(a:Number, b:Number,
> c:Number):Number{
> return (Math.sqrt((a+b+c)*(b+c-a)*(c+a-b)*(a+b-c)))/4;
> }
>
> But the problem is (a+b+c)*(b+c-a)*(c+a-b)*(a+b-c) results in a negative
> number, and this the square root cannot be taken.  Or perhaps I am
> interpreting the forumula incorrectly:
> http://mathworld.wolfram.com/TriangleArea.html
>
> What am I doing wrong here?  Thanks.
>
> Jason Merrill
> Bank of America
> Learning & Organizational Effectiveness
>
>
>
>
> ___
> 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
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>


--
Jordan Snyder
jordansnyder.com
Applications Developer
Image Action LLC
http://www.imageaction.com




--
Jordan Snyder
Applications Developer
Image Action LLC
http://www.imageaction.com
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Area of a triangle using perimiter values only

2006-12-14 Thread Jordan Snyder

To dodge your question, couldn't you just use the simple distance
forumula to determine the base even when it's not horizontal?  I dont'
know much about your application or if you'll have the points where
the triangle's points lie, but that's just an idea.

Oh, but I just thought of something from my old rusty brain.  I looked
at the formula on the mathworld page; would that not indicate a
distributive method of multiplication?  Again, rusty, but a thought.

Let us know what you figure out!!


Cheers

On 12/14/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:

I'm trying to figure the area of a triangle in Actionscript using the
perimeter values only, not the traditional simple formula:

 area = (height/2)*base

because figuring the height is tricky given the triangle will be drawn
in odd ways (i.e. a not horizontally alinged base), so I am exploring
other triangle area forumulas that only take in the perimiter values
(a,b,c), like Heron's formula or this one, which I like:

given a,b,c are the length of the sides of the triangle, then the
formula is:

   squareRoot of: (a+b+c)(b+c-a)(c+a-b)(a+b-c)
___
 4

So in trying to translate that to actionscript, I wrote:

public static function areaOfTriangle(a:Number, b:Number,
c:Number):Number{
return (Math.sqrt((a+b+c)*(b+c-a)*(c+a-b)*(a+b-c)))/4;
}

But the problem is (a+b+c)*(b+c-a)*(c+a-b)*(a+b-c) results in a negative
number, and this the square root cannot be taken.  Or perhaps I am
interpreting the forumula incorrectly:
http://mathworld.wolfram.com/TriangleArea.html

What am I doing wrong here?  Thanks.

Jason Merrill
Bank of America
Learning & Organizational Effectiveness




___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




--
Jordan Snyder
jordansnyder.com
Applications Developer
Image Action LLC
http://www.imageaction.com
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Area of a triangle using perimiter values only

2006-12-14 Thread Merrill, Jason
I'm trying to figure the area of a triangle in Actionscript using the
perimeter values only, not the traditional simple formula:

 area = (height/2)*base

because figuring the height is tricky given the triangle will be drawn
in odd ways (i.e. a not horizontally alinged base), so I am exploring
other triangle area forumulas that only take in the perimiter values
(a,b,c), like Heron's formula or this one, which I like:

given a,b,c are the length of the sides of the triangle, then the
formula is:

   squareRoot of: (a+b+c)(b+c-a)(c+a-b)(a+b-c)
___
 4

So in trying to translate that to actionscript, I wrote:

public static function areaOfTriangle(a:Number, b:Number,
c:Number):Number{
return (Math.sqrt((a+b+c)*(b+c-a)*(c+a-b)*(a+b-c)))/4;
}

But the problem is (a+b+c)*(b+c-a)*(c+a-b)*(a+b-c) results in a negative
number, and this the square root cannot be taken.  Or perhaps I am
interpreting the forumula incorrectly:
http://mathworld.wolfram.com/TriangleArea.html   

What am I doing wrong here?  Thanks.

Jason Merrill
Bank of America 
Learning & Organizational Effectiveness
 
 
 
 
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Partially embedded fonts

2006-12-14 Thread slangeberg

Try:

Selecting box with text that has glyphs already in it.

Embed... > Auto Fill

You should see your glyphs appear in the - Include these characters: field.

If you're setting text dynamically in the text field, simply paste the
characters you need into the - Include these characters: field.

-Scott

On 12/14/06, Mendelsohn, Michael <[EMAIL PROTECTED]> wrote:


Hi list...

I have some dynamic text boxes using an embedded font.  These text boxes
only use a select few glyphs, but I have to embed the font with linkage
for others to see it. The font adds a lot of bulk to the swf and I'm
wondering if there's a way to embed only the necessary glyphs and
minimize the bulk.

Thanks,
- Michael M.

___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--

: : ) Scott
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Partially embedded fonts

2006-12-14 Thread Mendelsohn, Michael
Hi list...

I have some dynamic text boxes using an embedded font.  These text boxes
only use a select few glyphs, but I have to embed the font with linkage
for others to see it. The font adds a lot of bulk to the swf and I'm
wondering if there's a way to embed only the necessary glyphs and
minimize the bulk.

Thanks,
- Michael M.

___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] SWF Decompiler

2006-12-14 Thread [EMAIL PROTECTED]
andy,
  
  are you decompiling your own SWFs?  also, what are you seeking from 
decompiling the SWFs?
  
  i ask for 2 reasons:
  1) if you are decompiling other people's SWFs, they usually do not like it, 
so stop.
  2) not all SWFs come from FLAs anymore. if you do not know the  provenance of 
the SWF, after decompiling you may end up with gibberish.  decompilers 
originally tartgeted FLA authored SWFs but today they may  be from MXML, SWiSH 
Max, etc.
  
  that all having been said, i concur with Alias. Buraks.com/ASV is the  gold 
standard for SWF decompilers. it costs $$ but it is worth it. i  have also 
tried Sothink but found it no where in league with  Buraks.com/ASV.
  
  Here is a link for a review on ASV from last year:
  http://www.flashmagazine.com/945.htm
  

Alias™ <[EMAIL PROTECTED]> wrote:  Haven't used eltima, but I'd generally 
recommend ASV as being the best
decompiler going.

http://www.buraks.com/asv/

HTH,
Alias
  

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] ScrollPane malfunction in IE but not Firefox

2006-12-14 Thread Dennis Landi
Hello

Please look at the following flash app in Firefox and
Internet Explorer:

http://dennislandi.com/tiledesigner/tile_designer05_x100.html

On my two machines when the cache is cleared, IE will
not load the scrollPanes correctly.  Once I allow IE
to finish loading the thumbnails (although they are
not loading inside the left scrollPane as intended). 
I then can refresh the page and the app works as
expected, the images loading *inside* the scrollPanes.

Firefox works correctly all the time.

I load each scrollPane.contentPath property like this:
 

_root.leftScrollpane.contentPath = 'mc_empty.swf';

  - with an empty SWF file.  I then use this loaded
movieclip as a canvas to draw vector images as well as
host new movielips with which I load the actual
images.

Could it be that the scrollPane is not properly
loading content via the contentPath property before I
start populating each ScrollPane?  I don't see how
that can be since I begin populating these scrollPanes
in their respective "complete" event handler, so this
by definition should guarantee that the contentpath
has been correctly loaded before I perform any further
operations on each scroll pane.

Any ideas?  Because is works flawlessly in Firefox
every time, I am inclined to think this is a problem
with IE.  The same problem occurss in IE6 and IE7. 
What can I do in my code to get around this problem in
IE?

Is this the best forum to ask this sort of question,
or is there a better forum?

Thanks for your time in advance.



-d

P.S.  On a side note, I've never been able to load a
scrollPane.content path from a movieClip in the
library but only load it as as external file on my
webserver?  What is the secret to loading the
scrollPane.contentPath from the library?  Anyone have
a sample they can send me?

dennis [at] dennislandi [dot] com
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Shape tweens messed up on going from MX04 to F8

2006-12-14 Thread Danny Kodicek
I asked about this a year or so ago but didn't have any luck; now it's
cropped up again. We've got a bunch of animations created in earlier
versions of Flash, and when we bring them into Flash 8 all the shape tweens
are messed up. They use shape hints extensively, and the hints seem to have
become detached from their contours. Has anyone else seen this? Anyone found
a workround?


Thanks
Danny

___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] SWF Decompiler

2006-12-14 Thread Alias™

Haven't used eltima, but I'd generally recommend ASV as being the best
decompiler going.

http://www.buraks.com/asv/

HTH,
Alias


On 12/12/06, Andy Herrman <[EMAIL PROTECTED]> wrote:

Hey all,

At work I've run into a situation where I need to decompile some SWFs.
 A few weeks ago I had looked for one, but couldn't find any good free
ones.  It looks like the company may be willing to buy one, so I'm
wondering if anyone here knows which are the good ones.

The two I found demos for and tried were:

   * Sothink SWF Decompiler (http://www.sothink.com/product/flashdecompiler/)
   * Eltima Flash Decompiler (http://www.eltima.com/products/flashdecompiler/)

>From the demos I couldn't really tell if either were particularly
good, as they both had restricted demos.

Has anyone on this list used either of these, or other ones, before?
Any suggestions?

   -Andy
___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
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
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AS2 OOP Class Structure for simple pong type game

2006-12-14 Thread Ray Chuan

Hi,
you should take into account the fact that the balls don't occupy one
tile only, since it is possible that it can occupy 2, 3 or even 4
tiles.

On 12/14/06, Paul Steven <[EMAIL PROTECTED]> wrote:

Dan, I was thinking using the tile solution would reduce the amount of
checks as instead of looping through all the brick objects and checking for
a collision using hitTest, I would simply call a function passing in the
balls current position and if this was a tile (brick) that hadn't been
destroyed, it would destroy the brick

So the bricks would be represented by a multidimensional array like so

0,0,0,0,0,0,0,0,0,0,0,0,0,0
0,0,0,0,0,0,0,0,0,0,0,0,0,0
1,1,1,1,1,1,1,1,1,1,1,1,1,1
1,1,1,1,1,1,1,1,1,1,1,1,1,1
1,1,1,1,1,1,1,1,1,1,1,1,1,1
0,0,0,0,0,0,0,0,0,0,0,0,0,0
0,0,0,0,0,0,0,0,0,0,0,0,0,0
0,0,0,0,0,0,0,0,0,0,0,0,0,0
0,0,0,0,0,0,0,0,0,0,0,0,0,0
0,0,0,0,0,0,0,0,0,0,0,0,0,0
0,0,0,0,0,0,0,0,0,0,0,0,0,0
0,0,0,0,0,0,0,0,0,0,0,0,0,0

And the method would use the balls x and y position to calculate the tile
row and column

var numTileColumn:Number = passedX / numTileWidth;
var numTileRow:Number = passedY / numTileHeight;

if (map[numTileColumn][numTileRow] == 1) {

// Destroy Brick

}

Hopefully this makes sense. I have just written this code off the top of my
head so haven't implemented it in the game yet






-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Holth,
Daniel C.
Sent: 13 December 2006 17:01
To: Flashcoders mailing list
Subject: RE: [Flashcoders] AS2 OOP Class Structure for simple pong type game


>From a computational standpoint, you end up running the same amount of
processses.  Are you either haveing the ball constantly checking "Where am
I? Am I over a brick?"  or you have the ball checking "Am i hitting
something?" every onEnterFrame.

Pete's suggested having checks when it reaches a vertical threshold, but
again, you just change the the ball from asking "Am I hitting something?" to
"am I over the threshold?"  every onEnterFrame, and then add additional
computation to figure out what its hitting.

I like Mike's solution of breaking out of the loop after a collision is
detected becuase then you don't perform unnessary computations (assuming the
ball can only be hitting one thing at a time).

-Dan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Paul
Steven
Sent: Wednesday, December 13, 2006 10:36 AM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] AS2 OOP Class Structure for simple pong type
game


Rather than testing every brick for a collision all the time, I was thinking
of using a tile based approach to display the bricks. Therefore rather than
each brick checking for a collision with the ball, it is a case of checking
what tile (brick) the ball currently occupies if any and if that brick has
not yet been destroyed then destroy it...

Hence a multidimensional array would be used to represent the bricks on the
screen.

Haven't implemented this yet but it sounds ok in my head:)


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pete Miller
Sent: 13 December 2006 16:17
To: Flashcoders mailing list
Subject: RE: [Flashcoders] AS2 OOP Class Structure for simple pong type game

I don't program games (so add that factor as a consideration), it was
just my first thought that if I were doing this, I wouldn't want to test
every object for a collision all the time.  If there is a latency issue
such as you describe, a homebrewed Event class might eliminate it.

P.

>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:flashcoders-
>> [EMAIL PROTECTED] On Behalf Of slangeberg
>> Sent: Wednesday, December 13, 2006 11:13 AM
>> To: Flashcoders mailing list
>> Subject: Re: [Flashcoders] AS2 OOP Class Structure for simple pong
type
>> game
>>

>> Have you actually implemented an event system like this in games? It
>> seems
>> like a good idea, but for some reason I always thought this approach
>> would
>> introduce unnecessary latency, but now I'm not sure why!
>>

>> -Scott
>>

>> On 12/13/06, Pete Miller <[EMAIL PROTECTED]> wrote:
>> >
>> > Another possible strategy is for the ball to fire off an event
every
>> > time it crosses certain vertical location thresholds.  The target
>> > objects could then listen for the event which matches their
vertical
>> > location to test for a collision.
>> >
>> > For example, when the ball descends to the row containing the
paddle,
>> it
>> > fires that event, and the paddle, receiving it, tests for
collision.
>> > When the ball ascends to the first row of bricks, those bricks each
>> test
>> > for collsion.  This might be a performance improvement over testing
>> > every object in the system all the time.
>> >
>> > P.
>> >
>> > >> -Original Message-
>> > >> From: [EMAIL PROTECTED]
[mailto:flashcoders-
>> > >> [EMAIL PROTECTED] On Behalf Of Holth, Daniel C.
>> > >> Sent: Wednesday, December 13, 2006 9:43 AM
>> > >> To: