Re: [Flashcoders] AS2 - Code not working in FP10

2008-11-06 Thread Charles Parcell
Is there a live link that shows this and we can test our FP versions on it?

Charles P.


On Thu, Nov 6, 2008 at 5:26 AM, FlashDev [EMAIL PROTECTED] wrote:

 Yeah its just wired how it works in FP9 and not FP10 and I was wondering if
 it was this code or if it could be something else!?
   - Original Message -
  From: sebastian
  To: Flash Coders List
  Sent: Wednesday, November 05, 2008 10:23 PM
  Subject: Re: [Flashcoders] AS2 - Code not working in FP10


  Hi,

  I'm sure someone else can give a reason, cause I wouldn't know; but
  short of that, you could use a tween engine to center it. AS2 has
  several good tween engines available.

  Seb.

  FlashDev wrote:
   Hi guys, ive got a bit fo code that works fine in flash player 9 but in
 10 it completely messes up!
  
   Its suppose to centre an image, any ideas why it no longer works?
  
   center_content.onEnterFrame = function() {
 // CENTER Y
 contentYTarg = Math.round((Stage.height - center_content._height)/2);
 contentYDist = contentYTarg - center_content._y;
 center_content._y += contentYDist/contentEase;
 if (contentYDist  0) {
  center_content._y = Math.ceil(center_content._y);
 }else{
  center_content._y = Math.floor(center_content._y);
 }
 if (Math.abs(contentYDist)  1) {
  center_content._y = contentYTarg;
 }
 // CENTER X
 contentXTarg = Math.round((Stage.width - center_content._width)/2);
 contentXDist = contentXTarg - center_content._x;
 center_content._x += contentXDist/contentEase;
 if (contentXDist  0) {
  center_content._x = Math.ceil(center_content._x);
 }else{
  center_content._x = Math.floor(center_content._x);
 }
 if (Math.abs(contentXDist)  1) {
  center_content._x = contentXTarg;
 }
 // WHEN CENTERING IS COMPLETE...
 if (contentYDist == 0  contentXDist == 0) {
  delete center_content.onEnterFrame
 }
}
   ___
   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 mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Easing a selection

2008-11-06 Thread Eric E. Dolecki
I was thinking about this the other day... easing of a selection of items in
a list.
Now, one could move a selector with a mouse, and then kind of throw it and
then check the onUpdate of it's single ease (use speed as the determination
for how far it should travel) to check if it's within the bounds of an item,
and highlight that item, deselecting the previous item.

That approach works and is probably the easiest.

But what if you wanted to use an index of items  use an easing approach (or
something that looked like it) where the items themselves had a selector
clip within them... so you wouldn't be moving a selector item under them
all, but affecting them in order with easing. What might be a good approach
for something like that? Perhaps a timer with a reverse damping interval?
What might that look like as a good approach.

-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS2 - Code not working in FP10

2008-11-06 Thread FlashDev
Yeah its just wired how it works in FP9 and not FP10 and I was wondering if it 
was this code or if it could be something else!?
  - Original Message - 
  From: sebastian 
  To: Flash Coders List 
  Sent: Wednesday, November 05, 2008 10:23 PM
  Subject: Re: [Flashcoders] AS2 - Code not working in FP10


  Hi,

  I'm sure someone else can give a reason, cause I wouldn't know; but 
  short of that, you could use a tween engine to center it. AS2 has 
  several good tween engines available.

  Seb.

  FlashDev wrote:
   Hi guys, ive got a bit fo code that works fine in flash player 9 but in 10 
it completely messes up!
   
   Its suppose to centre an image, any ideas why it no longer works?
   
   center_content.onEnterFrame = function() {
 // CENTER Y
 contentYTarg = Math.round((Stage.height - center_content._height)/2);
 contentYDist = contentYTarg - center_content._y;
 center_content._y += contentYDist/contentEase;
 if (contentYDist  0) {
  center_content._y = Math.ceil(center_content._y);
 }else{
  center_content._y = Math.floor(center_content._y);
 }
 if (Math.abs(contentYDist)  1) {
  center_content._y = contentYTarg;
 }
 // CENTER X
 contentXTarg = Math.round((Stage.width - center_content._width)/2);
 contentXDist = contentXTarg - center_content._x;
 center_content._x += contentXDist/contentEase;
 if (contentXDist  0) {
  center_content._x = Math.ceil(center_content._x);
 }else{
  center_content._x = Math.floor(center_content._x);
 }
 if (Math.abs(contentXDist)  1) {
  center_content._x = contentXTarg;
 }
 // WHEN CENTERING IS COMPLETE...
 if (contentYDist == 0  contentXDist == 0) {
  delete center_content.onEnterFrame
 }
}
   ___
   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] Flash Pro 8 working with 9, but not 8

2008-11-06 Thread Lehr, Ross (N-SGIS)
Hey All,

 

 I've run into a funny issue.  I am working in Flash 8 Pro and I
