[Flashcoders] Can you reactivate my account please

2007-07-29 Thread Joe Wheeler
Thanks,

 

Joe

___
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] The great CS3 Swindle

2007-03-29 Thread Joe Wheeler
Unfortunately you can't update a European licence with a US update so I'd
have to transfer my existing licences to the US. I'm actually moving to the
states in a few months so I'll just have to wait for a bit.

However there is one interesting thing I found out. Apparently Adobe will be
offering a FREE update to CS3 for anyone that buys CS2 from now until CS3 is
available...


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gustavo
Duenas
Sent: 29 March 2007 02:46
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] The great CS3 Swindle



Hi Joe,  do you have friends in the US? someone with an address, you just
buy the programs in the US with your credit card and then your friends can
send this to you using dhl , fedex or ups, sounds logic?  
I used to do that several times buying programs when I was living in
Ecuador, South America..or you can just go on vacation and shopping Spree!!!

heheheh!

Regards


Gustavo Duenas


When I was living in the
On Mar 28, 2007, at 10:27 AM, Joe Wheeler wrote:

 Has anyone checked out the international prices on CS3?

 I can hardly believe how badly the UK is getting fleeced.

 I'm upgrading from CS1 Creative Suite and Studio 8 to CS3 Design 
 Premium. In the US that's $599.00 dollars, but in the UK pounds it 
 works out to £703.82.
 Take the exchange rate into account and UK customers are paying...


 1,384.51 USD!!!

 Sales tax in the UK is 17.5% but the Adobe price hike is a whopping 
 231% - W T F?

 ___
 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] Image resizer that maintains ratio

2007-03-29 Thread Joe Wheeler
Would that optimize it?  I could be wrong but I thing both these version's
would compile to the same byte code.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks
| BLITZ
Sent: 29 March 2007 01:52
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Image resizer that maintains ratio

mc._width = maxW;
mc._height = maxH;
(mc._xscale  mc._yscale) ? mc._xscale = mc._yscale : mc._yscale =
mc._xscale;
 

 
 You could probably optimize a little bit by removing the Math 
 function...
 
 mc._width  = maxW;
 mc._height = maxH;
 if ( mc._xscale  mc._yscale ) {
   mc._xscale = mc._yscale;
 }
 else {
   mc._yscale = mc._xscale;
 }
 
 I don't think I can be done more effiently than that. Anyone?
___
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] The great CS3 Swindle

2007-03-29 Thread Joe Wheeler
I'm not sure - I think it only counts to products bought since the CS3
announcement. Give your local Adobe online store a ring and see what they
say.

J

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johannes Nel
Sent: 29 March 2007 09:11
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] The great CS3 Swindle

does this apply if you bought studio 8 as well in the last 2 weeks :s

On 3/29/07, Joe Wheeler [EMAIL PROTECTED] wrote:

 Unfortunately you can't update a European licence with a US update so 
 I'd have to transfer my existing licences to the US. I'm actually 
 moving to the states in a few months so I'll just have to wait for a 
 bit.

 However there is one interesting thing I found out. Apparently Adobe 
 will be offering a FREE update to CS3 for anyone that buys CS2 from 
 now until CS3 is available...


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo
 Duenas
 Sent: 29 March 2007 02:46
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] The great CS3 Swindle

 

 Hi Joe,  do you have friends in the US? someone with an address, you just
 buy the programs in the US with your credit card and then your friends can
 send this to you using dhl , fedex or ups, sounds logic?
 I used to do that several times buying programs when I was living in
 Ecuador, South America..or you can just go on vacation and shopping
 Spree!!!

 heheheh!

 Regards


 Gustavo Duenas


 When I was living in the
 On Mar 28, 2007, at 10:27 AM, Joe Wheeler wrote:

  Has anyone checked out the international prices on CS3?
 
  I can hardly believe how badly the UK is getting fleeced.
 
  I'm upgrading from CS1 Creative Suite and Studio 8 to CS3 Design
  Premium. In the US that's $599.00 dollars, but in the UK pounds it
  works out to £703.82.
  Take the exchange rate into account and UK customers are paying...
 
 
  1,384.51 USD!!!
 
  Sales tax in the UK is 17.5% but the Adobe price hike is a whopping
  231% - W T F?
 
  ___
  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




-- 
j:pn
http://www.lennel.org
___
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] Free Upgrade CS2 to CS3???

2007-03-29 Thread Joe Wheeler
It was what the guy at the Adobe Store (UK) told me - he was trying to
pacify me after the whole US/US price thing - I hope it wasn't a lie! 

I was looking at Design Premium and he offered me an upgrade to CS2 for £492
and told me quote a free upgrade will be available to customers that buy
CS2 until CS3 becomes available. Still nearly double the US price for CS3
but I digress...

Macromedia did offer a deal exactly like that we I upgraded from Flash 7 to
Flash 8. I had 45 days to fax over a proof of purchase. Of course I ended up
forgetting and forking out the full price about six months later.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marc Hoffman
Sent: 29 March 2007 18:06
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Free Upgrade CS2 to CS3???

I hope the information I just got is wrong, so please post here if you learn
anything different from Adobe.

I just had a long talk with Deborah at US Adobe sales and she was unable to
find any free update offer from CS2 to CS3, regardless of how recently one
had purchased CS2.

