RE: [Flashcoders] AS3 scripting, first try - some Q's

2006-07-28 Thread Mike Mountain
 
 Hi Mike,
 
 I didnt know FlashCoders was a place to get one's code 
 reviewed for silly mistakes in logic.  Hence I just cleared 
 your way from thinking its an AS3 problem. Anyways glad to 
 know you figured it out.

You're right, it's not and I did think it was an AS2 - AS3 translation
problem, it wasn't, great, but it wouldn't have hurt too much to just
post what the problem actually was as well would it?

 And for your second question, I had already replied to it.

Hadn't seen this, looked back through the archive and found it now, for
some reason it wasn't being grouped in the same subject. I had actually
tried this approach - but it seemed to effect the whole document, not
individual mc's - will revisit.

Ta

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

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


Re: [Flashcoders] AS3 scripting, first try - some Q's

2006-07-28 Thread Supriya
Well, I was trying to make a light moment. Hope you saw the smiley in the 
answer.

Again this is also a light moment :) . Chill out buddy :)


- Original Message - 
From: Mike Mountain [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Friday, July 28, 2006 1:49 PM
Subject: RE: [Flashcoders] AS3 scripting, first try - some Q's




Hi Mike,

I didnt know FlashCoders was a place to get one's code
reviewed for silly mistakes in logic.  Hence I just cleared
your way from thinking its an AS3 problem. Anyways glad to
know you figured it out.


You're right, it's not and I did think it was an AS2 - AS3 translation
problem, it wasn't, great, but it wouldn't have hurt too much to just
post what the problem actually was as well would it?


And for your second question, I had already replied to it.


Hadn't seen this, looked back through the archive and found it now, for
some reason it wasn't being grouped in the same subject. I had actually
tried this approach - but it seemed to effect the whole document, not
individual mc's - will revisit.

Ta

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

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


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

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


[Flashcoders] FLVPlayback connectionError

2006-07-28 Thread Jerome Cordiez
Hello,

I finally decided to expose my problem to this list, after seeking a
solution for days... Finding out people had the same issues, but no
solutions.

The problem : I have an FLVPlayback component on the stage, which is
supposed to playback some videos... The tricky part being sometimes the
videos don't exist, and then a default picture should be displayed instead.

The bug : everytime the component tries to load a non-existing flv, it
goes into connectionError state (normal), non-responsive... The abnormal
part being it's not possible afterwards to make that component return in
a responsive state, load another flv, etc

Doing research, I found out others faced the same issue, but i haven't
seen any solutions... Except one work-around maybe : attaching the
component programmaticaly. Doing so solves the non-responsive state
part of the problem, but it makes other issues arise, such as strange
statebchanges (while buffering, the component goes into various states :
stopped, playing, etc... making the playPauseButton blink for exemple)...

So well... Before getting into the writing of my own video player (not
very complicated anyway, but you know... :)), has anyone found a
solution/workaround for what seems to be a pretty annoying bug?

Thank you very much,
best regards,
Jerome.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS3 scripting, first try - some Q's

2006-07-28 Thread Mike Mountain
Well my frustration was stoked by the vague error messages being churned
out by the compiler. But no sweat.

M 


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Supriya
 Sent: 28 July 2006 09:40
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] AS3 scripting, first try - some Q's
 
 Well, I was trying to make a light moment. Hope you saw the 
 smiley in the answer.
 Again this is also a light moment :) . Chill out buddy :)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 change reference?

2006-07-28 Thread natalia Vikhtinskaya

O! Thank you. This is interesting way.

2006/7/27, Mike [EMAIL PROTECTED]:


It's a hack, but you can do:

   as.func1.apply(_root);

Might be better to change func1 so that it takes a MovieClip as a
parameter. Then you could just do:

   as.func1(_root);

(Although that's still a bit of a hack.)
--
T. Michael Keesey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of natalia
Vikhtinskaya
Sent: Thursday, July 27, 2006 3:40 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] How to change reference?

Maybe I was not clear.

Clip as has function funk1

To call this function from root I should say as.func1 or from another
clip:
_root.as.func1.

I want to find way to call this function as _root.func1 even if she is
in
clip with name as.


2006/7/27, denfi [EMAIL PROTECTED]:

 you dun have to put _root.attachMovie since you are already attaching
it
 right from your current maintimeline.

 Instead just:

 attachMove(as,as,100); will do the job.

 Regrads!

 On 7/27/06, natalia Vikhtinskaya [EMAIL PROTECTED] wrote:
 
  Hi
 
  I attach clip with this code:
 
  _root.attachMovie(as,as,100);
 
  Is it possible to change reference to this clip? Instead of
 
  as.something
 
  to have _root.something
 
 
  Another words I want to find way to say _root instead of _root.as.
Is it
  possible?
 
  Thank you for help.
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 



 --
 Discipline can be painful, but it helps when you give it a chance.
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] FLVPlayback connectionError

2006-07-28 Thread Matt Haworth
Hi,

I can't test this because I'm at work, but could you try setting up two key 
frames with an FLV playback component in each on the timeline (with the same 
name/ref), then flick between them in the hope it will reset the component to a 
default state? 

It's a bit of a long shot, but I 'fixed' a different bug with the FLV component 
by adding keyframes in a similar way where after selecting a screen with 
reference to a video that didn't exist, no further videos would load. However 
this situation was a bit different in that the layer containing the FLV 
component was keyframed in such a way as that each video had its own keyframe.

Let me know,

Matt

