Re: [Flashcoders] problem with combo box and array

2006-12-06 Thread Adrian Ionut Beschea
You could try something like this : 

var my_schema:Array = new Array(data,label);
var my_data:Array = new Array();
var obj = new Object();
obj[my_schema[0]] = Some data;
obj[my_schema[1]] = Some strings;
my_data.addItem(obj);
my_cb.dataProvider = my_data;


Helmut Granda [EMAIL PROTECTED] wrote: What are you getting on your cb? It 
sure looks like my_schema[0] should
work, unless you have to hack it like item1= my_schema[0] and then add item1
to your cb.

just an idea.



On 12/5/06, Fratiman Vladut  wrote:

 Hi!
 This is some example for simplicity.
 I have one combo box named my_cb.
 I have two arrays, one named my_schema and second my_data.
 var my_schema:Array = new Array(data,label);
 var my_data:Array = new Array();
 I want to populate combo box in this mode:
 my_data.addItem({my_schema[0]:Some data, my_schema[1]:Some
 strings});
 my_cb.dataProvider = my_data;
 My intention is to obtain for my_data the form
 my_data.addItem({data:Some data, label:Some strings});
 but not work.
 Shure, can do that without this, but i want to suggest what i want to
 do, because in a more complex situation, will build an function that
 populate data grid or combo box based on a given schema.
 How i can resolve that?


 ___
 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




-- 
...helmut
helmutgranda.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


 
-
Need a quick answer? Get one in minutes from people who know. Ask your question 
on Yahoo! Answers.
___
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] webservice delay

2006-12-06 Thread learner

Hello all,

Is there any event which tells you that webservice call is in progress..
I want to show the processing animation in the time gap bwteen a call to
webservice and the result from the webservice

Regards
PS
___
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] Orientation of dinamyc text

2006-12-06 Thread Raphael ...

Hi Charles,

Vertical vs. Horizontal

like this:

M
Y

D
I
N
A
M
Y
C

T
E
X
T




Charles Parcell [EMAIL PROTECTED] wrote: Do you mean as in AutoSize? or 
Rotation? or Reversing the strings
characters? or Vertical vs. Horizontal? or Something else?

Charles P.


On 12/5/06, Raphael ...  wrote:

 Hi.

 Somebody knows how can I chage orientation of dinamyc text using AS2 or
 higher?

 tks
 Djazz


 -
 Access over 1 million songs - Yahoo! Music Unlimited.
 ___
 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


 
-
Any questions?  Get answers on any topic at Yahoo! Answers. Try it now.
___
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] Orientation of dinamyc text

2006-12-06 Thread Danny Kodicek
  Vertical vs. Horizontal
 
 like this:
 
 M
 Y
 
 D
 I
 N
 A
 M
 Y
 C
 
 T
 E
 X
 T

How about:

function horizontalToVertical(tString:String):String {
return tString.split().join(newline)
}

Danny

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] webservice delay

2006-12-06 Thread Merrill, Jason
See Webservice.status in the help docs.  You can also show the animation
when the call is initiated, and then use WebService.onResult to hide the
animation.

Jason Merrill
Bank of America 
Learning  Organizational Effectiveness
 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of learner
Sent: Wednesday, December 06, 2006 4:20 AM
To: Flashcoders mailing list
Subject: [Flashcoders] webservice delay

Hello all,

Is there any event which tells you that webservice call is in 
progress..
I want to show the processing animation in the time gap 
bwteen a call to webservice and the result from the webservice

Regards
PS
___
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] Switch case problem...

2006-12-06 Thread José Maria Barros

Hello againwell i didnt solved it yet...

See the website..to see what i mean..thank you.

http://www.justbeloungelx.com


And by the way i aprecciate your comment Jason Merril...its definitly with
lots of redundancy...maybe i dont need to make objects fuse all the time..i
have to check them out..

Thanks for all answers..i will try to solve it tough...


On 12/5/06, Margo Powell [EMAIL PROTECTED] wrote:


Would replacing gotoAndPlay with gotoAndStop work with your timeline
layout? That might fix your issue.

Jose Maria Barros wrote:
 here is the goLink function...

 function goLink():Void{
_root.myClip.prin_mc.gotoAndPlay(linkName);

 }


 On 12/5/06, Jose Maria Barros [EMAIL PROTECTED] wrote:

 here is the code...i think nothing is wrong...

 switch(linkName)
 {
  case about:
  var jpAbout = new Fuse();

 jpAbout.push({target:myClip.prin_mc.textAbout_mc
,_alpha:0,Blur_blurX:100,

 Blur_blurY:100,seconds:1,ease:easeOutQuad, func:goLink, scope:
 myClip.prin_mc})
  jpAbout.start();
  break;

  case noticias:
  var jpNoticias = new Fuse();

 jpNoticias.push({target:myClip.prin_mc.textAbout_mc
,_alpha:0,Blur_blurX:100,

 Blur_blurY:100,seconds:1,ease:easeOutQuad,func:goLink, scope:
 myClip.prin_mc})
  jpNoticias.start();
  break;

  case fotos:
  var jpFotos = new Fuse();

 jpFotos.push({target:myClip.prin_mc.janelaFotos_mc
,_alpha:0,Blur_blurX:100,

 Blur_blurY:100,seconds:1,ease:easeOutQuad,func:goLink, scope:
 myClip.prin_mc})
  jpFotos.start();
  break;

  case sugestao:
  var jpSugestao = new Fuse();

 jpSugestao.push({target:myClip.prin_mc.textSugestao_mc
,_alpha:0,Blur_blurX:100,

 Blur_blurY:100,seconds:1,ease:easeOutQuad,func:goLink, scope:
 myClip.prin_mc})
  jpSugestao.start();
  break;

  default:
  break;
 }

 On 12/5/06, badi malik  [EMAIL PROTECTED] wrote:
 
  you might be missing a ':'
 
  b
 
  - Original Message 
  From: Jose Maria Barros [EMAIL PROTECTED]
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com 
  Sent: Tuesday, December 5, 2006 11:01:30 AM
  Subject: Re: [Flashcoders] Switch case problem...
 
  yes
 
  On 12/5/06, Joey Rivera [EMAIL PROTECTED] wrote:
  
   You putting breaks in the case statements?
  
   Joey Rivera
   Flash Developer
   iLearn, Inc.
   (770) 218-0972
  
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] ] On Behalf Of
 Jose
  Maria
   Barros
   Sent: Tuesday, December 05, 2006 1:50 PM
   To: Flashcoders mailing list
   Subject: [Flashcoders] Switch case problem...
  
   Hi..
   Ive done a function with a switch case wich have each one a string
   variable
   value  with the name of the link...
  
   var linkName:String = ;
  
   switch(linkName) {
  
 case link1:
 //run function with a gotoAndPlay  that goes to
  the  frame(linkName)
  
case link2:
//run function with a gotoAndPlay  that goes to
  the  frame(linkName)
  
   etc
   }
  
  
   And when i press a button for that link...he stores the value in
the
   variable(linkName) and he runs the function...
  
   The problem is that when i press the button one...he goes to that
   link...but
   when i press the same button again...he goes to other link...
  
   I dont understand...i appreciate some help..
  
   Thanks in advance.
   ___
   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:
 

Re: [Flashcoders] image effects in Flash MX on Mac

2006-12-06 Thread nik crosina

time to upgrade soon then ;)
thanks guys
Nik

On 12/6/06, Odie Bracy [EMAIL PROTECTED] wrote:

Many of the photoshop filters work on Fireworks which is part of the
Studio version of Flash. Also check out the Alienskin filters at
www.alienskin.com for Fireworks.

I use the Alienskin Fireworks Impact filter quite often in my work.

With Fireworks you can make your shape in Flash, copy it, open
fireworks, paste it, do your filter, copy the results, go back to
Flash and paste it. Very simple.

Odie

On Dec 5, 2006, at 9:36 AM, nik crosina wrote:

 Hi,

 We are doing a little eCard at the mo on a Mac with Flash MX installed
 - are there any ways of applying photoshop like filters to any of the
 vector-graphics in there? Or would we have to - as I suspect - take
 the animation out into at least photoshop (or video app) to get that
 in?

 Thanks!

 --
 Nik C
 ___
 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




--
Nik C
___
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] webservice delay

2006-12-06 Thread learner

i tried ur suggestion but that did not work !

animation shows up sometimes and sometimes does not


On 12/6/06, Merrill, Jason [EMAIL PROTECTED] wrote:


See Webservice.status in the help docs.  You can also show the animation
when the call is initiated, and then use WebService.onResult to hide the
animation.

Jason Merrill
Bank of America
Learning  Organizational Effectiveness







-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of learner
Sent: Wednesday, December 06, 2006 4:20 AM
To: Flashcoders mailing list
Subject: [Flashcoders] webservice delay

Hello all,

Is there any event which tells you that webservice call is in
progress..
I want to show the processing animation in the time gap
bwteen a call to webservice and the result from the webservice

Regards
PS
___
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] Book: Flash 8 reference?

2006-12-06 Thread dbenman
I've been using Oreilly's Safari service for many of these reference books to 
read them online instead of purchasing hard copies though several of these 
Actionscript books look like they'd make good bedtime reading.

-- Original message -- 
From: Charles Parcell [EMAIL PROTECTED] 

 I just pick this book up a week ago and am about half way through it. I have 
 to give it two thumbs up! 
 
 http://www.amazon.com/Advanced-ActionScript-3-Design-Patterns/dp/0321426568/sr=1
  
 1-1/qid=1165348093/ref=sr_11_1/103-7225829-0820628 
 
 You can also get the ActionScript 3.0 Definitive Guide from as a download 
 from the publisher's web site. You can basically buy it now and download the 
 PDFs of the chapters as they get approved, then they will send you the book 
 when it is done. 
 
 But this is all ActionScript 3.0 stuff (but the design patterns book can be 
 applied to AS 2.0 as well). 
 
 Charles P. 
 
 
 On 12/5/06, Micky Hulse wrote: 
  
  Micky Hulse wrote: 
   Any suggestions would be great. Off-list replies are welcome too. :) 
  
  Thanks Dan and Radley, I plan on going to bookstore tomorrow... your 
  suggestions will save me some time poking around. :) 
  
  Thanks, 
  Cheers, 
  M 
  
  -- 
  Wishlist: 
  Switch: 
  BCC?: 
  My: 
  ___ 
  Flashcoders@chattyfig.figleaf.com 
  To change your subscription options or search the archive: 
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 
  
  Brought to you by Fig Leaf Software 
  Premier Authorized Adobe Consulting and Training 
  http://www.figleaf.com 
  http://training.figleaf.com 
  
 ___ 
 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] Book: Flash 8 reference?

2006-12-06 Thread Brad Harris

Essential Actionscript
2.0http://www.amazon.com/Essential-ActionScript-2-0-Colin-Moock/dp/0596006527/sr=8-1/qid=1165414913/ref=pd_bbs_sr_1/104-2703559-7628716?ie=UTF8s=booksnever
leaves my desk.

On 12/4/06, Micky Hulse [EMAIL PROTECTED] wrote:


Hi,

I hope all is well. ;)

This book was a good purchase:

ActionScript for Flash MX: The Definitive Guide, Second Edition
http://www.oreilly.com/catalog/actscript2/

Can someone point me to a similar book, but more recent?

Most FP8 books I have found, are more geared towards project-based
examples... that is good, but sometimes I just do not need all of the
extra bloat... A cut-to-the-chase type book (like above, but more
recent) would be cool.

Any suggestions would be great. Off-list replies are welcome too. :)

Cheers,
Micky

--
Wishlist: http://snipurl.com/vrs9
   Switch: http://browsehappy.com/
 BCC?: http://snipurl.com/w6f8
   My: http://del.icio.us/mhulse
___
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[2]: [Flashcoders] problem with combo box and array

2006-12-06 Thread Fratiman Vladut
Wednesday, December 6, 2006, 10:46:10 AM, you wrote:

 You could try something like this : 

 var my_schema:Array = new Array(data,label);
 var my_data:Array = new Array();
 var obj = new Object();
 obj[my_schema[0]] = Some data;
 obj[my_schema[1]] = Some strings;
 my_data.addItem(obj);
 my_cb.dataProvider = my_data;

Work well how to suggest Adrian. Thanks!!!

___
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] Switch case problem...

2006-12-06 Thread Keith Reinfeld
How are you setting the value of the linkName variable?