The best US price she could find for an upgrade was $799, and that was going
from CS2 Production Premium to CS3 Production Premium. All other upgrade
paths are called upsell rather than upgrade because
CS3 Production Premium includes more applications.

So, I have Studio 8 Pro, Photoshop CS, Premiere Pro 1.5, Audition 1.5, and
an old version of Illustrator, and it appears the cheapest I can upgrade to
the CS3 Production Premiere will be $1199 US. I guess it could be worse -- I
could be living in Europe.

I would LOVE to hear that I'm wrong, and that there actually is a free
update if I buy CS2 Premium or CS2 Production Premium in the next few days.
That would save me a small bundle.

Marc Hoffman

At 12:11 AM 3/29/2007, you wrote:

However there is one interesting thing I found out. Apparently Adobe 
will be offering a FREE update to CS3 for anyone that buys CS2 from 
now until CS3 is available...


___
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] Scaling Up an Image in Proportion to width or height

2007-03-29 Thread Joe Wheeler
Or, if it's a movieclip you're working with you can simply:

Scale the width..

_width = 500

And then set the height using the scale property

_yscale = _xscale

Works up and down

j
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks
| BLITZ
Sent: 29 March 2007 18:42
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Scaling Up an Image in Proportion to width or
height

Simple.

You solve for the ratio:

var ratio:Number = _width / _height;


You resize the _width:

_width = Math.max(newWidth, 500);


You set _height to the _width * ratio:

_height = _width * ratio;


fin.
___
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] Free Upgrade CS2 to CS3???

2007-03-29 Thread Joe Wheeler
Sorry I think my last post crossed yours in the ether. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lars Schwarz
Sent: 29 March 2007 18:46
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Free Upgrade CS2 to CS3???

thanks mick. i agree. let's make this the last post on cs3 prices please.

Am 29.03.2007 um 19:26 schrieb Mick G:

 I'm just wondering if all the CS3 talk is getting a little out of 
 control for this list. I understand it's a tool we all use, but I 
 personally like to see this list closer to the flashcoding topic 
 rather than discussing our favorite Adobe applications and upgrade 
 paths.

 I don't want to start a huge thread on debating the rules of the list, 
 just throwing a suggestion out there.

 :-)


 On 3/29/07, Marc Hoffman [EMAIL PROTECTED] wrote:

 I hope the information I just got is wrong, so please post here if 
 you learn anything different from Adobe.

 I just had a long talk with Deborah at US Adobe sales and she was 
 unable to find any free update offer from CS2 to CS3, regardless of 
 how recently one had purchased CS2.

 The best US price she could find for an upgrade was $799, and that 
 was going from CS2 Production Premium to CS3 Production Premium. All 
 other upgrade paths are called upsell rather than upgrade because
 CS3 Production Premium includes more applications.

 So, I have Studio 8 Pro, Photoshop CS, Premiere Pro 1.5, Audition 
 1.5, and an old version of Illustrator, and it appears the cheapest I 
 can upgrade to the CS3 Production Premiere will be $1199 US. I guess 
 it could be worse -- I could be living in Europe.

 I would LOVE to hear that I'm wrong, and that there actually is a 
 free update if I buy CS2 Premium or CS2 Production Premium in the 
 next few days. That would save me a small bundle.

 Marc Hoffman

 At 12:11 AM 3/29/2007, you wrote:

 However there is one interesting thing I found out. Apparently
 Adobe
 will
 be
 offering a FREE update to CS3 for anyone that buys CS2 from now
 until
 CS3
 is
 available...


 ___
 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

bitrocker  typographique
Lars Schwarz
Gottorpstrasse 20
26122 Oldenburg
T +49(0)441 2171 354 0
F +49(0)441 2171 354 2
M [EMAIL PROTECTED]
W www.bitrocker.com
W www.typographique.de




___
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] Image resizer that maintains ratio

2007-03-28 Thread Joe Wheeler
You could probably optimize a little bit by removing the Math function...

mc._width  = maxW;
mc._height = maxH;
if ( mc._xscale  mc._yscale ) {
mc._xscale = mc._yscale; 
} 
else {
mc._yscale = mc._xscale;
} 

I don't think I can be done more effiently than that. Anyone?



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hans Wichman
Sent: 27 March 2007 16:06
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Image resizer that maintains ratio

ok, thanks joe for the explanation. Seems a lot of static / redundancy is
being generated by what you describe.

On 3/27/07, Joe Wheeler [EMAIL PROTECTED] wrote:

 I think the problem is the length of time it's taking for post to appear.
 Some of my posts have been going missing for a long time before 
 showing up.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Hans 
 Wichman
 Sent: 27 March 2007 08:23
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] Image resizer that maintains ratio

 The more I read these post, the more I wonder whether people actually 
 read what others have already replied.

 On 3/26/07, Joe Wheeler [EMAIL PROTECTED] wrote:
 
  Here's how I do it:
 
  function maintainAspect ( mc:MovieClip, maxW:Number, maxH:Number ) 
  :Void {
 mc._width  = maxW;
 mc._height = maxH;
 mc._xscale = mc._yscale = Math.min( mc._xscale, mc._yscale ); 
  }
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  Guilherme Cruz
  Sent: 26 March 2007 18:15
  To: flashcoders@chattyfig.figleaf.com
  Subject: Re: [Flashcoders] Image resizer that maintains ratio
 
  The _scale property is a percentage value if you have a 800x600 
  image and set _xscale=50 and _yscale=50, you get a 400x300 image
 
 
 
 
  On 3/26/07, Hans Wichman  [EMAIL PROTECTED] wrote:
  
   Hi,
   that IS weird, because if your image is 800x600, you are saying:
  target_mc._xscale = target_mc._yscale = 800;
  
   which is probably not what you want^^
  
   greetz
   JC
  
  
   On 3/26/07, eric e. dolecki [EMAIL PROTECTED] wrote:
   