-
Matt Haworth
Web Designer
The University of Manchester

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jerome Cordiez
Sent: 28 July 2006 09:47
To: Flashcoders mailing list
Subject: [Flashcoders] FLVPlayback connectionError

Hello,

I finally decided to expose my problem to this list, after seeking a
solution for days... Finding out people had the same issues, but no
solutions.

The problem : I have an FLVPlayback component on the stage, which is
supposed to playback some videos... The tricky part being sometimes the
videos don't exist, and then a default picture should be displayed instead.

The bug : everytime the component tries to load a non-existing flv, it
goes into connectionError state (normal), non-responsive... The abnormal
part being it's not possible afterwards to make that component return in
a responsive state, load another flv, etc

Doing research, I found out others faced the same issue, but i haven't
seen any solutions... Except one work-around maybe : attaching the
component programmaticaly. Doing so solves the non-responsive state
part of the problem, but it makes other issues arise, such as strange
statebchanges (while buffering, the component goes into various states :
stopped, playing, etc... making the playPauseButton blink for exemple)...

So well... Before getting into the writing of my own video player (not
very complicated anyway, but you know... :)), has anyone found a
solution/workaround for what seems to be a pretty annoying bug?

Thank you very much,
best regards,
Jerome.

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

2006-07-28 Thread Guntur N. Sarwohadi

Hi Danny,

Thanks for the reply.. I'm not quite sure to what you mean, but doesn't it
sound similar to my current approach? Rather than using arrays, you
suggested objects. Please correct me if I'm wrong.

Cheers,
Guntur N. Sarwohadi
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] FLVPlayback connectionError

2006-07-28 Thread Jerome Cordiez

Hi,

thanks a lot! Actually, if not proven wrong, i will believe this is the 
best work-around :)

What I did : embed the flvplayback component in a 3 keyframes movieclip :
frame 1 blank
frame 2 with the video component and a stop action
frame 3 with the default error picture

According to the state changes, i go to (and stop) frame 3 if there's an 
error, gotoandplay frame 1 if i need to play a video, so that the 
component gets reinitialized.


Like you said, it's a bit of a long shot, but it seems to work. Now I 
can move on and work on the rest of the application foolish me, I 
used to believe that components where supposed to help you win time :)


thank you very much matt,
cheers,
J.


Matt Haworth a écrit :

Hi,

I can't test this because I'm at work, but could you try setting up two key frames with an FLV playback component in each on the timeline (with the same name/ref), then flick between them in the hope it will reset the component to a default state? 


It's a bit of a long shot, but I 'fixed' a different bug with the FLV component 
by adding keyframes in a similar way where after selecting a screen with 
reference to a video that didn't exist, no further videos would load. However 
this situation was a bit different in that the layer containing the FLV 
component was keyframed in such a way as that each video had its own keyframe.

Let me know,

Matt

-
Matt Haworth
Web Designer
The University of Manchester

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jerome Cordiez
Sent: 28 July 2006 09:47
To: Flashcoders mailing list
Subject: [Flashcoders] FLVPlayback connectionError

Hello,

I finally decided to expose my problem to this list, after seeking a
solution for days... Finding out people had the same issues, but no
solutions.

The problem : I have an FLVPlayback component on the stage, which is
supposed to playback some videos... The tricky part being sometimes the
videos don't exist, and then a default picture should be displayed instead.

The bug : everytime the component tries to load a non-existing flv, it
goes into connectionError state (normal), non-responsive... The abnormal
part being it's not possible afterwards to make that component return in
a responsive state, load another flv, etc

Doing research, I found out others faced the same issue, but i haven't
seen any solutions... Except one work-around maybe : attaching the
component programmaticaly. Doing so solves the non-responsive state
part of the problem, but it makes other issues arise, such as strange
statebchanges (while buffering, the component goes into various states :
stopped, playing, etc... making the playPauseButton blink for exemple)...

So well... Before getting into the writing of my own video player (not
very complicated anyway, but you know... :)), has anyone found a
solution/workaround for what seems to be a pretty annoying bug?

Thank you very much,
best regards,
Jerome.

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

2006-07-28 Thread Arul Prasad M L

_root.attachMovie(as,as,100);
_root.something = _root.as.something;

wont this provide u a reference at the root level ?

~Arul Prasad

On 7/27/06, natalia Vikhtinskaya [EMAIL PROTECTED] wrote:


Hi

I attach clip with this code:

_root.attachMovie(as,as,100);

Is it possible to change reference to this clip? Instead of

as.something

to have _root.something


Another words I want to find way to say _root instead of _root.as. Is it
possible?

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

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


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

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


[Flashcoders] Video project - advice

2006-07-28 Thread Jason Ross
Hi - I have been asked to create a Flash based application to present a
few hundred video clips. The application needs to be delivered on both
CD-Rom and Web (standard web server i.e. not Flash Streaming Servers).

I am fine with AS but have not used Flash video for a while!

The application needs to be coded to Flash 7.0 or greater (though, I am
trying to get them to go with Flash 8.0).

I am looking for some advice as timings are tight to help avoid last
minute pitfalls.

Also - does the FLVPlayback component work with Flash player 7.0?

Any feedback / sharing of experiences would be greatly appreciated.

Thanks,

Jason.

Legal Disclaimer:
This email message (including any attachments) is strictly confidential and is 
intended only for the person(s) or organisation(s) named above.  The 
unauthorised use, disclosure, distribution and/or copying of the email message, 
or any information it contains (including any attachments), is strictly 
prohibited and could in certain circumstances constitute a legal offence.  If 
you are not an intended recipient, please contact the sender immediately by 
return email and delete the email from your system.  

