Re: [Flashcoders] Nice Water Effect [site]

2007-03-21 Thread Mauricio Furtado Massaia

Lincon,

i dont have the source, but i think its use Bevel , Glow , Drop Shadow and
multiply but if i were you i enter in wagnerpaula.com and send and email to
him.

cheers

MauricioMassaia

On 3/20/07, lincoln [EMAIL PROTECTED] wrote:


Does anyone have source for such a thing? That's wonderful!  I'd love
to see how it was done.

cheers,
lincoln


On Mar 20, 2007, at 5:42 AM, Adrian MacTaggart wrote:

 Charming!

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
 Mauricio
 Furtado Massaia
 Sent: 20 March 2007 12:11
 To: Flashcoders mailing list
 Subject: [Flashcoders] Nice Water Effect [site]

 Hi,

 Check this site , it has a pretty nice water effect that you can write
 and
 save XD

 http://www.wagnerpaula.com/water/

 Hugs

 MauricioMassaia
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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 email has been scanned by the MessageLabs Email Security System.
 For more information please visit http://www.messagelabs.com/email
 __


 __
 This email has been scanned by the MessageLabs Email Security System.
 For more information please visit http://www.messagelabs.com/email
 __
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Remoting, returning a Join

2007-03-21 Thread Smeets, Ben
I am wondering how people are solving the following issue in the real
world.

I am struggling to understand Flash Remoting with Coldfusion. I know it
should make my life a whole lot easier but at the moment it's not
reallyh helping :) All of the examples I find on the net are too
straightforward; select a table query and return that to flash (or in my
case flex). 

But in my situation, I want to return a joined recordset. How do I
return that recordset while maintaining the advantages of object on
server is object in client? I can return the whole query without
problems of course (plain old returntype=query) but what do I do after I
get that recordset in flash/flex? Is it still nescesarry to parse out
that resultset to make objects out of the recordset? Wouldn't that
defeat the whole purpose of remoting? (I used to do that in my xml
communication days too).

While I am busy, might as well ask the following question to the
Coldfusion Remoting guru's out there too: What is best practice to let
CF retujrn to Flash? In code examples I see a lot of 'query' being
returned. But doesn't this go against the purpose of communicating only
Objects between the two layers? In my head I have this image of
letting Coldfusion return an Array of (e.g.) Person objects, when I
execute a (e.g.) getPerson command. 

Tnx for any insights in advance,

Ben


This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] too many lines in one frame

2007-03-21 Thread me myself

Maybe, but the AS file was 115kb, and it had been working fine for
months (during which time it was well over 32kb). I'm wondering if
it's more about reaching some frame-AS limit than filesize. Or is 32kb
a soft limit, after which thinks may or may not get flaky?

On 3/20/07, Muzak [EMAIL PROTECTED] wrote:

Sounds like you ran into the 32 KB limit:
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14437

quote
32 KB: This is the limit in file size for any single ActionScript script such 
as a class.
If you require a larger file, try breaking up your code into smaller parts or 
delegating responsibilities to other classes.
/quote

regards,
Muzak

- Original Message -
From: me myself [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, March 20, 2007 9:37 PM
Subject: [Flashcoders] too many lines in one frame


 This may be a well-known issue, and it may have been posted here
 before, but I thought I'd write a quick note about an obscure problem
 I've been dealing with for the last two days (Flash 8, AS 2.0):

 I had an AS file that is over 4000 lines long. I know this is a sign
 of bad code, and it IS bad code. But it's legacy code. When I get a
 chance, I'll rewrite it and divide it up into classes.

 Anyway, this file was sucked into frame one, via an #include.

 As I added code, I started to notice weird problems. I pulled my hair
 out debugging, because the problems had nothing to do with the code I
 was adding. I'd add something like num=2, and all of the sudden a
 movieclip would vanish (trace(mc._name) gave me undefined). I removed
 num=2, and the movieclip came back (trace(mc._name) yielded mc).
 Sometimes, even adding a comment would case strange errors.

 To my surprise, I eventually figured out that the errors were caused
 by the number of lines of code. If I added two lines, no problem. If I
 added a third, I'd get errors. It didn't matter what that line was or
 where I inserted it. I got errors.

 I started googling for too many lines and actionscript and found
 various forums where someone had posted a similar story. Usually,
 people responded by saying, You must be mistaken. It doesn't matter
 how many lines of code you use.

 I fixed the problem by dividing the code up into two AS files and
 loading one into the first frame and the other into the second.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Problems with Key event

2007-03-21 Thread Johan Nyberg

For some reason this code doesn't capture all keyboard keys as expected:

var keyListener:Object = new Object();
keyListener.onKeyDown = keyPressed;
Key.addListener(keyListener);


function keyPressed():Void {
   trace(foo);
}

All letters and numbers work. Insert and Shift works.. But not Delete, 
Home, End, PageUp, PageDown, Enter, etc..


What am I doing wrong???

--
Johan Nyberg

Web Guide Partner
Sergels Torg 12, 8 tr
111 57 Stockholm 
070 - 407 83 00


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Localization issue with XML

2007-03-21 Thread Ivan Dembicki
Hello Steven,

SSB XML header is
SSB ?xml version=1.0 encoding=UTF-8 ?
- this string is ignored by AS XML parser.
  is your really file saved as UTF-8?


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

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

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


RE: [Flashcoders] Help: test EventDispatcher speed please

2007-03-21 Thread Jason li


Ie:7
EventBroadcaster: 3915
EventDispatcher: 2609
WIN 9,0,28,0

FF:2002
EventBroadcaster: 3808
EventDispatcher: 2589
WIN 9,0,28,0

jli

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Pedro
Taranto
Sent: 20 March 2007 19:14
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Help: test EventDispatcher speed please

the results  in the IE is faster than at FF on my PC:

IE:
EventBroadcaster: 3906
EventDispatcher: 2615
WIN 9,0,28,0


FF:
EventBroadcaster: 4232
EventDispatcher: 3958
WIN 9,0,28,0

sorry but i dont have a mac to compare

--Pedro Taranto


Francis Bourre escreveu:
 Hello list !

 I noticed something weird about EventDispatcher execution speed in my 
 mac player.
 EventDispatcher.dispatchEvent execution is slow compared to a custom 
 dispatcher implementation (named EventBroadcaster).

 On Mac, EventDispatcher is slow:
 EventBroadcaster: 2925
 EventDispatcher: 12438

 On Pc, EventDispatcher is faster.
 EventBroadcaster: 3908
 EventDispatcher: 3407

 Can you please report the values you got (displayed on screen) when 
 you open the url below and the browser you used for testing.
 It takes few seconds to initialize (bench with iterations)

 http://www.tweenpix.net/TestEventBroadcaster.swf

 Any clue is welcome. ;)
 Thanks in advance guys !

 francis



 Content of the test:

 var tf1 : TextField = new TextField();
 var tf2 : TextField = new TextField();
 var tf3 : TextField = new TextField();
 tf2.y += 30;
 tf3.y += 60;
 tf1.width = tf2.width = tf3.width = 150;
 this.addChild( tf1 );
 this.addChild( tf2 );
 this.addChild( tf3 );

 var holder : Array = new Array();
 var l1 : Number = 1;
 var l2 : Number = 1;
 var lNum : Number = 500;
 
 var eb : EventBroadcaster = new EventBroadcaster ( this );
 var ed : EventDispatcher = new EventDispatcher ();

 while( --lNum -(-1) )
 {
 var tg : Object = {foo:function( e : Event ):void{ this.e = 
 e.type; }};
 ed.addEventListener( foo, tg.foo );
 eb.addEventListener( foo, tg );
 holder.push( tg );
 }

 var t : Number = 0;
 var e : Event = new Event( foo );
 
 //
 t = getTimer();
 while( --l2 -(-1)) eb.broadcastEvent( e );
 t = getTimer() - t;
 trace( EventBroadcaster: , t );
 tf1.text = EventBroadcaster:  + t;
 //
 t = getTimer();
 while( --l1 -(-1)) ed.dispatchEvent( e );
 t = getTimer() - t;
 trace( EventDispatcher: , t );
 tf2.text = EventDispatcher:  + t;

 tf3.text = flash.system.Capabilities.version;
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Create an object by name

2007-03-21 Thread Danny Kodicek
   Might be interesting to know why you need to do this at all.
  
 
  I'm using an XML document to create a file. Without going into 
  details, each node of the XML is to be turned into an 
 object, based on the kind of node.
  So for example:
 
  xmlitem type='Big' size='3' /item type='Small' size='2'/xml
 
  This would become two objects, one an instance of 
 MyBigClass, one an 
  instance of MySmallClass. In an old version of this, each one was a 
  MovieClip with the appropriate linkage name. Now I'm trying 
 to do it 
  more flexibly with objects (so that in particular, each object type 
  can inherit a standard class, and so that I don't have to have a 
  separate movieClip for each object type).
 
  Danny
 

 Why would you not have 1 class with 2 properties type and size?
 What is different between the 2 items that requires different 
 classes? 
 The properties are the same. What does Big do that Small does not do?

Loads of things (remember, 'big' and 'small' are just examples here).
They're completely different objects. For example, one might refer to a bit
of text, another to a picture, etc. If I put it all into one class, I'd have
to fill it with Ifs and Switchs, which is what I'm trying to avoid.

(Btw, I was out of communication yesterday due to a break-in at our office,
so apologies to those people who sent replies that I didn't respond to)

Best
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] Problems with Key event

2007-03-21 Thread Jim Berkey
var keyListener:Object = new Object();
keyListener.onKeyDown = keyPressed;
Key.addListener(keyListener);


function keyPressed():Void {
trace(foo);
}

All letters and numbers work. Insert and Shift works.. But not Delete,
Home, End, PageUp, PageDown, Enter, etc..

What am I doing wrong???

I believe that it is probably working fine - but in the flash ide, when 
testing, you need to disable the keyboard shortcuts - click on Control --- 
Disable Keyboard Shortcuts in your preview window.
jimboF

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] User Centred Design

2007-03-21 Thread Tom Huynen

Hello friends,

For my graduation on multmedia design over here in The Netherlands I'm doing
research on User Centred Design.
I've been coding in actionscript for a few years now and the purpose of the
research is to be able to create beautifull interfaces with high usability
standards.

So far I believe that user centred design comes from several disciplines
like:

Cognitive Psychology, Anthropology, Human-Computer Interaction, Visual and
Graphic Arts, Communication, User-Interface Theory, Linguistics,
Human-Factors, Information Design, Instructional Design, Color Theory,
Typography, and more.

It's a bit off topic but I know that you guys are the right persons to ask
for advise.
And so I would like to ask if anybody has any suggestions for me. Maybe on
books or articles or just in general.

Thanks in advanced

Love you all!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 extending inherited function

2007-03-21 Thread Johan Nyberg
Hi, I have a problem extending an inherited function. I put all the 
files described here in a zip if you want to test it yourselves: 
http://www.webguidepartner.com/~johan/super-problem.zip


I have this mother-class:


class Mother extends MovieClip {
   public var txt:TextField;
  
   public function Mother() {

   this.onPress = killingFocus;
   //this.txt.onKillFocus = killingFocus;
   }
  
   public function killingFocus():Void {

   trace(testFunc in mother);
   }
  
}



...and this child-class that inherits from Mother:


class Child extends Mother {
   public function Child() {
   super();
   }
  
   public function killingFocus():Void {

   super.killingFocus();
   trace(testFunc in child);
   }
}


Now, I have a test.fla that contains a movie clip that is linked to 
Child. Everything works as expected, both lines of trace running on the 
onPress.


But now: comment out the onPress-event in the constructor in Mother, and 
uncomment the second line: this.txt.onKillFocus = killingFocus;


Now, there is a text field inside the movie clip. When this text field 
loses focus, you wold expect the code to run the same way, but no. The 
killingFocus-function in Mother is overwritten and only the trace in 
Child runs.


I have some clue that the problem must have something to do with that it 
is the text field that triggers the event, and not the movie clip. But 
you would expect the super.killingFocus(); to work anyway, regardless of 
what calls the function?!



Regards,

/Johan


--
Johan Nyberg

Web Guide Partner
Sergels Torg 12, 8 tr
111 57 Stockholm 
070 - 407 83 00


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Problems with Key event

2007-03-21 Thread Dave Mennenoh
Have you disabled shortucts? When you test the SWF - go to control  
disable... I trap delete and such that way.



Dave -
Head Developer
www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ 


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] installing sandy.

2007-03-21 Thread Gustavo Duenas

thanks muzac

On Mar 20, 2007, at 2:23 PM, Muzak wrote:


HD:Applications:Macromedia Flash 8:sources

- Original Message -
From: Gustavo Duenas [EMAIL PROTECTED]
To: Flashcoders mailing list Flashcoders@chattyfig.figleaf.com
Sent: Tuesday, March 20, 2007 6:35 PM
Subject: [Flashcoders] installing sandy.