Ok that is SO weird. I was just thinking about this...
   
myListener.onLoadInit = function( target_mc:MovieClip ):Void {
   target_mc._xscale = target_mc._yscale = Math.max( 
target_mc._width, target_mc._height ); };
   
- Eric
   
   
On 3/26/07, Adrian Lynch [EMAIL PROTECTED] wrote:

 Any examples out there?

 I've got as far as resizing a user supplied image and am about 
 to work
on
 the ratio remaining fixed. Just thought I'd throw this out 
 there as I think it may be tricky.

 Ta.

 Adrian

 ___
 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

   
   
   
--
eric e. dolecki
senior interactive engineer
http://www.ericd.net
___
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
 
 ___
 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

[Flashcoders] The great CS3 Swindle

2007-03-28 Thread Joe Wheeler
Has anyone checked out the international prices on CS3?
 
I can hardly believe how badly the UK is getting fleeced. 
 
I'm upgrading from CS1 Creative Suite and Studio 8 to CS3 Design Premium. In
the US that's $599.00 dollars, but in the UK pounds it works out to £703.82.
Take the exchange rate into account and UK customers are paying...


1,384.51 USD!!!

Sales tax in the UK is 17.5% but the Adobe price hike is a whopping 231% - W
T F?
 
___
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] How to find yesterday?

2007-03-27 Thread Joe Wheeler
var yesterday:Date;
yesterday = new Date();
yesterday.setDate( yesterday.getDate() - 1 );



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Stuhr
Sent: 27 March 2007 10:19
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] How to find yesterday?

[EMAIL PROTECTED] schrieb:
 Is this simple?
 
 cur_day = new Date();
 //trace(cur_day.getDate());
 Var1=cur_day.getDate()-1;//27
 trace(var1);//26

the above doesn't take into account Day 1 of the current Month:

function getYesterday ()
{
var t:Date = new Date ();
var daysBack:Number = 1;
var today:Date = new Date (t.getFullYear (), t.getMonth (),
t.getDate
() - daysBack);
return (today.getDate ());
}


cheers

micha
___
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] Image resizer that maintains ratio

2007-03-27 Thread Joe Wheeler
I think the problem is the length of time it's taking for post to appear.
Some of my posts have been going missing for a long time before showing up. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hans Wichman
Sent: 27 March 2007 08:23
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Image resizer that maintains ratio

The more I read these post, the more I wonder whether people actually read
what others have already replied.

On 3/26/07, Joe Wheeler [EMAIL PROTECTED] wrote:

 Here's how I do it:

 function maintainAspect ( mc:MovieClip, maxW:Number, maxH:Number ) 
 :Void {
mc._width  = maxW;
mc._height = maxH;
mc._xscale = mc._yscale = Math.min( mc._xscale, mc._yscale ); }



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Guilherme Cruz
 Sent: 26 March 2007 18:15
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] Image resizer that maintains ratio

 The _scale property is a percentage value if you have a 800x600 
 image and set _xscale=50 and _yscale=50, you get a 400x300 image




 On 3/26/07, Hans Wichman  [EMAIL PROTECTED] wrote:
 
  Hi,
  that IS weird, because if your image is 800x600, you are saying:
 target_mc._xscale = target_mc._yscale = 800;
 
  which is probably not what you want^^
 
  greetz
  JC
 
 
  On 3/26/07, eric e. dolecki [EMAIL PROTECTED] wrote:
  
   Ok that is SO weird. I was just thinking about this...
  
   myListener.onLoadInit = function( target_mc:MovieClip ):Void {
  target_mc._xscale = target_mc._yscale = Math.max( 
   target_mc._width, target_mc._height ); };
  
   - Eric
  
  
   On 3/26/07, Adrian Lynch [EMAIL PROTECTED] wrote:
   
Any examples out there?
   
I've got as far as resizing a user supplied image and am about 
to work
   on
the ratio remaining fixed. Just thought I'd throw this out there 
as I think it may be tricky.
   
Ta.
   
Adrian
   
___
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
   
  
  
  
   --
   eric e. dolecki
   senior interactive engineer
   http://www.ericd.net
   ___
   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

___
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] actionscript/flash performance

2007-03-27 Thread Joe Wheeler
2200 clips is a lot - I'm not surprised you're running into problems. There
is quite a large overhead with each movieclip you instantiate (anyone know
how many kb an individual mc weighs?).