-Keith 
http://keithreinfeld.home.comcast.net
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of José Maria
Barros
Sent: Wednesday, December 06, 2006 6:54 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Switch case problem...

Hello againwell i didnt solved it yet...

See the website..to see what i mean..thank you.

http://www.justbeloungelx.com


And by the way i aprecciate your comment Jason Merril...its definitly with
lots of redundancy...maybe i dont need to make objects fuse all the time..i
have to check them out..

Thanks for all answers..i will try to solve it tough...


On 12/5/06, Margo Powell [EMAIL PROTECTED] wrote:

 Would replacing gotoAndPlay with gotoAndStop work with your timeline
 layout? That might fix your issue.

 Jose Maria Barros wrote:
  here is the goLink function...
 
  function goLink():Void{
 _root.myClip.prin_mc.gotoAndPlay(linkName);
 
  }
 
 
  On 12/5/06, Jose Maria Barros [EMAIL PROTECTED] wrote:
 
  here is the code...i think nothing is wrong...
 
  switch(linkName)
  {
   case about:
   var jpAbout = new Fuse();
 
  jpAbout.push({target:myClip.prin_mc.textAbout_mc
 ,_alpha:0,Blur_blurX:100,
 
  Blur_blurY:100,seconds:1,ease:easeOutQuad, func:goLink, scope:
  myClip.prin_mc})
   jpAbout.start();
   break;
 
   case noticias:
   var jpNoticias = new Fuse();
 
  jpNoticias.push({target:myClip.prin_mc.textAbout_mc
 ,_alpha:0,Blur_blurX:100,
 
  Blur_blurY:100,seconds:1,ease:easeOutQuad,func:goLink, scope:
  myClip.prin_mc})
   jpNoticias.start();
   break;
 
   case fotos:
   var jpFotos = new Fuse();
 
  jpFotos.push({target:myClip.prin_mc.janelaFotos_mc
 ,_alpha:0,Blur_blurX:100,
 
  Blur_blurY:100,seconds:1,ease:easeOutQuad,func:goLink, scope:
  myClip.prin_mc})
   jpFotos.start();
   break;
 
   case sugestao:
   var jpSugestao = new Fuse();
 
  jpSugestao.push({target:myClip.prin_mc.textSugestao_mc
 ,_alpha:0,Blur_blurX:100,
 
  Blur_blurY:100,seconds:1,ease:easeOutQuad,func:goLink, scope:
  myClip.prin_mc})
   jpSugestao.start();
   break;
 
   default:
   break;
  }
 
  On 12/5/06, badi malik  [EMAIL PROTECTED] wrote:
  
   you might be missing a ':'
  
   b
  
   - Original Message 
   From: Jose Maria Barros [EMAIL PROTECTED]
   To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com 
   Sent: Tuesday, December 5, 2006 11:01:30 AM
   Subject: Re: [Flashcoders] Switch case problem...
  
   yes
  
   On 12/5/06, Joey Rivera [EMAIL PROTECTED] wrote:
   
You putting breaks in the case statements?
   
Joey Rivera
Flash Developer
iLearn, Inc.
(770) 218-0972
   
   
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] ] On Behalf Of
  Jose
   Maria
Barros
Sent: Tuesday, December 05, 2006 1:50 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Switch case problem...
   
Hi..
Ive done a function with a switch case wich have each one a string
variable
value  with the name of the link...
   
var linkName:String = ;
   
switch(linkName) {
   
  case link1:
  //run function with a gotoAndPlay  that goes to
   the  frame(linkName)
   
 case link2:
 //run function with a gotoAndPlay  that goes to
   the  frame(linkName)
   
etc
}
   
   
And when i press a button for that link...he stores the value in
 the
variable(linkName) and he runs the function...
   
The problem is that when i press the button one...he goes to that
link...but
when i press the same button again...he goes to other link...
   
I dont understand...i appreciate some help..
   
Thanks in advance.
___
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] Extracting file details

2006-12-06 Thread Helmut Granda

Thanks! I found that last night too and it is exactly what I was looking
for.

On 12/6/06, shang liang [EMAIL PROTECTED] wrote:


http://www.phpclasses.org/browse/package/1653.html

On 12/6/06, Helmut Granda [EMAIL PROTECTED] wrote:
 Maybe this is not the right list but I thought I would give it a shot.

 Is there anyway to get file details like FPS, BG Color and such from a
SWF?
 with flash or with PHP?

 TIA for any ideas...

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



--
/*
Bored, sometimes.
*/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com





--
...helmut
helmutgranda.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] Switch case problem...

2006-12-06 Thread Stef X

Hi,
Just put a gotoAndStop in your goFrame function instead of a gotoAndPlay and
redo a Switch case to call the good janelaDestination like this :

function goLink()
{
   trace (linkName);
   _root.myClip.prin_mc.gotoAndStop(linkName);
   switch (linkName)
   {
   case fotos:
   {
   janelaPFotos();
   }
   ()
   }
}

Hope It'll help

St3fX



2006/12/6, Keith Reinfeld [EMAIL PROTECTED]:


How are you setting the value of the linkName variable?


-Keith
http://keithreinfeld.home.comcast.net


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of José Maria
Barros
Sent: Wednesday, December 06, 2006 6:54 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Switch case problem...

Hello againwell i didnt solved it yet...

See the website..to see what i mean..thank you.

http://www.justbeloungelx.com


And by the way i aprecciate your comment Jason Merril...its definitly with
lots of redundancy...maybe i dont need to make objects fuse all the
time..i
have to check them out..

Thanks for all answers..i will try to solve it tough...


On 12/5/06, Margo Powell [EMAIL PROTECTED] wrote:

 Would replacing gotoAndPlay with gotoAndStop work with your timeline
 layout? That might fix your issue.

 Jose Maria Barros wrote:
  here is the goLink function...
 
  function goLink():Void{
 _root.myClip.prin_mc.gotoAndPlay(linkName);
 
  }
 
 
  On 12/5/06, Jose Maria Barros [EMAIL PROTECTED] wrote:
 
  here is the code...i think nothing is wrong...
 
  switch(linkName)
  {
   case about:
   var jpAbout = new Fuse();
 
  jpAbout.push({target:myClip.prin_mc.textAbout_mc
 ,_alpha:0,Blur_blurX:100,
 
  Blur_blurY:100,seconds:1,ease:easeOutQuad, func:goLink, scope:
  myClip.prin_mc})
   jpAbout.start();
   break;
 
   case noticias:
   var jpNoticias = new Fuse();
 
  jpNoticias.push({target:myClip.prin_mc.textAbout_mc
 ,_alpha:0,Blur_blurX:100,
 
  Blur_blurY:100,seconds:1,ease:easeOutQuad,func:goLink, scope:
  myClip.prin_mc})
   jpNoticias.start();
   break;
 
   case fotos:
   var jpFotos = new Fuse();
 
  jpFotos.push({target:myClip.prin_mc.janelaFotos_mc
 ,_alpha:0,Blur_blurX:100,
 
  Blur_blurY:100,seconds:1,ease:easeOutQuad,func:goLink, scope:
  myClip.prin_mc})
   jpFotos.start();
   break;
 
   case sugestao:
   var jpSugestao = new Fuse();
 
  jpSugestao.push({target:myClip.prin_mc.textSugestao_mc
 ,_alpha:0,Blur_blurX:100,
 
  Blur_blurY:100,seconds:1,ease:easeOutQuad,func:goLink, scope:
  myClip.prin_mc})
   jpSugestao.start();
   break;
 
   default:
   break;
  }
 
  On 12/5/06, badi malik  [EMAIL PROTECTED] wrote:
  
   you might be missing a ':'
  
   b
  
   - Original Message 
   From: Jose Maria Barros [EMAIL PROTECTED]
   To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com 
   Sent: Tuesday, December 5, 2006 11:01:30 AM
   Subject: Re: [Flashcoders] Switch case problem...
  
   yes
  
   On 12/5/06, Joey Rivera [EMAIL PROTECTED] wrote:
   
You putting breaks in the case statements?
   
Joey Rivera
Flash Developer
iLearn, Inc.
(770) 218-0972
   
   
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] ] On Behalf Of
  Jose
   Maria
Barros
Sent: Tuesday, December 05, 2006 1:50 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Switch case problem...
   
Hi..
Ive done a function with a switch case wich have each one a
string
variable
value  with the name of the link...
   
var linkName:String = ;
   
switch(linkName) {
   
  case link1:
  //run function with a gotoAndPlay  that goes to
   the  frame(linkName)
   
 case link2:
 //run function with a gotoAndPlay  that goes to
   the  frame(linkName)
   
etc
}
   
   
And when i press a button for that link...he stores the value in
 the
variable(linkName) and he runs the function...
   
The problem is that when i press the button one...he goes to that
link...but
when i press the same button again...he goes to other link...
   
I dont understand...i appreciate some help..
   
Thanks in advance.
___
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

RE: [Flashcoders] webservice delay

2006-12-06 Thread Merrill, Jason
i tried ur suggestion but that did not work !

You're not providing any source code to back up your claim or to give
the intended impact of your exclaimation point.

How are you starting the webservice?  How are you telling the animation
to display?  How are you telling it to hide?   I use the events of the
Webservice component to tell animations to show and hide while the
webservice runs without any problem, so I am doubtful the problem is
with my suggestion. 

Jason Merrill
Bank of America 
Learning  Organizational Effectiveness
 
 
 
 
 
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] V2 components too heavy

2006-12-06 Thread mudit tuli
I just made an application with V2 coponent and it turned out to be too heavy. 
A V2 combobox adds 40KB to my application(correct me if I am wrong here). I 
have tried using Mx components for Flash Mx 2004, but I found out that they 
don't  generate an event but a callback though I have able to reduce the size 
of my application using Mx components.

Is there any open source components that generate an event?
Or you have to code your own ?

Mudit




 

Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited
___
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] Q: Performance of AS3 vs Java

2006-12-06 Thread slangeberg

Regarding performance, FP9 is showing some nice 3D potential (for a 1-2meg
VM):

http://www.papervision3d.org/demos/seahorse/

However, not sure how much this will help you with a data visualization!

-Scott

On 12/5/06, Christian Giordano [EMAIL PROTECTED] wrote:


 If you really want to get into doing 3d viz work, use Java and OpenGL -
 and skip Processing unless you just want to jump right in and be able to
 see your results faster.

As Jon says, OpenGL could easily be the best solution, or Java3D at
least. Look these examples without opengl:

http://jamesnsears.com/applets/spies/
http://www.acoustic-cartography.com/processing/

Then of course it depends which kind of application u r doing. For the
web, OpenGL can work but as far as I know only with client hacking.


Best, chr

--
___
{ Christian Giordano's site and blog @ http://nuthinking.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





--

: : ) Scott
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Re: V2 components too heavy

2006-12-06 Thread John Olson

http://www.osflash.org/components

Mudit --

check out this OSFlash page on the various components out there.

There is also a good page on Patrick Mineault's page that talks about
several of the component sets.
http://www.5etdemi.com/blog/archives/2005/10/battle-of-the-component-sets/


From what I hear, Flash 9 will bring better and more light-weight components

-- but that's probably at least 6-9 months off from now.


On 12/6/06, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:


Message: 6
Date: Wed, 6 Dec 2006 08:07:15 -0800 (PST)
From: mudit tuli [EMAIL PROTECTED]
Subject: [Flashcoders] V2 components too heavy
To: flashcoders@chattyfig.figleaf.com
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; charset=ascii

I just made an application with V2 coponent and it turned out to be too
heavy. A V2 combobox adds 40KB to my application(correct me if I am wrong
here). I have tried using Mx components for Flash Mx 2004, but I found out
that they don't  generate an event but a callback though I have able to
reduce the size of my application using Mx components.

Is there any open source components that generate an event?
Or you have to code your own ?

Mudit



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] How to Embed Fonts for CSS Usage

2006-12-06 Thread Marc Hoffman

I am having trouble getting Flash to embed a font that is designated by CSS.

In Flash:
- I create a textfield, create a loadVars and a StyleSheet, load the 
CSS into the StyleSheet, and designate the style sheet as the style 
for the text field. I then load text into the textfield (currently 
using hard-coded AS, but eventually it will be xml).
- I also create dummy text fields to embed the fonts in Flash that 
the CSS uses.

- I then generate the .swf for testing.

The CSS file is present and working.

When I play the swf, Everything works okay ONLY IF the font is on my 
system. If I remove the font from my system and double-click the swf 
again, the font is replaced by a system-resident font.