have recently discovered that my .swfs load from the server if Explorer
has the version 9 plug-in, but will not work with version 8 (I get a red
X where the .swf should be).I have my preferences set to create
version 8 .swfs, but no go.  I even set it to create version 7 swfs, but
they still only play in 9 and not 8.  Any ideas?

 

Thanks,

Ross

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


Re: [Flashcoders] AS2 - Code not working in FP10

2008-11-06 Thread FlashDev
yeah view it hear...

www.maryjanefashion.com/index.php 

SJM
  - Original Message - 
  From: Charles Parcell 
  To: Flash Coders List 
  Sent: Thursday, November 06, 2008 2:26 PM
  Subject: Re: [Flashcoders] AS2 - Code not working in FP10


  Is there a live link that shows this and we can test our FP versions on it?

  Charles P.


  On Thu, Nov 6, 2008 at 5:26 AM, FlashDev [EMAIL PROTECTED] wrote:

   Yeah its just wired how it works in FP9 and not FP10 and I was wondering if
   it was this code or if it could be something else!?
 - Original Message -
From: sebastian
To: Flash Coders List
Sent: Wednesday, November 05, 2008 10:23 PM
Subject: Re: [Flashcoders] AS2 - Code not working in FP10
  
  
Hi,
  
I'm sure someone else can give a reason, cause I wouldn't know; but
short of that, you could use a tween engine to center it. AS2 has
several good tween engines available.
  
Seb.
  
FlashDev wrote:
 Hi guys, ive got a bit fo code that works fine in flash player 9 but in
   10 it completely messes up!

 Its suppose to centre an image, any ideas why it no longer works?

 center_content.onEnterFrame = function() {
   // CENTER Y
   contentYTarg = Math.round((Stage.height - center_content._height)/2);
   contentYDist = contentYTarg - center_content._y;
   center_content._y += contentYDist/contentEase;
   if (contentYDist  0) {
center_content._y = Math.ceil(center_content._y);
   }else{
center_content._y = Math.floor(center_content._y);
   }
   if (Math.abs(contentYDist)  1) {
center_content._y = contentYTarg;
   }
   // CENTER X
   contentXTarg = Math.round((Stage.width - center_content._width)/2);
   contentXDist = contentXTarg - center_content._x;
   center_content._x += contentXDist/contentEase;
   if (contentXDist  0) {
center_content._x = Math.ceil(center_content._x);
   }else{
center_content._x = Math.floor(center_content._x);
   }
   if (Math.abs(contentXDist)  1) {
center_content._x = contentXTarg;
   }
   // WHEN CENTERING IS COMPLETE...
   if (contentYDist == 0  contentXDist == 0) {
delete center_content.onEnterFrame
   }
  }
 ___
 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 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] FW: [Flash_Tiger] Outsourcing and Actionscript specs

2008-11-06 Thread Merrill, Jason

I agree with Joel; your best bet is to provide a highly detailed
design spec with complete API, and also provide guidance on what
components to extend, etc. The downside is that it takes a lot of time
to do all of this work, and depending on your particular situation, it
may be unrealistic.

Yeah, had done that, but not in great detail.  An API would have been
too much.  The project was a learning game, and in my mind I couldn't
justify spending a huge amount of time writing very detailed design
specs, because that could take almost as much time to think about and
write as it would be to sit down build the game.  I'm very much in favor
of abstraction, but they took abstraction way too far, and really to the
extreme in my opinion, where the benefits of abstraction are completely
lost.  

Thanks everyone, I'm definitely going to insist on more frequent code
reviews with them.  I guess I put too much faith in them last time! :) 

Jason

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


RE: [Flashcoders] AS2 - Code not working in FP10

2008-11-06 Thread Eamonn Faherty
Me too!

haha

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric E. Dolecki
Sent: 06 November 2008 15:46
To: Flash Coders List
Subject: Re: [Flashcoders] AS2 - Code not working in FP10

I opened that up at work and was presented was some chicks ass pulling jeans
up on it. Someone walking by thought it was humorous.

On Thu, Nov 6, 2008 at 10:26 AM, FlashDev [EMAIL PROTECTED] wrote:

 yeah view it hear...

 www.maryjanefashion.com/index.php

 SJM
   - Original Message -
  From: Charles Parcell
  To: Flash Coders List
   Sent: Thursday, November 06, 2008 2:26 PM
  Subject: Re: [Flashcoders] AS2 - Code not working in FP10


  Is there a live link that shows this and we can test our FP versions on
 it?

  Charles P.


  On Thu, Nov 6, 2008 at 5:26 AM, FlashDev [EMAIL PROTECTED] wrote:

   Yeah its just wired how it works in FP9 and not FP10 and I was wondering
 if
   it was this code or if it could be something else!?
 - Original Message -
From: sebastian
To: Flash Coders List
Sent: Wednesday, November 05, 2008 10:23 PM
Subject: Re: [Flashcoders] AS2 - Code not working in FP10
  
  
Hi,
  