I think your idea of using a single clip is a much better idea. You'd have
to clear() and redraw from scratch each time there's an update but with a
clever bit of animation you could probably make that manageable (if you only
plotted 100 points per frame at 31fps, you should be able to achieve roughly
3100 points/second ). I'd create a flyweight class to abstract the shapes
you have been drawing into the pen movieclips - essentially it would just
hold the point data (call it PenData?). I'd then create and update loop
which runs through the PenData instances and draws them at a rate of 100 per
frame into your single movieclip. Next time there's an update, clear the
movieclip and start again...

You are pushing the limits but I think it's worth trying. 


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael King
Sent: 27 March 2007 17:57
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] actionscript/flash performance

Hey all,

I finally have a question to ask!

I'm working on a project that, in simplest terms, is an event visualizer. 
It takes event data coming in from an XMLSocket (or a standard PHP script
pulling from a database for replays), creates an empty movie clip, stores
it in a simple object/array combination to aide in timestamping, then it
uses removeMovieClip() to discard the clip when it's a minute or so old.

Warning, I'm a complete noob when it comes to ActionScript, I have a little
bit of Javascript experience, and a good amount of PERL and Python, so I can
handle criticisms, and hopefully they can be explained in a language I
understand. :)

I have three keyframes, 1, 2 and 20, with 20 being the loop back to give me
a nearly one second tick mark, when things are not overloaded.

At 1, I instantiate an Array (_root.lines), import WDDX, and create a custom
function on the MovieClip prototype for some initial markers, along with a
few longitude/latitude-to-map-coordinates functions, and a function for
drawing curved vectors.  I initialize some starting points for some global
counters on _root here, as well.  Lastly, there's a map of the globe for the
scene background, and the custom function marks three locations on the map.

At 2, I populate the initial location marks at level 1, calculate the
current date/time by instantiating Date(), and store the results on _root
for later retrieval (we'll call it _root.ratio_start).  I then pull in the
data stream, currently I limit it to 2500 lines (events, really, it can be a
little more than 500 characters in XML per event).  I calculate the start
point (one of the three marks) based on the data provided, then use the
latitude and longitude calculate an end point.  Here's the part I'm not sure
is the most efficient:

// Increment the counter to give us a pseudo-unique number.
_root.counter++;
// make a timestamp
date_now = new Date();
// make an empty movie clip with a unique, but dynamic, name pen =
createEmptyMovieClip(vector_ + root.counter + _mc, root.counter+2); //
Set the line style pen.lineStyle(2,0x00CC00); // Store it in a simple object
for later retrieval and timestamp comparison container = {pen: pen,
timestamp: date_now); // Pus it into the lines array.
_root.lines.push(container);
// Draw the vector
curvePoint(pen, x, y, x, y);


From there, it just moves along with no more code until I get to frame 20:

// make a timestamp
date_now = new Date();
// Get the benchmark up until this point _root.ratio_end = date_now; //
Calculate the ratio between the time it actually took, and one second, for
throttling purposes _root.ratio = 1000 / (_root.ratio_end.getTime() -
_root.ratio_start.getTime()); // _root.millisecondsToMinute = 1000 * 60, get
the fraction  (multiple) of
1 minute.
_root.timeLimit = _root.millisecondsToMinute * _root.ratio; temp_count = 0;

for (i = 0; i  _root.lines.length; i++) {
// Calculate the difference between the current time, and the time
this line was turned into a clip.
timeDiff = date_now.getTime() - _root.lines[i].timestamp.getTime();
if (timeDiff  _root.timeLimit) {
// Keep track of how many we remove for debugging purposes.
temp_count++;
// Remove the movie clip the only way I know how.
_root.lines[i].pen.removeMovieClip();
// remove this entry from the array.
_root.lines.splice(i,1);
}
}

// Occasionally reset the unique counter
if (_root.counter = 32000) {
_root.counter = 0;
}

// Loop back to frame 2, pull more data, etc.
_root.gotoAndPlay(2);


Now, on to my actual question/comment.  I've noticed that if the rate of
incoming data goes above about 2200, it fails to keep up with the
throttling, and will start to bog down.  It will remove 

RE: [Flashcoders] Flash CS3 Announced

2007-03-27 Thread Joe Wheeler
Illustrator had anti-aliased previews ages before Freehand which is why I
switched. Freehand made artwork look clunky on screen which doesn't help the
designer design IMHO. I do still miss the way some of the FH tools worked
though.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks
| BLITZ
Sent: 27 March 2007 20:05
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Flash CS3 Announced

 Freehand was terrible IMO. 

I know quite a few people who feel exactly opposite of you.  They absolutely
hate Illustrator and mourn the loss of what they believe to be a clearly
better product.  My experience is that most people who don't like Freehand
never actually gave it a proper chance or were content because they already
knew Illustrator and couldn't motivate to learn something new that does the
same thing.  

Freehand was ahead of Illustrator in features and ease of use for quite some
time and Freehand forced Illustrator to compete in what was once a monopoly
(Corel Draw?  Yeah, right!).  I don't use either program so I have no
opinion.  :)

Fireworks is different than Photoshop in some key ways.  It's not going away
anytime soon.  At Adobe MAX in Las Vegas last year, Adobe was pretty clear
that Fireworks was not only not going away, it was being given new features
and tighter integration with other Adobe products.
___
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] Image resizer that maintains ratio

2007-03-26 Thread Joe Wheeler
Here's how I do it:

function maintainAspect ( mc:MovieClip, maxW:Number, maxH:Number ) :Void
{
mc._width  = maxW;
mc._height = maxH;
mc._xscale = mc._yscale = Math.min( mc._xscale, mc._yscale );
}



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Guilherme
Cruz
Sent: 26 March 2007 18:15
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Image resizer that maintains ratio

The _scale property is a percentage value if you have a 800x600 image and
set _xscale=50 and _yscale=50, you get a 400x300 image




On 3/26/07, Hans Wichman  [EMAIL PROTECTED] wrote:

 Hi,
 that IS weird, because if your image is 800x600, you are saying:
target_mc._xscale = target_mc._yscale = 800;

 which is probably not what you want^^

 greetz
 JC


 On 3/26/07, eric e. dolecki [EMAIL PROTECTED] wrote:
 
  Ok that is SO weird. I was just thinking about this...
 
  myListener.onLoadInit = function( target_mc:MovieClip ):Void {
 target_mc._xscale = target_mc._yscale = Math.max( 
  target_mc._width, target_mc._height ); };
 
  - Eric
 
 
  On 3/26/07, Adrian Lynch [EMAIL PROTECTED] wrote:
  
   Any examples out there?
  
   I've got as far as resizing a user supplied image and am about to 
   work
  on
   the ratio remaining fixed. Just thought I'd throw this out there 
   as I think it may be tricky.
  
   Ta.
  
   Adrian
  
   ___
   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
  
 
 
 
  --
  eric e. dolecki
  senior interactive engineer
  http://www.ericd.net
  ___
  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


RE: [Flashcoders] setting a timer in flash 8

2007-03-26 Thread Joe Wheeler
Don't forget to clear the interval inside the function you call - otherwise
it will repeat on and on. It's also best practice to clear an interval
before you set it (in case it gets set twice). 

If you only want the function called once you can also use
_global.setTimeout( func, time ).

J

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Parvaiz
Patel
Sent: 26 March 2007 13:51
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] setting a timer in flash 8

Hi Gustave,
 
Here is the answer to your query.
 
The best way for any timing related task is to use Interval.
 
Here is the syntax:
var variable name:Number = setInterval(function name to call, time
interval in millisecond);
 
function function name to call(){
 
//do your task here..
 
}
 

 
The following is the example for your inderstanding  testing.
 
 
 
this.createTextField(date_txt, this.getNextHighestDepth(), 10, 10, 100,
22); date_txt.autoSize = true; date_txt.selectable = true;
 
var date_interval:Number = setInterval(updateTime, 500, date_txt);
 
function updateTime(my_txt:TextField) {
my_txt.text = new Date().toString(); trace(my_txt.text); }
 
 
I hope, this is well enough to solve your problem.
 
Thanks  regards,
 
Parvaiz Patel.  
 
 
 
 
 Gustavo Duenas wrote:
 Hi, I'm trying to set a timer to trigger a event after 20 seconds or 
 less, but so far i have this code, but with no results someone help 
 me? .
 I don't know how could I got into but some help might be needed


 this is the code: is inside the first frame of a movie clip and the 4

 frame has: gotoAndPlay(1);


 var now = getTimer();
 var seconds:Number = now/1000;
 var later:Number = seconds+20;
 this.onEnterFrame= function (){
 if(seconds == later){
 trace(llegamos);
}
 }
 trace(seconds);



 Regards


 Gustavo Duenas



 ___
 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

___
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] Got milk? (the game)

2007-03-26 Thread Joe Wheeler
The burning question is - what was the budget?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mauricio
Furtado Massaia
Sent: 26 March 2007 22:41
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Got milk? (the game)

See how it how it was built at : http://www.h4che.com/Milko/

=P


On 3/23/07, laurent untereiner [EMAIL PROTECTED] wrote:

 Selon Matthias Dittgen [EMAIL PROTECTED]:

  The big plus for this game is the idea.

 It's the key! sure it's technicaly trop fort, but I think the first 
 parameter for a success game is the idea.

 I seek literature on this subject, some ideas?


  And there's too much preloading which lasts too long, even with fast
 DSL.
  That's annoying.
  The big plus for this game is the idea.
 
  2007/3/22, Kerem Ýþeri [EMAIL PROTECTED]:
   Really amazing game but i dont think there is hard programming 
   behind
 it.
   Maximum 2 developer can handle the coding. I think graphics and 
   3d's
 are so
   cool. It takes a lot of time to get these kind of qualified and
 optimized
   renders. Its beautiful.
  
   Respect!! :)
  
   Kerem.
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of 
   [EMAIL PROTECTED]
   Sent: Thursday, March 22, 2007 4:16 PM
   To: flashcoders@chattyfig.figleaf.com
   Subject: RE: [Flashcoders] Got milk? (the game)
  
   WOW!
  
  
   http://www.gettheglass.com
  
   How much time for this game project? How much developer?
  
   C'est magnifique!
  
   --
   Laurent Untereiner
  
skype : laurentuntereiner
aim   : luntereiner
icq   : 294429730
msn   : [EMAIL PROTECTED]
  