Is there a right way to embed a font in a swf so that when it is 
called by CSS, it will display even if it's not on the user's system?


TIA,

Marc Hoffman


___
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 Embed Fonts for CSS Usage

2006-12-06 Thread Jim Kremens

Just checking for gotchas...

Are you loading text into a textfield on the stage, or creating the
field dynamically?

Either way, set myTextField.embedFonts = true; if you haven't already...

Jim Kremens

On 12/6/06, Marc Hoffman [EMAIL PROTECTED] wrote:

I am having trouble getting Flash to embed a font that is designated by CSS.

In Flash:
- I create a textfield, create a loadVars and a StyleSheet, load the
CSS into the StyleSheet, and designate the style sheet as the style
for the text field. I then load text into the textfield (currently
using hard-coded AS, but eventually it will be xml).
- I also create dummy text fields to embed the fonts in Flash that
the CSS uses.
- I then generate the .swf for testing.

The CSS file is present and working.

When I play the swf, Everything works okay ONLY IF the font is on my
system. If I remove the font from my system and double-click the swf
again, the font is replaced by a system-resident font.

Is there a right way to embed a font in a swf so that when it is
called by CSS, it will display even if it's not on the user's system?

TIA,

Marc Hoffman


___
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




--
Jim Kremens
___
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] File-name operand bug workaround

2006-12-06 Thread Mick G

Does anyone know of a work-around to this bug:
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4b687833

I'm getting javascript errors in IE using externalInterface and SWF
file names that have a hyphen in them. Unfortunately I'm working with
a content management system that renames SWF's to files with hypens in
them.

This is not a well known bug but I've seen many threads with people
getting these JS errors in IE using externalInterface. It's caused me
grief quite a few times. Usually renaming my SWF without a hypen works
except in this case when I can't.

- Mick
___
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] File-name operand bug workaround

2006-12-06 Thread T. Michael Keesey

Well, one idea that comes to mind is that you could escape the
filename (using the escape() function) before sending it through
ExternalInterface, and then unescape it in JavaScript. Hyphens do not
get converted by ActionScript's escape() function, but you can force
it like so:

ExternalInterface.call(myJSFunc, escape(s).replace(-, %2D));

Then, in JavaScript:

function myJSFunc(filename) {
   filename = unescape(filename);
   // Continue
}

On 12/6/06, Mick G [EMAIL PROTECTED] wrote:

Does anyone know of a work-around to this bug:
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4b687833

I'm getting javascript errors in IE using externalInterface and SWF
file names that have a hyphen in them. Unfortunately I'm working with
a content management system that renames SWF's to files with hypens in
them.

This is not a well known bug but I've seen many threads with people
getting these JS errors in IE using externalInterface. It's caused me
grief quite a few times. Usually renaming my SWF without a hypen works
except in this case when I can't.

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




--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry  Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] V2 components too heavy

2006-12-06 Thread Steven Sacks | BLITZ
Check out the ghostwire components.

http://www.ghostwire.com

They're AS1 but they work in Flash 7 and 8 alongside AS2.

They're extremely lightweight and follow the Macromedia standard methods
like setDataProvider(), etc.  

If you want events generated, code it yourself.  It's easy:

import mx.events.EventDispatcher;

class MyClass
{
public var addEventListener:Function;
public var removeEventListener:Function;
private var dispatchEvent:Function;

function MyClass() 
{
EventDispatcher.initialize(this);
}

function onComboBoxChange()
{
dispatchEvent({type:change, data:CMB.selectedItem.data);
}
___
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] webservice delay

2006-12-06 Thread Steven Sacks | BLITZ
 i tried ur suggestion but that did not work !

RTFM !
___
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] ActionScript Jobs

2006-12-06 Thread Julian Rondini
We are hiring Flash Coders. If interested, please send your CV and  
samples of your work  to [EMAIL PROTECTED]


Kindest regards




Julian Rondini, R.G.D.|Senior Developer
MacroBLU Online Media Inc. | www.macroblu.com
Toronto +1.416.927.0432| Milan +39.02.320624728 | F 416.929.0043


DISCLAIMER: This message contains information intended only for the  
use of the addressee named above. If you are not the intended  
recipient of this communication please delete and destroy all copies  
and telephone MacroBlu Online Media Inc. at (416) 927.0432  
immediately. If you are the intended recipient of the communication  
you should not copy, disclose or distribute this information without  
the authority of MacroBlu Online Media Inc. Any views expressed in  
the communication are those of the individual sender, except where  
the sender specifically states them to be the views of MacroBlu  
Online Media Inc. Except as required by law, MacroBlu Online Media  
Inc. does not represent, warrant and/or guarantee that the integrity  
of this communication has been maintained nor that the communication  
is free of errors, virus, interception or interference.



___
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] V2 components too heavy

2006-12-06 Thread Marcelo de Moraes Serpa

Don't use v2 components. They're indeed tooo heavy and clumsy. Just create
your smart-clips or use ASWing, for example.

On 12/6/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:


Check out the ghostwire components.

http://www.ghostwire.com

They're AS1 but they work in Flash 7 and 8 alongside AS2.

They're extremely lightweight and follow the Macromedia standard methods
like setDataProvider(), etc.

If you want events generated, code it yourself.  It's easy:

import mx.events.EventDispatcher;

class MyClass
{
public var addEventListener:Function;
public var removeEventListener:Function;
private var dispatchEvent:Function;

function MyClass()
{
EventDispatcher.initialize(this);
}

function onComboBoxChange()
{
dispatchEvent({type:change, data:CMB.selectedItem.data);
}
___
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] File-name operand bug workaround

2006-12-06 Thread Mick G

This bug is actually more weird than you would think - it's not the
passing of a string with a hypen that is causing the problem - it's
simply a SWF with a hyphen calling any externalInterface call.

Try this test:

create a new Flash file - make sure you name it with a hypen in it eg.
test-1.swf
Then put this code in it...

import flash.external.*
ExternalInterface.call(alert,Hello);

Run it in IE embedded in a HTML page. You will get a javascript error.
Firefox no error.
(I think only Flash Player 9 causes this error but unsure)

Now re-publish your file without a hypen in it and run it again from
IE and it will work fine.






On 12/6/06, T. Michael Keesey [EMAIL PROTECTED] wrote:

Well, one idea that comes to mind is that you could escape the
filename (using the escape() function) before sending it through
ExternalInterface, and then unescape it in JavaScript. Hyphens do not
get converted by ActionScript's escape() function, but you can force
it like so:

ExternalInterface.call(myJSFunc, escape(s).replace(-, %2D));

Then, in JavaScript:

function myJSFunc(filename) {
filename = unescape(filename);
// Continue
}

On 12/6/06, Mick G [EMAIL PROTECTED] wrote:
 Does anyone know of a work-around to this bug:
 http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=4b687833

 I'm getting javascript errors in IE using externalInterface and SWF
 file names that have a hyphen in them. Unfortunately I'm working with
 a content management system that renames SWF's to files with hypens in
 them.

 This is not a well known bug but I've seen many threads with people
 getting these JS errors in IE using externalInterface. It's caused me
 grief quite a few times. Usually renaming my SWF without a hypen works
 except in this case when I can't.

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



--
T. Michael Keesey
Director of Technology
Exopolis, Inc.
2894 Rowena Avenue Ste. B
Los Angeles, California 90039
--
The Dinosauricon: http://dino.lm.com
Parry  Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
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 Embed Fonts for CSS Usage

2006-12-06 Thread Marc Hoffman

Well, one question leads to another :)

First, thank you Jim -- I had avoided embedFonts thinking it would 
embed the entire character set, but according to the Size Report it 
embeds only those characters I embed in the dummy text fields. So now 
it's working fine.


And now my next question: Is there a way to dynamically 
increase/decrease type size when using CSS? Once the CSS is loaded 
into the swf, can I modify its font-size settings? I can change type 
size using textFormat, but since it seems you can't combine 
textFormat with CSS, I lose the benefits of CSS (in particular the 
ability to define a:link and a:hover).


thanks,
Marc

At 09:47 AM 12/6/2006, you wrote:

Just checking for gotchas...

Are you loading text into a textfield on the stage, or creating the
field dynamically?

Either way, set myTextField.embedFonts = true; if you haven't already...

Jim Kremens

On 12/6/06, Marc Hoffman [EMAIL PROTECTED] wrote:

I am having trouble getting Flash to embed a font that is designated by CSS.

In Flash:
- I create a textfield, create a loadVars and a StyleSheet, load the
CSS into the StyleSheet, and designate the style sheet as the style
for the text field. I then load text into the textfield (currently
using hard-coded AS, but eventually it will be xml).
- I also create dummy text fields to embed the fonts in Flash that
the CSS uses.
- I then generate the .swf for testing.

The CSS file is present and working.

When I play the swf, Everything works okay ONLY IF the font is on my
system. If I remove the font from my system and double-click the swf
again, the font is replaced by a system-resident font.

Is there a right way to embed a font in a swf so that when it is
called by CSS, it will display even if it's not on the user's system?

TIA,

Marc Hoffman


___
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



--
Jim Kremens
___
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] Q: Performance of AS3 vs Java

2006-12-06 Thread Christian Giordano

slangeberg wrote:

Regarding performance, FP9 is showing some nice 3D potential (for a 1-2meg
VM):

http://www.papervision3d.org/demos/seahorse/


Papervision is for Flash 8 and as far as i know, in terms of graphics, 
the performance between AS2 + FP8 and AS3 + FP9 are almost the same.


Then of course all the Math computations (frequently used in 3D) are 
faster. So yes, probably for 3D AS3 could help. I'm still waiting to 
make proper tests though.



Best, chr

--
___
{ Christian Giordano's site and blog @ http://nuthinking.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] Q: Performance of AS3 vs Java

2006-12-06 Thread Merrill, Jason
That rocks.  I'm blown away.  I wonder if Adobe is working 3D into Flash
IDE 9.  Microsoft just released WPF/E and Expression Blend will be
available for purchase in Q2 2007 - the Flash competitor that does 3D.
I wonder if the Flash 9 IDE will be available before - say Q1 2007...

Jason Merrill
Bank of America 
Learning  Organizational Effectiveness
 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of Christian Giordano
Sent: Wednesday, December 06, 2006 1:54 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Q: Performance of AS3 vs Java

slangeberg wrote:
 Regarding performance, FP9 is showing some nice 3D potential (for a 
 1-2meg
 VM):
 
 http://www.papervision3d.org/demos/seahorse/

Papervision is for Flash 8 and as far as i know, in terms of 
graphics, the performance between AS2 + FP8 and AS3 + FP9 are 
almost the same.

Then of course all the Math computations (frequently used in 
3D) are faster. So yes, probably for 3D AS3 could help. I'm 
still waiting to make proper tests though.


Best, chr

--
___
{ Christian Giordano's site and blog @ http://nuthinking.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] Extracting file details

2006-12-06 Thread Helmut Granda

I just found out that the file size that the class outputs is not the same
filesize that the file size is represented on my computer.

Here are some samples:

CS= Computer Size  -   SS= Site Size  -  DIFF= Difference

CS: SS:  DIFF:
36319  53152   16833
35796  51460   15664
37613  53685   16072

The tricky thing is that the file difference is not constant so I cant say
33% of the file size is the difference it will always be so then the file is
= to the site size - the %.

Has anyone run into the same issue?

-h

On 12/6/06, Helmut Granda [EMAIL PROTECTED] wrote:


Thanks! I found that last night too and it is exactly what I was looking
for.

On 12/6/06, shang liang [EMAIL PROTECTED]  wrote:

 http://www.phpclasses.org/browse/package/1653.html

 On 12/6/06, Helmut Granda [EMAIL PROTECTED] wrote:
  Maybe this is not the right list but I thought I would give it a shot.
 
  Is there anyway to get file details like FPS, BG Color and such from a
 SWF?
  with flash or with PHP?
 
  TIA for any ideas...
 
  helmut
  ___
  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
 


 --
 /*
 Bored, sometimes.
 */
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com




--
...helmut
helmutgranda.com





--
...helmut
helmutgranda.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] How to Embed Fonts for CSS Usage

2006-12-06 Thread Jim Kremens

You can do this.  I don't have time to do even pseudocode, but

Once you've loaded a sylesheet from a file, you can modify it.
Therefore, you can build a function to:

1.  Modify a property of your styleSheet object.
2.  Broadcast notification that it has been modified to all interested
text fields.  If you don't know what I mean, look into
EventDispatcher, AsBroadcaster, or the Observer Pattern in general.

Once each textfield is notified that there's been a change in its
stylesheet, it can trigger a function to reassign its stylesheet
property to that altered stylesheet.  Kind of like refreshing

Jim Kremens

On 12/6/06, Marc Hoffman [EMAIL PROTECTED] wrote:

Well, one question leads to another :)