I'm sure someone else can give a reason, cause I wouldn't know; but
short of that, you could use a tween engine to center it. AS2 has
several good tween engines available.
  
Seb.
  
FlashDev wrote:
 Hi guys, ive got a bit fo code that works fine in flash player 9 but
 in
   10 it completely messes up!

 Its suppose to centre an image, any ideas why it no longer works?

 center_content.onEnterFrame = function() {
   // CENTER Y
   contentYTarg = Math.round((Stage.height -
 center_content._height)/2);
   contentYDist = contentYTarg - center_content._y;
   center_content._y += contentYDist/contentEase;
   if (contentYDist  0) {
center_content._y = Math.ceil(center_content._y);
   }else{
center_content._y = Math.floor(center_content._y);
   }
   if (Math.abs(contentYDist)  1) {
center_content._y = contentYTarg;
   }
   // CENTER X
   contentXTarg = Math.round((Stage.width - center_content._width)/2);
   contentXDist = contentXTarg - center_content._x;
   center_content._x += contentXDist/contentEase;
   if (contentXDist  0) {
center_content._x = Math.ceil(center_content._x);
   }else{
center_content._x = Math.floor(center_content._x);
   }
   if (Math.abs(contentXDist)  1) {
center_content._x = contentXTarg;
   }
   // WHEN CENTERING IS COMPLETE...
   if (contentYDist == 0  contentXDist == 0) {
delete center_content.onEnterFrame
   }
  }
 ___
 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 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




-- 
http://ericd.net
Interactive design and development
___
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] AS2 - Code not working in FP10

2008-11-06 Thread Eric E. Dolecki
I opened that up at work and was presented was some chicks ass pulling jeans
up on it. Someone walking by thought it was humorous.

On Thu, Nov 6, 2008 at 10:26 AM, FlashDev [EMAIL PROTECTED] wrote:

 yeah view it hear...

 www.maryjanefashion.com/index.php

 SJM
   - Original Message -
  From: Charles Parcell
  To: Flash Coders List
   Sent: Thursday, November 06, 2008 2:26 PM
  Subject: Re: [Flashcoders] AS2 - Code not working in FP10


  Is there a live link that shows this and we can test our FP versions on
 it?

  Charles P.


  On Thu, Nov 6, 2008 at 5:26 AM, FlashDev [EMAIL PROTECTED] wrote:

   Yeah its just wired how it works in FP9 and not FP10 and I was wondering
 if
   it was this code or if it could be something else!?
 - Original Message -
From: sebastian
To: Flash Coders List
Sent: Wednesday, November 05, 2008 10:23 PM
Subject: Re: [Flashcoders] AS2 - Code not working in FP10
  
  
Hi,
  
I'm sure someone else can give a reason, cause I wouldn't know; but
short of that, you could use a tween engine to center it. AS2 has
several good tween engines available.
  
Seb.
  
FlashDev wrote:
 Hi guys, ive got a bit fo code that works fine in flash player 9 but
 in
   10 it completely messes up!

 Its suppose to centre an image, any ideas why it no longer works?

 center_content.onEnterFrame = function() {
   // CENTER Y
   contentYTarg = Math.round((Stage.height -
 center_content._height)/2);
   contentYDist = contentYTarg - center_content._y;
   center_content._y += contentYDist/contentEase;
   if (contentYDist  0) {
center_content._y = Math.ceil(center_content._y);
   }else{
center_content._y = Math.floor(center_content._y);
   }
   if (Math.abs(contentYDist)  1) {
center_content._y = contentYTarg;
   }
   // CENTER X
   contentXTarg = Math.round((Stage.width - center_content._width)/2);
   contentXDist = contentXTarg - center_content._x;
   center_content._x += contentXDist/contentEase;
   if (contentXDist  0) {
center_content._x = Math.ceil(center_content._x);
   }else{
center_content._x = Math.floor(center_content._x);
   }
   if (Math.abs(contentXDist)  1) {
center_content._x = contentXTarg;
   }
   // WHEN CENTERING IS COMPLETE...
   if (contentYDist == 0  contentXDist == 0) {
delete center_content.onEnterFrame
   }
  }
 ___
 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 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




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS2 - Code not working in FP10

2008-11-06 Thread FlashDev
haha! some how you both managed to get the same random image!

nice ass tho isnt it! :o)
  - Original Message - 
  From: Eamonn Faherty 
  To: Flash Coders List 
  Sent: Thursday, November 06, 2008 3:52 PM
  Subject: RE: [Flashcoders] AS2 - Code not working in FP10


  Me too!

  haha

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric E. Dolecki
  Sent: 06 November 2008 15:46
  To: Flash Coders List
  Subject: Re: [Flashcoders] AS2 - Code not working in FP10

  I opened that up at work and was presented was some chicks ass pulling jeans
  up on it. Someone walking by thought it was humorous.

  On Thu, Nov 6, 2008 at 10:26 AM, FlashDev [EMAIL PROTECTED] wrote:

   yeah view it hear...
  
   www.maryjanefashion.com/index.php
  
   SJM
 - Original Message -