Internet email communications are not always secure and may be susceptible to 
data corruption, interception and unauthorised amendment, and therefore View 
does not accept legal responsibility for the contents of this message for any 
such corruption, interception or amendment or the consequences thereof nor any 
delay in its receipt.

Although this email message and any attachments are believed to be free of any 
virus or other defect that might affect any computer system into which it is 
received and opened, it is the responsibility of the recipient to ensure that 
it is virus free.  No responsibility is accepted by View for any loss or 
damage in any way arising from its use.

Any views expressed by the sender of this message are not necessarily those of 
View.  
_
This message from View has been checked for all known viruses by the 
MessageLabs Virus Control Centre.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 project - advice

2006-07-28 Thread Arul Prasad M L

Also - does the FLVPlayback component work with Flash player 7.0?

NO. You wont be able to publish the FLA with a FLVPlayback component, to
Flash Player 7.0 swf.
If you can get ur clients ( or boss ) to agree for Flash player 8, you can
use FLVPlayback component. FLVPlayback works well with local FLV playback
and HTTP progressive download.

I just did a FLV player with FLVPlayback, configured for  FVSS streaming and
I had a few local FLVs for testing. I had the playlist on a XML file, and so
had 2 versions of the playlist sml. One which pointed to the FVSS FLV paths
and another that pointed to the local files.

The only issue with RTMP was that my office proxy server wasn't letting the
flv stream through. Had to fiddle with it for a while. Otherwise its a
pretty simple thing!

Good luck.

~Arul Prasad

On 7/28/06, Jason Ross [EMAIL PROTECTED] wrote:


Hi - I have been asked to create a Flash based application to present a
few hundred video clips. The application needs to be delivered on both
CD-Rom and Web (standard web server i.e. not Flash Streaming Servers).

I am fine with AS but have not used Flash video for a while!

The application needs to be coded to Flash 7.0 or greater (though, I am
trying to get them to go with Flash 8.0).

I am looking for some advice as timings are tight to help avoid last
minute pitfalls.

Also - does the FLVPlayback component work with Flash player 7.0?

Any feedback / sharing of experiences would be greatly appreciated.

Thanks,

Jason.



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Dynamically loading a Shared Library symbol

2006-07-28 Thread Jake Prime

Hi all

Is there any way to dynamically set the path for loading a shared
library object?

I am using a shared library system to have a central store for all
fonts in a mulitlanguage site. Unfortunately I'm not permitted to use
relative links in the site. I am being given an absolute root path as
a FlashVar, and appending that to all loading.

Any help appreciated
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] Decompiler for AS3

2006-07-28 Thread Mike Mountain
We're discussing on the HaXe mailing list whether it would be possible
to decompile from Flash 8/AS2  swfs to Haxe, then (when the support is
added) recompile to Flash9/AS3 swfs to help speed up AS2 to AS3
conversion.

Obvious stumbling block at the moment is nothing decompiles to HaXe, but
as a related issue Ralf Bokelberg wondered if it would even be possible
to decompile a Flash 9 swf at all?

Anyone (Burak?)

M




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

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


Re: [Flashcoders] Decompiler for AS3

2006-07-28 Thread eka

Hello :)

you can send a message in the flare and flasm website ?

http://www.nowrap.de/flare.html in Kontakt ?



EKA+ :)



2006/7/28, Mike Mountain [EMAIL PROTECTED]:


We're discussing on the HaXe mailing list whether it would be possible
to decompile from Flash 8/AS2  swfs to Haxe, then (when the support is
added) recompile to Flash9/AS3 swfs to help speed up AS2 to AS3
conversion.

Obvious stumbling block at the moment is nothing decompiles to HaXe, but
as a related issue Ralf Bokelberg wondered if it would even be possible
to decompile a Flash 9 swf at all?

Anyone (Burak?)

M




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

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


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

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


RE: [Flashcoders] String Empowerment

2006-07-28 Thread Bernard Visscher
Maybe you can do something with this.
It's an implemenataion of the Damerau-Levenshtein distance.
The output is equal to the minimal number of insertions, deletions,
substitutions and transpositions needed to transform one string into the
other. 
Could be handy for a spellchecker...
It's not optimized, just wrote it a few days ago for testing...

private static function compare(first:String, second:String):Number
{
if(first ==  || second == ) return null;

var f:Array = first.split();
var s:Array = second.split();

var dist:Array = new Array();

for(var i:Number = f.length+1 ; i--)
{
dist[i] = new Array();
for(var j:Number = s.length+1 ; j--)
{
if(i==0) dist[i][j] = j;
else dist[i][j] = 0;
}
dist[i][0] = i;
}

for(var i:Number = 1 ; i = f.length ; i++)
{
for(var j:Number = 1 ; j = s.length ; j++)
{
var cost:Number = ((f[i-1]==s[j-1])?0:1);
var dx:Number = dist[i-1][j]+1;
var dy:Number = dist[i][j-1]+1;
var dz:Number = dist[i-1][j-1] + cost;
dist[i][j] =
Math.min(Math.min(dx,dy),Math.min(dy,dz));

if(i  1  j  1  f[i] == s[j-1] 
f[i-1] == s[j])
dist[i][j] =
Math.min(dist[i][j],dist[i-2][j-2]+cost);
}   
}

return dist[f.length][s.length];
} 