First, thank you Jim -- I had avoided embedFonts thinking it would
embed the entire character set, but according to the Size Report it
embeds only those characters I embed in the dummy text fields. So now
it's working fine.

And now my next question: Is there a way to dynamically
increase/decrease type size when using CSS? Once the CSS is loaded
into the swf, can I modify its font-size settings? I can change type
size using textFormat, but since it seems you can't combine
textFormat with CSS, I lose the benefits of CSS (in particular the
ability to define a:link and a:hover).

thanks,
Marc

At 09:47 AM 12/6/2006, you wrote:
Just checking for gotchas...

Are you loading text into a textfield on the stage, or creating the
field dynamically?

Either way, set myTextField.embedFonts = true; if you haven't already...

Jim Kremens

On 12/6/06, Marc Hoffman [EMAIL PROTECTED] wrote:
I am having trouble getting Flash to embed a font that is designated by CSS.

In Flash:
- I create a textfield, create a loadVars and a StyleSheet, load the
CSS into the StyleSheet, and designate the style sheet as the style
for the text field. I then load text into the textfield (currently
using hard-coded AS, but eventually it will be xml).
- I also create dummy text fields to embed the fonts in Flash that
the CSS uses.
- I then generate the .swf for testing.

The CSS file is present and working.

When I play the swf, Everything works okay ONLY IF the font is on my
system. If I remove the font from my system and double-click the swf
again, the font is replaced by a system-resident font.

Is there a right way to embed a font in a swf so that when it is
called by CSS, it will display even if it's not on the user's system?

TIA,

Marc Hoffman


___
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


--
Jim Kremens
___
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




--
Jim Kremens
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re[2]: [Flashcoders] Extracting file details

2006-12-06 Thread R�kos Attila

HG I just found out that the file size that the class outputs is not the same
HG filesize that the file size is represented on my computer.

The reported size is the size of the uncompressed swf (compression
exists since Flash 6 and it is the default option), similar to the
value returned by MovieClip.getBytesTotal(). You can check the real
file size with a simple call to filesize() function (if you use PHP).

  Attila

___
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] Extracting file details

2006-12-06 Thread Ryan Potter
I have run into something similar trying to create a multiple file
preloader.  What I finally had to do was to trace out the files as they
were preloading and then put them back into an array (manually) to use as a
total.  My computer was giving the wrong value under file properties.  

Try tracing the total bytes in flash and see if it is the same as php.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Helmut
Granda
Sent: Wednesday, December 06, 2006 12:17 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Extracting file details

I just found out that the file size that the class outputs is not the same
filesize that the file size is represented on my computer.

Here are some samples:

CS= Computer Size  -   SS= Site Size  -  DIFF= Difference

CS: SS:  DIFF:
36319  53152   16833
35796  51460   15664
37613  53685   16072

The tricky thing is that the file difference is not constant so I cant say
33% of the file size is the difference it will always be so then the file
is
= to the site size - the %.

Has anyone run into the same issue?

-h

On 12/6/06, Helmut Granda [EMAIL PROTECTED] wrote:

 Thanks! I found that last night too and it is exactly what I was looking
 for.

 On 12/6/06, shang liang [EMAIL PROTECTED]  wrote:
 
  http://www.phpclasses.org/browse/package/1653.html
 
  On 12/6/06, Helmut Granda [EMAIL PROTECTED] wrote:
   Maybe this is not the right list but I thought I would give it a
shot.
  
   Is there anyway to get file details like FPS, BG Color and such from
a
  SWF?
   with flash or with PHP?
  
   TIA for any ideas...
  
   helmut
   ___
   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
  
 
 
  --
  /*
  Bored, sometimes.
  */
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 



 --
 ...helmut
 helmutgranda.com




-- 
...helmut
helmutgranda.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] How to Embed Fonts for CSS Usage

2006-12-06 Thread Marc Hoffman
Thanks, Jim. I appreciate your help. Your post makes sense to me and 
I'll play with modifying the styleSheet object.


If anyone has examples of this, it would probably save me a couple of 
hours experimenting.


Thanks all,

Marc

At 11:24 AM 12/6/2006, you wrote:

You can do this.  I don't have time to do even pseudocode, but

Once you've loaded a sylesheet from a file, you can modify it.
Therefore, you can build a function to:

1.  Modify a property of your styleSheet object.
2.  Broadcast notification that it has been modified to all interested
text fields.  If you don't know what I mean, look into
EventDispatcher, AsBroadcaster, or the Observer Pattern in general.

Once each textfield is notified that there's been a change in its
stylesheet, it can trigger a function to reassign its stylesheet
property to that altered stylesheet.  Kind of like refreshing

Jim Kremens

On 12/6/06, Marc Hoffman [EMAIL PROTECTED] wrote:

Well, one question leads to another :)

First, thank you Jim -- I had avoided embedFonts thinking it would
embed the entire character set, but according to the Size Report it
embeds only those characters I embed in the dummy text fields. So now
it's working fine.

And now my next question: Is there a way to dynamically
increase/decrease type size when using CSS? Once the CSS is loaded
into the swf, can I modify its font-size settings? I can change type
size using textFormat, but since it seems you can't combine
textFormat with CSS, I lose the benefits of CSS (in particular the
ability to define a:link and a:hover).

thanks,
Marc

At 09:47 AM 12/6/2006, you wrote:
Just checking for gotchas...

Are you loading text into a textfield on the stage, or creating the
field dynamically?

Either way, set myTextField.embedFonts = true; if you haven't already...

Jim Kremens

On 12/6/06, Marc Hoffman [EMAIL PROTECTED] wrote:
I am having trouble getting Flash to embed a font that is 
designated by CSS.


In Flash:
- I create a textfield, create a loadVars and a StyleSheet, load the
CSS into the StyleSheet, and designate the style sheet as the style
for the text field. I then load text into the textfield (currently
using hard-coded AS, but eventually it will be xml).
- I also create dummy text fields to embed the fonts in Flash that
the CSS uses.
- I then generate the .swf for testing.

The CSS file is present and working.

When I play the swf, Everything works okay ONLY IF the font is on my
system. If I remove the font from my system and double-click the swf
again, the font is replaced by a system-resident font.

Is there a right way to embed a font in a swf so that when it is
called by CSS, it will display even if it's not on the user's system?

TIA,

Marc Hoffman


___
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


--
Jim Kremens
___
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



--
Jim Kremens
___
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] Compare Decimal Point Value?

2006-12-06 Thread Doug Coning
I'm scratching my head over this.  Not sure what I'm doing wrong?  I
need to compare a decimal value of a numeric field to see if it contains
a specific value of 0.3.  Here is some sample code:

var num:Number = 2.3;
var num2:Number = num - int(num);
var num3:Number = 0.3;

trace(num);  // 2.3
trace(num2); // 0.3
trace(num3); // 0.3
trace(num2 == num3);//  false
trace(num2  num3);//   false
trace(num2  num3);//   true

Why doesn't 0.3 equal 0.3?  I've replaced int with Math.floor(), and it
still doesn't work.  I need to get the value after the decimal point and
see if it equals 0.3.

Thanks for your help.

Doug Coning
Senior Web Development Programmer
FORUM Solutions
[EMAIL PROTECTED]
 
This e-mail and any attachment(s) are intended for the specified recipient(s) 
only and are legally protected.  If you have received this communication in 
error, please reply to sender's e-mail address with notification of the error 
and then destroy this message in all electronic and physical forms.
___
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] File-name operand bug workaround

2006-12-06 Thread T. Michael Keesey

On 12/6/06, Mick G [EMAIL PROTECTED] wrote:

This bug is actually more weird than you would think - it's not the
passing of a string with a hypen that is causing the problem - it's
simply a SWF with a hyphen calling any externalInterface call.


Whoops, I guess I should have read the TechNote first.

Seems odd to me that ExternalInterface calls would reference the
filename, not the object id Can you dynamically change the param
name=movie value=XXX/ value attribute with JavaScript, perhaps?
(Or would that reload the SWF?)
--
T. Michael Keesey
The Dinosauricon: http://dino.lm.com
Parry  Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Compare Decimal Point Value?

2006-12-06 Thread T. Michael Keesey

In Flash 9, I get this for the traces:
2.3
0.2998
0.3
false
false
true

Good old-fashioned floating point precision error. Instead of testing
if they are equal, You could test if the difference between them is
very small, e.g.:

trace(Math.abs(num2 - num3)  0.1); // true

On 12/6/06, Doug Coning [EMAIL PROTECTED] wrote:

I'm scratching my head over this.  Not sure what I'm doing wrong?  I
need to compare a decimal value of a numeric field to see if it contains
a specific value of 0.3.  Here is some sample code:

var num:Number = 2.3;
var num2:Number = num - int(num);
var num3:Number = 0.3;

trace(num);  // 2.3
trace(num2); // 0.3
trace(num3); // 0.3
trace(num2 == num3);//  false
trace(num2  num3);//   false
trace(num2  num3);//   true

Why doesn't 0.3 equal 0.3?  I've replaced int with Math.floor(), and it
still doesn't work.  I need to get the value after the decimal point and
see if it equals 0.3.

Thanks for your help.

Doug Coning
Senior Web Development Programmer
FORUM Solutions
[EMAIL PROTECTED]

This e-mail and any attachment(s) are intended for the specified recipient(s) only and 
are legally protected.  If you have received this communication in error, please 
reply to sender's e-mail address with notification of the error and then 
destroy this message in all electronic and physical forms.
___
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




--
T. Michael Keesey
The Dinosauricon: http://dino.lm.com
Parry  Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] problem with function access into class

2006-12-06 Thread Fratiman Vladut
Hi!
I have this class:
class LoadVars2 extends LoadVars {

  function LoadVars2() {
super();
  }

  function populate(){
   ...
  my_xml.onLoad = function(){
  //code for test
  }
  }
  
  private function test(){
 trace(ok);
  }

}

If i try to access test function before my_xml.onLoad, all works, but
when i try to access into onLoad function body (after code for test
comment), fail.
How i can resolve that ?

___
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] Compare Decimal Point Value?

2006-12-06 Thread Doug Coning
Is there a better way to get the decimal value if flash is returning
.299?

The decimal value will always be either .1, .2 or .3.  It will not
exceed that.

I just need to test for a .3 value.

Any ideas?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of T.
Michael Keesey
Sent: Wednesday, December 06, 2006 3:23 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Compare Decimal Point Value?

In Flash 9, I get this for the traces:
2.3
0.2998
0.3
false
false
true

Good old-fashioned floating point precision error. Instead of testing
if they are equal, You could test if the difference between them is
very small, e.g.:

trace(Math.abs(num2 - num3)  0.1); // true

On 12/6/06, Doug Coning [EMAIL PROTECTED] wrote:
 I'm scratching my head over this.  Not sure what I'm doing wrong?  I
 need to compare a decimal value of a numeric field to see if it
contains
 a specific value of 0.3.  Here is some sample code:

 var num:Number = 2.3;
 var num2:Number = num - int(num);
 var num3:Number = 0.3;

 trace(num);  // 2.3
 trace(num2); // 0.3
 trace(num3); // 0.3
 trace(num2 == num3);//  false
 trace(num2  num3);//   false
 trace(num2  num3);//   true

 Why doesn't 0.3 equal 0.3?  I've replaced int with Math.floor(), and
it
 still doesn't work.  I need to get the value after the decimal point
and
 see if it equals 0.3.

 Thanks for your help.

 Doug Coning
 Senior Web Development Programmer
 FORUM Solutions
 [EMAIL PROTECTED]

 This e-mail and any attachment(s) are intended for the specified
recipient(s) only and are legally protected.  If you have received this
communication in error, please reply to sender's e-mail address with
notification of the error and then destroy this message in all
electronic and physical forms.
 ___
 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



-- 
T. Michael Keesey
The Dinosauricon: http://dino.lm.com
Parry  Carney: http://parryandcarney.com
ISPN Forum: http://www.phylonames.org/forum/
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
 
This e-mail and any attachment(s) are intended for the specified recipient(s) 
only and are legally protected.  If you have received this communication in 
error, please reply to sender's e-mail address with notification of the error 
and then destroy this message in all electronic and physical forms.
___
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] Compare Decimal Point Value?