From: Charles Parcell
To: Flash Coders List
 Sent: Thursday, November 06, 2008 2:26 PM
Subject: Re: [Flashcoders] AS2 - Code not working in FP10
  
  
Is there a live link that shows this and we can test our FP versions on
   it?
  
Charles P.
  
  
On Thu, Nov 6, 2008 at 5:26 AM, FlashDev [EMAIL PROTECTED] wrote:
  
 Yeah its just wired how it works in FP9 and not FP10 and I was wondering
   if
 it was this code or if it could be something else!?
   - Original Message -
  From: sebastian
  To: Flash Coders List
  Sent: Wednesday, November 05, 2008 10:23 PM
  Subject: Re: [Flashcoders] AS2 - Code not working in FP10


  Hi,

  I'm sure someone else can give a reason, cause I wouldn't know; but
  short of that, you could use a tween engine to center it. AS2 has
  several good tween engines available.

  Seb.

  FlashDev wrote:
   Hi guys, ive got a bit fo code that works fine in flash player 9 but
   in
 10 it completely messes up!
  
   Its suppose to centre an image, any ideas why it no longer works?
  
   center_content.onEnterFrame = function() {
 // CENTER Y
 contentYTarg = Math.round((Stage.height -
   center_content._height)/2);
 contentYDist = contentYTarg - center_content._y;
 center_content._y += contentYDist/contentEase;
 if (contentYDist  0) {
  center_content._y = Math.ceil(center_content._y);
 }else{
  center_content._y = Math.floor(center_content._y);
 }
 if (Math.abs(contentYDist)  1) {
  center_content._y = contentYTarg;
 }
 // CENTER X
 contentXTarg = Math.round((Stage.width - center_content._width)/2);
 contentXDist = contentXTarg - center_content._x;
 center_content._x += contentXDist/contentEase;
 if (contentXDist  0) {
  center_content._x = Math.ceil(center_content._x);
 }else{
  center_content._x = Math.floor(center_content._x);
 }
 if (Math.abs(contentXDist)  1) {
  center_content._x = contentXTarg;
 }
 // WHEN CENTERING IS COMPLETE...
 if (contentYDist == 0  contentXDist == 0) {
  delete center_content.onEnterFrame
 }
}
   ___
   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 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
  



  -- 
  http://ericd.net
  Interactive design and development
  ___
  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] AS2 - Code not working in FP10

2008-11-06 Thread Paul Andrews

LOL - it took me a few goes..  ;-)

- Original Message - 
From: FlashDev [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Thursday, November 06, 2008 4:15 PM
Subject: Re: [Flashcoders] AS2 - Code not working in FP10


haha! some how you both managed to get the same random image!

nice ass tho isnt it! :o)
 - Original Message - 
 From: Eamonn Faherty

 To: Flash Coders List
 Sent: Thursday, November 06, 2008 3:52 PM
 Subject: RE: [Flashcoders] AS2 - Code not working in FP10


 Me too!

 haha

 -Original Message-
 From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Eric E. 
Dolecki

 Sent: 06 November 2008 15:46
 To: Flash Coders List
 Subject: Re: [Flashcoders] AS2 - Code not working in FP10

 I opened that up at work and was presented was some chicks ass pulling 
jeans

 up on it. Someone walking by thought it was humorous.

 On Thu, Nov 6, 2008 at 10:26 AM, FlashDev [EMAIL PROTECTED] wrote:

  yeah view it hear...
 
  www.maryjanefashion.com/index.php
 
  SJM
- Original Message -
   From: Charles Parcell
   To: Flash Coders List
Sent: Thursday, November 06, 2008 2:26 PM
   Subject: Re: [Flashcoders] AS2 - Code not working in FP10
 
 
   Is there a live link that shows this and we can test our FP versions on
  it?
 
   Charles P.
 
 
   On Thu, Nov 6, 2008 at 5:26 AM, FlashDev [EMAIL PROTECTED] wrote:
 
Yeah its just wired how it works in FP9 and not FP10 and I was 
wondering

  if
it was this code or if it could be something else!?
  - Original Message -
 From: sebastian
 To: Flash Coders List
 Sent: Wednesday, November 05, 2008 10:23 PM
 Subject: Re: [Flashcoders] AS2 - Code not working in FP10
   
   
 Hi,
   
 I'm sure someone else can give a reason, cause I wouldn't know; but
 short of that, you could use a tween engine to center it. AS2 has
 several good tween engines available.
   
 Seb.
   
 FlashDev wrote:
  Hi guys, ive got a bit fo code that works fine in flash player 9 
but

  in