Hi, I have a mac and I'm trying to install the sandy library son  
I  went to the preferences panel, click on actionscript, click on
actionscript 2.0 preferences and use this path for the com([part  
of  the sandy library)



Macintosh HD:Applications:Macromedia Flash 8:sources:com
Macintosh HD:Applications:Macromedia Flash 8:sources:sandy


these are ok? help me out guys is my very first time trying to  
load  external libraries to flash8.



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

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



Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 w. Beaver St. suite 119
Jacksonville, FL 32204
904 . 2650330
www.leftandrightsolutions.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] html vars and flash vars

2007-03-21 Thread Gustavo Duenas

sounds good, how could I do it?

Regards

Gustavo
On Mar 20, 2007, at 2:32 PM, Pedro Taranto wrote:

you wanto to load a swf from a xml and pass a parameter by the url  
in the xml ??
why dont you put these variables in the same node and when you load  
it you pass to your swf?


--Pedro Taranto


Gustavo Duenas escreveu:

ok, how can i do it using swf?

link in xml file:

1.swf?id=something


action script

this is what I don't know, how can I send it.


Regards


Gustavo Duenas

On Mar 20, 2007, at 1:15 PM, Pedro Taranto wrote:

you have to pass the variables to the swf, if you are passing by  
html you have to use some script language to pass it swf


--Pedro Taranto


Gustavo Duenas escreveu:

ok Pedro, let me see if I can get it:

on the xml link.

1.swf?id=something or should be the html where this one is  
embedded like 1.html?id=something


var id = _root.id;

if ( id==something){
tellTarget(_root.mc){
do something;}
}

is the right thing?

or

myText.txt = _root.id;

if (_root.id==something){
tellTarget(_root.mc){
do something;}

tell me if the first is right, or the second or both are wrong,  
I have a few ideas on mind and I'd like to resolve this matter  
before going forward.



Regards


Gustavo Duenas



on the action script.


On Mar 20, 2007, at 12:36 PM, Pedro Taranto wrote:


it is loaded on the _root

you use like this == yourTxt.text = _root.userId

--Pedro Taranto

Gustavo Duenas escreveu:
Hi, I have a curiosity...or an itch about something (I'm full  
of it). The thing is that  I'm loading a xml page into my  
flash and I'd like to know
how can I handle the links, I know I can trigger external  
events (in a browser window), but there is a way that this  
particular xml link, can trigger an
event inside the flash , like using the regular buttons. I've  
tried in the past with html variables: mypage.html? 
userId=something but not good results, maybe I was wrong in  
the written.

but how can I make the  flash read it?
I'd appreciate your help.


Regards.



Gustavo Duenas



P.s: how the flash vars works and how ca I use it.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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



Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 w. Beaver St. suite 119
Jacksonville, FL 32204
904 . 2650330
www.leftandrightsolutions.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



Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 w. Beaver St. suite 119
Jacksonville, FL 32204
904 . 2650330
www.leftandrightsolutions.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



Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 w. Beaver St. suite 119
Jacksonville, FL 32204
904 . 2650330
www.leftandrightsolutions.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] User Centred Design

2007-03-21 Thread Mark Winterhalder

And so I would like to ask if anybody has any suggestions for me. Maybe on
books or articles or just in general.


I found this both informative and highly entertaining:
http://www.uwtv.org/programs/displayevent.aspx?rID=2103

This is a lecture by Alan Kay which contains stuff you might find
interesting as well. I recommend you get the large MPEG2 version,
because it contains old videos of early interfaces (Doug Engelbert
etc):
http://www.archive.org/details/AlanKeyD1987
http://www.archive.org/details/AlanKeyD1987_2

Some very nice stuff here:
http://www.visualcomplexity.com/

HTH,
Mark





On 3/21/07, Tom Huynen [EMAIL PROTECTED] wrote:

Hello friends,

For my graduation on multmedia design over here in The Netherlands I'm doing
research on User Centred Design.
I've been coding in actionscript for a few years now and the purpose of the
research is to be able to create beautifull interfaces with high usability
standards.

So far I believe that user centred design comes from several disciplines
like:

 Cognitive Psychology, Anthropology, Human-Computer Interaction, Visual and
Graphic Arts, Communication, User-Interface Theory, Linguistics,
Human-Factors, Information Design, Instructional Design, Color Theory,
Typography, and more.

It's a bit off topic but I know that you guys are the right persons to ask
for advise.
And so I would like to ask if anybody has any suggestions for me. Maybe on
books or articles or just in general.

Thanks in advanced

Love you all!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Problem extending inherited function

2007-03-21 Thread Mark Winterhalder

I have some clue that the problem must have something to do with that it
is the text field that triggers the event, and not the movie clip. But
you would expect the super.killingFocus(); to work anyway, regardless of
what calls the function?!


Yes, this is a scope issue -- it tries to call killingFocus on the
TextField's super class.
You have to delegate it, or just do:

var f = function () {
  arguments.callee.self.killingFocus;
};
f.self = this;
this.txt.onKillFocus = f;

HTH,
Mark


On 3/21/07, Johan Nyberg [EMAIL PROTECTED] wrote:

Hi, I have a problem extending an inherited function. I put all the
files described here in a zip if you want to test it yourselves:
http://www.webguidepartner.com/~johan/super-problem.zip

I have this mother-class:


class Mother extends MovieClip {
public var txt:TextField;

public function Mother() {
this.onPress = killingFocus;
//this.txt.onKillFocus = killingFocus;
}

public function killingFocus():Void {
trace(testFunc in mother);
}

}


...and this child-class that inherits from Mother:


class Child extends Mother {
public function Child() {
super();
}

public function killingFocus():Void {
super.killingFocus();
trace(testFunc in child);
}
}


Now, I have a test.fla that contains a movie clip that is linked to
Child. Everything works as expected, both lines of trace running on the
onPress.

But now: comment out the onPress-event in the constructor in Mother, and
uncomment the second line: this.txt.onKillFocus = killingFocus;

Now, there is a text field inside the movie clip. When this text field
loses focus, you wold expect the code to run the same way, but no. The
killingFocus-function in Mother is overwritten and only the trace in
Child runs.

I have some clue that the problem must have something to do with that it
is the text field that triggers the event, and not the movie clip. But
you would expect the super.killingFocus(); to work anyway, regardless of
what calls the function?!


Regards,

/Johan


--
Johan Nyberg

Web Guide Partner
Sergels Torg 12, 8 tr
111 57 Stockholm
070 - 407 83 00

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] problem with sandy.

2007-03-21 Thread Gustavo Duenas
Hi, I've just run the sandy on my flash 8 and this was the error of  
the first code.


**Error** /Applications/Macromedia Flash 8/sources/sandy/view/ 
ClipScreen.as: Line 102: There is no method with the name  
'updateScreen'.

_c.updateScreen();

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 16: Type mismatch.
var cam:Camera3D = new Camera3D( 700, screen);

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 20: There is no  
method with the name 'addCamera'.

World3D.getInstance().addCamera( cam );

Total ActionScript Errors: 3 Reported Errors: 3



the code is:


import sandy.core.data.*;
import sandy.core.group.*;
import sandy.primitive.*;
import sandy.view.*;
import sandy.core.*;
import sandy.skin.*;
import sandy.util.*;
import sandy.core.transform.*;
import sandy.events.*;
function init( Void ):Void
{
// screen creation, the object where objects will be displayed.
	var screen:ClipScreen = new ClipScreen( this.createEmptyMovieClip 
('screen', 1), 600, 600 );

// we create our camera
var cam:Camera3D = new Camera3D( 700, screen);
	// we move the camera backward to be able to see the object placed  
at 0,0,0

cam.setPosition(0, 0, -500);
// we add the camera to the world
World3D.getInstance().addCamera( cam );
// we create the root node.
var bg:Group = new Group();
// and set it as the root node of the world.
World3D.getInstance().setRootGroup( bg );
// and we lauch the scene creation
createScene( bg );
	// and now that everything is created, we can launch the world  
rendering.

World3D.getInstance().render();
}
function createScene( bg:Group ):Void
{
// We create our object. It is a cube of 50 pixels
var o:Object3D = new Box( 50, 50, 50 );
	// Now we simply link the Object leaf to the root node, and finish  
the tree creation

bg.addChild( o);
}
// We lauch the animation creation.
init();


and this is the class path

Macintosh HD:Applications:Macromedia Flash 8:sources


somebody help me...it is supposed to be as hards as thisor I've  
just missed something in the download.


regards



Gustavo Duenas

P.s: the code was on the tutorial of sandy


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Site check - Javascript errors (can't figure out)

2007-03-21 Thread Geoff Stearns
can you expand on the problems you had with swfobject? i haven't seen  
any problems like you described while using it.





On Jan 29, 2007, at 5:48 PM, Patrick Lemiuex wrote:


Hey guys and girls:

I am having an issue with javascript flash detection and using  
javascript methods from html form elements to target methods in my  
swf movie.   This is working in Firefox, however in IE i get errors  
on the page.


I'm using the factory adobe flash detection script. ( I tried  
swfobject  - which resets our session and a couple different  
document write methods, all of them have issues)


Can anybody give me a suggestion on this one?

http://me.com/_meslide

Why does not internet explorer have to suck so bad anyway?  I'm a  
javascript luddite anyway.


Thanks,
Patrick
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Problem extending inherited function

2007-03-21 Thread R�kos Attila

This is a simple scope issue. The problem is caused exactly by that
what you talked about. When assigning killingFocus to the textfield's
event, use some kind of delegation (e.g. mx.util.Delegate):

txt.onKillFocus = mx.utils.Delegate.create(this, killingFocus);

(off: actually, this is not required inside AS2 classes)

  Attila


JN Hi, I have a problem extending an inherited function. I put all the
JN files described here in a zip if you want to test it yourselves: 
JN http://www.webguidepartner.com/~johan/super-problem.zip
JN 
JN I have this mother-class:
JN 
JN 
JN class Mother extends MovieClip {
JN public var txt:TextField;
JN
JN public function Mother() {
JN this.onPress = killingFocus;
JN //this.txt.onKillFocus = killingFocus;
JN }
JN
JN public function killingFocus():Void {
JN trace(testFunc in mother);
JN }
JN
JN }
JN 
JN 
JN ...and this child-class that inherits from Mother:
JN 
JN 
JN class Child extends Mother {
JN public function Child() {
JN super();
JN }
JN
JN public function killingFocus():Void {
JN super.killingFocus();
JN trace(testFunc in child);
JN }
JN }
JN  
JN 
JN Now, I have a test.fla that contains a movie clip that is linked to 
JN Child. Everything works as expected, both lines of trace running on the 
JN onPress.
JN 
JN But now: comment out the onPress-event in the constructor in Mother, and 
JN uncomment the second line: this.txt.onKillFocus = killingFocus;
JN 
JN Now, there is a text field inside the movie clip. When this text field 
JN loses focus, you wold expect the code to run the same way, but no. The 
JN killingFocus-function in Mother is overwritten and only the trace in 
JN Child runs.
JN 
JN I have some clue that the problem must have something to do with that it 
JN is the text field that triggers the event, and not the movie clip. But 
JN you would expect the super.killingFocus(); to work anyway, regardless of 
JN what calls the function?!


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 extending inherited function

2007-03-21 Thread Rost, Andrew
The way you had your code, the Child class will never receive the
killingFocus call. Add a Delegate within the Mother Class to put the
onKillFocus event into scope with Child...

import mx.utils.Delegate;

class Mother extends MovieClip {
public var txt:TextField;
   
public function Mother() {
//this.onPress = killingFocus;
this.txt.onKillFocus = Delegate.create(this, killingFocus);
}
   
public function killingFocus():Void {
trace(testFunc in mother);
}
   
}

HTH - Andrew Rost
-Original Message-
From: Johan Nyberg [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 21, 2007 3:10 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Problem extending inherited function

Hi, I have a problem extending an inherited function. I put all the 
files described here in a zip if you want to test it yourselves: 
http://www.webguidepartner.com/~johan/super-problem.zip

I have this mother-class:


class Mother extends MovieClip {
public var txt:TextField;
   
public function Mother() {
this.onPress = killingFocus;
//this.txt.onKillFocus = killingFocus;
}
   
public function killingFocus():Void {
trace(testFunc in mother);
}
   
}


...and this child-class that inherits from Mother:


class Child extends Mother {
public function Child() {
super();
}
   
public function killingFocus():Void {
super.killingFocus();
trace(testFunc in child);
}
}
 

Now, I have a test.fla that contains a movie clip that is linked to 
Child. Everything works as expected, both lines of trace running on the 
onPress.

But now: comment out the onPress-event in the constructor in Mother, and 
uncomment the second line: this.txt.onKillFocus = killingFocus;

Now, there is a text field inside the movie clip. When this text field 
loses focus, you wold expect the code to run the same way, but no. The 
killingFocus-function in Mother is overwritten and only the trace in 
Child runs.

I have some clue that the problem must have something to do with that it 
is the text field that triggers the event, and not the movie clip. But 
you would expect the super.killingFocus(); to work anyway, regardless of 
what calls the function?!


Regards,

/Johan


-- 
Johan Nyberg

Web Guide Partner
Sergels Torg 12, 8 tr
111 57 Stockholm 
070 - 407 83 00

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] User Centred Design