Bernard

 -Oorspronkelijk bericht-
 Van: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] Namens 
 Steven Sacks | BLITZ
 Verzonden: vrijdag 28 juli 2006 0:59
 Aan: Flashcoders mailing list
 Onderwerp: RE: [Flashcoders] String Empowerment
 
 Pseudocode examples of usage:
 
 hello.capitalize()   Hello  
 HELLO.capitalize()   Hello  
 123ABC.capitalize()   123abc  
 
 hello.center(4)   hello  
 hello.center(20, _)   ___hello  
 
 hello.chomp()   hello  
 hello\n.chomp()   hello  
 hello \n there.chomp()   hello \n there  
 hello.chomp(llo)   he
 
 string\r\n.chop()   string  
 string\n\r.chop()   string\n  
 string\n.chop()   string  
 string.chop()   strin  
 x.chop().chop()   
 
 a = hello world  
 a.count(lo)   5
 a.count(^hello )   3
 a.count(ej-m)   4
 a.count(^e-t)   3 
 
 a = hello
 a.ljust(4)   hello  
 a.ljust(20)   hello 
 
 a = hello world
 a.remove(l)   heo word  
 a.remove(lo )   hewrd  
 a.remove(^aeiou)   eoo  
 a.remove(ej-m)   ho word 
 a.remove(^e-t)   helloorl
 
 stressed.reverse()   desserts  
 
 a = hello
 a.rjust(4)   hello  
 a.rjust(20, -)   ---hello  
 
 yellow  moon.squeeze()   yelow mon  
   now   is  the.squeeze( )now is the  
 putters shoot balls.squeeze(m-z)   puters shot balls  
 hello  world.squeeze(^ )   helo  world  
 
 hello.strip()   hello  
 \tgoodbye\r\n.strip()   goodbye
 
 Hello.swapcase   hELLO  
 cYbEr_PuNk11.swapcase   CyBeR_pUnK11
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] AS3 Compiler For MAC OS X

2006-07-28 Thread Mark Winterhalder

On 7/28/06, CK [EMAIL PROTECTED] wrote:

Hi,

Thanks, found the AS3 Preview (Flash 9 Alpha) release from http://
labs.adobe.com/, this allows use of AS3 in the FLASH IDE. Any
advantages to the command line over the IDE.


Better integration with third-party editors, automatic builds, etc.

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] AS3 Compiler For MAC OS X

2006-07-28 Thread CK

Hi,

How would one go about using the command line compiler in MAC OS X?


Return True,




CK
Principal/Designer/Programmer -Bushidodeep
www.bushidodeep.com
___
An ideal is merely the projection,
on an enormously enlarged scale,
of some aspect of personality.
  Aldus Huxley


On Jul 28, 2006, at 8:47 AM, Mark Winterhalder wrote:


On 7/28/06, CK [EMAIL PROTECTED] wrote:

Hi,

Thanks, found the AS3 Preview (Flash 9 Alpha) release from http://
labs.adobe.com/, this allows use of AS3 in the FLASH IDE. Any
advantages to the command line over the IDE.


Better integration with third-party editors, automatic builds, etc.

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


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

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


Re: Re: Re: [Flashcoders] Mac IDE for AS !

2006-07-28 Thread Joeri van Oostveen

I have been working with FDT / Eclipse 3.2 on my Macs now for several
months. I used Eclipse with ASDT before that, with Flashout, but found
them too buggy.
FDT has a more recent release than 1.0.4, using the remote site:
http://fdt.powerflasher.com/updateTest/

With the beta releases of 3.2 I reinstalled FDT in a newer Eclipse
Beta every time the trail was over.. :) (I find the price tag way too
high for a dead project)
I'm hoping there will be a better code app / plugin for AS2/3, and one
that won't die out this quickly like ASDT and FDT... :(

greetings
Joeri


On 7/27/06, Chris Allen [EMAIL PROTECTED] wrote:

I'm using the FDT plugin for Eclipse for my AS2 development. It's got
some issues, but the features that do work more than make up for it.
Auto-completion, code snippets, navigation through classes, basic
refactoring like renaming class files, error checking as you type.
etc...

You can find it here:

http://fdt.powerflasher.com/flashsite/flash.htm

My only gripe with the product besides the price tag, is that they
haven't updated and fixed many of the known bugs for at least a year.
Plus, support and documentation are extremely limited or non-existent.

I'm hoping that the guys at ASDT come out with an update soon. It's
been way too long on that one too, and I'd much rather use an open
source product.

Hope that helps.

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

2006-07-28 Thread Steve Krichten
One thing to note about the FLV Playback component is that under the 
hood it uses VideoPlayer Objects.  I believe if you use SMIL to make 
the player play multiple videos, the FLV Playback will use a new 
VideoPlayer Object for each new video that is requested.  If you are not 
using SMIL, it seems that the FLV Playback always tries to use the same 
VideoPlayer Object unless you explicitly tell it to change.  And I have 
found  (at least in certian situations) that can cause problems similar 
to what you describe.  Below is the method I use to make the player use 
a new VideoPlayer object each time I ask it to play a video.  This 
method is part of a wrapper class I use so... player is a property that 
referes to the FLV Playback instance and nextVpIndex is a property that 
stores an integer to keep track of what VideoObject to use next.  I 
don't use the VideoObject at index 0 because that one cannot be deleted.



   private function _playVideo(url:String) {

   if (player.activeVideoPlayerIndex  0) {
   player.closeVideoPlayer(player.activeVideoPlayerIndex);
   delete player.getVideoPlayer(player.activeVideoPlayerIndex);
   }
   player.activeVideoPlayerIndex = ++nextVpIndex;
   player.visibleVideoPlayerIndex = nextVpIndex;

   player.play(url);


   }

-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


Re: [Flashcoders] Known issues with flv playback component in flash 9 player?