10 it completely messes up!
 
  Its suppose to centre an image, any ideas why it no longer works?
 
  center_content.onEnterFrame = function() {
// CENTER Y
contentYTarg = Math.round((Stage.height -
  center_content._height)/2);
contentYDist = contentYTarg - center_content._y;
center_content._y += contentYDist/contentEase;
if (contentYDist  0) {
 center_content._y = Math.ceil(center_content._y);
}else{
 center_content._y = Math.floor(center_content._y);
}
if (Math.abs(contentYDist)  1) {
 center_content._y = contentYTarg;
}
// CENTER X
contentXTarg = Math.round((Stage.width - 
center_content._width)/2);

contentXDist = contentXTarg - center_content._x;
center_content._x += contentXDist/contentEase;
if (contentXDist  0) {
 center_content._x = Math.ceil(center_content._x);
}else{
 center_content._x = Math.floor(center_content._x);
}
if (Math.abs(contentXDist)  1) {
 center_content._x = contentXTarg;
}
// WHEN CENTERING IS COMPLETE...
if (contentYDist == 0  contentXDist == 0) {
 delete center_content.onEnterFrame
}
   }
  ___
  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 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
 



 -- 
 http://ericd.net

 Interactive design and development
 ___
 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 mailing list
Flashcoders@chattyfig.figleaf.com

[Flashcoders] Scrollable Text Input Field?

2008-11-06 Thread Preston Parris
Can anyone point me in the right direction as to how to create a text input
field with a custom scrollbar, I have everything set up , I have my custom
scrollbar, and a text input field that scrolls when you move the scroller
thumb. The problem is that since it is a text input field, I need to be able
to detect when the text field fills up, so that I can move the scrollbar to
the bottom. Also when you highlight the text and move it up I need to be
able to have it scroll back up. I have my _input.onChanged function set up,
I just need to know what to do inside of here.

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


Re: [Flashcoders] Easing a selection

2008-11-06 Thread sebastian

Erm, I am not sure I understand; so let me paraphrase:

You want to scroll one area based on the position of a mouse in another, 
right?


If so, just measure the bounds [x/y difference] from some center range 
and apply a Tween to the area you want to scroll.


BTW: I would generally always recommend against using timers to apply 
movements; I've seen far too much code written that uses timers 
incorrectly and it's a real pain in the *** Stick to simple tween calls; 
like: TweenLite.


With kind,

Sebastian.

Eric E. Dolecki wrote:

I was thinking about this the other day... easing of a selection of items in
a list.
Now, one could move a selector with a mouse, and then kind of throw it and
then check the onUpdate of it's single ease (use speed as the determination
for how far it should travel) to check if it's within the bounds of an item,
and highlight that item, deselecting the previous item.

That approach works and is probably the easiest.

But what if you wanted to use an index of items  use an easing approach (or
something that looked like it) where the items themselves had a selector
clip within them... so you wouldn't be moving a selector item under them
all, but affecting them in order with easing. What might be a good approach
for something like that? Perhaps a timer with a reverse damping interval?
What might that look like as a good approach.


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


Re: [Flashcoders] Easing a selection

2008-11-06 Thread Eric E. Dolecki
I am after tweening events more than the actual position of a selector.
ie. class.increment(); short pause class.increment(); slightly longer
pause class.increment(); even longer pause... until stop

So I would be providing a UI of selected items via visual easing.

I think I have this nailed down... just wanted to get some other ideas on
how best to approach it.

On Thu, Nov 6, 2008 at 4:38 PM, sebastian [EMAIL PROTECTED] wrote:

 Erm, I am not sure I understand; so let me paraphrase:

 You want to scroll one area based on the position of a mouse in another,
 right?

 If so, just measure the bounds [x/y difference] from some center range and
 apply a Tween to the area you want to scroll.

 BTW: I would generally always recommend against using timers to apply
 movements; I've seen far too much code written that uses timers incorrectly
 and it's a real pain in the *** Stick to simple tween calls; like:
 TweenLite.

 With kind,

 Sebastian.


 Eric E. Dolecki wrote:

 I was thinking about this the other day... easing of a selection of items
 in
 a list.
 Now, one could move a selector with a mouse, and then kind of throw it and
 then check the onUpdate of it's single ease (use speed as the
 determination
 for how far it should travel) to check if it's within the bounds of an
 item,
 and highlight that item, deselecting the previous item.

 That approach works and is probably the easiest.

 But what if you wanted to use an index of items  use an easing approach
 (or
 something that looked like it) where the items themselves had a selector
 clip within them... so you wouldn't be moving a selector item under them
 all, but affecting them in order with easing. What might be a good
 approach
 for something like that? Perhaps a timer with a reverse damping interval?
 What might that look like as a good approach.

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




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Edit SWF file server side via PHP

2008-11-06 Thread Mick G
I have a SWF that I want to be able to change a few variables server-side
via PHP. I know there is MING (libming.org) but would prefer not to have to
go to this much trouble and am hoping I can do this via PHP.

From a post here
http://board.flashkit.com/board/showpost.php?s=16555be9b9b1f6afc35f0dc2dccb07d8p=4016713postcount=1it
looks possible.
I also noticed sephiroth has done work editing SWF files server-side using
UNPACK in php - http://www.sephiroth.it/swfreader.php