2006-12-06 Thread Steven Sacks | BLITZ
Have you tried casting them as Strings and comparing those?

 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of T. Michael Keesey
 Sent: Wednesday, December 06, 2006 12:23 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Compare Decimal Point Value?
 
 In Flash 9, I get this for the traces:
 2.3
 0.2998
 0.3
 false
 false
 true
 
 Good old-fashioned floating point precision error. Instead of 
 testing if they are equal, You could test if the difference 
 between them is very small, e.g.:
 
 trace(Math.abs(num2 - num3)  0.1); // true
 
 On 12/6/06, Doug Coning [EMAIL PROTECTED] wrote:
  I'm scratching my head over this.  Not sure what I'm doing 
 wrong?  I 
  need to compare a decimal value of a numeric field to see if it 
  contains a specific value of 0.3.  Here is some sample code:
 
  var num:Number = 2.3;
  var num2:Number = num - int(num);
  var num3:Number = 0.3;
 
  trace(num);  // 2.3
  trace(num2); // 0.3
  trace(num3); // 0.3
  trace(num2 == num3);//  false
  trace(num2  num3);//   false
  trace(num2  num3);//   true
 
  Why doesn't 0.3 equal 0.3?  I've replaced int with 
 Math.floor(), and 
  it still doesn't work.  I need to get the value after the decimal 
  point and see if it equals 0.3.
 
  Thanks for your help.
 
  Doug Coning
  Senior Web Development Programmer
  FORUM Solutions
  [EMAIL PROTECTED]
 
  This e-mail and any attachment(s) are intended for the 
 specified recipient(s) only and are legally protected.  If 
 you have received this communication in error, please reply 
 to sender's e-mail address with notification of the error 
 and then destroy this message in all electronic and physical forms.
  ___
  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
 
 
 
 -- 
 T. Michael Keesey
 The Dinosauricon: http://dino.lm.com
 Parry  Carney: http://parryandcarney.com
 ISPN Forum: http://www.phylonames.org/forum/
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
 
___
Flashcoders@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] Compare Decimal Point Value?

2006-12-06 Thread Steven Sacks | BLITZ
Math.round(myNum * 10);

:)


 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Doug Coning
 Sent: Wednesday, December 06, 2006 12:32 PM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Compare Decimal Point Value?
 
 Is there a better way to get the decimal value if flash is 
 returning .299?
 
 The decimal value will always be either .1, .2 or .3.  It 
 will not exceed that.
 
 I just need to test for a .3 value.
 
 Any ideas?
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of T.
 Michael Keesey
 Sent: Wednesday, December 06, 2006 3:23 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Compare Decimal Point Value?
 
 In Flash 9, I get this for the traces:
 2.3
 0.2998
 0.3
 false
 false
 true
 
 Good old-fashioned floating point precision error. Instead of 
 testing if they are equal, You could test if the difference 
 between them is very small, e.g.:
 
 trace(Math.abs(num2 - num3)  0.1); // true
 
 On 12/6/06, Doug Coning [EMAIL PROTECTED] wrote:
  I'm scratching my head over this.  Not sure what I'm doing 
 wrong?  I 
  need to compare a decimal value of a numeric field to see if it
 contains
  a specific value of 0.3.  Here is some sample code:
 
  var num:Number = 2.3;
  var num2:Number = num - int(num);
  var num3:Number = 0.3;
 
  trace(num);  // 2.3
  trace(num2); // 0.3
  trace(num3); // 0.3
  trace(num2 == num3);//  false
  trace(num2  num3);//   false
  trace(num2  num3);//   true
 
  Why doesn't 0.3 equal 0.3?  I've replaced int with Math.floor(), and
 it
  still doesn't work.  I need to get the value after the decimal point
 and
  see if it equals 0.3.
 
  Thanks for your help.
 
  Doug Coning
  Senior Web Development Programmer
  FORUM Solutions
  [EMAIL PROTECTED]
 
  This e-mail and any attachment(s) are intended for the specified
 recipient(s) only and are legally protected.  If you have 
 received this communication in error, please reply to 
 sender's e-mail address with notification of the error and 
 then destroy this message in all electronic and physical forms.
  ___
  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
 
 
 
 -- 
 T. Michael Keesey
 The Dinosauricon: http://dino.lm.com
 Parry  Carney: http://parryandcarney.com
 ISPN Forum: http://www.phylonames.org/forum/
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
  
 This e-mail and any attachment(s) are intended for the 
 specified recipient(s) only and are legally protected.  If 
 you have received this communication in error, please reply 
 to sender's e-mail address with notification of the error 
 and then destroy this message in all electronic and physical forms.
 ___
 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] Compare Decimal Point Value?

2006-12-06 Thread Doug Coning
Yeah, I tried Math.round, but the floating point issue remains.
Math.round does remove the decimal values, but will round it.  That's
why I was using Math.floor.

In other languages that I've worked with, abs or absolute actually
returns the whole number and truncates the decimal value.  I wished
flash's Math.abs would remove a whole number...

Thanks and good suggestion in casting as a string.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Sacks | BLITZ
Sent: Wednesday, December 06, 2006 3:39 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Compare Decimal Point Value?

Math.round(myNum * 10);

:)


 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Doug Coning
 Sent: Wednesday, December 06, 2006 12:32 PM
 To: Flashcoders mailing list
 Subject: RE: [Flashcoders] Compare Decimal Point Value?
 
 Is there a better way to get the decimal value if flash is 
 returning .299?
 
 The decimal value will always be either .1, .2 or .3.  It 
 will not exceed that.
 
 I just need to test for a .3 value.
 
 Any ideas?
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of T.
 Michael Keesey
 Sent: Wednesday, December 06, 2006 3:23 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Compare Decimal Point Value?
 
 In Flash 9, I get this for the traces:
 2.3
 0.2998
 0.3
 false
 false
 true
 
 Good old-fashioned floating point precision error. Instead of 
 testing if they are equal, You could test if the difference 
 between them is very small, e.g.:
 
 trace(Math.abs(num2 - num3)  0.1); // true
 
 On 12/6/06, Doug Coning [EMAIL PROTECTED] wrote:
  I'm scratching my head over this.  Not sure what I'm doing 
 wrong?  I 
  need to compare a decimal value of a numeric field to see if it
 contains
  a specific value of 0.3.  Here is some sample code:
 
  var num:Number = 2.3;
  var num2:Number = num - int(num);
  var num3:Number = 0.3;
 
  trace(num);  // 2.3
  trace(num2); // 0.3
  trace(num3); // 0.3
  trace(num2 == num3);//  false
  trace(num2  num3);//   false
  trace(num2  num3);//   true
 
  Why doesn't 0.3 equal 0.3?  I've replaced int with Math.floor(), and
 it
  still doesn't work.  I need to get the value after the decimal point
 and
  see if it equals 0.3.
 
  Thanks for your help.
 
  Doug Coning
  Senior Web Development Programmer
  FORUM Solutions
  [EMAIL PROTECTED]
 
  This e-mail and any attachment(s) are intended for the specified
 recipient(s) only and are legally protected.  If you have 
 received this communication in error, please reply to 
 sender's e-mail address with notification of the error and 
 then destroy this message in all electronic and physical forms.
  ___
  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
 
 
 
 -- 
 T. Michael Keesey
 The Dinosauricon: http://dino.lm.com
 Parry  Carney: http://parryandcarney.com
 ISPN Forum: http://www.phylonames.org/forum/
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
  
 This e-mail and any attachment(s) are intended for the 
 specified recipient(s) only and are legally protected.  If 
 you have received this communication in error, please reply 
 to sender's e-mail address with notification of the error 
 and then destroy this message in all electronic and physical forms.
 ___
 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
 
This e-mail and any attachment(s) are intended for the specified recipient(s) 
only and are legally protected.  If you have received this communication in 
error, please reply to sender's e-mail address with notification of the error 
and then destroy this message in all electronic and physical forms.

[Flashcoders] Re: Flashcoders Digest, Vol 23, Issue 13

2006-12-06 Thread John Olson

Another way to tackle it as well is to split it and compare the 2nd element
of the split array.

var num:Number = 2.3;
var split:Array = String(num).split(.);
trace(3 == split[1]);


On 12/6/06, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:


Message: 21
Date: Wed, 6 Dec 2006 12:22:43 -0800
From: T. Michael Keesey [EMAIL PROTECTED]
Subject: Re: [Flashcoders] Compare Decimal Point Value?
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Message-ID:
   [EMAIL PROTECTED]
Content-Type: text/plain; charset=UTF-8; format=flowed

In Flash 9, I get this for the traces:
2.3
0.2998
0.3
false
false
true

Good old-fashioned floating point precision error. Instead of testing
if they are equal, You could test if the difference between them is
very small, e.g.:

trace(Math.abs(num2 - num3)  0.1); // true

On 12/6/06, Doug Coning [EMAIL PROTECTED] wrote:
 I'm scratching my head over this.  Not sure what I'm doing wrong?  I
 need to compare a decimal value of a numeric field to see if it contains
 a specific value of 0.3.  Here is some sample code:

 var num:Number = 2.3;
 var num2:Number = num - int(num);
 var num3:Number = 0.3;

 trace(num);  // 2.3
 trace(num2); // 0.3
 trace(num3); // 0.3
 trace(num2 == num3);//  false
 trace(num2  num3);//   false
 trace(num2  num3);//   true

 Why doesn't 0.3 equal 0.3?  I've replaced int with Math.floor(), and it
 still doesn't work.  I need to get the value after the decimal point and
 see if it equals 0.3.

 Thanks for your help.

 Doug Coning
 Senior Web Development Programmer
 FORUM Solutions
 [EMAIL PROTECTED]


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Re: Flashcoders Digest, Vol 23, Issue 13

2006-12-06 Thread Doug Coning
Excellent suggestion.  Didn't think about splitting into an array.  Good
idea.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John
Olson
Sent: Wednesday, December 06, 2006 3:48 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Re: Flashcoders Digest, Vol 23, Issue 13

Another way to tackle it as well is to split it and compare the 2nd
element
of the split array.

var num:Number = 2.3;
var split:Array = String(num).split(.);
trace(3 == split[1]);


On 12/6/06, [EMAIL PROTECTED] 
[EMAIL PROTECTED] wrote:

 Message: 21
 Date: Wed, 6 Dec 2006 12:22:43 -0800
 From: T. Michael Keesey [EMAIL PROTECTED]
 Subject: Re: [Flashcoders] Compare Decimal Point Value?
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Message-ID:
[EMAIL PROTECTED]
 Content-Type: text/plain; charset=UTF-8; format=flowed

 In Flash 9, I get this for the traces:
 2.3
 0.2998
 0.3
 false
 false
 true

 Good old-fashioned floating point precision error. Instead of testing
 if they are equal, You could test if the difference between them is
 very small, e.g.:

 trace(Math.abs(num2 - num3)  0.1); // true

 On 12/6/06, Doug Coning [EMAIL PROTECTED] wrote:
  I'm scratching my head over this.  Not sure what I'm doing wrong?  I
  need to compare a decimal value of a numeric field to see if it
contains
  a specific value of 0.3.  Here is some sample code:
 
  var num:Number = 2.3;
  var num2:Number = num - int(num);
  var num3:Number = 0.3;
 
  trace(num);  // 2.3
  trace(num2); // 0.3
  trace(num3); // 0.3
  trace(num2 == num3);//  false
  trace(num2  num3);//   false
  trace(num2  num3);//   true
 
  Why doesn't 0.3 equal 0.3?  I've replaced int with Math.floor(), and
it
  still doesn't work.  I need to get the value after the decimal point
and
  see if it equals 0.3.
 
  Thanks for your help.
 
  Doug Coning
  Senior Web Development Programmer
  FORUM Solutions
  [EMAIL PROTECTED]

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
 
This e-mail and any attachment(s) are intended for the specified recipient(s) 
only and are legally protected.  If you have received this communication in 
error, please reply to sender's e-mail address with notification of the error 
and then destroy this message in all electronic and physical forms.
___
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] Q: Performance of AS3 vs Java

2006-12-06 Thread eric dolecki

I'm not too keen on seeing 3D interfaces and spinning/whirling items anytime
soon. That includes product items for the most part too.

- e.

On 12/6/06, Merrill, Jason [EMAIL PROTECTED] wrote:


That rocks.  I'm blown away.  I wonder if Adobe is working 3D into Flash
IDE 9.  Microsoft just released WPF/E and Expression Blend will be
available for purchase in Q2 2007 - the Flash competitor that does 3D.
I wonder if the Flash 9 IDE will be available before - say Q1 2007...

Jason Merrill
Bank of America
Learning  Organizational Effectiveness







-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Christian Giordano
Sent: Wednesday, December 06, 2006 1:54 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Q: Performance of AS3 vs Java

slangeberg wrote:
 Regarding performance, FP9 is showing some nice 3D potential (for a
 1-2meg
 VM):

 http://www.papervision3d.org/demos/seahorse/

Papervision is for Flash 8 and as far as i know, in terms of
graphics, the performance between AS2 + FP8 and AS3 + FP9 are
almost the same.

Then of course all the Math computations (frequently used in
3D) are faster. So yes, probably for 3D AS3 could help. I'm
still waiting to make proper tests though.


Best, chr

--
___
{ Christian Giordano's site and blog @ http://nuthinking.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] Re: Flashcoders Digest, Vol 23, Issue 13

2006-12-06 Thread Steven Sacks | BLITZ
Yup, there are all kinds of things you can do if you cast it as a
String.

As far as the rounding thing goes, you want it to round.

0.2999 is supposed to be 0.3

If you multiply 0.29 by 10, you get 2.9.

You round it you get 3.

You divide by 10 you get .3.

myNum = Math.round(myNum * 10) / 10;

That should work and get rid of trailing 9s.

-Steven
___
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] problem with function access into class

2006-12-06 Thread eka

Hello :)

Your code is cut ??? where is the declaration of the xml etc ?

You can try to use mx.utils.Delegate to create a proxy between the onLoad
event of the reference and a method in your class with the scope of the
current instance :

import mx.utils.Delegate ;

class Loader
{

   /**
* Creates a new Loader.
*/
   function Loader()
   {
   super() ;

   lv = new LoadVars() ;

   x = new XML() ;
   x.onLoad = Delegate.create(this, _test) ;

   }

   /**
* The LoadVars reference of this loader.
*/
   public var lv:LoadVars ;

   /**
* The XML reference of this loader.
*/
   public var x:XML ;

   /**
* Trigger the loader.
*/
   public function trigger( url ):Void
   {
   lv.sendAndLoad( url , x ) ;
   }

   /**
* Returns the string representation of the object.
*/
   public function toString():String
   {
   return [Loader] ;
   }

   /**
* Internal method to test the result
*/
   private function _test( success:Boolean )
   {
   trace(  + this +  test :  + success);
   trace(  + this +  xml  :  + x ) ;
   // continue your test here !
   }

}

EKA+ :)


2006/12/6, Fratiman Vladut [EMAIL PROTECTED]:


Hi!
I have this class:
class LoadVars2 extends LoadVars {

  function LoadVars2() {
super();
  }

  function populate(){
   ...
  my_xml.onLoad = function(){
  //code for test
  }
  }

  private function test(){
 trace(ok);
  }

}

If i try to access test function before my_xml.onLoad, all works, but
when i try to access into onLoad function body (after code for test
comment), fail.
How i can resolve that ?

___
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] Compare Decimal Point Value?

2006-12-06 Thread T. Michael Keesey

Couple of ways.

Round to the nearest tenth.
Math.round(num * 10) / 10

Direct test for 3 in the tenths place:
Math.round(num * 10) % 10 == 3

On 12/6/06, Doug Coning [EMAIL PROTECTED] wrote:

Is there a better way to get the decimal value if flash is returning
.299?

The decimal value will always be either .1, .2 or .3.  It will not
exceed that.

I just need to test for a .3 value.

Any ideas?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of T.
Michael Keesey
Sent: Wednesday, December 06, 2006 3:23 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Compare Decimal Point Value?

In Flash 9, I get this for the traces:
2.3
0.2998
0.3
false
false
true

Good old-fashioned floating point precision error. Instead of testing
if they are equal, You could test if the difference between them is
very small, e.g.:

trace(Math.abs(num2 - num3)  0.1); // true

On 12/6/06, Doug Coning [EMAIL PROTECTED] wrote:
 I'm scratching my head over this.  Not sure what I'm doing wrong?  I
 need to compare a decimal value of a numeric field to see if it
contains
 a specific value of 0.3.  Here is some sample code:

 var num:Number = 2.3;
 var num2:Number = num - int(num);
 var num3:Number = 0.3;

 trace(num);  // 2.3
 trace(num2); // 0.3
 trace(num3); // 0.3
 trace(num2 == num3);//  false
 trace(num2  num3);//   false
 trace(num2  num3);//   true

 Why doesn't 0.3 equal 0.3?  I've replaced int with Math.floor(), and
it
 still doesn't work.  I need to get the value after the decimal point
and
 see if it equals 0.3.

 Thanks for your help.

___
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] Q: Performance of AS3 vs Java

2006-12-06 Thread slangeberg

No, she be AS3. That be why she so fast!:

http://blog.papervision3d.org/2006/12/04/papervision3d-as3-demo/

-Scott


On 12/6/06, Christian Giordano [EMAIL PROTECTED] wrote:


slangeberg wrote:
 Regarding performance, FP9 is showing some nice 3D potential (for a
1-2meg
 VM):

 http://www.papervision3d.org/demos/seahorse/

Papervision is for Flash 8 and as far as i know, in terms of graphics,
the performance between AS2 + FP8 and AS3 + FP9 are almost the same.

Then of course all the Math computations (frequently used in 3D) are
faster. So yes, probably for 3D AS3 could help. I'm still waiting to
make proper tests though.


Best, chr

--
___
{ Christian Giordano's site and blog @ http://nuthinking.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





--

: : ) Scott
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Q: Performance of AS3 vs Java

2006-12-06 Thread slangeberg

WPF/E will NOT have 3D support. At least not for a while. It's supposed to
be cross-platform, so hardware acceleration would be problematic. At this
time, as far as I'm aware, WPF only supports 3D on the Windows desktop.

Scott

On 12/6/06, Merrill, Jason [EMAIL PROTECTED] wrote:


That rocks.  I'm blown away.  I wonder if Adobe is working 3D into Flash
IDE 9.  Microsoft just released WPF/E and Expression Blend will be
available for purchase in Q2 2007 - the Flash competitor that does 3D.
I wonder if the Flash 9 IDE will be available before - say Q1 2007...

Jason Merrill
Bank of America
Learning  Organizational Effectiveness







-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Christian Giordano
Sent: Wednesday, December 06, 2006 1:54 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Q: Performance of AS3 vs Java

slangeberg wrote:
 Regarding performance, FP9 is showing some nice 3D potential (for a
 1-2meg
 VM):

 http://www.papervision3d.org/demos/seahorse/

Papervision is for Flash 8 and as far as i know, in terms of
graphics, the performance between AS2 + FP8 and AS3 + FP9 are
almost the same.

Then of course all the Math computations (frequently used in
3D) are faster. So yes, probably for 3D AS3 could help. I'm
still waiting to make proper tests though.


Best, chr

--
___
{ Christian Giordano's site and blog @ http://nuthinking.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





--

: : ) Scott
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Remoting Problems

2006-12-06 Thread Jeff Thompson
Has anyone had problems with remoting working on some machines but not
others? I had friends pull up the site (http://carolinaradiology.com) in
different cities and it worked on some but not others.

The site worked fine during testing but when I pointed the DNS I started
having problems. I had to change the path to the remoting gateway and to my
cfc¹s but I¹ve triple checked my changes. And again, it¹s works on some
machines but not others.

The site loads a bunch of movies so I¹ll just include the code and path to
one of Œem.

Http://carolinaradiology.com/doctorsText.swf


stop();

import mx.remoting.*;
import mx.remoting.debug.NetDebug;
NetDebug.initialize();

if (initialized == null) {
var initialized = true;

NetServices.setDefaultGatewayUrl(http://carolinaradiology.com/flashservices
/gateway);
var gw = NetServices.createGatewayConnection();
var doctors = gw.getService(getDocs, this);
trace (connected);
}



function getTheText_Result(result) {
//trace (result.getItemAt(0).thetext);
//trace (result.getLength());
_root.mainText.text = result.getItemAt(0).thetext;

this.onStatus = function(error)
{
trace(Error :  + error.description);
status.text = Error :  + error.description;
}

}



function getFopDetails_Result(result) {
var practice_title:String = result.getItemAt(0).emptitle;
var practice_description:String = result.getItemAt(0).empdesc;
_root.docCard.docName.text = result.getItemAt(0).emptitle;
_root.docCard.contentMain.docDetailTxt.htmlText = practice_description;

trace (practice_description);

}



function getDocDetails_Result(result) {
var doctor:String = result.getItemAt(0).doctorsname;
var Medical:String = result.getItemAt(0).Medical;
var Residency:String = result.getItemAt(0).Residency;
var Fellowship:String = result.getItemAt(0).Fellowship;
var BoardCert:String = result.getItemAt(0).BoardCertification;
var Extra1:String = result.getItemAt(0).Extra1;
var Extra2:String = result.getItemAt(0).Extra2;
var Extra3:String = result.getItemAt(0).Extra3;
var Extra1title:String = result.getItemAt(0).Extra1title;
var Extra2title:String = result.getItemAt(0).Extra2title;
var Extra3title:String = result.getItemAt(0).Extra3title;

if (docCard._visible == false){
docCard._visible = true;
}

//Set Doctor's Name text
_root.docCard.docName.text = result.getItemAt(0).doctorsname;

//Set Doctor Details
if (Medical != ) {
Medical = font color='#142F60' weight='bold'Medical:  /font +
Medical + br;
}
if (Residency != ) {
Residency = font color='#142F60' weight='bold'Residency:
/font + Residency + br;
}
if (Fellowship != ) {
Fellowship = font color='#142F60' weight='bold'Fellowship:  /font
+ Fellowship + br;
}
if (BoardCert != ) {
BoardCert = font color='#142F60' weight='bold'Board
Certifications:  /font + BoardCert + br
}
if (Extra1 != ) {
Extra1 = font color='#142F60' weight='bold' + Extra1title +
/font + font color='#142F60' weight='bold':  /font + Extra1 +
br;
}
if (Extra2 != ) {
Extra2 = Extra2title + :   + Extra2 + br;
}
if (Extra3 != ) {
Extra3 = Extra3title + :   + Extra3 + br;
}

var docDetails:String = Medical + Residency + Fellowship + BoardCert +
Extra1 + Extra2 + Extra3;

_root.docCard.contentMain.docDetailTxt.htmlText = docDetails;
//trace (docDetails);

//trace (result.getItemAt(0).Residency);
//trace (result.length);
}


var docTreeListener:Object = new Object();
docTreeListener.change = function(evt:Object) {

var node = docTreeMC.docTree.selectedItem;
///trace(selected node is: +evt.target.selectedNode);
fopID = node.attributes.fopID;
docID = node.attributes.docID;
doctors.getDocDetails(docID);


if (fopID != undefined) {
docCard._visible = true;
doctors.getFopDetails(fopID);
 trace(fopID);
}


/*if (docID == undefined) {
docCard._visible = false;
} else {
docCard._visible = true;
}*/
}

docTreeMC.docTree.addEventListener(change, docTreeListener);


//doctors.getDocDetails(54);
docCard._visible = false;
_root.doctors.getTheText(12);



___
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] Compare Decimal Point Value?

2006-12-06 Thread Yehia Shouman

Math.round(num)*10 ==3
should work

On 12/6/06, T. Michael Keesey [EMAIL PROTECTED] wrote:


Couple of ways.

Round to the nearest tenth.
Math.round(num * 10) / 10

Direct test for 3 in the tenths place:
Math.round(num * 10) % 10 == 3