2007-03-21 Thread tzoli
Here, you can find lot of articles on usability and design -
http://www.alistapart.com/



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom Huynen
Sent: Wednesday, March 21, 2007 10:50 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] User Centred Design

Hello friends,

For my graduation on multmedia design over here in The Netherlands I'm doing
research on User Centred Design.
I've been coding in actionscript for a few years now and the purpose of the
research is to be able to create beautifull interfaces with high usability
standards.

So far I believe that user centred design comes from several disciplines
like:

 Cognitive Psychology, Anthropology, Human-Computer Interaction, Visual and
Graphic Arts, Communication, User-Interface Theory, Linguistics,
Human-Factors, Information Design, Instructional Design, Color Theory,
Typography, and more.

It's a bit off topic but I know that you guys are the right persons to ask
for advise.
And so I would like to ask if anybody has any suggestions for me. Maybe on
books or articles or just in general.

Thanks in advanced

Love you all!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Anyway way to capture a SWF as a bitmap?

2007-03-21 Thread Douglas Pearson
Anyone know if there's a way to draw the contents of a SWF to a
Bitmap/BitmapData object within Flash?

I have a SWF that involves lots of complex rendering steps and I want to be
export it as a bitmap.  The export part should be fine (using a server to
actually save the file) if I can figure out how to get it into a BitmapData
object so I can call getPixels() on it.

Anyone have any ideas?

Doug

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 sandy.

2007-03-21 Thread Zeh Fernando
Hi, I've just run the sandy on my flash 8 and this was the error of the 
first code.


Sandy has a mailing list and support forums in english and french.

http://www.flashsandy.org/support/

I think it would be easier for you to check those first, and in case you 
don't find a solution to your issues, post there instead.



Zeh
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Help: test EventDispatcher speed please

2007-03-21 Thread Francis Bourre

hello!

As I know, I didn't ask ppl to test an application or a site I made.
That's a test that to enlight the fact that EventDispatcher behaves  
weird on mac player.
I think ppl should be interested by these results mac vs pc/linux,  
don't you think ? :)


francis

Le 21 mars 07 à 15:15, Merrill, Jason a écrit :


http://osflash.org/flashcoders/etiquette
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] User Centred Design

2007-03-21 Thread Tom Huynen

Thanks a lot Mark, really appreciate it!

On 3/21/07, Mark Winterhalder [EMAIL PROTECTED] wrote:


 And so I would like to ask if anybody has any suggestions for me. Maybe
on
 books or articles or just in general.

I found this both informative and highly entertaining:
http://www.uwtv.org/programs/displayevent.aspx?rID=2103

This is a lecture by Alan Kay which contains stuff you might find
interesting as well. I recommend you get the large MPEG2 version,
because it contains old videos of early interfaces (Doug Engelbert
etc):
http://www.archive.org/details/AlanKeyD1987
http://www.archive.org/details/AlanKeyD1987_2

Some very nice stuff here:
http://www.visualcomplexity.com/

HTH,
Mark





On 3/21/07, Tom Huynen [EMAIL PROTECTED] wrote:
 Hello friends,

 For my graduation on multmedia design over here in The Netherlands I'm
doing
 research on User Centred Design.
 I've been coding in actionscript for a few years now and the purpose of
the
 research is to be able to create beautifull interfaces with high
usability
 standards.

 So far I believe that user centred design comes from several disciplines
 like:

  Cognitive Psychology, Anthropology, Human-Computer Interaction, Visual
and
 Graphic Arts, Communication, User-Interface Theory, Linguistics,
 Human-Factors, Information Design, Instructional Design, Color Theory,
 Typography, and more.

 It's a bit off topic but I know that you guys are the right persons to
ask
 for advise.
 And so I would like to ask if anybody has any suggestions for me. Maybe
on
 books or articles or just in general.

 Thanks in advanced

 Love you all!
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] html vars and flash vars

2007-03-21 Thread Pedro Taranto

show your xml file with the link and the code you are using to load

--Pedro Taranto


Gustavo Duenas escreveu:

sounds good, how could I do it?

Regards

Gustavo
On Mar 20, 2007, at 2:32 PM, Pedro Taranto wrote:

you wanto to load a swf from a xml and pass a parameter by the url in 
the xml ??
why dont you put these variables in the same node and when you load 
it you pass to your swf?


--Pedro Taranto


Gustavo Duenas escreveu:

ok, how can i do it using swf?

link in xml file:

1.swf?id=something


action script

this is what I don't know, how can I send it.


Regards


Gustavo Duenas

On Mar 20, 2007, at 1:15 PM, Pedro Taranto wrote:

you have to pass the variables to the swf, if you are passing by 
html you have to use some script language to pass it swf


--Pedro Taranto


Gustavo Duenas escreveu:

ok Pedro, let me see if I can get it:

on the xml link.

1.swf?id=something or should be the html where this one is 
embedded like 1.html?id=something


var id = _root.id;

if ( id==something){
tellTarget(_root.mc){
do something;}
}

is the right thing?

or

myText.txt = _root.id;

if (_root.id==something){
tellTarget(_root.mc){
do something;}

tell me if the first is right, or the second or both are wrong, I 
have a few ideas on mind and I'd like to resolve this matter 
before going forward.



Regards


Gustavo Duenas



on the action script.


On Mar 20, 2007, at 12:36 PM, Pedro Taranto wrote:


it is loaded on the _root

you use like this == yourTxt.text = _root.userId

--Pedro Taranto

Gustavo Duenas escreveu:
Hi, I have a curiosity...or an itch about something (I'm full of 
it). The thing is that  I'm loading a xml page into my flash and 
I'd like to know
how can I handle the links, I know I can trigger external events 
(in a browser window), but there is a way that this particular 
xml link, can trigger an
event inside the flash , like using the regular buttons. I've 
tried in the past with html variables: 
mypage.html?userId=something but not good results, maybe I was 
wrong in the written.

but how can I make the  flash read it?
I'd appreciate your help.


Regards.



Gustavo Duenas



P.s: how the flash vars works and how ca I use it.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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



Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 w. Beaver St. suite 119
Jacksonville, FL 32204
904 . 2650330
www.leftandrightsolutions.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



Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 w. Beaver St. suite 119
Jacksonville, FL 32204
904 . 2650330
www.leftandrightsolutions.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



Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 w. Beaver St. suite 119
Jacksonville, FL 32204
904 . 2650330
www.leftandrightsolutions.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

Re: [Flashcoders] User Centred Design

2007-03-21 Thread Tom Huynen

I checked it out and it's great!

I found this one myself: Also pretty good:

http://www.experientia.com/blog

Regards,

Tom

On 3/21/07, tzoli [EMAIL PROTECTED] wrote:


Here, you can find lot of articles on usability and design -
http://www.alistapart.com/



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom Huynen
Sent: Wednesday, March 21, 2007 10:50 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] User Centred Design

Hello friends,

For my graduation on multmedia design over here in The Netherlands I'm
doing
research on User Centred Design.
I've been coding in actionscript for a few years now and the purpose of
the
research is to be able to create beautifull interfaces with high usability
standards.

So far I believe that user centred design comes from several disciplines
like:

Cognitive Psychology, Anthropology, Human-Computer Interaction, Visual and
Graphic Arts, Communication, User-Interface Theory, Linguistics,
Human-Factors, Information Design, Instructional Design, Color Theory,
Typography, and more.

It's a bit off topic but I know that you guys are the right persons to ask
for advise.
And so I would like to ask if anybody has any suggestions for me. Maybe on
books or articles or just in general.

Thanks in advanced

Love you all!
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] problem with sandy.

2007-03-21 Thread Ron Wheeler

I am not sure where you have gone wrong.
I can show you what I did. It is a bit more structured than the Sandy 
examples
It declares a World3D and a movie clip and then builds a scene that can 
be rotated.

Then it creates and adds a camera

This is the main flow. It sets up a Movie Clip to draw the world on and 
then calls init which sets up the world, positions the camera and starts 
the rendering.
The transforms and rotation objects are part of constructing the scene 
and you can ignore then.


CODE

import sandy.core.data.*;
import sandy.core.group.*;
import sandy.primitive.*;
import sandy.view.*;
import sandy.core.*;
import sandy.skin.*;
import sandy.util.*;
import sandy.core.transform.*;
import sandy.events.*;
// not needed for your stuff
import com.rwcontrols.utils3D.RWRotation

import flashout.as;
import flash.display.BitmapData;
/**
* This is the main entry point for all test classes.
*/
class com.rwcontrols.sandytest.TestMain {

   static var app : TestMain;
   private var w:World3D;
   private var mySection:TransformGroup;
   private var masterRotation:RWRotation;
   private var rotationTransform:Transform3D;
   private var myRotatingSection:TransformGroup;
   private var myScene:Group;
   private var myCamera1:Camera3D;
  
   // entry point

   static function main(mc) {
   app = new TestMain(mc);
   }

   function TestMain(mc) {
   var myMC : MovieClip;
   try { init(mc); }
   catch (e:Error)
   {trace(e.message);}
   }
  
private function init(screen: MovieClip):Void

{
   var i:Number;
  
   this.w = World3D.getInstance();

//This draws a section of a plant
   this.mySection = this.createSection() ;
// You can simplify this - I wanted to rotate the plant

   this.masterRotation = new RWRotation(0,45,0);
   this.rotationTransform = 
this.masterRotation.createRotationTransform();
   this.myRotatingSection = 
this.createRotatableSection(this.mySection,this.rotationTransform);

//This creates the final scene to be viewed.
   this.myScene = createScene(this.myRotatingSection)
   this.w.setRootGroup(this.myScene );

//Now add a camra to look at the movie clip
   this.myCamera1=createCamera1(screen)

   this.w.addCamera(this.myCamera1);
//This makes it rotate
   this.w.addEventListener (World3D.onRenderEVENT, this, rotate);
// Ready to draw it
   this.w.render();
}
/CODE
Creating the camera is pretty simple  and you can use this as is. Just 
change your camera position. The look at just points the camera down 
since I have raised the camera above the scene but still want the scene 
to be in the middle of the frame. I just pass it the Movie clip that the 
scene is on


CODE
private function createCamera1(screen:MovieClip):Camera3D{
 var ecran:ClipScreen = new ClipScreen(screen, 1000, 1000, 0xFF );
  // we create our camera
  var cam:Camera3D = new Camera3D( 700, ecran);
   cam.setPosition(0,200,-600);
   cam.lookAt( 0, -20, -200 );
   return cam;
}

/CODE
Creating the scene in my case is a multi-step process since I wanted a 
rotating group on the scene.
The last step just adds the final group of objects(rotatable Site)  to 
the group that will be given to the world.

CODE
   private function createScene( rotatableSite:TransformGroup ):Group
{
  // we create the root node.
   var bg:Group = new Group();
   bg.addChild(rotatableSite);
  
   return bg;

}
/CODE
Just in case you wanted to see the creation of a rotatable Group. I need 
this to be able to rotate the thing on every onEnterFrame.

CODE
   private function 
createRotatableSection(site:TransformGroup,rotationTransform:Transform3D):TransformGroup