http://www.untereiner.com 
  
   mes photos sur fotolia: http://www.fotolia.fr/p/116/partner/116
   ___
   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
  
   __ NOD32 1.1391 (20060201) Information __
  
   This message was checked by NOD32 antivirus system.
   http://www.eset.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
  
 


 --
 Laurent Untereiner

  skype : laurentuntereiner
  aim   : luntereiner
  icq   : 294429730
  msn   : [EMAIL PROTECTED]

  http://www.untereiner.com 

 mes photos sur fotolia: http://www.fotolia.fr/p/116/partner/116
 ___
 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] Got milk? (the game)

2007-03-23 Thread Joe Wheeler
That dice is cheaty! It's a dirty cheaty dice.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kerem Iseri
Sent: 22 March 2007 19:25
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Got milk? (the game)

Really amazing game but i dont think there is hard programming behind it.
Maximum 2 developer can handle the coding. I think graphics and 3d's are so
cool. It takes a lot of time to get these kind of qualified and optimized
renders. Its beautiful.

Respect!! :)

Kerem.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, March 22, 2007 4:16 PM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Got milk? (the game)

WOW!


http://www.gettheglass.com

How much time for this game project? How much developer?

C'est magnifique!

--
Laurent Untereiner

 skype : laurentuntereiner
 aim   : luntereiner
 icq   : 294429730
 msn   : [EMAIL PROTECTED]

 http://www.untereiner.com 

mes photos sur fotolia: http://www.fotolia.fr/p/116/partner/116
___
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

__ NOD32 1.1391 (20060201) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.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] High CPU usage problems

2007-03-23 Thread Joe Wheeler
Triple check the intervals - they are notorious for causing problems.

It's always a good idea to clear intervals before you set them - that way if
they accidentally get set twice you'll know the first one will get
cleared...

clearInterval( myInt );
myInt = setInterval( myFunc, 1000 )


J



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy Makely
Sent: 22 March 2007 16:04
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] High CPU usage problems

If you are doing a lot of createEmptyMovieClip() and attachMovie(), then
make sure that those movieclips are getting removed when you are done with
them.  If you are fading those clips away, but never removing them from the
stage with removeMovieClip() (*not* delete), CPU performance will surely
suffer as the number of invisible movieclips increases.

Also double-check to see if your intervals are actually getting cleared.  If
you are using intervals to do multiple tweens, make sure that they ALL get
cleared.  Also beware of intervals declared in loops because if you are not
careful, you can overwrite an interval with a new one.  This leaves the
previous one uncleared and unaccessible as well.

--
andy makely

On 3/22/07, Carl Welch  [EMAIL PROTECTED] wrote:


 I programmed the Portfolio Section. Bring up the task manager and 
 watch the performance graph. You can watch it start to bogg down after 
 a while of clicking around the portfolio section. Its loading xmls 
 (one for the Side
 Menu) and the other for the thumbnails and theire respective data. 
 There are quite a few createMovieClips and AttachMovieClips and some 
 setIntervals - which I do clear when I'm done. When I create a tween 
 object I try to kill

 it when I'm done using it with delete myObject; - not sure if that 
 even works.
___
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] Re: File works in Flash 9 player but not in 8

2007-03-23 Thread Joe Wheeler
It could be the amount of streams you're trying to open simultaneously. Try
queuing the loading so that you only load one at a time - the overall load
time should be about the same - something like this?

var strXmlPath:String =
file1.xml,flie2.xml,file3.xml,file4.xml,file5.xml,file6.xml,file7.xml,file8
.xml,file9.xml,file10.xml;
var arrXmlPaths:Array;
var xml:XML; 

function parseXML(str:String):Void
{
arrXmlPaths = str.split(,);
loadNext();
}

function loadNext ( Void ) :Void
{
xml = new XML();
xml.ignoreWhite = true;
xml.onLoad = xmlFileDoneLoading;
  xml.load( arrXmlPaths.shift() );
}

function xmlFileDoneLoading():Void
{
//have all the xml files loaded?
if ( arrXmlPaths.length )
{
// no
loadNext();
}
else {
// yes, so do stuff
}
}

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of me myself
Sent: 22 March 2007 15:43
To: Flashcoders mailing list
Subject: [Flashcoders] Re: File works in Flash 9 player but not in 8

In case it matters, the problems occur after 11 xml files, not 10.