On 12/6/06, Doug Coning [EMAIL PROTECTED] wrote:
 Is there a better way to get the decimal value if flash is returning
 .299?

 The decimal value will always be either .1, .2 or .3.  It will not
 exceed that.

 I just need to test for a .3 value.

 Any ideas?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of T.
 Michael Keesey
 Sent: Wednesday, December 06, 2006 3:23 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Compare Decimal Point Value?

 In Flash 9, I get this for the traces:
 2.3
 0.2998
 0.3
 false
 false
 true

 Good old-fashioned floating point precision error. Instead of testing
 if they are equal, You could test if the difference between them is
 very small, e.g.:

 trace(Math.abs(num2 - num3)  0.1); // true

 On 12/6/06, Doug Coning [EMAIL PROTECTED] wrote:
  I'm scratching my head over this.  Not sure what I'm doing wrong?  I
  need to compare a decimal value of a numeric field to see if it
 contains
  a specific value of 0.3.  Here is some sample code:
 
  var num:Number = 2.3;
  var num2:Number = num - int(num);
  var num3:Number = 0.3;
 
  trace(num);  // 2.3
  trace(num2); // 0.3
  trace(num3); // 0.3
  trace(num2 == num3);//  false
  trace(num2  num3);//   false
  trace(num2  num3);//   true
 
  Why doesn't 0.3 equal 0.3?  I've replaced int with Math.floor(), and
 it
  still doesn't work.  I need to get the value after the decimal point
 and
  see if it equals 0.3.
 
  Thanks for your help.
___
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] Remoting Problems

2006-12-06 Thread Yehia Shouman

http://livedocs.macromedia.com/flashremoting/mx2004/actionscript_api_reference/mx/remoting/debug/NetDebug.html


On 12/6/06, Jeff Thompson [EMAIL PROTECTED] wrote:


Has anyone had problems with remoting working on some machines but not
others? I had friends pull up the site (http://carolinaradiology.com) in
different cities and it worked on some but not others.

The site worked fine during testing but when I pointed the DNS I started
having problems. I had to change the path to the remoting gateway and to
my
cfc¹s but I¹ve triple checked my changes. And again, it¹s works on some
machines but not others.

The site loads a bunch of movies so I¹ll just include the code and path to
one of Œem.

Http://carolinaradiology.com/doctorsText.swf


stop();

import mx.remoting.*;
import mx.remoting.debug.NetDebug;
NetDebug.initialize();

if (initialized == null) {
var initialized = true;

NetServices.setDefaultGatewayUrl(
http://carolinaradiology.com/flashservices
/gateway);
var gw = NetServices.createGatewayConnection();
var doctors = gw.getService(getDocs, this);
trace (connected);
}



function getTheText_Result(result) {
//trace (result.getItemAt(0).thetext);
//trace (result.getLength());
_root.mainText.text = result.getItemAt(0).thetext;

this.onStatus = function(error)
{
trace(Error :  + error.description);
status.text = Error :  + error.description;
}

}



function getFopDetails_Result(result) {
var practice_title:String = result.getItemAt(0).emptitle;
var practice_description:String = result.getItemAt(0).empdesc;
_root.docCard.docName.text = result.getItemAt(0).emptitle;
_root.docCard.contentMain.docDetailTxt.htmlText =
practice_description;

trace (practice_description);

}



function getDocDetails_Result(result) {
var doctor:String = result.getItemAt(0).doctorsname;
var Medical:String = result.getItemAt(0).Medical;
var Residency:String = result.getItemAt(0).Residency;
var Fellowship:String = result.getItemAt(0).Fellowship;
var BoardCert:String = result.getItemAt(0).BoardCertification;
var Extra1:String = result.getItemAt(0).Extra1;
var Extra2:String = result.getItemAt(0).Extra2;
var Extra3:String = result.getItemAt(0).Extra3;
var Extra1title:String = result.getItemAt(0).Extra1title;
var Extra2title:String = result.getItemAt(0).Extra2title;
var Extra3title:String = result.getItemAt(0).Extra3title;

if (docCard._visible == false){
docCard._visible = true;
}

//Set Doctor's Name text
_root.docCard.docName.text = result.getItemAt(0).doctorsname;

//Set Doctor Details
if (Medical != ) {
Medical = font color='#142F60' weight='bold'Medical:  /font
+
Medical + br;
}
if (Residency != ) {
Residency = font color='#142F60' weight='bold'Residency:
/font + Residency + br;
}
if (Fellowship != ) {
Fellowship = font color='#142F60'
weight='bold'Fellowship:  /font
+ Fellowship + br;
}
if (BoardCert != ) {
BoardCert = font color='#142F60' weight='bold'Board
Certifications:  /font + BoardCert + br
}
if (Extra1 != ) {
Extra1 = font color='#142F60' weight='bold' + Extra1title +
/font + font color='#142F60' weight='bold':  /font + Extra1 +
br;
}
if (Extra2 != ) {
Extra2 = Extra2title + :   + Extra2 + br;
}
if (Extra3 != ) {
Extra3 = Extra3title + :   + Extra3 + br;
}

var docDetails:String = Medical + Residency + Fellowship + BoardCert +
Extra1 + Extra2 + Extra3;

_root.docCard.contentMain.docDetailTxt.htmlText = docDetails;
//trace (docDetails);

//trace (result.getItemAt(0).Residency);
//trace (result.length);
}


var docTreeListener:Object = new Object();
docTreeListener.change = function(evt:Object) {

var node = docTreeMC.docTree.selectedItem;
///trace(selected node is: +evt.target.selectedNode);
fopID = node.attributes.fopID;
docID = node.attributes.docID;
doctors.getDocDetails(docID);


if (fopID != undefined) {
docCard._visible = true;
doctors.getFopDetails(fopID);
 trace(fopID);
}


/*if (docID == undefined) {
docCard._visible = false;
} else {
docCard._visible = true;
}*/
}

docTreeMC.docTree.addEventListener(change, docTreeListener);


//doctors.getDocDetails(54);
docCard._visible = false;
_root.doctors.getTheText(12);



___
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 

[Flashcoders] Class seemingly left out of compile

2006-12-06 Thread Matthew Ganz
hi. 

it appears that one of my classes that i've been updating in eclipse is not 
being included in the compile i do from the flash IDE. 

both IDEs point to the same project folder. 

has anyone experienced this before? i'm a little at a loss. 

thanks. -- matt.
___
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] Remoting Problems

2006-12-06 Thread Robert Chyko
Does it make a difference if you preface the domain with www?

www.carolinaradiology.com vs carolinaradiology.com

You could run into problems that way if you are using a crossdomain.xml file I 
believe.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Thompson
Sent: Wednesday, December 06, 2006 4:50 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Remoting Problems