Has anyone done anything like this before, got code or anything to share?

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


Re: [Flashcoders] Easing a selection

2008-11-06 Thread sebastian
Oh do you mean easing? So as it approaches its destination it moves 
slower and slower?


If so, there are many packages that already do this for you, so no need 
to reinvent the wheel. All you need to do is call it.


One such package is TweenLite:

http://blog.greensock.com/tweenliteas3/

Just set the easing equation to what ever curve you require, there is 
even a little flash app. that lets you pick parameters to copy-paste.


Peace,

Seb.

Eric E. Dolecki wrote:

I am after tweening events more than the actual position of a selector.
ie. class.increment(); short pause class.increment(); slightly longer
pause class.increment(); even longer pause... until stop

So I would be providing a UI of selected items via visual easing.

I think I have this nailed down... just wanted to get some other ideas on
how best to approach it.

On Thu, Nov 6, 2008 at 4:38 PM, sebastian [EMAIL PROTECTED] wrote:


Erm, I am not sure I understand; so let me paraphrase:

You want to scroll one area based on the position of a mouse in another,
right?

If so, just measure the bounds [x/y difference] from some center range and
apply a Tween to the area you want to scroll.

BTW: I would generally always recommend against using timers to apply
movements; I've seen far too much code written that uses timers incorrectly
and it's a real pain in the *** Stick to simple tween calls; like:
TweenLite.

With kind,

Sebastian.


Eric E. Dolecki wrote:


I was thinking about this the other day... easing of a selection of items
in
a list.
Now, one could move a selector with a mouse, and then kind of throw it and
then check the onUpdate of it's single ease (use speed as the
determination
for how far it should travel) to check if it's within the bounds of an
item,
and highlight that item, deselecting the previous item.

That approach works and is probably the easiest.

But what if you wanted to use an index of items  use an easing approach
(or
something that looked like it) where the items themselves had a selector
clip within them... so you wouldn't be moving a selector item under them
all, but affecting them in order with easing. What might be a good
approach
for something like that? Perhaps a timer with a reverse damping interval?
What might that look like as a good approach.

 ___

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] Easing a selection

2008-11-06 Thread dr.ache
I do not understand a word.What are selectors ? You just want to have 
pauses with different lengths between function calls?

Like another one said: use tweenlite (e.g) and use delay or tween groups.

Eric E. Dolecki schrieb:

I am after tweening events more than the actual position of a selector.
ie. class.increment(); short pause class.increment(); slightly longer
pause class.increment(); even longer pause... until stop

So I would be providing a UI of selected items via visual easing.

I think I have this nailed down... just wanted to get some other ideas on
how best to approach it.

On Thu, Nov 6, 2008 at 4:38 PM, sebastian [EMAIL PROTECTED] wrote:

  

Erm, I am not sure I understand; so let me paraphrase:

You want to scroll one area based on the position of a mouse in another,
right?

If so, just measure the bounds [x/y difference] from some center range and
apply a Tween to the area you want to scroll.

BTW: I would generally always recommend against using timers to apply
movements; I've seen far too much code written that uses timers incorrectly
and it's a real pain in the *** Stick to simple tween calls; like:
TweenLite.

With kind,

Sebastian.


Eric E. Dolecki wrote:



I was thinking about this the other day... easing of a selection of items
in
a list.
Now, one could move a selector with a mouse, and then kind of throw it and
then check the onUpdate of it's single ease (use speed as the
determination
for how far it should travel) to check if it's within the bounds of an
item,
and highlight that item, deselecting the previous item.

That approach works and is probably the easiest.

But what if you wanted to use an index of items  use an easing approach
(or
something that looked like it) where the items themselves had a selector
clip within them... so you wouldn't be moving a selector item under them
all, but affecting them in order with easing. What might be a good
approach
for something like that? Perhaps a timer with a reverse damping interval?
What might that look like as a good approach.

 ___
  

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] Easing a selection

2008-11-06 Thread Eric E. Dolecki
I use TweenLite daily, but I am not tweening the properties on a
DisplayObject, I am easing the call of methods over time.
I believe that a timer, setting the delay after each call, and based on a
number of times to call might serve me well.