   {
   var tRot:TransformGroup = new TransformGroup();
  
   // The rotation is set in the transform group which will hold 
our site

   tRot.setTransform( rotationTransform );
   trace(Flashout.DEBUG+tRot)
   // Our site is added to the rotation group
   tRot.addChild( site );

   return tRot;
   }
/CODE
You do not need this but this is how I make it spin.
CODE
function rotate(){
this.masterRotation.incrementRotation(this.rotationTransform,0,1,0)
}
/CODE
My scene is fairly complex. This is only bits and pieces of it since you 
already have your own scene to do

CODE
   private function createSection( Void ):TransformGroup{
// Set up some skins and lights
   var cyl1skin= new MixedSkin(0xFF, 40, 0xFF, 40, 1)
   var cyl2skin= new MixedSkin(0x00FF00, 40, 0x00FF00, 40, 1)
   var cyl3skin= new MixedSkin(0xFF, 40, 0xFF, 40, 1)
   cyl1skin.setLightingEnable( true );
   cyl2skin.setLightingEnable( true );
   cyl3skin.setLightingEnable( true );
  
//Create some objects

   var cyl1 = new Cylinder( 20, 70, 60, 'quad');
// code omitted here


   var section:TransformGroup = new TransformGroup();

//add some of the groups created in the missing code

   section.addChild(bin1);
   section.addChild(bin1LabelTG);
   section.addChild(bin2);
  

Re: [Flashcoders] Flash Sandy: Camera Flythrough

2007-03-21 Thread Ron Wheeler
You can move the objects, move the world or move the camera - your 
choice. The last 2 are easier. You only need to move the objects if you 
want tem to move with respect to each other not te viewer.


Have you done all of the tutorials including the ones linked to from the 
Sandy site?


Ron

eric e. dolecki wrote:
I just downloaded Sandy (and there are so many things in it not sure 
where

to start).

I just want to place 3 mcs back into space (z-index) (each further 
back than

the previous) and bring them up towards the camera, stepping them.

is there some demo code someplace where I can get started to do this. 
I can

move the objects or the camera - makes no difference.

- eric
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Anyway way to capture a SWF as a bitmap?

2007-03-21 Thread Hans Wichman

Hi,
you mean something like this:
var bitmapData1:BitmapData =
new BitmapData(200, 200, false, 0x00);
bitmapData1.draw(myMC,new Matrix());

?
greetz
JC


On 3/21/07, Douglas Pearson [EMAIL PROTECTED] wrote:


Anyone know if there's a way to draw the contents of a SWF to a
Bitmap/BitmapData object within Flash?

I have a SWF that involves lots of complex rendering steps and I want to
be
export it as a bitmap.  The export part should be fine (using a server to
actually save the file) if I can figure out how to get it into a
BitmapData
object so I can call getPixels() on it.

Anyone have any ideas?

Doug

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Problem extending inherited function

2007-03-21 Thread Danny Kodicek
  The way you had your code, the Child class will never receive 
 the killingFocus call. Add a Delegate within the Mother Class 
 to put the onKillFocus event into scope with Child...
 
 import mx.utils.Delegate;
 
 class Mother extends MovieClip {
 public var txt:TextField;

 public function Mother() {
 //this.onPress = killingFocus;
 this.txt.onKillFocus = Delegate.create(this, killingFocus);
 }

 public function killingFocus():Void {
 trace(testFunc in mother);
 }

 }

Hmm - this seems to go against the stuff we've been talking about recently
(see 'super and this' thread) where people have been saying that inherited
classes are essentially wrapped into one. This is an example where the
ancestor is being treated as an object in its own right. If inheritance
worked the way people described in the previous thread, it ought not to be
possible for a command to bypass the Child class and go straight to the
Mother.

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] Anyway way to capture a SWF as a bitmap?

2007-03-21 Thread dan
CHK OUT bitmap.draw();

:)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Douglas
Pearson
Sent: Wednesday, March 21, 2007 4:56 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Anyway way to capture a SWF as a bitmap?

Anyone know if there's a way to draw the contents of a SWF to a
Bitmap/BitmapData object within Flash?

I have a SWF that involves lots of complex rendering steps and I want to be
export it as a bitmap.  The export part should be fine (using a server to
actually save the file) if I can figure out how to get it into a BitmapData
object so I can call getPixels() on it.

Anyone have any ideas?

Doug

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Anyway way to capture a SWF as a bitmap?

2007-03-21 Thread Zeh Fernando

Anyone know if there's a way to draw the contents of a SWF to a
Bitmap/BitmapData object within Flash?

I have a SWF that involves lots of complex rendering steps and I want to be
export it as a bitmap.  The export part should be fine (using a server to
actually save the file) if I can figure out how to get it into a BitmapData
object so I can call getPixels() on it.

Anyone have any ideas?


Thankfully:

  myBitmapData.draw(myMovieClip)


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

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


Re: [Flashcoders] Flash Sandy: Camera Flythrough

2007-03-21 Thread BlackMail
 There is a good introduction:
 http://www.petitpub.com/labs/media/flash/sandy/primitives.shtml
 

 21 marca 2007 (13:51:51) wrote:

eric e. dolecki I just downloaded Sandy (and there are so many
eric e. dolecki things in it not sure where
eric e. dolecki to start).

eric e. dolecki I just want to place 3 mcs back into space (z-index) (each 
further back than
eric e. dolecki the previous) and bring them up towards the camera, stepping 
them.

eric e. dolecki is there some demo code someplace where I can get started to 
do this. I can
eric e. dolecki move the objects or the camera - makes no difference.

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

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



-- 
Pozdrowienia,
 BlackMail


-
Ta oferta jest dla Ciebie ! 
Sprawd¼ na: http://link.interia.pl/f1a33


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Anyway way to capture a SWF as a bitmap?

2007-03-21 Thread Danny Kodicek
  Anyone know if there's a way to draw the contents of a SWF to 
 a Bitmap/BitmapData object within Flash?
 
 I have a SWF that involves lots of complex rendering steps 
 and I want to be export it as a bitmap.  The export part 
 should be fine (using a server to actually save the file) if 
 I can figure out how to get it into a BitmapData object so I 
 can call getPixels() on it.

Can't you just use BitmapData.draw()?

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] Localization issue with XML

2007-03-21 Thread Søren Christensen



if it isnt a coded textfield you need to define each special  
character using the 'embed' button in the inspector (while the tf is  
selected) in the 'include these charecters' field


Cheers,
B) Søren



On Mar 21, 2007, at 12:44 PM, Måns Asplund wrote:


Hi Steven!
I had the same problem with swedish letters (å ä ö) and the  
solution was

easy and obvious.
I wrote something about it, just can´t find it now (not at the  
office at the

moment).

I´ll send the soloution as soon as I´m back at the office.

|.Måns



2007/3/20, Nimrod Huberman [EMAIL PROTECTED]:


Im not sure it's the right direction but you can try:
system.useCodepage=true;
Nimrod

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of  
Steven

Sacks
| BLITZ
Sent: Tuesday, March 20, 2007 8:32 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Localization issue with XML

Hey Flashcoders,

I'm having an issue with special characters not showing up from other
languages, such as German (ü, ö, etc.).  The issue is specifically  
with

text
loaded in from XML.

The textfields are set to embed all latin glyphs (1076 glyphs,  
Uppercase,

Lowercase, Numerals, Punctuation, Latin I, Latin Extended A, Latin
Extended
B, and Latin Extended Add'l).

All text is wrapped in CDATA tags.

I've tried saving the xml file with 8 bit and UTF-8 encoding and  
neither

works.

XML header is
?xml version=1.0 encoding=UTF-8 ?

If I set the text of the textfield with Actionscript to a string with
those
characters in it, no problem, they all show up just fine.

// This works
txt.htmlText = wofür benötigen;

However, when I display it from the XML, they show up as regular o  
and u

characters.

// Does not work
item![CDATA[wofür benötigen]]/item

Any ideas?

Thanks,
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


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Anyway way to capture a SWF as a bitmap?

2007-03-21 Thread elibol

Hey Douglas,

To answer  your question, the technique is to create a BitmapData object
initialized to the width/height of  your movieclip, you then call draw()
passing the movieclip you want to convert.

This is something I've done in Flex. It's much easier in AS3 as there are
jpeg/png encoders out there that encode BitmapData objects into byte arrays.
The encoding phase is a little resource intensive, but once it's done, you
have a compressed object you can send and write straight to the HD without
any encoding on the server side.

www.pierinc.com

On 3/21/07, Douglas Pearson [EMAIL PROTECTED] wrote:


Anyone know if there's a way to draw the contents of a SWF to a
Bitmap/BitmapData object within Flash?

I have a SWF that involves lots of complex rendering steps and I want to
be
export it as a bitmap.  The export part should be fine (using a server to
actually save the file) if I can figure out how to get it into a
BitmapData
object so I can call getPixels() on it.

Anyone have any ideas?

Doug

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Help: test EventDispatcher speed please

2007-03-21 Thread Merrill, Jason
I think ppl should be interested by these results mac vs 
pc/linux, don't you think ? :)

I know what you're saying but as I see it, it is a site test, Help:
test EventDispatcher speed please.  You're askng for a test, sending
them to your site. Regardless, I think *maybe* maybe on a summary basis,
but not from 20-30 e-mails where half the list sends in their results.
Perhaps they can send you their test results offlist and you can compile
an post your summary result later.

Jason Merrill
Bank of America  
Global Technology  Operations
Learning  Leadership Development 
eTools  Multimedia Team


 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Help: test EventDispatcher speed please

2007-03-21 Thread Geoff Stearns
I think most people should be very interested in these results, even  
if they don't know it yet.



On Mar 21, 2007, at 11:14 AM, Francis Bourre wrote:


hello!

As I know, I didn't ask ppl to test an application or a site I made.
That's a test that to enlight the fact that EventDispatcher behaves  
weird on mac player.
I think ppl should be interested by these results mac vs pc/linux,  
don't you think ? :)


francis

Le 21 mars 07 à 15:15, Merrill, Jason a écrit :


http://osflash.org/flashcoders/etiquette
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Help: test EventDispatcher speed please

2007-03-21 Thread gilles

Yes, it intereting to get the bug out.

Gilles
Le 21-mars-07 à 16:14, Francis Bourre a écrit :


hello!

As I know, I didn't ask ppl to test an application or a site I made.
That's a test that to enlight the fact that EventDispatcher behaves  
weird on mac player.
I think ppl should be interested by these results mac vs pc/linux,  
don't you think ? :)


francis

Le 21 mars 07 à 15:15, Merrill, Jason a écrit :


http://osflash.org/flashcoders/etiquette
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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


BERTRAND Gilles
B-services sprl
248, rue des canadiens
7022 HYON
BELGIUM
PHONE +32 499 529229


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Help: test EventDispatcher speed please

2007-03-21 Thread Muzak
Sure, but you posted it to about every mailing list out there.
In the end, this won't really solve anything, all you'll get is more of the 
same..

I suggest you use the bug/wishform and move on.
http://www.adobe.com/go/wish/

Muzak

- Original Message - 
From: Francis Bourre [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, March 21, 2007 4:14 PM
Subject: Re: [Flashcoders] Help: test EventDispatcher speed please


hello!

As I know, I didn't ask ppl to test an application or a site I made.
That's a test that to enlight the fact that EventDispatcher behaves
weird on mac player.
I think ppl should be interested by these results mac vs pc/linux,
don't you think ? :)

francis

Le 21 mars 07  15:15, Merrill, Jason a crit :



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Anyway way to capture a SWF as a bitmap?

2007-03-21 Thread Alain Rousseau
Have you tried loading the swf inside a MovieClip and then trace the
MovieClip to a BitmapData object ? 
I don't know if the same security restrictions apply to swf files as with
image files ...

Alain

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Douglas
Pearson
Sent: 21 mars 2007 10:56
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Anyway way to capture a SWF as a bitmap?

Anyone know if there's a way to draw the contents of a SWF to a
Bitmap/BitmapData object within Flash?

I have a SWF that involves lots of complex rendering steps and I want to be
export it as a bitmap.  The export part should be fine (using a server to
actually save the file) if I can figure out how to get it into a BitmapData
object so I can call getPixels() on it.

Anyone have any ideas?

Doug

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

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


--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.16/729 - Release Date: 2007-03-21
07:52
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 268.18.16/729 - Release Date: 2007-03-21
07:52
 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] User Centred Design

2007-03-21 Thread Nick Weekes
One of my favourite books on this subject, About Face 2:  Essentials of
Interaction Design:

http://www.amazon.co.uk/About-Face-2-0-Essentials-Interaction/dp/0764526413/
ref=sr_1_7/202-5343986-8502251?ie=UTF8s=booksqid=1174494929sr=8-7


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom Huynen
Sent: 21 March 2007 15:39
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] User Centred Design

I checked it out and it's great!

I found this one myself: Also pretty good:

http://www.experientia.com/blog

Regards,

Tom

On 3/21/07, tzoli [EMAIL PROTECTED] wrote:

 Here, you can find lot of articles on usability and design - 
 http://www.alistapart.com/



 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Tom 
 Huynen
 Sent: Wednesday, March 21, 2007 10:50 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] User Centred Design

 Hello friends,

 For my graduation on multmedia design over here in The Netherlands I'm 
 doing research on User Centred Design.
 I've been coding in actionscript for a few years now and the purpose 
 of the research is to be able to create beautifull interfaces with 
 high usability standards.

 So far I believe that user centred design comes from several 
 disciplines
 like:

 Cognitive Psychology, Anthropology, Human-Computer Interaction, Visual 
 and Graphic Arts, Communication, User-Interface Theory, Linguistics, 
 Human-Factors, Information Design, Instructional Design, Color Theory, 
 Typography, and more.

 It's a bit off topic but I know that you guys are the right persons to 
 ask for advise.
 And so I would like to ask if anybody has any suggestions for me. 
 Maybe on books or articles or just in general.

 Thanks in advanced

 Love you all!
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] How to run an external exe file