2006-07-28 Thread Steve Krichten
I have a couple apps that use the FLV Playback component.  They work 
fine with Flash Player 9.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Known issues with flv playback component in flash9 player?

2006-07-28 Thread Wouter
Thanx a lot for your reply...

Anybody knows about issues with the MediaDisplay and MediaController
component not working correctly in Flash 9 Player?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve
Krichten
Sent: Friday, July 28, 2006 3:45 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Known issues with flv playback component in
flash9 player?

I have a couple apps that use the FLV Playback component.  They work fine
with Flash Player 9.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] 5 Star Rating System

2006-07-28 Thread [EMAIL PROTECTED] Ammor
Hi,
Can somebody give me a tutorial or a link to fla source of a nice 5 Star
Rating System with XML back end...

Pliz help !


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

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


RE: [SPAM] RE: [Flashcoders] String Empowerment

2006-07-28 Thread Steven Sacks | BLITZ
 Just a quick note on capitalize()
 
 String.toUpperCase() and String.toLowerCase() are part of ActionScript
1
 since Flash 5

Capitalize is different than toUpperCase and toLowerCase.  Those convert
the entire string, capitalize only uppercases the first character and
then lowercases the rest of the characters.

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

2006-07-28 Thread Steven Sacks | BLITZ
http://chattyfig.figleaf.com/pipermail/flashcoders/2006-April/164718.htm
l

hi hello how do I make a multi-player game in flash its got to have 
lasers thank you




 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Ammor
 Sent: Friday, July 28, 2006 10:30 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] 5 Star Rating System
 
 Hi,
 Can somebody give me a tutorial or a link to fla source of a nice 5
Star
 Rating System with XML back end...
 
 Pliz help !
 
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] ActionScript Application Framework

2006-07-28 Thread Steve Krichten
I disagree, Arp and Cairngorm are architectural frameworks.  Flex is an 
application framework.  From what I understand Rails is primarily an 
application framework with some architectural elements as well. So I 
would say...


Rails is to Ruby as Flex ( + optinally Arp or Caringorm) is to Flash.

-Steve
*
--
Nick Weekes Wrote...*

Rails is to Ruby what ARP and Cairngorm are to Actionscript.

Nick
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] load/send XML data | Flash/JavaScript Integration Kit

2006-07-28 Thread Maziak, Peter
I have a flash app that gets populated by parsing data from an external
XML file.  However, my JSP development team tells me that to keep the
XML in a session it would be better to load the XML as a string from the
HTML (JSP).  Is it possible to put the XML into a hidden input field
within a form on the containing HTML?  How easy is it to have Flash
communicate with the HTML and vice-versa?  Or is there a better approach
to get the XML in and out of Flash (other than an external file)?
 
Also, I've looked into the Flash/JavaScript Integration Kit [
http://osflash.org/doku.php?id=flashjs OR
http://weblogs.macromedia.com/flashjavascript/ ] but am confused by the
installation instruction:

Copy the following library files from source/flash/actionscript
into your Flash Authoring classpath:
com/macromedia/javascript/JavaScriptProxy.as
com/macromedia/javascript/JavaScriptSerializer.as

Where is the Flash Authoring classpath!?
 
Thanks,
-Pete
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] iRiver Clix

2006-07-28 Thread eric dolecki

Has anyone been able to get an MP3 file external to the SWF load  play on
the iRiver Clix?

I wonder if iRiver is preventing the player from allowing that because its a
PlaysForSure device, etc. The player on the Clix is great (FlashLite2/F7),
but it seems that if I want to play audio, it has to be in the SWF's
Library/timeline?

- e.d.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: [SPAM] RE: [Flashcoders] String Empowerment

2006-07-28 Thread Arul Prasad M L

Those convert the entire string, capitalize only uppercases the first

character and then lowercases the rest of the characters.


umm... Title Case as MS Word calls it...

~Arul Prasad

On 7/28/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:


 Just a quick note on capitalize()

 String.toUpperCase() and String.toLowerCase() are part of ActionScript
1
 since Flash 5

Capitalize is different than toUpperCase and toLowerCase.  Those convert
the entire string, capitalize only uppercases the first character and
then lowercases the rest of the characters.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] load/send XML data | Flash/JavaScript Integration Kit

2006-07-28 Thread Matthew Simpson
Or is there a better approach to get the XML in and out of Flash (other
than an external file)?

Yes, load the data dynamically from the servlet and forget the external
XML file altogether.

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Maziak,
Peter
Sent: Friday, July 28, 2006 2:14 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] load/send XML data | Flash/JavaScript Integration
Kit

I have a flash app that gets populated by parsing data from an external
XML file.  However, my JSP development team tells me that to keep the
XML in a session it would be better to load the XML as a string from the
HTML (JSP).  Is it possible to put the XML into a hidden input field
within a form on the containing HTML?  How easy is it to have Flash
communicate with the HTML and vice-versa?  Or is there a better approach
to get the XML in and out of Flash (other than an external file)?
 
Also, I've looked into the Flash/JavaScript Integration Kit [
http://osflash.org/doku.php?id=flashjs OR
http://weblogs.macromedia.com/flashjavascript/ ] but am confused by the
installation instruction:

Copy the following library files from source/flash/actionscript
into your Flash Authoring classpath:
com/macromedia/javascript/JavaScriptProxy.as
com/macromedia/javascript/JavaScriptSerializer.as

Where is the Flash Authoring classpath!?
 
Thanks,
-Pete
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] load/send XML data | Flash/JavaScript Integration Kit