On Thu, Nov 6, 2008 at 5:44 PM, sebastian [EMAIL PROTECTED] wrote:

 Oh do you mean easing? So as it approaches its destination it moves slower
 and slower?

 If so, there are many packages that already do this for you, so no need to
 reinvent the wheel. All you need to do is call it.

 One such package is TweenLite:

 http://blog.greensock.com/tweenliteas3/

 Just set the easing equation to what ever curve you require, there is even
 a little flash app. that lets you pick parameters to copy-paste.

 Peace,

 Seb.


 Eric E. Dolecki wrote:

 I am after tweening events more than the actual position of a selector.
 ie. class.increment(); short pause class.increment(); slightly longer
 pause class.increment(); even longer pause... until stop

 So I would be providing a UI of selected items via visual easing.

 I think I have this nailed down... just wanted to get some other ideas on
 how best to approach it.

 On Thu, Nov 6, 2008 at 4:38 PM, sebastian [EMAIL PROTECTED] wrote:

  Erm, I am not sure I understand; so let me paraphrase:

 You want to scroll one area based on the position of a mouse in another,
 right?

 If so, just measure the bounds [x/y difference] from some center range
 and
 apply a Tween to the area you want to scroll.

 BTW: I would generally always recommend against using timers to apply
 movements; I've seen far too much code written that uses timers
 incorrectly
 and it's a real pain in the *** Stick to simple tween calls; like:
 TweenLite.

 With kind,

 Sebastian.


 Eric E. Dolecki wrote:

  I was thinking about this the other day... easing of a selection of
 items
 in
 a list.
 Now, one could move a selector with a mouse, and then kind of throw it
 and
 then check the onUpdate of it's single ease (use speed as the
 determination
 for how far it should travel) to check if it's within the bounds of an
 item,
 and highlight that item, deselecting the previous item.

 That approach works and is probably the easiest.

 But what if you wanted to use an index of items  use an easing approach
 (or
 something that looked like it) where the items themselves had a selector
 clip within them... so you wouldn't be moving a selector item under them
 all, but affecting them in order with easing. What might be a good
 approach
 for something like that? Perhaps a timer with a reverse damping
 interval?
 What might that look like as a good approach.

  ___

 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




-- 
http://ericd.net
Interactive design and development
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AS1 and ExternalInterface.available

2008-11-06 Thread Morten


Hi. I'm struggling with ExternalInterface in an old AS1 project while  
trying to get SWFAddress to work. The calls to the JavaScript never  
make it, and I've traced it to this in the SWFAddress.as:


if (this._availability  SWFAddress._init) {
  flash.external.ExternalInterface.call('SWFAddress.setValue', value);
}

Where this._availability is false (or null) - it get's set at the  
start of the .as file like this:


this._availability = flash.external.ExternalInterface.available;

Do I need to do anything special in AS1 to enable ExternalInterface?  
I'm setting allowScriptAccess in the params. Any tips much appreciated.


Thanks,

Morten


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


Re: [Flashcoders] Edit SWF file server side via PHP

2008-11-06 Thread Ian Thomas
You could take a look at swfmill - I've done something similar before
using PHP to call it.

http://www.swfmill.org

HTH,
   Ian

On Thu, Nov 6, 2008 at 10:19 PM, Mick G [EMAIL PROTECTED] wrote:
 I have a SWF that I want to be able to change a few variables server-side
 via PHP. I know there is MING (libming.org) but would prefer not to have to
 go to this much trouble and am hoping I can do this via PHP.

 From a post here
 http://board.flashkit.com/board/showpost.php?s=16555be9b9b1f6afc35f0dc2dccb07d8p=4016713postcount=1it
 looks possible.
 I also noticed sephiroth has done work editing SWF files server-side using
 UNPACK in php - http://www.sephiroth.it/swfreader.php

 Has anyone done anything like this before, got code or anything to share?

 Thanks,
 Mick
 ___
 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] AS3 - SWFAddress - problem linking to /

2008-11-06 Thread Jason Van Pelt
Hello all,

I'm using swfaddress and puremvc on a site that is about 90% done.
Everything works well in the Flash IDE and in the browser with one
exception -- I have a home button that navigates to / using swfaddress.
However, ONLY in the browser the SWFAddressEvent is fired twice. If I
replace / with /home, this works fine.

In the SWFAddressProxy class:

public function requestURI(uri:String):void{
  if (ExternalInterface.available) {
SWFAddress.setValue(uri);
  } else {
setTargetURI(uri);
  }
}

private function onAddressChange(e:SWFAddressEvent):void{
  setTargetURI(e.value);
}

private function setTargetURI(uri:String):void{
  var addressObj:Object =
{viewComponent:this.viewComponent, pageName:uri};
  sendNotification(ApplicationFacade.DISPLAY_VIEW,
addressObj);
}


In the NavManager class:

switch (url){
  case /:   // gets called twice??
  case /home: // works fine
  case /home/:// works fine
mediatorName = HomeMediator.NAME;
  break;

}


Using /home isn't a totally  unacceptable solution, but it makes a
difference in how the url displays in the browser's address bar... which is
the whole point.

Has anyone else noticed any issues with using / with swfaddress?





JASON VAN PELT  •  SENIOR INTERACTIVE DEVELOPER

PETER A MAYER ADVERTISING
324 CAMP ST  •  NEW ORLEANS, LA 70130
TEL 504-210-1232  •  FAX 504-529-4431

[EMAIL PROTECTED]  •  WWW.PETERAMAYER.COM