2007-03-21 Thread Steve Abaffy
Hello,

I am creating a Flash exe to run off of a CD. I have a second exe
that I want to run from the first. The second exe runs fine by itself, but
when I start it from the first all the resources of the second exe file do
not load, it looks as if they cannot be found. Both exe files are in the
same directory.  I am using the getURL(Second.exe,_blank,get); on a
button on(release).

Any help would be appreciated.

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


[Flashcoders] Flash JavaScript Integration Kit Issues

2007-03-21 Thread Steve Mathews

Hi,

I have an issue with some e-learning content that I can't figure out.
The content is setup to communicate with the LMS using AICC and is
currently working fine in IE7 and FireFox. In IE6 it fails to finish
initializing and I believe I have tracked it down to a point where
Javascript is calling a Flash method, but Flash doesn't seem to
receive the call. Is there any known issues with the kit and IE6 that
I might look at, or any reasons for a call to just not get sent?

Thanks,
Steve
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Flash extension question

2007-03-21 Thread Jobe Makar

Hi guys,

I'm writing a JSFL file that does some SWF exporting based on the FLA in 
focus. The exportSWF() method takes an absolute path. Is there a way to get 
a path to the current FLA or the directory that holds the FLA? Its kind of 
annoying to have to manually enter that path for each FLA I'm dealing with.


Thanks

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-341-8104 



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] too many lines in one frame

2007-03-21 Thread Mick G

Perhaps 32K is the compiled size limit - not the uncompressed .as file size
limit.


On 3/21/07, me myself [EMAIL PROTECTED] wrote:


Maybe, but the AS file was 115kb, and it had been working fine for
months (during which time it was well over 32kb). I'm wondering if
it's more about reaching some frame-AS limit than filesize. Or is 32kb
a soft limit, after which thinks may or may not get flaky?

On 3/20/07, Muzak [EMAIL PROTECTED] wrote:
 Sounds like you ran into the 32 KB limit:
 http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14437

 quote
 32 KB: This is the limit in file size for any single ActionScript script
such as a class.
 If you require a larger file, try breaking up your code into smaller