Has anyone had problems with remoting working on some machines but not others? 
I had friends pull up the site (http://carolinaradiology.com) in different 
cities and it worked on some but not others.

The site worked fine during testing but when I pointed the DNS I started having 
problems. I had to change the path to the remoting gateway and to my cfc¹s but 
I¹ve triple checked my changes. And again, it¹s works on some machines but not 
others.

The site loads a bunch of movies so I¹ll just include the code and path to one 
of Œem.

Http://carolinaradiology.com/doctorsText.swf


stop();

import mx.remoting.*;
import mx.remoting.debug.NetDebug;
NetDebug.initialize();

if (initialized == null) {
var initialized = true;

NetServices.setDefaultGatewayUrl(http://carolinaradiology.com/flashservices
/gateway);
var gw = NetServices.createGatewayConnection();
var doctors = gw.getService(getDocs, this);
trace (connected);
}



function getTheText_Result(result) {
//trace (result.getItemAt(0).thetext);
//trace (result.getLength());
_root.mainText.text = result.getItemAt(0).thetext;

this.onStatus = function(error)
{
trace(Error :  + error.description);
status.text = Error :  + error.description;
}

}



function getFopDetails_Result(result) {
var practice_title:String = result.getItemAt(0).emptitle;
var practice_description:String = result.getItemAt(0).empdesc;
_root.docCard.docName.text = result.getItemAt(0).emptitle;
_root.docCard.contentMain.docDetailTxt.htmlText = practice_description;

trace (practice_description);

}



function getDocDetails_Result(result) {
var doctor:String = result.getItemAt(0).doctorsname;
var Medical:String = result.getItemAt(0).Medical;
var Residency:String = result.getItemAt(0).Residency;
var Fellowship:String = result.getItemAt(0).Fellowship;
var BoardCert:String = result.getItemAt(0).BoardCertification;
var Extra1:String = result.getItemAt(0).Extra1;
var Extra2:String = result.getItemAt(0).Extra2;
var Extra3:String = result.getItemAt(0).Extra3;
var Extra1title:String = result.getItemAt(0).Extra1title;
var Extra2title:String = result.getItemAt(0).Extra2title;
var Extra3title:String = result.getItemAt(0).Extra3title;

if (docCard._visible == false){
docCard._visible = true;
}

//Set Doctor's Name text
_root.docCard.docName.text = result.getItemAt(0).doctorsname;

//Set Doctor Details
if (Medical != ) {
Medical = font color='#142F60' weight='bold'Medical:  /font + 
Medical + br;
}
if (Residency != ) {
Residency = font color='#142F60' weight='bold'Residency: /font + 
Residency + br;
}
if (Fellowship != ) {
Fellowship = font color='#142F60' weight='bold'Fellowship:  /font
+ Fellowship + br;
}
if (BoardCert != ) {
BoardCert = font color='#142F60' weight='bold'Board
Certifications:  /font + BoardCert + br
}
if (Extra1 != ) {
Extra1 = font color='#142F60' weight='bold' + Extra1title + 
/font + font color='#142F60' weight='bold':  /font + Extra1 + br;
}
if (Extra2 != ) {
Extra2 = Extra2title + :   + Extra2 + br;
}
if (Extra3 != ) {
Extra3 = Extra3title + :   + Extra3 + br;
}

var docDetails:String = Medical + Residency + Fellowship + BoardCert + 
Extra1 + Extra2 + Extra3;

_root.docCard.contentMain.docDetailTxt.htmlText = docDetails;
//trace (docDetails);

//trace (result.getItemAt(0).Residency);
//trace (result.length);
}


var docTreeListener:Object = new Object(); docTreeListener.change = 
function(evt:Object) {

var node = docTreeMC.docTree.selectedItem;
///trace(selected node is: +evt.target.selectedNode);
fopID = node.attributes.fopID;
docID = node.attributes.docID;
doctors.getDocDetails(docID);


if (fopID != undefined) {
docCard._visible = true;
doctors.getFopDetails(fopID);
 trace(fopID);
}


/*if (docID == undefined) {
docCard._visible = false;
} else {
docCard._visible = true;
}*/
}

docTreeMC.docTree.addEventListener(change, docTreeListener);


//doctors.getDocDetails(54);
docCard._visible = false;
_root.doctors.getTheText(12);



___
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

RE: [Flashcoders] Remoting Problems

2006-12-06 Thread Robert Chyko
Didn't scroll down and see that you had sample code... I'd bet money that it is 
because you don't have www in your gatway URL.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Thompson
Sent: Wednesday, December 06, 2006 4:50 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Remoting Problems


Has anyone had problems with remoting working on some machines but not others? 
I had friends pull up the site (http://carolinaradiology.com) in different 
cities and it worked on some but not others.

The site worked fine during testing but when I pointed the DNS I started having 
problems. I had to change the path to the remoting gateway and to my cfc¹s but 
I¹ve triple checked my changes. And again, it¹s works on some machines but not 
others.

The site loads a bunch of movies so I¹ll just include the code and path to one 
of Œem.

Http://carolinaradiology.com/doctorsText.swf


stop();

import mx.remoting.*;
import mx.remoting.debug.NetDebug;
NetDebug.initialize();

if (initialized == null) {
var initialized = true;

NetServices.setDefaultGatewayUrl(http://carolinaradiology.com/flashservices
/gateway);
var gw = NetServices.createGatewayConnection();
var doctors = gw.getService(getDocs, this);
trace (connected);
}



function getTheText_Result(result) {
//trace (result.getItemAt(0).thetext);
//trace (result.getLength());
_root.mainText.text = result.getItemAt(0).thetext;

this.onStatus = function(error)
{
trace(Error :  + error.description);
status.text = Error :  + error.description;
}

}



function getFopDetails_Result(result) {
var practice_title:String = result.getItemAt(0).emptitle;
var practice_description:String = result.getItemAt(0).empdesc;
_root.docCard.docName.text = result.getItemAt(0).emptitle;
_root.docCard.contentMain.docDetailTxt.htmlText = practice_description;

trace (practice_description);

}



function getDocDetails_Result(result) {
var doctor:String = result.getItemAt(0).doctorsname;
var Medical:String = result.getItemAt(0).Medical;
var Residency:String = result.getItemAt(0).Residency;
var Fellowship:String = result.getItemAt(0).Fellowship;
var BoardCert:String = result.getItemAt(0).BoardCertification;
var Extra1:String = result.getItemAt(0).Extra1;
var Extra2:String = result.getItemAt(0).Extra2;
var Extra3:String = result.getItemAt(0).Extra3;
var Extra1title:String = result.getItemAt(0).Extra1title;
var Extra2title:String = result.getItemAt(0).Extra2title;
var Extra3title:String = result.getItemAt(0).Extra3title;

if (docCard._visible == false){
docCard._visible = true;
}

//Set Doctor's Name text
_root.docCard.docName.text = result.getItemAt(0).doctorsname;

//Set Doctor Details
if (Medical != ) {
Medical = font color='#142F60' weight='bold'Medical:  /font + 
Medical + br;
}
if (Residency != ) {
Residency = font color='#142F60' weight='bold'Residency: /font + 
Residency + br;
}
if (Fellowship != ) {
Fellowship = font color='#142F60' weight='bold'Fellowship:  /font
+ Fellowship + br;
}
if (BoardCert != ) {
BoardCert = font color='#142F60' weight='bold'Board
Certifications:  /font + BoardCert + br
}
if (Extra1 != ) {
Extra1 = font color='#142F60' weight='bold' + Extra1title + 
/font + font color='#142F60' weight='bold':  /font + Extra1 + br;
}
if (Extra2 != ) {
Extra2 = Extra2title + :   + Extra2 + br;
}
if (Extra3 != ) {
Extra3 = Extra3title + :   + Extra3 + br;
}

var docDetails:String = Medical + Residency + Fellowship + BoardCert + 
Extra1 + Extra2 + Extra3;

_root.docCard.contentMain.docDetailTxt.htmlText = docDetails;
//trace (docDetails);

//trace (result.getItemAt(0).Residency);
//trace (result.length);
}


var docTreeListener:Object = new Object(); docTreeListener.change = 
function(evt:Object) {

var node = docTreeMC.docTree.selectedItem;
///trace(selected node is: +evt.target.selectedNode);
fopID = node.attributes.fopID;
docID = node.attributes.docID;
doctors.getDocDetails(docID);


if (fopID != undefined) {
docCard._visible = true;
doctors.getFopDetails(fopID);
 trace(fopID);
}


/*if (docID == undefined) {
docCard._visible = false;
} else {
docCard._visible = true;
}*/
}

docTreeMC.docTree.addEventListener(change, docTreeListener);


//doctors.getDocDetails(54);
docCard._visible = false;
_root.doctors.getTheText(12);



___
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 

[Flashcoders] Blaze PDF jpeg import

2006-12-06 Thread Bo Parker
I have a movie clip on stage that is loading in content. I am then  
taking a screenshot of the movie clip using the Bitmap Class and am  
curious how to get the screen capture into blazePDF. I have tried  
their forum to no avail and was curious if anyone here and tinkered  
with version 2.0 and figured out how to get the captured data into  
the blazePDF component to create a pdf. Thanks,


___
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] Remoting Problems

2006-12-06 Thread Jeff Thompson
Thanks for the quick responses. It was the www thing. What a brain fart.


On 12/6/06 5:18 PM, Robert Chyko [EMAIL PROTECTED] wrote:

 Does it make a difference if you preface the domain with www?
 
 www.carolinaradiology.com vs carolinaradiology.com
 
 You could run into problems that way if you are using a crossdomain.xml file I
 believe.
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Thompson
 Sent: Wednesday, December 06, 2006 4:50 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Remoting Problems
 
 
 Has anyone had problems with remoting working on some machines but not others?
 I had friends pull up the site (http://carolinaradiology.com) in different
 cities and it worked on some but not others.
 
 The site worked fine during testing but when I pointed the DNS I started
 having problems. I had to change the path to the remoting gateway and to my
 cfc¹s but I¹ve triple checked my changes. And again, it¹s works on some
 machines but not others.
 
 The site loads a bunch of movies so I¹ll just include the code and path to one
 of Œem.
 
 Http://carolinaradiology.com/doctorsText.swf
 
 
 stop();
 
 import mx.remoting.*;
 import mx.remoting.debug.NetDebug;
 NetDebug.initialize();
 
 if (initialized == null) {
 var initialized = true;
 
 NetServices.setDefaultGatewayUrl(http://carolinaradiology.com/flashservices
 /gateway);
 var gw = NetServices.createGatewayConnection();
 var doctors = gw.getService(getDocs, this);
 trace (connected);
 }
 
 
 
 function getTheText_Result(result) {
 //trace (result.getItemAt(0).thetext);
 //trace (result.getLength());
 _root.mainText.text = result.getItemAt(0).thetext;
 
 this.onStatus = function(error)
 {
 trace(Error :  + error.description);
 status.text = Error :  + error.description;
 }
 
 }
 
 
 
 function getFopDetails_Result(result) {
 var practice_title:String = result.getItemAt(0).emptitle;
 var practice_description:String = result.getItemAt(0).empdesc;
 _root.docCard.docName.text = result.getItemAt(0).emptitle;
 _root.docCard.contentMain.docDetailTxt.htmlText = practice_description;
 
 trace (practice_description);
 
 }
 
 
 
 function getDocDetails_Result(result) {
 var doctor:String = result.getItemAt(0).doctorsname;
 var Medical:String = result.getItemAt(0).Medical;
 var Residency:String = result.getItemAt(0).Residency;
 var Fellowship:String = result.getItemAt(0).Fellowship;
 var BoardCert:String = result.getItemAt(0).BoardCertification;
 var Extra1:String = result.getItemAt(0).Extra1;
 var Extra2:String = result.getItemAt(0).Extra2;
 var Extra3:String = result.getItemAt(0).Extra3;
 var Extra1title:String = result.getItemAt(0).Extra1title;
 var Extra2title:String = result.getItemAt(0).Extra2title;
 var Extra3title:String = result.getItemAt(0).Extra3title;
 
 if (docCard._visible == false){
 docCard._visible = true;
 }
 
 //Set Doctor's Name text
 _root.docCard.docName.text = result.getItemAt(0).doctorsname;
 
 //Set Doctor Details
 if (Medical != ) {
 Medical = font color='#142F60' weight='bold'Medical:  /font +
 Medical + br;
 }
 if (Residency != ) {
 Residency = font color='#142F60' weight='bold'Residency: /font +
 Residency + br;
 }
 if (Fellowship != ) {
 Fellowship = font color='#142F60' weight='bold'Fellowship:  /font
 + Fellowship + br;
 }
 if (BoardCert != ) {
 BoardCert = font color='#142F60' weight='bold'Board
 Certifications:  /font + BoardCert + br
 }
 if (Extra1 != ) {
 Extra1 = font color='#142F60' weight='bold' + Extra1title +
 /font + font color='#142F60' weight='bold':  /font + Extra1 +
 br;
 }
 if (Extra2 != ) {
 Extra2 = Extra2title + :   + Extra2 + br;
 }
 if (Extra3 != ) {
 Extra3 = Extra3title + :   + Extra3 + br;
 }
 
 var docDetails:String = Medical + Residency + Fellowship + BoardCert +
 Extra1 + Extra2 + Extra3;
 
 _root.docCard.contentMain.docDetailTxt.htmlText = docDetails;
 //trace (docDetails);
 
 //trace (result.getItemAt(0).Residency);
 //trace (result.length);
 }
 
 
 var docTreeListener:Object = new Object(); docTreeListener.change =
 function(evt:Object) {
 
 var node = docTreeMC.docTree.selectedItem;
 ///trace(selected node is: +evt.target.selectedNode);
 fopID = node.attributes.fopID;
 docID = node.attributes.docID;
 doctors.getDocDetails(docID);
 
 
 if (fopID != undefined) {
 docCard._visible = true;
 doctors.getFopDetails(fopID);
  trace(fopID);
 }
 
 
 /*if (docID == undefined) {
 docCard._visible = false;
 } else {
 docCard._visible = true;
 }*/
 }
 
 docTreeMC.docTree.addEventListener(change, docTreeListener);
 
 
 //doctors.getDocDetails(54);
 

Re: [Flashcoders] Q: Performance of AS3 vs Java

2006-12-06 Thread Dave Wood
I'm not too keen on seeing 3D interfaces and spinning/whirling  
items anytime

soon. That includes product items for the most part too.


No problem. Don't look:)

David
___
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] :: anyone passed flash 8 certification exam?::

2006-12-06 Thread Orindom Dhar
Hello,
   
  Has anyone out there,cleared the flash 8 professional certification exam. If 
yes, could you please give some advice on how to prepare for it. Unlike 
previous flash certifications, in flash 8 they have combined the designer and 
developer and made it as one,its ridiculous! As a hardcore actionscripter I 
would have loved to skip the graphic designing part.Sigh!Also there is no clear 
cut blueprint from adobe for flash 8 cert exam.
   
  Any help in this regard is highly appreciated.
   
  regards,
   
  Arin

 
-
Everyone is raving about the all-new Yahoo! Mail beta.
___
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] Class seemingly left out of compile

2006-12-06 Thread Trevor Burton
Have you tried clearing the ASO cache? (under Control menu in the Flash
IDE)

Sure you have, Just a thought.

T

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthew
Ganz
Sent: 06 December 2006 22:15
To: Flashcoders mailing list
Subject: [Flashcoders] Class seemingly left out of compile

hi. 

it appears that one of my classes that i've been updating in eclipse is
not being included in the compile i do from the flash IDE. 

both IDEs point to the same project folder. 

has anyone experienced this before? i'm a little at a loss. 

thanks. -- matt. 
___
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] Q: Performance of AS3 vs Java

2006-12-06 Thread Trevor Burton
I'm with you there, brother, 3D is useful for games, though.

T

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of eric
dolecki
Sent: 06 December 2006 20:58
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Q: Performance of AS3 vs Java

I'm not too keen on seeing 3D interfaces and spinning/whirling items
anytime
soon. That includes product items for the most part too.

- e.

On 12/6/06, Merrill, Jason [EMAIL PROTECTED] wrote:

 That rocks.  I'm blown away.  I wonder if Adobe is working 3D into
Flash
 IDE 9.  Microsoft just released WPF/E and Expression Blend will be
 available for purchase in Q2 2007 - the Flash competitor that does 3D.
 I wonder if the Flash 9 IDE will be available before - say Q1 2007...

 Jason Merrill
 Bank of America
 Learning  Organizational Effectiveness







 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Christian Giordano
 Sent: Wednesday, December 06, 2006 1:54 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Q: Performance of AS3 vs Java
 
 slangeberg wrote:
  Regarding performance, FP9 is showing some nice 3D potential (for
a
  1-2meg
  VM):
 
  http://www.papervision3d.org/demos/seahorse/
 
 Papervision is for Flash 8 and as far as i know, in terms of
 graphics, the performance between AS2 + FP8 and AS3 + FP9 are
 almost the same.
 
 Then of course all the Math computations (frequently used in
 3D) are faster. So yes, probably for 3D AS3 could help. I'm
 still waiting to make proper tests though.
 
 
 Best, chr
 
 --
 ___
 { Christian Giordano's site and blog @ http://nuthinking.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] Does it possibly that embed some custom characters in one font and shared it

2006-12-06 Thread hbbalfred
i want to embed a font without whole of characters.

i tried to do that.
the first,i created a textField with my font then embed some characters
in textField by AutoFill in A.fla and publish it.
next that create the New Font which named MyFont in library in B.fla,
select the import running time shared and type in A.swf

but it doesn't work that the textfield used to MyFont in B.fla.
___
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] loading external files with a mac projector on cd-rom

2006-12-06 Thread Bill Abel

I'm loading some JPEGs into a movieclip using a projector.

When I burn the files to disc, it works fine in Windows, but my Mac  
projector can't find the JPEGs.


myClip.loadMovie(path+slide+.jpg);

I tried adding in _url to the path, but that didn't solve the  
problem. I don't think I need colons for OS X.


Here's my code:

// Launch in fullscreen mode
fscommand(fullscreen, true);

// initialize variables
var path = slides/;
var totalSlides = 28;
var slide = 1;

//initialize - load first slide
holder.loadMovie(path+slide+.jpg);

// define navigation
// next slide button
forward_btn.onRelease = function() {
switch (slide) {
case 1 :
slide++;
holder.loadMovie(path+slide+.jpg);
break;
case totalSlides :
break;
default :
slide++;
holder.loadMovie(path+slide+.jpg);
break;
}
trace(slide);
};
// previous slide button
back_btn.onRelease = function() {
switch (slide) {
case 1 :
break;
case totalSlides :
slide--;
holder.loadMovie(path+slide+.jpg);
break;
default :
slide--;
holder.loadMovie(path+slide+.jpg);
break;
}
trace(slide);
};
___
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