RE: [Flashcoders] Getting the line index at the caretIndex

2010-04-10 Thread Benny
After *appending* a character the caret is positioned after the last
character input pointing to the next position it will accept input.
Hence when you call getLineIndexOfChar(caret) you ask for info about a none
existing character.

This should work:

var tf:TextField = new TextField();
tf.type = TextFieldType.INPUT;
tf.border=true;
tf.multiline = true;
tf.addEventListener(Event.CHANGE, onChange);
addChild(tf);

function onChange(event:Event):void
{
 var newCharIndex:int = tf.caretIndex-1;
 var line:int = tf.getLineIndexOfChar(newCharIndex);
 
 trace(caretIndex= + tf.caretIndex + , newCharIndex= + newCharIndex
+ 
   , char= +
tf.text.charAt(newCharIndex).replace(/\r/,\\r) + , line= + line);
}


Cheers, Benny

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


Re: [Flashcoders] @#$% New iPhone Developer Agr eement Bans the Use of Adobe’s Flash-to-iPhon e Compiler

2010-04-10 Thread Mario Gonzalez
Here's an interesting point I forgot about (not the timing but these  
specific repercussions):


But they announced it within 3 days (!!!) of the Adobe CS5 release.  
Meaning Adobe has no chance to do anything about it - information  
about Flash on iPhone is all over CS5 boxes, webpages, press  
releases, manuals... everywhere


Ouch!
On Apr 9, 2010, at 10:16 PM, Mattheis, Erik (MIN - WSW) wrote:

Thanks for the Theory, Carl - I'd elevate it to a Law: It's about  
harnessing the iPhone/iPad momentum at any cost - forwarded your  
insight to my coworkers. But I wonder how much of this is based on  
the old MS vs Apple war - calculated on the fact there's probably  
more C++ than ActionScript developers out there.


I've been an Apple devotee since the IIc and will probably continue  
to buy Macs for my home computer. Own stock too ... I've a dumb  
Sanyo phone I'm upgrading one of these months, and even before this  
news, it was obvious I should get an Android device.


Apple has always been both a hardware *and* software giant despite  
its small market share, unique. But they seem to be gambling that on  
a gambit that they can leverage their present advantage in mobile  
market to finally be the king. I'm thinking and hoping this hubris  
will bite them back, or at least not succeed.


As a developer, I've tried to wrap my mind around Objective C, and  
that effort made my brain hurt. AS2 to AS3 pleasantly stretched it.  
Dunno, I've a .NET colleague and if you asked him, he'd say he'd  
rather approach developing an iPhone app in C than ActionScript.  
Thus, repeating, maybe Apple is trying to burn Microsoft by  
harnessing the power of the developers they've cultivated  
through .NET.


From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com 
] On Behalf Of Mark Winterhalder [mar...@gmail.com]

Sent: Thursday, April 08, 2010 8:45 PM
To: Flash Coders List
Subject: Re: [Flashcoders] @#$% New iPhone Developer Agreement Bans  
the Use of Adobe’s Flash-to-iPhone Compiler


On Fri, Apr 9, 2010 at 3:00 AM, Carl Welch  
carlwelchdes...@gmail.com wrote:
http://daringfireball.net/2010/04/ 
iphone_agreement_bans_flash_compiler


I can't even explain how frustrated I am about apple. I just feel  
that Mr
Job's is just giving the finger to so many people that have  
supported and

promoted his company since day one. ugh.


Frustrated doesn't even begin to describe it.

My theory is that it's about vendor lock-in. Cross platform
development offers a way around it -- if the exact same apps you payed
for and, maybe more importantly, got used to, are available for
Android, then you can switch away from iPhone OS.

Mobile devices always are a compromise. You weight CPU performance
against battery life, make a decision about screen size, and so on.
Apple has a two-sizes-fit-all product line, while a number of
manufacturers produce a growing variety of Android devices.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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


Re: [Flashcoders] @#$% New iPhone Developer Agreemen t Bans the Use of Adobe’s Flash-to-iPhone Compiler

2010-04-10 Thread Matt S.
Anyone else sign up for the FlashInTheCity workshop on flash
development for mobile? iPhone dev was definitely going to be a
centerpiece, it'll be interesting to see how that goes now

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


Re: [Flashcoders] @#$% New iPhone Developer Agreemen t Bans the Use of Adobe’s Flash-to-iPhone Compiler

2010-04-10 Thread Dave Watts
 But I wonder how much of this is based on the old MS vs Apple war - 
 calculated on the fact there's probably more C++ than
 ActionScript developers out there.

I don't really think that's the right comparison, though. AS3 is a lot
more like Java and C# than C++ is, actually. The core syntax is very
similar across all four of those languages, of course, but the way you
approach problems in AS3, Java and C# is different from how you
approach them in C++ in many ways - primarily because you don't manage
memory directly in the first three, I think.

Nowadays, there really aren't that many people working in C++ directly
in the enterprise. Java and C# are really the dominant enterprise
programming languages now.

 Apple has always been both a hardware *and* software giant despite its small 
 market share, unique. But they seem to be
 gambling that on a gambit that they can leverage their present advantage in 
 mobile market to finally be the king.

I don't even think it's really that. Apple doesn't need to be the
king, they just want to have complete control of their niche. If
their niche grows a bit in the consumer market, so much the better,
but Apple has always been about control over openness.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] (no subject)