2006-07-28 Thread Telmo Dias

Hi Peter,

I'm not sure this is what you are looking for, but I have used this 
approach several times and it works great for me.


I usually connect flash to PHP, but it should be the same way for JSP.

This is PHP code. Have your JSP process whatever it has to process in 
order to get the data. The write the data as if you were outputing a 
regular XML file, but in this case not to a file, but just output with 
prints or something similar (I don't know JSP).


$xml ='?xml version=1.0 encoding=UTF-8?'.\n;
$xml.='data'.\n;
$xml.='item id=1This is text inside item 1/item'.\n;
$xml.='item id=2This is text inside item 2/item'.\n;
$xml.='item id=3![CDATA[bThis is HTML inside item 3, inside CDATA 
so it won't get parsed/b]]/item'.\n;

$xml.='/data'.\n;
header(Content-type: text/xml; charset=UTF-8);
echo utf8_encode($xml);


Inside flash I use a trick I found. We can use a LoadVars object to make 
the request to the server, sending info through POST or GET, and have it 
load directly into a XML object.


_global.dynamicLoadedXml = new XML();
_global.dynamicLoadedXml.ignoreWhite = true;
_global.dynamicLoadedXml.onLoad = function(success){
   //This code is executed once the load is complete. In other words 
once your JSP file is processed and returns a code similar to the above.

   if(sucess){
   //the file was successfully loaded. Do whatever you need in 
terms of parsing.

   var root:XMLNode = this.firstChild;
  _global.dataArray = new Array();

   for(var i:Number = 0; iroot.childNodes.length; i++){
   var node:XMLNode = root.childNodes[i];
   _global.dataArray[i] = node.attributes.id;
  }
   }else{
  //the file was not successfully loaded. Send error feedback to user.
   }
}

//these are the vars you are going to send through POST
_global.varsToUseByJSP = new LoadVars();
_global.varsToUseByJSP.id = valueToSend; //whatever value you want to 
send to JSP through POST


//use this to avoid cache problems loading the XML
var rnd = Math.round(Math.random()*1);
var urlToGo = http://www.xpto.com/process.php?rnd=; + rnd;

_global.varsToUseByJSP.sendAndLoad(urlToGo, _global.dynamicLoadedXml, 
POST);




Good Luck!  :-)

Telmo Dias


Maziak, Peter wrote:

I have a flash app that gets populated by parsing data from an external
XML file.  However, my JSP development team tells me that to keep the
XML in a session it would be better to load the XML as a string from the
HTML (JSP).  Is it possible to put the XML into a hidden input field
within a form on the containing HTML?  How easy is it to have Flash
communicate with the HTML and vice-versa?  Or is there a better approach
to get the XML in and out of Flash (other than an external file)?
 
Also, I've looked into the Flash/JavaScript Integration Kit [

http://osflash.org/doku.php?id=flashjs OR
http://weblogs.macromedia.com/flashjavascript/ ] but am confused by the
installation instruction:

Copy the following library files from source/flash/actionscript
into your Flash Authoring classpath:
com/macromedia/javascript/JavaScriptProxy.as
com/macromedia/javascript/JavaScriptSerializer.as

Where is the Flash Authoring classpath!?
 
Thanks,

-Pete
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 declare an instance in a MovieClip in a AS3 class

2006-07-28 Thread Fumio Nonaka
In a ActionScript 3.0 class how is an instance placed in a MovieClip
symbol with which the class is associated declared?

In ActionScript 2.0 an instance can be simply declared with 'var'.