-  
PETER MAYER ADVERTISING CONFIDENTIALITY NOTICE: 
Confidentially, we loathe confidentiality notices. Still, our lawyers tell us 
they are essential in today's world. That said, please consider yourself 
confidentially notified that this email and any attachments may contain 
confidential and privileged information. If you are not the intended recipient, 
please notify the sender with a reply email-confidentially, of course-and 
destroy all copies. And, just between you and us, any dissemination by a person 
other than the intended recipient is unauthorized and may be illegal.  
-  ___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Easing a selection

2008-11-06 Thread Zeh Fernando
There's maybe some elegant way to do that with normal Timers, or maybe to
wrap around a function to make TweenLite use it, but if you're in a hurry,
Tweener does that with the (slightly) cryptic addCaller() method:

http://hosted.zeh.com.br/tweener/docs/en-us/methods/Tweener_addCaller.html

Zeh

On Thu, Nov 6, 2008 at 7:14 PM, Eric E. Dolecki [EMAIL PROTECTED] wrote:

 I am after tweening events more than the actual position of a selector.
 ie. class.increment(); short pause class.increment(); slightly longer
 pause class.increment(); even longer pause... until stop

 So I would be providing a UI of selected items via visual easing.

 I think I have this nailed down... just wanted to get some other ideas on
 how best to approach it.

 On Thu, Nov 6, 2008 at 4:38 PM, sebastian [EMAIL PROTECTED] wrote:

  Erm, I am not sure I understand; so let me paraphrase:
 
  You want to scroll one area based on the position of a mouse in another,
  right?
 
  If so, just measure the bounds [x/y difference] from some center range
 and
  apply a Tween to the area you want to scroll.
 
  BTW: I would generally always recommend against using timers to apply
  movements; I've seen far too much code written that uses timers
 incorrectly
  and it's a real pain in the *** Stick to simple tween calls; like:
  TweenLite.
 
  With kind,
 
  Sebastian.
 
 
  Eric E. Dolecki wrote:
 
  I was thinking about this the other day... easing of a selection of
 items
  in
  a list.
  Now, one could move a selector with a mouse, and then kind of throw it
 and
  then check the onUpdate of it's single ease (use speed as the
  determination
  for how far it should travel) to check if it's within the bounds of an
  item,
  and highlight that item, deselecting the previous item.
 
  That approach works and is probably the easiest.
 
  But what if you wanted to use an index of items  use an easing approach
  (or
  something that looked like it) where the items themselves had a selector
  clip within them... so you wouldn't be moving a selector item under them
  all, but affecting them in order with easing. What might be a good
  approach
  for something like that? Perhaps a timer with a reverse damping
 interval?
  What might that look like as a good approach.
 
   ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 http://ericd.net
 Interactive design and development
 ___
 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] AS3 - SWFAddress - problem linking to /

2008-11-06 Thread sebastian
Hi I had this issue a couple of years ago too. It's hard for me to 
remember exactly, but I believe that I changed the onChange function to 
simply set a variable with the page name, instead of calling the page 
event immediately -- and then used a different event to read the set 
variable when it was time to load the first page; which made the two 
differentiated and thus no longer co-dependent and eliminated the double 
loading... hope you could follow that!

:P

S.

Jason Van Pelt wrote:

Hello all,

I'm using swfaddress and puremvc on a site that is about 90% done.
Everything works well in the Flash IDE and in the browser with one
exception -- I have a home button that navigates to / using swfaddress.
However, ONLY in the browser the SWFAddressEvent is fired twice. If I
replace / with /home, this works fine.

In the SWFAddressProxy class:

public function requestURI(uri:String):void{
  if (ExternalInterface.available) {
SWFAddress.setValue(uri);
  } else {
setTargetURI(uri);
  }
}

private function onAddressChange(e:SWFAddressEvent):void{
  setTargetURI(e.value);
}

private function setTargetURI(uri:String):void{
  var addressObj:Object =
{viewComponent:this.viewComponent, pageName:uri};
  sendNotification(ApplicationFacade.DISPLAY_VIEW,
addressObj);
}


In the NavManager class:

switch (url){
  case /:   // gets called twice??
  case /home: // works fine
  case /home/:// works fine
mediatorName = HomeMediator.NAME;
  break;

}


Using /home isn't a totally  unacceptable solution, but it makes a
difference in how the url displays in the browser's address bar... which is
the whole point.

Has anyone else noticed any issues with using / with swfaddress?





JASON VAN PELT  •  SENIOR INTERACTIVE DEVELOPER

PETER A MAYER ADVERTISING
324 CAMP ST  •  NEW ORLEANS, LA 70130
TEL 504-210-1232  •  FAX 504-529-4431

[EMAIL PROTECTED]  •  WWW.PETERAMAYER.COM


-  
PETER MAYER ADVERTISING CONFIDENTIALITY NOTICE: 
Confidentially, we loathe confidentiality notices. Still, our lawyers tell us they are essential in today's world. That said, please consider yourself confidentially notified that this email and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender with a reply email-confidentially, of course-and destroy all copies. And, just between you and us, any dissemination by a person other than the intended recipient is unauthorized and may be illegal.  
-  





___
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