parts or delegating responsibilities to other classes.
 /quote

 regards,
 Muzak

 - Original Message -
 From: me myself [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Sent: Tuesday, March 20, 2007 9:37 PM
 Subject: [Flashcoders] too many lines in one frame


  This may be a well-known issue, and it may have been posted here
  before, but I thought I'd write a quick note about an obscure problem
  I've been dealing with for the last two days (Flash 8, AS 2.0):
 
  I had an AS file that is over 4000 lines long. I know this is a sign
  of bad code, and it IS bad code. But it's legacy code. When I get a
  chance, I'll rewrite it and divide it up into classes.
 
  Anyway, this file was sucked into frame one, via an #include.
 
  As I added code, I started to notice weird problems. I pulled my hair
  out debugging, because the problems had nothing to do with the code I
  was adding. I'd add something like num=2, and all of the sudden a
  movieclip would vanish (trace(mc._name) gave me undefined). I removed
  num=2, and the movieclip came back (trace(mc._name) yielded mc).
  Sometimes, even adding a comment would case strange errors.
 
  To my surprise, I eventually figured out that the errors were caused
  by the number of lines of code. If I added two lines, no problem. If I
  added a third, I'd get errors. It didn't matter what that line was or
  where I inserted it. I got errors.
 
  I started googling for too many lines and actionscript and found
  various forums where someone had posted a similar story. Usually,
  people responded by saying, You must be mistaken. It doesn't matter
  how many lines of code you use.
 
  I fixed the problem by dividing the code up into two AS files and
  loading one into the first frame and the other into the second.


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Entering hex number (a color) as component parameter

2007-03-21 Thread Alexander Farber

Thank you and sorry - I've missed the Color type in Flash help.

But what is the role of __hasInitialized in your example? Why can't I just:

[Inspectable(defaultValue=#66,type=Color)]
public function get bgcolor():Number {
return __bgcolor;
}

public function set bgcolor(val:Number):Void {
__bgcolor = val;
invalidate();
}

(full source code in Bubble.* files @ http://preferans.de/flash/ )?

On 3/20/07, Muzak [EMAIL PROTECTED] wrote:

[Inspectable(defaultValue=#66,type=Color)]
 public var bgcolor:Number = 0x66;

You might be better off using a getter/setter since you will have to redraw the 
rect_mc each time the color changes.


private var rect_mc:MovieClip;
private var __bgColor:Number = 0x66;
private var __hasInitialized:Boolean = false;

private function draw() {
setBgColor();
__hasInitialized = true;
}

private function setBgColor():Void {
// draw stuff, using __bgColor
rect_mc.clear();
rect_mc.beginFill(__bgColor);
// etc..
rect_mc.endFill();
}

[Inspectable(defaultValue=#66,type=Color)]
public function get bgColor():Number {
return __bgColor;
}
public function set bgColor(val:Number):Void {
__bgColor = val;
if(__hasInitialized) setBgColor();
}


Regards
Alex
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] FW: How to run an external exe file

2007-03-21 Thread Steve Abaffy
Hello,

Sorry if this is a repost as I didn't see it the first time I sent
it.

I am creating a Flash exe to run off of a CD. I have a second exe
that I want to run from the first. The second exe runs fine by itself, but
when I start it from the first all the resources of the second exe file do
not load, it looks as if they cannot be found. Both exe files are in the
same directory.  I am using the getURL(Second.exe,_blank,get); on a
button on(release).

Any help would be appreciated.

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] html vars and flash vars

2007-03-21 Thread Gustavo Duenas

to read the xml. just loadVars()

the code in xml :

link a href=1.swf?id=nada//link

actionscript: ???


and how could I have this processed in the flash?


Regards


Gustavo

On Mar 21, 2007, at 11:15 AM, Pedro Taranto wrote:


show your xml file with the link and the code you are using to load

--Pedro Taranto


Gustavo Duenas escreveu:

sounds good, how could I do it?

Regards

Gustavo
On Mar 20, 2007, at 2:32 PM, Pedro Taranto wrote:

you wanto to load a swf from a xml and pass a parameter by the  
url in the xml ??
why dont you put these variables in the same node and when you  
load it you pass to your swf?


--Pedro Taranto


Gustavo Duenas escreveu:

ok, how can i do it using swf?

link in xml file:

1.swf?id=something


action script

this is what I don't know, how can I send it.


Regards


Gustavo Duenas

On Mar 20, 2007, at 1:15 PM, Pedro Taranto wrote:

you have to pass the variables to the swf, if you are passing  
by html you have to use some script language to pass it swf


--Pedro Taranto


Gustavo Duenas escreveu:

ok Pedro, let me see if I can get it:

on the xml link.

1.swf?id=something or should be the html where this one is  
embedded like 1.html?id=something


var id = _root.id;

if ( id==something){
tellTarget(_root.mc){
do something;}
}

is the right thing?

or

myText.txt = _root.id;

if (_root.id==something){
tellTarget(_root.mc){
do something;}

tell me if the first is right, or the second or both are  
wrong, I have a few ideas on mind and I'd like to resolve this  
matter before going forward.



Regards


Gustavo Duenas



on the action script.


On Mar 20, 2007, at 12:36 PM, Pedro Taranto wrote:


it is loaded on the _root

you use like this == yourTxt.text = _root.userId

--Pedro Taranto

Gustavo Duenas escreveu:
Hi, I have a curiosity...or an itch about something (I'm  
full of it). The thing is that  I'm loading a xml page into  
my flash and I'd like to know
how can I handle the links, I know I can trigger external  
events (in a browser window), but there is a way that this  
particular xml link, can trigger an
event inside the flash , like using the regular buttons.  
I've tried in the past with html variables: mypage.html? 
userId=something but not good results, maybe I was wrong in  
the written.

but how can I make the  flash read it?
I'd appreciate your help.


Regards.



Gustavo Duenas



P.s: how the flash vars works and how ca I use it.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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



Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 w. Beaver St. suite 119
Jacksonville, FL 32204
904 . 2650330
www.leftandrightsolutions.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



Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 w. Beaver St. suite 119
Jacksonville, FL 32204
904 . 2650330
www.leftandrightsolutions.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



Gustavo Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS LLC
1225 w. Beaver St. suite 119
Jacksonville, FL 32204
904 . 2650330
www.leftandrightsolutions.com


___

[Flashcoders] Dealing with size of a multi languages site

2007-03-21 Thread Gosselin, Robert
HI,

I am building a site where we must include 6 different languages in it.
I am doing this by using the i18n method and everything work perfectly.

What would be the best way of dealing with the embedded fonts in my project?
What is the best method for saving size of my swf?

Right now I am doing some test and the swf is [EMAIL PROTECTED] heavy.

Thanks



ROBERT GOSSELIN   SENIOR FLASH DEVELOPER
SID LEE514.282.2200 # 619
COMMERCIAL CREATIVITYSIDLEE.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] Anyway way to capture a SWF as a bitmap?

2007-03-21 Thread Douglas Pearson
Thanks to everyone who pointed out the bitmapData.draw() method!

I had seen that in passing but didn't realize that IBitmapDrawable supported
all display objects.

Thanks folks--that should do nicely.

Doug

-Original Message-
From: Hans Wichman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 21, 2007 8:48 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Anyway way to capture a SWF as a bitmap?

Hi,
you mean something like this:
var bitmapData1:BitmapData =
new BitmapData(200, 200, false, 0x00); bitmapData1.draw(myMC,new
Matrix());

?
greetz
JC


On 3/21/07, Douglas Pearson [EMAIL PROTECTED] wrote:

 Anyone know if there's a way to draw the contents of a SWF to a 
 Bitmap/BitmapData object within Flash?

 I have a SWF that involves lots of complex rendering steps and I want 
 to be export it as a bitmap.  The export part should be fine (using a 
 server to actually save the file) if I can figure out how to get it 
 into a BitmapData object so I can call getPixels() on it.

 Anyone have any ideas?

 Doug

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

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



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

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


Re: [Flashcoders] Flash, PHP and mysql Costumer Database

2007-03-21 Thread Omar Fouad

www.kirupa.com


On 3/17/07, Michael Boski [EMAIL PROTECTED] wrote:


Does anyone know an open source Flash, PHP and mysql Costumer Database.
(with generic fields name, address ...)


Or even on that you purchase the code.

if it uses AMFphp all the better.

thanks,

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

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





--
Omar Fouad - Digital Emotions...

Love is always patient and kind. It is never jealous. Love is never boastful
nor conceited It is never rude or selfish. It does not take offense and is
not resentful. Love takes no pleasure in other people's sins...but delights
in the truth. It is always ready to excuse, to trust, to hope... and to
endure... whatever comes.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Flash video, works locally not online

2007-03-21 Thread DannyT

I am trying to get some video loaded at runtime using the following:

var my_nc:NetConnection;
var my_ns:NetStream;
my_nc = new NetConnection();
my_nc.connect(null);
my_ns = new NetStream(my_nc);
curMedia = createEmptyMovieClip(videoPlayer, getNextHighestDepth());
curMedia.attachMovie(FlvManager,video, curMedia.getNextHighestDepth());
//FLVManager is a movieclip in the library which contains an instance of
FlvPlayer called FlvPlayer

curMedia[video].FlvPlayer.attachVideo(my_ns);

   my_ns.onStatus = function(infoObject)
   {
   for (var prop in infoObject)
   {
   debugRef.text += \t+prop+:\t+infoObject[prop] + \n; //
output to textfield
   }
   }
   my_ns.play(this.curClient.videos[0]); // reference to video object
   debugRef.text += this.curClient.videos[0]+\n; // which is
outputted here and is correct

When i try to run this locally it works fine, when i try to run it online I
get no status response from my_ns.
However the flv file will run when I use a video component wizard
(FLVPlayback)

Can someone suggest what is wrong or how i can debug this?

Cheers,
--
http://danny-t.co.uk
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Help: test EventDispatcher speed please

2007-03-21 Thread Muzak
Part from the fact it got posted to about every single mailing list??

- Original Message - 
From: Cedric Muller [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, March 21, 2007 4:50 PM
Subject: Re: [Flashcoders] Help: test EventDispatcher speed please


 Hello!
 why did you send the etiquette :)
 I think testing EventDispatcher performance is something really  interesting, 
 worthy, and flashcoders' centric.
 Such post doesn't ask for a site check, nor is the Thread title  obscure, a 
 clear question/request is asked, no solution is 
 offered,  because here Francis is just looking for a benchmark, such post can 
  be helpful
 I know I can be wrong ;)
 Cedric



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Annoying, (should be simple) bitwise problem

2007-03-21 Thread Alias™

Hi guys,

This is annoying me - I'm just trying to get the seperate RGB
component values out of a hex number, then manipulate and reconstruct
them.

var col = 0xFF;

r = col  16;
g = col  8 % 255;
b = col % 255;
trace(r=+r.toString(16));
trace(g=+g.toString(16));
trace(b=+b.toString(16));

col2 = r 16 + g  8 + b;
trace(col2=+col2.toString(16));

Anyone got any idea why this isn't working right? My blue values are
doing all sorts of wierd stuff - getting smaller, flipping out etc -
is it a modulo problem maybe? Should be simple but this always gets
me...

Any help much appreciated,
Alias
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Help: test EventDispatcher speed please

2007-03-21 Thread Holth, Daniel C.

Regarding the test, I think it would be more useful to have people
specify whether or not they are on an Intel or an original Mac.  I have
definitely noticed performance improvements since upgrading to my Intel,
but I'm not sure if its only because of the faster processor, if the
Flash Player handles the code differently on an Intel, or even if its
still runs in Rosetta?

As far as site checks and requests, I have to agree with Jason on this.
If you are compiling testing statistics, requesting to have them sent
off list and then posting a summary after you have completed your tests
seems more appropriate.  I for one would be interested in the results,
but again, they aren't very useful for me if I have to filter through
all the posts to figure out what the results were.

Just my two cents.

-DC Holth


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Wednesday, March 21, 2007 11:10 AM
To: flashcoders@chattyfig.figleaf.com
Subject: RE: [Flashcoders] Help: test EventDispatcher speed please

I think ppl should be interested by these results mac vs
pc/linux, don't you think ? :)

I know what you're saying but as I see it, it is a site test, Help:
test EventDispatcher speed please.  You're askng for a test, sending
them to your site. Regardless, I think *maybe* maybe on a summary basis,
but not from 20-30 e-mails where half the list sends in their results.
Perhaps they can send you their test results offlist and you can compile
an post your summary result later.

Jason Merrill
Bank of America 
Global Technology  Operations
Learning  Leadership Development
eTools  Multimedia Team



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 its attachments are intended only for the use of the 
addressee(s) and may contain privileged, confidential or proprietary 
information. If you are not the intended recipient, or the employee or agent 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution, displaying, copying, or 
use of this information is strictly prohibited. If you have received this 
communication in error, please inform the sender immediately and delete and 
destroy any record of this message. Thank you.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


RE: [Flashcoders] Localization issue with XML

2007-03-21 Thread Steven Sacks | BLITZ
You're telling me to do something that I specifically said I already have done.


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Søren Christensen
 Sent: Wednesday, March 21, 2007 9:04 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] Localization issue with XML
 
 
 
 if it isnt a coded textfield you need to define each special 
 character using the 'embed' button in the inspector (while the tf is
 selected) in the 'include these charecters' field
 
 Cheers,
  B) Søren
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of 
  Steven Sacks
  | BLITZ
  Sent: Tuesday, March 20, 2007 8:32 PM
  To: flashcoders@chattyfig.figleaf.com
  Subject: [Flashcoders] Localization issue with XML
 
  Hey Flashcoders,
 
  I'm having an issue with special characters not showing up 
 from other 
  languages, such as German (ü, ö, etc.).  The issue is specifically 
  with text loaded in from XML.
 
  The textfields are set to embed all latin glyphs (1076 glyphs, 
  Uppercase, Lowercase, Numerals, Punctuation, Latin I, 
 Latin Extended 
  A, Latin Extended B, and Latin Extended Add'l).
 
  All text is wrapped in CDATA tags.
 
  I've tried saving the xml file with 8 bit and UTF-8 encoding and 
  neither works.
 
  XML header is
  ?xml version=1.0 encoding=UTF-8 ?
 
  If I set the text of the textfield with Actionscript to a 
 string with 
  those characters in it, no problem, they all show up just fine.
 
  // This works
  txt.htmlText = wofür benötigen;
 
  However, when I display it from the XML, they show up as regular o 
  and u characters.
 
  // Does not work
  item![CDATA[wofür benötigen]]/item
 
  Any ideas?
 
  Thanks,
  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


[Flashcoders] disabling carriage returns in wrapping text fields

2007-03-21 Thread john hoffsis
Does anyone know if it's possible to restrict hard returns in text input fields 
(fields must wrap)? 
  
  I have form fields to capture user input that I'm sending up to the  server 
to be stored in a database. When I request this stored data from  the server, 
anything after a hard return is lost.
  
  I've tried something like this:
my_txt.restrict=^\u0013, and a bunch of variations thereof, but nothing 
seems to keep the Enter key from doing it's thing. 

Second best would be to traverse through a string a user has entered  and 
replace hard returns with a space or dash, but again I've had no  luck looking 
for \n or \r. I've tried entering text and hard returns  into a dynamic 
textfield set to input, but when I try this:
var n:Number = my_txt.indexOf(\n)...
trace(n: +n) //traces n: -1
  
Anyone have any insight into this?
  
  Thanks,
  John
  
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] Flash 8 textfields in a Flash 7 SWF

2007-03-21 Thread Jah

for the effects to take affect, you'd need to publish in version 8.
since those with 7 won't be able to load that (or might not be able to
with predictable results)  using System.capabilities.version to detect
version number might not solve your problem.

so within a single swf, i don't think you can accomplish that.

On 3/21/07, Jake Prime [EMAIL PROTECTED] wrote:

Hi

I have a SWF which is published as Flash 8 purely to take advantage of
the filter effects that can be applied to dynamic text fields. The
problem is that I am now forced to deploy the project to Flash 7.

I was hoping that I could do a detect within the SWF and serve up the
nice Flash 8 text fields for the majority who can see it, and just
have the plain old 7 ones for those who can't.

Is there a way to do this within a single SWF?

Thanks
Jake
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 run an external exe file

2007-03-21 Thread Jim Berkey
On 3/21/2007 at 11:39 AM Steve Abaffy wrote:

Hello,

   I am creating a Flash exe to run off of a CD. I have a second exe
that I want to run from the first. The second exe runs fine by itself, but
when I start it from the first all the resources of the second exe file do
not load, it looks as if they cannot be found. Both exe files are in the
same directory.  I am using the getURL(Second.exe,_blank,get); on a
button on(release).

When I've done CD's I created the opening file as an exe,so you have the 
built-in player,  auto opened it with an autorun.inf file, then loaded and 
unloaded swf's and jpg's and such into it, without any problems. Does the 
second file need to be an exe?
jimbo

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Localization issue with XML

2007-03-21 Thread Måns Asplund

Hello Steven I´ve done it like this:
Dynamic textfield named info_txt set to embed (in this case) ü and ö.

Load and parse XML:
/
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
information = [];
total = xmlNode.childNodes.length;
for (i=0; itotal; i++) {
information[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
}
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load(xml.xml);
p = 0;
this.onEnterFrame = function() {
info_txt.htmlText = information[p];
}
/

Loading the xml.xml file that looks like this:

?xml version=1.0 encoding=UTF-8?
   web
   items
   item![CDATA[wofür benötigen]]/item
   /items
   /web

The XML file is saved as UTF-8 encoding from notepad.

Works fine, here´s a link:
http://www.stiladig.nu/xml/
and
http://www.stiladig.nu/xml/xml.zip

|.Måns



2007/3/20, Steven Sacks | BLITZ [EMAIL PROTECTED]:


Hey Flashcoders,

I'm having an issue with special characters not showing up from other
languages, such as German (ü, ö, etc.).  The issue is specifically with text
loaded in from XML.

The textfields are set to embed all latin glyphs (1076 glyphs, Uppercase,
Lowercase, Numerals, Punctuation, Latin I, Latin Extended A, Latin Extended
B, and Latin Extended Add'l).

All text is wrapped in CDATA tags.

I've tried saving the xml file with 8 bit and UTF-8 encoding and neither
works.

XML header is
?xml version=1.0 encoding=UTF-8 ?

If I set the text of the textfield with Actionscript to a string with
those characters in it, no problem, they all show up just fine.

// This works
txt.htmlText = wofür benötigen;

However, when I display it from the XML, they show up as regular o and u
characters.

// Does not work
item![CDATA[wofür benötigen]]/item

Any ideas?

Thanks,
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


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] html vars and flash vars

2007-03-21 Thread Merrill, Jason
to read the xml. just loadVars()

the code in xml :

link a href=1.swf?id=nada//link

actionscript: ???


and how could I have this processed in the flash?

Don't use LoadVars to load the XML - there is a whole class in
Actionscript to handle XML.  Look in the help docs for XML. There's also
a great list called Flashnewbies also hosted by figleaf which would be a
great resource for you.

Jason Merrill
Bank of America  
GTO Learning  Leadership Development
eTools  Multimedia Team


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

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


RE: [Flashcoders] Flash extension question

2007-03-21 Thread Steven Sacks | BLITZ
If you want to export to a different directory, you'll have to modify
the publish settings xml file, which I discuss on my blog...which for
some reason is down right now (writes email to hosting company)...so
I'll copy and paste the code here.  If you are publishing to the same
folder as the FLA, you only need to doc.publish() and the first two
functions.


var doc = fl.getDocumentDOM();

function getRelativePath() {
var pathArr = doc.path.split(\\);
pathArr.length--;
return(file:/// + pathArr.join(/) + /);
}
function saveFile(s) {
var fPath = getRelativePath() + s + .fla;
fl.saveDocument(doc, fPath);
}
function cleanup() {
var fPath = getRelativePath() + PublishProfile.xml;
FLfile.remove(fPath);
}
function publishTheSWF(s) {
setPublishSettings(s);
saveFile(s);
cleanup();
doc.publish();
}
function setPublishSettings(s) {
var xml, from, to, snip;
var fPath = getRelativePath() + PublishProfile.xml;

// export the profile and read it in
doc.exportPublishProfile(fPath);
xml = FLfile.read(fPath);

var folderPath = ../deploy/;
// replace the publish paths
from = xml.indexOf(flashFileName);
to = xml.indexOf(/flashFileName);
snip = xml.substring(from, to);
xml = xml.split(snip).join(flashFileName + folderPath + s);

// set player version
v = 8;
from = xml.indexOf(Version);
to = xml.indexOf(/Version);
snip = xml.substring(from, to);
xml = xml.split(snip).join(Version + v);

var nodes = {};
nodes.generatorFileName = swt;
nodes.projectorWinFileName = exe;
nodes.projectorMacFileName = hqx;
nodes.htmlFileName = html;
nodes.gifFileName = gif;
nodes.jpegFileName = jpg;
nodes.pngFileName = png;
nodes.qtFileName = mov;
nodes.rnwkFileName = smil;

for (var n in nodes) {
from = xml.indexOf( + n + );
to = xml.indexOf(/ + n + );
snip = xml.substring(from, to);
xml = xml.split(snip).join( + n +  + s + . +
nodes[n]);
}

// write the file
FLfile.write(fPath, xml);

// import the altered profile
doc.importPublishProfile(fPath);
}


You can then use:

publishTheSWF(swfName);

Note: do not include the extension.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: Flash extension question

2007-03-21 Thread Jonathyn B. Tellez
Hi Jobe,

I hope this helps.  

The jsfl script below publishes a given fla based on it's publish
settings.  File paths can be relative from the location of the .jsfl
file. See FLFile.listFolder in the Adobe docs for how to handle
directories.

JB Tellez
Sr. Software Engineer
Scientific Learning Corporation
[EMAIL PROTECTED]


function publish(filename) 
{

var fla = file:/// + filename;

fl.trace(fla);

if (FLfile.exists(fla)) 
{
var doc = fl.openDocument(fla);

doc.publish();

doc.close();

} else {

fl.trace(File not found -  + fla);
}

}

function main() 
{
publish(../src/fla/Some.fla);

fl.trace(all done);

}
//--
-
// PROGRAM ENTRY POINT

// clear output panel
fl.outputPanel.clear();

main();

--

Message: 19
Date: Wed, 21 Mar 2007 12:52:42 -0400
From: Jobe Makar [EMAIL PROTECTED]
Subject: [Flashcoders] Flash extension question
To: flashcoders@chattyfig.figleaf.com
Message-ID: [EMAIL PROTECTED]
Content-Type: text/plain; format=flowed; charset=iso-8859-1;
reply-type=response

Hi guys,

I'm writing a JSFL file that does some SWF exporting based on the FLA in

focus. The exportSWF() method takes an absolute path. Is there a way to
get 
a path to the current FLA or the directory that holds the FLA? Its kind
of 
annoying to have to manually enter that path for each FLA I'm dealing
with.

Thanks

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-341-8104 

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Entering hex number (a color) as component parameter

2007-03-21 Thread Johannes Nel

he checks if the component is init'd

On 3/21/07, Alexander Farber [EMAIL PROTECTED] wrote:


Thank you and sorry - I've missed the Color type in Flash help.

But what is the role of __hasInitialized in your example? Why can't I
just:

[Inspectable(defaultValue=#66,type=Color)]
public function get bgcolor():Number {
return __bgcolor;
}

public function set bgcolor(val:Number):Void {
__bgcolor = val;
invalidate();
}

(full source code in Bubble.* files @ http://preferans.de/flash/ )?

On 3/20/07, Muzak [EMAIL PROTECTED] wrote:
 [Inspectable(defaultValue=#66,type=Color)]
  public var bgcolor:Number = 0x66;

 You might be better off using a getter/setter since you will have to
redraw the rect_mc each time the color changes.


 private var rect_mc:MovieClip;
 private var __bgColor:Number = 0x66;
 private var __hasInitialized:Boolean = false;

 private function draw() {
 setBgColor();
 __hasInitialized = true;
 }

 private function setBgColor():Void {
 // draw stuff, using __bgColor
 rect_mc.clear();
 rect_mc.beginFill(__bgColor);
 // etc..
 rect_mc.endFill();
 }

 [Inspectable(defaultValue=#66,type=Color)]
 public function get bgColor():Number {
 return __bgColor;
 }
 public function set bgColor(val:Number):Void {
 __bgColor = val;
 if(__hasInitialized) setBgColor();
 }

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

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





--
j:pn
http://www.lennel.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


[Flashcoders] NetStream Bug? FLVs with no audio won't pause(false)

2007-03-21 Thread Jack Doyle
Anyone else run into this problem?

If I call a NetStream's pause() function and pass a value of FALSE, it's
supposed to unpause it. However, if I do so after a few milliseconds on an
FLV that's encoded without any audio, the pause(false) does the exact
opposite! If I run the same code on an FLV that has audio, it works
perfectly!

I encoded lots of different ways in Sorenson Squeeze and with the Quicktime
exporter using various codecs and bitrates, but nothing solves the problem.
The only way to fix it is to call a pause(true) immediately before calling
pause(false). 

I've set up an interactive test file so you can see exactly what I'm talking
about. It has a sample FLA, two FLVs (one with audio, one without), and the
original WMV video. Just click the buttons to see the behavior. Download the
1.9MB file at:
http://www.greensock.com/NetStream_Bug.zip

I know you're thinking why would you want to call pause(false) if you're
already playing the NetStream, butwell...it's a long story and you'll
just have to trust me.

Like I said, I figured out a way around it, but I'm sending this e-mail out
for two reasons:
1) Maybe you guys can find an error in my code (not that the code is the
least bit complex, but I've been known to miss the obvious)
2) Maybe someone else has run into the same problem and would be helped by
the simple hack I'm using

Here's some sample code (not what I'd use in my application - just a
simplified version to show the bug):

var _nc:NetConnection = new NetConnection();
_nc.connect(null);
var _ns:NetStream = new NetStream(_nc);
video_obj.attachVideo(_ns);
_ns.play(without_audio.flv); 
var delayInterval_num:Number = setInterval(resume, 200);

function resume():Void {
//_ns.pause(true); //Uncomment this line and it'll work again.
Shouldn't have to though.
_ns.pause(false);
clearInterval(delayInterval_num);
}

Jack Doyle



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Annoying, (should be simple) bitwise problem

2007-03-21 Thread Steve Abaffy
You could try.
Var col = 0xff;
Var redmask = 0xff;
Var greenmask = 0x00ff00;
Var bluemask = 0xff

R = col  redmask;
G = col  greenmask;
B = col  bluemask;
R = R  16;
G = G  8;
//Blue does not need shifting.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of AliasT
Sent: Wednesday, March 21, 2007 1:22 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Annoying, (should be simple) bitwise problem

Hi guys,

This is annoying me - I'm just trying to get the seperate RGB
component values out of a hex number, then manipulate and reconstruct
them.

var col = 0xFF;

r = col  16;
g = col  8 % 255;
b = col % 255;
trace(r=+r.toString(16));
trace(g=+g.toString(16));
trace(b=+b.toString(16));

col2 = r 16 + g  8 + b;
trace(col2=+col2.toString(16));

Anyone got any idea why this isn't working right? My blue values are
doing all sorts of wierd stuff - getting smaller, flipping out etc -
is it a modulo problem maybe? Should be simple but this always gets
me...

Any help much appreciated,
Alias
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Annoying, (should be simple) bitwise problem

2007-03-21 Thread Mark Winterhalder

Hi Alias,

it's either % 256 or  255. But % 255 gives you the wrong result --
(255 % 255 == 0).

Either:
var r = col  16;
var g = (col  8) % 256;
var b = col % 256;

Or:
var r = col  16;
var g = (col  8)  0xff;
var b = col  0xff;

I prefer the second.

HTH,
Mark



On 3/21/07, Alias™ [EMAIL PROTECTED] wrote:

Hi guys,

This is annoying me - I'm just trying to get the seperate RGB
component values out of a hex number, then manipulate and reconstruct
them.

var col = 0xFF;

r = col  16;
g = col  8 % 255;
b = col % 255;
trace(r=+r.toString(16));
trace(g=+g.toString(16));
trace(b=+b.toString(16));

col2 = r 16 + g  8 + b;
trace(col2=+col2.toString(16));

Anyone got any idea why this isn't working right? My blue values are
doing all sorts of wierd stuff - getting smaller, flipping out etc -
is it a modulo problem maybe? Should be simple but this always gets
me...

Any help much appreciated,
Alias
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] disabling carriage returns in multiline input text fields

2007-03-21 Thread john hoffsis
Does anyone know if it's possible to restrict hard returns in text input fields 
(fields must wrap)? 

  I have form fields to capture user input that I'm sending up to the  server 
to be stored in a database. When I request this stored data from  the server, 
anything after a hard return is lost.

I've tried something like this:
  my_txt.restrict=^\u0013, and a bunch of variations thereof, but  nothing 
seems to keep the Enter key from doing it's thing. 
  
  Second best would be to traverse through a string a user has entered  and 
replace hard returns with a space or dash, but again I've had no  luck looking 
for \n or \r. I've tried entering text and hard returns  into a dynamic 
textfield set to input, but when I try this:
  var n:Number = my_txt.indexOf(\n)...
  trace(n: +n) //traces n: -1

  Anyone have any insight into this?

Thanks,
John
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Annoying, (should be simple) bitwise problem

2007-03-21 Thread Glen Pike

Use  instead of %

r = (col  16)  0xFF;
g = (col  8)  0xFF;
b = col  0xFF;

Glen :)

Alias™ wrote:

Hi guys,

This is annoying me - I'm just trying to get the seperate RGB
component values out of a hex number, then manipulate and reconstruct
them.

var col = 0xFF;

r = col  16;
g = col  8 % 255;
b = col % 255;
trace(r=+r.toString(16));
trace(g=+g.toString(16));
trace(b=+b.toString(16));

col2 = r 16 + g  8 + b;
trace(col2=+col2.toString(16));

Anyone got any idea why this isn't working right? My blue values are
doing all sorts of wierd stuff - getting smaller, flipping out etc -
is it a modulo problem maybe? Should be simple but this always gets
me...

Any help much appreciated,
Alias
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] disabling carriage returns in wrapping text fields

2007-03-21 Thread Steven Sacks | BLITZ
You could fake it and instead of using an input textfield, capture
keystrokes and put them into a dynamic textfield.  :)

You could also validate the input textfield on every key up event and
strip any carriage returns out then.

INP_Field.text =
INP_Field.text.split(\n).join().split(\r).join();

:)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Freelance programmer needed

2007-03-21 Thread Franklin Zitter
FlickerLab, a New York animation and design studio, is in need of a  
freelance programmer to assist with scripting / programming for a  
proprietary animation software beginning immediately. Familiarity  
with Javascript and Flash (JSFL) required. Understanding of Animation  
preferred.


Send resume, links to portfolio or other relevant info to  
[EMAIL PROTECTED]


Thank you,

Franklin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Video directly in mail?

2007-03-21 Thread Glen Pike

Hi,

   This is slightly negative, but I would not bother trying to do this 
in email unless you can guarantee all your recipients are using a 
specific platform - the time spent getting it working is not worth the 
money paid for the job (usually).


   We deal with email newsletters on a daily basis and have to code in 
HTML with tables and fonts and stuff to make sure that all the email 
clients at least have a go at rendering it the way intended.


   I would suggest resorting to a still  a link to a web page rather 
than trying to embed Flash, etc. in an email.


   MS have made Outlook 2007 use the Office engine to render HTML 
emails rather than IE.


   
http://www.campaignmonitor.com/blog/archives/2007/01/microsoft_takes_email_design_b.html


   Good luck.

   Glen  


Dennis - I Sioux wrote:

Hey guys,

We would like to send a video(stream) in a news e-mail to affiliates.
Does anybody know if this is possible in mail?
As far as i could see there weren't any active-x possibilities.. so FMS is 
probably not done?

With kind regards,


Dennis 
I Sioux B.V.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Annoying, (should be simple) bitwise problem

2007-03-21 Thread Jonathan.Doklovic
 var col = 0xFF;
 r = col  16;
 g = (col  8)  0xff;
 b = col  0xff;

 var col2 = r  16 | g  8 | b;


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Alias(tm)
Sent: Wednesday, March 21, 2007 1:22 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Annoying, (should be simple) bitwise problem

Hi guys,

This is annoying me - I'm just trying to get the seperate RGB component
values out of a hex number, then manipulate and reconstruct them.

var col = 0xFF;

r = col  16;
g = col  8 % 255;
b = col % 255;
trace(r=+r.toString(16));
trace(g=+g.toString(16));
trace(b=+b.toString(16));

col2 = r 16 + g  8 + b;
trace(col2=+col2.toString(16));

Anyone got any idea why this isn't working right? My blue values are
doing all sorts of wierd stuff - getting smaller, flipping out etc - is
it a modulo problem maybe? Should be simple but this always gets me...

Any help much appreciated,
Alias
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 run an external exe file

2007-03-21 Thread R�kos Attila

fscommand(exec, Second.exe);

Create a folder named fscommand where your projector resides and
place Second.exe into this folder.

  Attila

SA Hello,
SA 
SA I am creating a Flash exe to run off of a CD. I have a second exe
SA that I want to run from the first. The second exe runs fine by itself, but
SA when I start it from the first all the resources of the second exe file do
SA not load, it looks as if they cannot be found. Both exe files are in the
SA same directory.  I am using the getURL(Second.exe,_blank,get); on a
SA button on(release).
SA 
SA Any help would be appreciated.
SA 
SA 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] Annoying, (should be simple) bitwise problem

2007-03-21 Thread Geoff Stearns
there's an old article on the adobe dev center that talks all about  
this... go check it out:


http://www.adobe.com/devnet/flash/articles/bitwise_operators.html



On Mar 21, 2007, at 2:21 PM, Alias™ wrote:


Hi guys,

This is annoying me - I'm just trying to get the seperate RGB
component values out of a hex number, then manipulate and reconstruct
them.

var col = 0xFF;

r = col  16;
g = col  8 % 255;
b = col % 255;
trace(r=+r.toString(16));
trace(g=+g.toString(16));
trace(b=+b.toString(16));

col2 = r 16 + g  8 + b;
trace(col2=+col2.toString(16));

Anyone got any idea why this isn't working right? My blue values are
doing all sorts of wierd stuff - getting smaller, flipping out etc -
is it a modulo problem maybe? Should be simple but this always gets
me...

Any help much appreciated,
Alias
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 run an external exe file

2007-03-21 Thread Steve Abaffy
No it does not need to be an exe file. I tried loading the swf file as well
and loads ok, except that the second swf file needs to look at a folder and
load a bunch of jpg, and other data. I have looked at the data being loaded
and it is all there, however the pictures do not load that data does not put
into the dynamic text fields. But when I run the second swf file as a stand
alone file it works perfect. So I thought that maybe I could force it to run
the exe file instead. But couldn't figure it out.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jim Berkey
Sent: Wednesday, March 21, 2007 2:36 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] How to run an external exe file

On 3/21/2007 at 11:39 AM Steve Abaffy wrote:

Hello,

   I am creating a Flash exe to run off of a CD. I have a second exe
that I want to run from the first. The second exe runs fine by itself, but
when I start it from the first all the resources of the second exe file do
not load, it looks as if they cannot be found. Both exe files are in the
same directory.  I am using the getURL(Second.exe,_blank,get); on a
button on(release).

When I've done CD's I created the opening file as an exe,so you have the
built-in player,  auto opened it with an autorun.inf file, then loaded and
unloaded swf's and jpg's and such into it, without any problems. Does the
second file need to be an exe?
jimbo

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] disabling carriage returns in wrapping text fields

2007-03-21 Thread R�kos Attila

Flash uses \r (0x0D) only in text fields. All occurencies of \n (0x0A)
are replaced with \r. E.g. if you assign foo\nbar to a text field
and read the value back, it will turn to foo\rbar.

For replacing certain characters use String.split() and
String.join().

However, it would be better to check the server-side script, since it
is probably not perfect if some data can lost during the process.

  Attila

jh Does anyone know if it's possible to restrict hard returns in text input 
fields (fields must wrap)?
jh   
jh   I have form fields to capture user input that I'm sending up to the  
server to be stored in a database. When I request this stored data from  the 
server, anything after a hard return is lost.
jh   
jh   I've tried something like this:
jh my_txt.restrict=^\u0013, and a bunch of variations thereof, but 
nothing seems to keep the Enter key from doing it's thing. 
jh 
jh Second best would be to traverse through a string a user has entered  
and replace hard returns with a space or dash, but again I've had no  luck 
looking for \n or \r. I've tried entering text and hard returns  into a dynamic 
textfield set to input, but when I try this:
jh var n:Number = my_txt.indexOf(\n)...
jh trace(n: +n) //traces n: -1
jh   
jh Anyone have any insight into this?


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Annoying, (should be simple) bitwise problem

2007-03-21 Thread Latcho

there might be more clever ways...

var col = 0x0199FF;
var _r = (col 16);
var _g = (col 8 ^ _r  8);
var _b = (col^ (_r  16 | _g  8));

trace(r=+_r);
trace(g=+_g);
trace(b=+_b);

var r = (_r.toString(16).length  2) ? 0+_r.toString(16) : 
_r.toString(16);
var g = (_g.toString(16).length  2) ? 0+_g.toString(16) : 
_g.toString(16);
var b = (_b.toString(16).length  2) ? 0+_b.toString(16) : 
_b.toString(16);

var hexa=0x+r+g+b
trace(hexa=+hexa)





Anyone got any idea why this isn't working right? My blue values are
doing all sorts of wierd stuff - getting smaller, flipping out etc -
is it a modulo problem maybe? Should be simple but this always gets
me...

Any help much appreciated,
Alias
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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



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

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


Re: [Flashcoders] Flash video, works locally not online

2007-03-21 Thread Latcho
The path to a video is relative to your swf when playing it standalone 
or in your IDE player.
But in an online situation the path is relative to the place where the 
swf is embedded, so to the html file/location.

This confuses me often, and this might also be your problem ?

regards, latcho.

DannyT wrote:

I am trying to get some video loaded at runtime using the following:

var my_nc:NetConnection;
var my_ns:NetStream;
my_nc = new NetConnection();
my_nc.connect(null);
my_ns = new NetStream(my_nc);
curMedia = createEmptyMovieClip(videoPlayer, getNextHighestDepth());
curMedia.attachMovie(FlvManager,video, 
curMedia.getNextHighestDepth());

//FLVManager is a movieclip in the library which contains an instance of
FlvPlayer called FlvPlayer

curMedia[video].FlvPlayer.attachVideo(my_ns);

   my_ns.onStatus = function(infoObject)
   {
   for (var prop in infoObject)
   {
   debugRef.text += \t+prop+:\t+infoObject[prop] + 
\n; //

output to textfield
   }
   }
   my_ns.play(this.curClient.videos[0]); // reference to video object
   debugRef.text += this.curClient.videos[0]+\n; // which is
outputted here and is correct

When i try to run this locally it works fine, when i try to run it 
online I

get no status response from my_ns.
However the flv file will run when I use a video component wizard
(FLVPlayback)

Can someone suggest what is wrong or how i can debug this?

Cheers,


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Localization issue with XML

2007-03-21 Thread Ivan Dembicki
Hello Mans,

MA The XML file is saved as UTF-8 encoding from notepad.
- yes. here is his problem. 100%


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

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

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


Re: [Flashcoders] Flash extension question

2007-03-21 Thread Jobe Makar

Thanks Steven,

doc.path was the breakthrough that I needed. For some reason I didn't notice 
that in the documentaiton. Your code is useful as well. Thanks for the help!


Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-341-8104
- Original Message - 
From: Steven Sacks | BLITZ [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, March 21, 2007 4:31 PM
Subject: RE: [Flashcoders] Flash extension question


If you want to export to a different directory, you'll have to modify
the publish settings xml file, which I discuss on my blog...which for
some reason is down right now (writes email to hosting company)...so
I'll copy and paste the code here.  If you are publishing to the same
folder as the FLA, you only need to doc.publish() and the first two
functions.


var doc = fl.getDocumentDOM();

function getRelativePath() {
var pathArr = doc.path.split(\\);
pathArr.length--;
return(file:/// + pathArr.join(/) + /);
}
function saveFile(s) {
var fPath = getRelativePath() + s + .fla;
fl.saveDocument(doc, fPath);
}
function cleanup() {
var fPath = getRelativePath() + PublishProfile.xml;
FLfile.remove(fPath);
}
function publishTheSWF(s) {
setPublishSettings(s);
saveFile(s);
cleanup();
doc.publish();
}
function setPublishSettings(s) {
var xml, from, to, snip;
var fPath = getRelativePath() + PublishProfile.xml;

// export the profile and read it in
doc.exportPublishProfile(fPath);
xml = FLfile.read(fPath);

var folderPath = ../deploy/;
// replace the publish paths
from = xml.indexOf(flashFileName);
to = xml.indexOf(/flashFileName);
snip = xml.substring(from, to);
xml = xml.split(snip).join(flashFileName + folderPath + s);

// set player version
v = 8;
from = xml.indexOf(Version);
to = xml.indexOf(/Version);
snip = xml.substring(from, to);
xml = xml.split(snip).join(Version + v);

var nodes = {};
nodes.generatorFileName = swt;
nodes.projectorWinFileName = exe;
nodes.projectorMacFileName = hqx;
nodes.htmlFileName = html;
nodes.gifFileName = gif;
nodes.jpegFileName = jpg;
nodes.pngFileName = png;
nodes.qtFileName = mov;
nodes.rnwkFileName = smil;

for (var n in nodes) {
from = xml.indexOf( + n + );
to = xml.indexOf(/ + n + );
snip = xml.substring(from, to);
xml = xml.split(snip).join( + n +  + s + . +
nodes[n]);
}

// write the file
FLfile.write(fPath, xml);

// import the altered profile
doc.importPublishProfile(fPath);
}


You can then use:

publishTheSWF(swfName);

Note: do not include the extension.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Problem extending inherited function

2007-03-21 Thread Mark Winterhalder

On 3/21/07, Danny Kodicek [EMAIL PROTECTED] wrote:

Hmm - this seems to go against the stuff we've been talking about recently
(see 'super and this' thread) where people have been saying that inherited
classes are essentially wrapped into one. This is an example where the
ancestor is being treated as an object in its own right. If inheritance
worked the way people described in the previous thread, it ought not to be
possible for a command to bypass the Child class and go straight to the
Mother.


The ancestor /is/ an object in its own right.

Every object has a property __proto__ linking it to its prototype
object. For every class, there is one single prototype (which in turn
has its __proto__ set to its superclass' prototype, and so on, up the
Prototype Chain to Object.prototype), and every instance of that
class, as well as all prototype objects of its child classes, has it's
__proto__ set to it.

Example:

class Foo {
  var name = foo;
  function Foo () {}
  function hello () {
 trace( hello  + name );
  }
}

class Bar extends Foo {
  function Bar () {
 super();
 name = bar;
  }
}

What this gives you is nothing but a bunch of objects of two types,
some of type object, some of type function (which extends Object
itself), and a single string (the second string in Bar's constructor
only gets created whenever you create another instance):

Foo is a function, the constructor of a class, as is Bar. They're
normal functions, but for one property, Foo.prototype (resp.
Bar.prototype). That's one of the object that just got created, the
class' prototype. That prototype object has all the properties and
methods that instances of the class shall inherit as properties, in
this case, a function called hello, which therefore would be
Foo.prototype.hello, and one property of type string called name. If
you had an instance of Foo, myFoo, that would really only be an
object. It wouldn't have a property hello or name itself, in fact,
it would only have two properties, one for the prototype and one for
the constructor.
When you instantiate it with 'new Foo()', here's what happens:

// instantiate the object:
var myFoo = {
  __proto__: Foo.prototype,
  constructor: Foo
};
// and call the constructor on it:
myFoo.constructor.apply( myFoo );

Every object has those two properties, by the way. Even when you say
{} what you really get is {__proto__: Object.prototype, constructor:
Object}. (So, you can instantiate an object without calling its
constructor -- if you did this with Bar, the resulting myBar would
trace hello foo when you did myBar.hello().)

Foo.prototype looks like this:
Foo.prototype = {
  __proto__: Object.prototype,
  constructor: Foo,
  name: foo,
  hello: function () {
 trace( hello  + this.name );
  }
};

...and Bar's prototype:
Bar.prototype = {
  __proto__: Foo.prototype,  // that's the inheritance!
  constructor: Bar,
};

You can access myFoo.name, but it doesn't have a method hello or a
property name itself. When you try to access name as myFoo.name,
the virtual machine checks if your instance has that property. It
doesn't, so it goes on to check the class' prototype object, which is
where name is found -- myFoo.__proto__.name == Foo.prototype.name.
Bar.prototype has a __proto__ property itself, set to Foo.prototype,
and would inherit name the same way. Instances of Bar, however,
would overwrite it in the constructor. That gives each single instance
of Bar a property name set to bar, while there is only one
property name set to foo, shared by all instances of Foo (and,
oddly, by Bar.prototype).

All of the following are true:
Bar.prototype.__proto__ == Foo.prototype
myBar.__proto__ == Bar.prototype
myBar.__proto__.__proto__ == Foo.prototype
myBar.__proto__.__proto__.__proto__ == Object.prototype

So what's super, really?
I have no idea. 'typeof super' traces object, but somehow you can
call it like a function. In the constructor, it behaves just as
this.__proto__.__proto__.constructor would, and in methods, it behaves
just as if it was this.__proto__.__proto__. It's not equal (as in
'==') to either, though. It's a mystery, at least to me, maybe
somebody can explain?

Mark
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] disabling carriage returns in multiline input textfields

2007-03-21 Thread David Ngo
I would say your best bet is to make it initially a single-line textfield,
listen for the onChanged handler and do some metrics on it (getTextExtent),
if it passes a certain width, set autoSize and multiline. You could possibly
also try listening for a Key event and ignore the one for ENTER. Not sure if
that'll work 100% though.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of john hoffsis
Sent: Wednesday, March 21, 2007 2:55 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] disabling carriage returns in multiline input
textfields