// ActionScript 2.0 class definition: ButtonTest.as
// This is associated with a MovieClip symbol
class ButtonTest extends MovieClip {
// my_btn is placed in the MovieClip symbol
var my_btn:Button;

However, ActionScript 3.0 yields a compile error to the class definition
below.

// ActionScript 3.0 class definition: ButtonTest.as
// This is associated with a MovieClip symbol
package {
import flash.display.MovieClip;
import flash.display.Button;
public class ButtonTest extends MovieClip {
var my_btn:Button;  // Compile error

Any advices or suggestions would be very appreciated.

Thank you,
-- 
Fumio Nonaka
mailto:[EMAIL PROTECTED]
http://www.FumioNonaka.com/
My bookshttp://www.FumioNonaka.com/Books/index.html
Flash communityhttp://F-site.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


RE: [SPAM] RE: [Flashcoders] String Empowerment

2006-07-28 Thread Steven Sacks | BLITZ
 umm... Title Case as MS Word calls it...

Title Case in Word is different than capitalize.  Title Case capitalizes
every word in a string.  Capitalize only capitalizes the first character
of the string.  However, toTitleCase() would be a handy method.  I'll
code 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


RE: [Flashcoders] load/send XML data | Flash/JavaScript Integration Kit

2006-07-28 Thread Merrill, Jason
Is it possible they can send you an XML string through a webservice?  I
was in a similar situation and my team developed a SOAP webservice I
call from Flash which is just an XML string.  

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Maziak, Peter
Sent: Friday, July 28, 2006 2:14 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] load/send XML data | Flash/JavaScript
Integration Kit

I have a flash app that gets populated by parsing data from an
external
XML file.  However, my JSP development team tells me that to keep the
XML in a session it would be better to load the XML as a string from
the
HTML (JSP).  Is it possible to put the XML into a hidden input field
within a form on the containing HTML?  How easy is it to have Flash
communicate with the HTML and vice-versa?  Or is there a better
approach
to get the XML in and out of Flash (other than an external file)?

Also, I've looked into the Flash/JavaScript Integration Kit [
http://osflash.org/doku.php?id=flashjs OR
http://weblogs.macromedia.com/flashjavascript/ ] but am confused by
the
installation instruction:

  Copy the following library files from source/flash/actionscript
into your Flash Authoring classpath:
  com/macromedia/javascript/JavaScriptProxy.as
  com/macromedia/javascript/JavaScriptSerializer.as

Where is the Flash Authoring classpath!?

Thanks,
-Pete
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: [SPAM] RE: [Flashcoders] String Empowerment

2006-07-28 Thread Mike
If you REALLY wanted to be fancy, you could have it accept an array of
words *not* to capitalize (unless they are the first word). For example:

var lowerCaseWords:Array = [a, an, and, of, the];

trace(a tale of two cities.toTitleCase(lowerCaseWords));

trace(THE PRINCE AND THE PAUPER.toTitleCase(lowerCaseWords));

// Output:
// A Tale of Two Cities
// The Prince and the Pauper
--
T. Michael Keesey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Sacks | BLITZ
Sent: Friday, July 28, 2006 12:01 PM
To: Flashcoders mailing list
Subject: RE: [SPAM] RE: [Flashcoders] String Empowerment

 umm... Title Case as MS Word calls it...

Title Case in Word is different than capitalize.  Title Case capitalizes
every word in a string.  Capitalize only capitalizes the first character
of the string.  However, toTitleCase() would be a handy method.  I'll
code 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


[Flashcoders] Date Empowerment

2006-07-28 Thread Steven Sacks | BLITZ
The next in my Empowerment series of scripts tackles the Date object.
Rails introduced a ton of great shortcuts and methods to their Time
object, the equivalent to the Date object in Flash (though much easier
to use).  I've appropriated all their methods and added a few more.
There are some great methods in here that really save time when you need
to do things with the Date object.

--

// XDate
// The following calculations are all relative to the current date
object
// not the current date - this is an important distinction

// General function for easily altering the date object
// pass the option (a string) and how much you want to alter it
Date.prototype.change = function(option, amount) {
if (isNan(Number(amount))) return undefined;
var year = this.getFullYear();
var time = this.getTime();
// ms time diffs
var aSec = 1000;
var aMin = 60 * aSec;
var anHour = 60 * aMin;
var aDay = 24 * anHour;
var aWeek = 7 * aDay;
//
switch (option) {
case years:
this.setFullYear(year + amount);
break;
case months:
this.setMonth(this.getMonth() + amount);
break;
case weeks:
this.setTime(time + (aWeek * amount));
break;
case days:
this.setTime(time + (aDay * amount));
break;
case hours:
this.setTime(time + (anHour * amount));
break;
case minutes:
this.setTime(time + (aMin * amount));
break;
case seconds:
this.setTime(time + (aSec * amount));
break;
case ms:
this.setTime(time + amount);
break;
default:
trace(invalid option);
}
};
// Sets date representing the start of the year (1st of january, 0:00) 
Date.prototype.beginningOfYear = function() {
this.setMonth(0);
this.setDate(0);
this.midnight();
};
// Sets date representing the start of the quarter (1st of january,
april, july, october, 0:00)
Date.prototype.beginningOfQuarter = function() {
var months = [0, 3, 6, 9];
var n = 4;
var m = this.getMonth();
while (--n -(-1)) {
if (months[n] = m) {
this.setMonth(months[n]);
this.midnight();
break;
}
}

};
// Sets date representing the start of the month (1st of the month,
0:00) 
Date.prototype.beginningOfMonth = function() {
this.setDate(1);
this.midnight();
};
// Sets date representing the start of this week (default: Monday,
0:00)
// If you pass true, then it will set the start of the week to Sunday
Date.prototype.beginningOfWeek = function(sunday) {
var today = this.getDay();
var daysToSub = (today != 0 ? 1 - today : -6) - (sunday ? 1 :
0);
this.change(days, daysToSub);
this.midnight();
};
// Easy alias for beginningOfWeek()
Date.prototype.monday = function() {
this.beginningOfWeek();
};
// Easy alias for beginningOfWeek(true)
Date.prototype.sunday = function() {
this.beginningOfWeek(true);
};
// Sets date representing the start of the day (0:00) 
Date.prototype.midnight = function() {
this.setHours(0);
this.setMinutes(0);
this.setSeconds(0);
this.setMilliseconds(0);
};
// Sets date representing the end of the month (last day of the month,
0:00) 
Date.prototype.endOfMonth = function() {
this.change(days, Math.abs(Math.floor((this - new
Date(this.getFullYear(), this.getMonth() + 1)) / (1000 * 60 * 60 * 24))
+ 1));
};
// Returns a new Date representing the time a number of specified years
ago 
Date.prototype.yearsAgo = function(years) {
var d = new Date(this.getTime());
d.change(years, this.getFullYear() - years);
return d;
};
// Returns the number of years between the current date and the date
object
Date.prototype.yearsSince = function() {
return new Date().getFullYear() - this.getFullYear();
};
// Returns a new Date representing the time a number of specified months
ago
Date.prototype.monthsAgo = function(months) {
var d = new Date(this.getTime());
d.change(months, this.getMonth() - months);
return d;
};
// Returns the number of months between the current date and the date
object
Date.prototype.monthsSince = function() {
var d = new Date();
return ((d.getFullYear() - this.getFullYear()) * 12) +
(d.getMonth() - this.getMonth());
};
// Returns a new Date representing the time a 

RE: [Flashcoders] Date Empowerment

2006-07-28 Thread Steven Sacks | BLITZ