On 3/22/07, me myself [EMAIL PROTECTED] wrote:
 Here's a really weird one: I created a Flash 8 swf -- using 
 Actionscript 2.0 -- compiled it as a Flash 8 swf, but it doesn't work 
 in the Flash 8 player. It does, however, work in the Flash 9 player.

 The file loads data in from multiple xml files. It actually works 
 fine, even in Flash 8, if I only try to load from nine xml files, but 
 as-soon-as I ad a tenth file, it stops working. By stops working, I 
 mean that when the swf runs, I only see the Stage background.

 This same swf (without being changed in any way or recompiled) works 
 fine in the Flash 9 player.

 The 8 player doesn't seem to be balking at the amount of xml, because 
 if I cut the code from the tenth xml file and paste it into the 9th 
 file, everything works fine. It just seems to choke on ten files.

 //works in Flash player 8 and 9
 var strXmlPath:String =
 file1.xml,flie2.xml,file3.xml,file4.xml,file5.xml,file6.xml,file7.xml
 ,file8.xml,file9.xml;

 //works only in Flash player 9
 //var strXmlPath:String =
 file1.xml,flie2.xml,file3.xml,file4.xml,file5.xml,file6.xml,file7.xml
 ,file8.xml,file9.xml,file10.xml;

 var xml:XML = new XML();
 var arrXmlPaths:Array = new Array();
 var arrXmlLoaders:Array = new Array(); var numXmlFilesLoaded:Number = 
 0;

 function parseXML(str:String):Void
 {
 var xml:XML = new XML();
 var strXml:String;

 xml.ignoreWhite = true;

 arrXmlPaths = str.split(,); //get list of xml files
 for (var i:Number = 0; i  arrXmlPaths.length; i++)
 {
 strXml = arrXmlPaths[i];
 arrXmlLoaders[i] = new XML();
 arrXmlLoaders[i].ignoreWhite = true;
 arrXmlLoaders[i].onLoad = xmlFileDoneLoading;
 arrXmlLoaders[i].load(strXml);
 }
 }

 function xmlFileDoneLoading():Void
 {
 numXmlFilesLoaded++;
 divideXmlIntoArrays(this);

 //have all the xml files loaded?
 if (numXmlFilesLoaded == arrXmlPaths.length)
 {
 parseMediaArray();
 parseMediaHolderArrayAndMakeMediaHolders();
 parseAndSetUpImmediateRelationships();
 }
 }

___
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] Flash crashing dilemna - when adding an inputtextfield

2007-03-23 Thread Joe Wheeler
That error is usually caused by an infinite loop. Are there any loops in the
game that get triggered by the user having a high score?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Steven
Sent: 22 March 2007 19:09
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Flash crashing dilemna - when adding an
inputtextfield

I am really struggling to get to the bottom of this bug and I have now spent
over 2 days desparately trying everything including recreating the entire
game in a new flash file in case anything was corrupt.

Basically the game crashes if I type into a text input field. If I do not
then it doesn't.

I cannot fathom what would be carried forward to the actual game from this
simple action. The text input field isn't even on screen anymore when the
game is in play.

Does the act of typing into a text input field change anything that could
affect my game? 

Really frustrating as I need to be able to allow the user to enter their
name.

Anyone

Thanks

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Steven
Sent: 22 March 2007 11:41
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Flash crashing dilemna - when adding an input
textfield

I have a really weird bug going on in a game I am making. Game is
developed in Flash 8 PC. (Published Flash 8 Actionscript 2)

My game was crashing the second time I played it so I have spent the last
day and a half tracking down the cause.

I have narrowed it down to a text input field. This is where the user enters
their name if they get a high score. If a user goes to this screen before
playing the game a second time, then a few seconds into playing the game the
second time, the game hangs with an error saying a script in this movie is
causing the flash player to run slow or something to that effect which
requires me to choose to stop this script. The game often hangs at this
stage and I have to force quit Flash.

If they do not get a high score they do not go to this frame of the flash
movie with the text input field and playing the game a second time does not
cause it to crash.

I have tried recreating this text input field, changing the font, changing
the instance name but still seems to cause the game to hang on playing it a
second time.

If anyone has any idea why this is happening or how I can determine what
script is causing the error, I would be extremely grateful.

Thanks

Paul



___
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] QT in IE returning null value to flash

2007-03-23 Thread Joe Wheeler
Does the object tag have the id movie1 (not just the embed tag)? 

Also, how are embedding the movie, I could be wrong but it think the stoopid
active-x activation thing causes problems - try using UFO or SWFObject to
embed the movie.

The other thing you could try is writing the JS function from inside flash -
For example,  I use this quite a lot to get the page url:

response = ExternalInterface.call( function(){return
document.location.href;} );


J

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy Herrman
Sent: 22 March 2007 16:24
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] QT in IE returning null value to flash

Hm.  I haven't used ExternalInterface at al (I'm stuck with Flash 7), so I'm
not really sure what the problem could be.  Though you might be able to do
it as a callback (have the javascript function call some function in your
Flash movie to give it the value).  The control flow for that would be a bit
odd, but it might work if you can't get it to return correctly.

  -Andy

On 3/20/07, Bob Wohl [EMAIL PROTECTED] wrote:
 yeah, I can alert the value (real fun with a set interval =P). Just 
 getting it from JS seems to be the issue.

 yep, QuickTime, their documentation rocks for javascript ;)




 Bob

 On 3/20/07, Andy Herrman [EMAIL PROTECTED] wrote:
  Have you tried getting the value out using just Javascript (no Flash 
  involved)?  See if that works.  It might make it easier to debug 
  (removing a layer of complexity).  Maybe IE has some security in 
  place that's preventing the access of the values from QT (you mean 
  quicktime?  I always think of QT as the C++ toolset made by
  trolltech.)
 
 -Andy
 
  On 3/20/07, Bob Wohl [EMAIL PROTECTED] wrote:
   Hello all,
  
  
   I've researched quite a bit over the past week to no avail on how 
   in IE i get a return of null when pulling the time from a QT file 
   but in FireFox i get the proper time...
  
  
   flash call -
   myTime = ExternalInterface.call(DisTime, document.movie1);
  
  
   js -
   function DisTime(anObj){
  var obj = eval(anObj);
 return obj.GetTime();
  }
  
  
   seems simple enough but I cannot for the life of me find out why 
   IE sees it as null.
  
   Any ideas, pointers?
  
  
   Thanks!
   Bob
   ___
   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