Does anyone know if it's possible to restrict hard returns in text input
fields (fields must wrap)? 

  I have form fields to capture user input that I'm sending up to the
server to be stored in a database. When I request this stored data from  the
server, anything after a hard return is lost.

I've tried something like this:
  my_txt.restrict=^\u0013, and a bunch of variations thereof, but  nothing
seems to keep the Enter key from doing it's thing. 
  
  Second best would be to traverse through a string a user has entered  and
replace hard returns with a space or dash, but again I've had no  luck
looking for \n or \r. I've tried entering text and hard returns  into a
dynamic textfield set to input, but when I try this:
  var n:Number = my_txt.indexOf(\n)...
  trace(n: +n) //traces n: -1

  Anyone have any insight into this?

Thanks,
John
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] too many lines in one frame

2007-03-21 Thread Muzak
yup

- Original Message - 
From: Mick G [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, March 21, 2007 6:03 PM
Subject: Re: [Flashcoders] too many lines in one frame


 Perhaps 32K is the compiled size limit - not the uncompressed .as file size
 limit.




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

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


Re: [Flashcoders] Flash video, works locally not online

2007-03-21 Thread [p e r c e p t i c o n]

it could also be that your server doesn't have the right mime settings for
flvees
cheers

On 3/21/07, DannyT [EMAIL PROTECTED] wrote:


I am trying to get some video loaded at runtime using the following:

var my_nc:NetConnection;
var my_ns:NetStream;
my_nc = new NetConnection();
my_nc.connect(null);
my_ns = new NetStream(my_nc);
curMedia = createEmptyMovieClip(videoPlayer, getNextHighestDepth());
curMedia.attachMovie(FlvManager,video, curMedia.getNextHighestDepth
());
//FLVManager is a movieclip in the library which contains an instance of
FlvPlayer called FlvPlayer

curMedia[video].FlvPlayer.attachVideo(my_ns);

my_ns.onStatus = function(infoObject)
{
for (var prop in infoObject)
{
debugRef.text += \t+prop+:\t+infoObject[prop] + \n;
//
output to textfield
}
}
my_ns.play(this.curClient.videos[0]); // reference to video object
debugRef.text += this.curClient.videos[0]+\n; // which is
outputted here and is correct

When i try to run this locally it works fine, when i try to run it online
I
get no status response from my_ns.
However the flv file will run when I use a video component wizard
(FLVPlayback)

Can someone suggest what is wrong or how i can debug this?

Cheers,
--
http://danny-t.co.uk
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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