BLITZ | Steven Sacks - 310-551-0200 x209


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ
 Sent: Friday, July 28, 2006 12:22 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] Date Empowerment
 
 The next in my Empowerment series of scripts tackles the Date object.
 Rails introduced a ton of great shortcuts and methods to their Time
 object, the equivalent to the Date object in Flash (though much easier
 to use).  I've appropriated all their methods and added a few more.
 There are some great methods in here that really save time when you
need
 to do things with the Date object.
 
 --
 
 // XDate
 // The following calculations are all relative to the current date
 object
 // not the current date - this is an important distinction
 
 // General function for easily altering the date object
 // pass the option (a string) and how much you want to alter it
 Date.prototype.change = function(option, amount) {
   if (isNan(Number(amount))) return undefined;
   var year = this.getFullYear();
   var time = this.getTime();
A quick fix to two methods that should have used weeks not days in
their change methods.

// Sets date representing the start of the given day in next week
(default is Monday). 
Date.prototype.nextWeek = function(sunday) {
this.change(weeks, 1);
if (!sunday) {
this.monday();
} else {
this.sunday()
}
};
// Sets date representing the start of the given day in last week
(default is Monday). 
Date.prototype.lastWeek = function(sunday) {
this.change(weeks, -1);
if (!sunday) {
this.monday();
} else {
this.sunday()
}
};
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Date Empowerment

2006-07-28 Thread Steven Sacks | BLITZ
Oops that last message got messed up:
-

A quick fix to two methods that should have used weeks not days in
their change methods.

// Sets date representing the start of the given day in next week
(default is Monday). 
Date.prototype.nextWeek = function(sunday) {
this.change(weeks, 1);
if (!sunday) {
this.monday();
} else {
this.sunday()
}
};
// Sets date representing the start of the given day in last week
(default is Monday). 
Date.prototype.lastWeek = function(sunday) {
this.change(weeks, -1);
if (!sunday) {
this.monday();
} else {
this.sunday()
}
};
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: [SPAM] RE: [Flashcoders] String Empowerment

2006-07-28 Thread Steven Sacks | BLITZ
Here's toTitleCase:

String.prototype.toTitleCase = function() {
var a = this.length;
if (a == 0) return ;
var c;
var w;
var s = ;
while (--a -(-1)) {
c = this.charCodeAt(a);
w = this.charAt(a - 1);
w = (w ==   || w == \n || w == \r || w == \t ||
a == 0);
if ((c  64  c  91  !w) || (c  96  c  123 
w)) c = c ^ 32;
s = String.fromCharCode(c) + s;
}
return s;
};

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 declare an instance in a MovieClip in a AS3 class

2006-07-28 Thread Fumio Nonaka

I am sorry for invalid data typing.
_
Fumio Nonaka wrote:

However, ActionScript 3.0 yields a compile error to the class definition
below.

// ActionScript 3.0 class definition: ButtonTest.as
// This is associated with a MovieClip symbol
package {
import flash.display.MovieClip;

// import flash.display.Button;
import flash.display.SimpleButton;

public class ButtonTest extends MovieClip {

// var my_btn:Button;  // Compile error
var my_btn:SimpleButton;  // Compile error


Any advices or suggestions would be very appreciated.

Thank you,


--
Fumio Nonaka
mailto:[EMAIL PROTECTED]
http://www.FumioNonaka.com/
My bookshttp://www.FumioNonaka.com/Books/index.html
Flash communityhttp://F-site.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] Job Opening in Seattle

2006-07-28 Thread Keldon Rush
Hello Flashcoders,

We have a job opening for a Software Developer mainly  on Flash Lite,
mobile, and other non-PC platforms where Flash is or is becoming viable.

We need a very strong developer with full understanding of OOP and ideally
with experience developing in mobile or other memory constrained
environments.

See the job posting at:
http://jobsearch.monster.com/getjob.asp?JobID=45816405 

This position does not include any relocation expenses.

I would also like to hear from you if you would be interested in doing the
same kind of work on a contract basis and have been successful working
remotely on software projects before.

Best regards,
Keldon Rush
Director, Platforms and Technologies Group
Smashing Ideas Inc.
1601 2nd Ave, Suite 900
Seattle WA 98101
e: [EMAIL PROTECTED]
o: +1.206.378.0100 x151
f: +1.206.378.5704
m: +1.206.349.8690
w: www.smashingideas.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] 5 Star Rating System

2006-07-28 Thread Dave Watts
Hi, [EMAIL PROTECTED] I'm the list admin.

 Hi,
 Can somebody give me a tutorial or a link to fla source of a 
 nice 5 Star Rating System with XML back end...
 
 Pliz help !

This is not the appropriate place to ask this question. I don't know where
the appropriate place would be, but I do know it's not here.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Get embed page URL with Actionscript?

2006-07-28 Thread kbaker

I am trying to find a way to get the URL of the embedded page with ActionScript.

We are providing embed code for users to embed a player on remote sites... sort 
of the way people are embedding videos on MySpace right now.


I'd like to be able to know which sites/web pages are embedding the player.

Is there anything like _root._url that I could use?



--
Kevin Baker
Mission Vi Inc.
[EMAIL PROTECTED]

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

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

[Flashcoders] skinning the DataGrid component

2006-07-28 Thread Tyson Tune
I'm trying to skin the DataGrid component in Flash 8.  All I really  
want to do is turn the background of the grid transparent.  I've been  
able to skin other components by passing an object to the component  
as I create it.  However, I'm having some trouble with DataGrid.  Has  
anyone had any success with 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