___
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] Object.registerClass ...

2007-03-18 Thread Joe Wheeler
Together with __Packages you can also use Object.registerClass to bind a
class to a dynamically created movieclip. If used in conjunction with a
static create method you can make creating extended movieclip instances real
easy...

// MyClass.as
class com.misuseit.MyClass extends MovieClip 
{
public static var LINKAGE_ID:String =
__Packages.com.misuseit.MyClass;
public static var SYMBOL_OWNER:Function = MyClass;
public static var SYMBOL_LINKED:Boolean =
Object.registerClass( LINKAGE_ID, SYMBOL_OWNER );

private static var $nextId:Number   = 0; 
 
public static function create( parent:MovieClip, name:String,
depth:Number, init:Object ) :MyClass
{
var mc:MovieClip;
name= name || MyClass + ( $nextId++ );
depth = depth || parent.getNextHighestDepth();
mc  = parent.attachMovie( LINKAGE_ID, name, depth, init
);
return MyClass( mc );
}
} 

// To instantiate on a timeline
var myClip:MovieClip;
myClip = MyClass.create( this );

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas
Sent: 18 March 2007 10:24
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Object.registerClass ...

Stephen.
  Object.registerClass is used all the time in AS2 to connect library
objects to implementing classes - so it's definitely relevant.

Essentially, you use Object.registerClass to tell the system what type of
class should be associated with a clip when it is attached via
attachMovie(). It's the same as specifying the linkage in the linkage
dialog, but is done dynamically in the code (and therefore it's possible to
attach the same symbol as different classes, if you need to - it's also
handy if your library is supplied by a graphic designer who isn't informed
enough to insert the appropriate linkages.)

HTH,
   Ian

On 3/18/07, Stephen Ford [EMAIL PROTECTED] wrote:
 Is Object.registerClass no longer relevant when using AS2 and OOP
structure.I understand AS2 class structure, inheritance, etc but am trying
to understand how it was done in AS1 and if I need to know any of the
techniques used before AS2.
___
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] wordpress and flash integration

2007-03-18 Thread Joe Wheeler
Hi Kerem,

If you don't use the wordpress php files you're not using wordpress - all
you'd have left is a complicated data base structure and a bunch of raw
data.

If you really want to use flash and wordpress you need to look at ways of
getting the wordpress php files to talk to flash - you can't use flash
instead of the wordpress php files, you'd need both. 

You might want to have look at writing a plug-in for wordpress (wp plug-ins
are also written in php btw). The alternative is to hack wordpress, but
you'll never be able upgrade when a new version of wordpress comes out and,
again, other plugins will be a problem. If you go the hacky way, the php
files in the admin folder or wordpress\wp-includes\wp-db.php are probably as
good a place as any to start with.

In theory, you could write a plug-in (in php and actionscript) which enables
you to create a Flash admin layer over the top of the php application. It
would be quite a big job and very hard to make extensible for other plug-ins
(most require html forms and JavaScript on the client). You'd probably be
better of by just replacing a small bit of the admin interface - pick the
bit that annoys you most.

Try a Google search for wordpress admin hooks or wordpress plugin api -
it's not very well documented but you might find something useful.

Good luck
J

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Glen Pike
Sent: 17 March 2007 13:54
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] wordpress and flash integration

Hi Kerem.

It depends what you want to parse.
   
You could use the RSS feed as a way of getting data into Flash as it is
XML, which Flash can deal with very easily.
   
If you want to talk to the database more directly, you will have to
consider using Flash Remoting - have a look to see if anyone has created an
AMFPHP - server side code for Flash Remoting in PHP - plugin for Wordpress.

http://amfphp.org/


http://www.google.co.uk/search?hl=enq=flash+remotingbtnG=Google+Searchmet
a=
http://www.google.co.uk/search?hl=enq=flash+remotingbtnG=Google+Searchme
ta=

HTH

Glen

Kerem İşeri wrote:
 Hi everyone... 

  

 I am starting a new project, it will be my first trial on the 
 subject.. I thought that I could use wordpress as a database for 
 contents and pictures for my site.

 It will be so cool if I can make it, because I will get rid of the 
 coding on php and admin panel of this project, wordpress has a very 
 userfriendly admin interface it self built in. Anyways,

 Anybody tried this before ? or does anybody know how can I parse 
 wordpress pages for the flash?

  

 Thanks a lot.

  

 Kerem.

 ___
 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] Re: Boolean question

2006-10-21 Thread Joe Wheeler
In AS2 using the Boolean constructor will instantiate a Boolean object - an
object wrapper for the primitive type. If you want to perform logical
operations on the value of a Boolean object you must remember to use the
objects valueOf() method. Otherwise it's the object, rather than its value,
that gets evaluated - and as Fumio pointed evaluating any object as a
Boolean will result in a positive. 

var primative:Boolean = false;
var object:Boolean = new Boolean(false);
trace( [ typeof primative, !primative, !primative.valueOf() ] );
trace( [ typeof object, !object, !object.valueOf() ] );

// AS2 output:
// boolean,true,true
// object,false,true

In AS3 the two statements are equivalent...

// AS3 output:
// boolean,true,true
// boolean,true,true


___
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