2010-04-10 Thread Dave Watts
Hi, Michael! It appears your machine may have a virus. I've blocked
your account from sending mail. Please let me know directly at
dwa...@figleaf.com to reenable your account once you've resolved your
problem. Thanks!

On Fri, Apr 9, 2010 at 19:03, Michael Dunn dun...@gmail.com wrote:
 http://PhoenixKenney5517.co.cc
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] @#$% New iPhone Developer Agreement Bans the Use of Adobe’s Flash-to-iPhone Compiler

2010-04-10 Thread Henrik Andersson

Dave Watts wrote:
...AS3, Java and C# is different from ... C++ in many ways - primarily 

because you don't manage

memory directly in the first three, I think.



Yeah, you don't think that you need to manage memory in those. But you 
do. Just not as often.

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


Re: [Flashcoders] @#$% New iPhone Developer Agreemen t Bans the Use of Adobe’s Flash-to-iPhone Compiler

2010-04-10 Thread Dave Watts
 Yeah, you don't think that you need to manage memory in those. But you do.
 Just not as often.

And not in the same way, either. But yes, there are memory management
concerns in VM languages too, you just don't typically get faced with
them directly every time you do something.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Recommended set-up for Flash Builder 4?

2010-04-10 Thread John McCormack

Which setup do you recommend for Flash Builder 4?

Stand-alone or plug-in?
If plug-in, which eclipse version?

I would like to use fdt and FB4 in parallel.
In this case, would you recommend separate stand-alone installations?

John

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


Re: [Flashcoders] Recommended set-up for Flash Builder 4?

2010-04-10 Thread Kerry Thompson
John McCormack wrote:
 Which setup do you recommend for Flash Builder 4?

 Stand-alone or plug-in?
 If plug-in, which eclipse version?

I would use the plug-in version. I've heard from very reliable sources
that there are some issues with the standalone version--I'm not sure
what the issues are, and my source can't tell me because of NDA, but I
can tell you that I have the plug-in version running, and I love it. I
have Eclipse Java EE IDE for Web Developers, Build id 30200328-2603.
The build ID may change, but that's the one you want.

When you do the installation, run everything as Administrator the
first time around if you're on Windows. Eclipse itself you just
extract, then drag to Program Files (x86)--you don't need to do the
extraction as administrator.

Cordially,

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


Re: [Flashcoders] Recommended set-up for Flash Builder 4?

2010-04-10 Thread Steven Sacks

NDA? Flash Builder 4 is out. Nobody is prohibited from talking about it 
anymore. ;)


On 4/10/2010 1:44 PM, Kerry Thompson wrote:

John McCormack wrote:

Which setup do you recommend for Flash Builder 4?

Stand-alone or plug-in?
If plug-in, which eclipse version?


I would use the plug-in version. I've heard from very reliable sources
that there are some issues with the standalone version--I'm not sure
what the issues are, and my source can't tell me because of NDA, but I
can tell you that I have the plug-in version running, and I love it. I
have Eclipse Java EE IDE for Web Developers, Build id 30200328-2603.
The build ID may change, but that's the one you want.

When you do the installation, run everything as Administrator the
first time around if you're on Windows. Eclipse itself you just
extract, then drag to Program Files (x86)--you don't need to do the
extraction as administrator.

Cordially,

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


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


RE: [Flashcoders] @#$% New iPhone Developer Agreement Ba ns the Use of Adobe’s Flash-to-iPhone Compiler

2010-04-10 Thread Mattheis, Erik (MIN - WSW)
Dave Watts: I don't really think that's the right comparison, though. AS3 is a 
lot
more like Java and C# than C++ is, actually. The core syntax is very
similar across all four of those languages, of course, but the way you
approach problems in AS3, Java and C# is different from how you
approach them in C++ in many ways - primarily because you don't manage
memory directly in the first three, I think.

I'm mainly thinking of my coworker with a .NET background., and I'm assuming 
Objective C is closer to C# than ActiionScript. When you're up against 
deadlines  and the decision to outsource or not, taking the Flash development 
platform off the table is huge. I'm just searching for the rationality behind  
the change in the developer agreement. Why should Apple care how an app was 
developed when they can already accept or reject everything already through the 
app store? Again as a Mac devotee, the first thing that pops into my mind is 
settling old scores. There has to be a reason behind the decision, and I'm 
struggling to comprehend it.

Dave Watts: I I don't even think it's really that. Apple doesn't need to be 
the
king, they just want to have complete control of their niche. If
their niche grows a bit in the consumer market, so much the better,
but Apple has always been about control over openness.

Agreed, and a large part of the Apple appeal is consistency in the UI and 
they've always enforced consistency. How that consistency is achieved, as 
described in the change in the developer agreement  is a whole new ball game. 
It doesn't make sense to me as an Apple shareholder or developer. It's just 
weird!

A lot of outrage hass been expressed, but there has to be a why. Why?

PS. Sorry about the reply formatting.

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


Re: [Flashcoders] Recommended set-up for Flash Builder 4?

2010-04-10 Thread Kerry Thompson
Steven Sacks wrote:
 NDA? Flash Builder 4 is out. Nobody is prohibited from talking about it
 anymore. ;)

Right. And Director will rise again. Allen told me.

Now I have to go shoot myself for breaking my NDA ;-)

Cordially,

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