RE: [Flashcoders] AS3 - MovieClip in MovieClip not showing

2008-07-18 Thread Cor
Meinte,

Bedankt, ik ben eruit.

Groeten
Cor

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Meinte van't
Kruis
Sent: zaterdag 19 juli 2008 1:19
To: Flash Coders List
Subject: Re: [Flashcoders] AS3 - MovieClip in MovieClip not showing

> MovieClip.width and MovieClip.height are not listed as MovieClip
properties
> in the documentation. Maybe you should switch to Sprites.

This is not true offcourse(would be a lovely adobe joke tho, 'ok guys, in
as3 we have no width or height on MovieClip, sorry and good luck').

Ummm ok, I did some small tests. The problem lies in the fact that
you're resetting its width and height before adding anything to it, if you
turn that around, it does show stuff. I think the problem lies with the fact
that when a movieclip is empty, it's dimensions are zero. WHen you then then
set its width and height properties while it is empty, it just ignores that
stuff, but somehow keeps it zero after you add stuff.

so mc=new Movieclip; mc.width=500;
mc.height=600;mc.addCHild(bigassMovieClipWIthStuffInIt)

will actually get you a big assMovieCLip within mc with width and height
zero.. (dont ask me why, its getting late :))

On Fri, Jul 18, 2008 at 10:16 PM, Keith Reinfeld <[EMAIL PROTECTED]>
wrote:

> > Just for the record:
> > Q: Sprite is the same as a MovieClip but without the timeline,
> > isn't it?
>
> MovieClip inherits from Sprite.
>
> Beyond that you will have to ask someone who can make sense of CS3's
> convoluted documentation.
>
> Regards,
>
> -Keith
> http://keithreinfeld.home.comcast.net
>
>
>
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
M.A. van't Kruis
http://www.malatze.nl/
___
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] XML deep searching

2008-07-18 Thread Merrill, Jason
OK, I tried this out, but I get a compile-time error

"Warning: test is not a recognized method of the dynamic class RegExp."

The code I have is:

var re:RegExp = new RegExp("^" + searchInput.text);
var xmlListSearch:XMLList = _model.help.helpData.xml..*.topic.*.(
re.test(attribute("title")));
trace("searchResult: " + xmlListSearch.toXMLString());

(note,  _model.help.helpData.xml is the location of the loaded XML)


Jason Merrill 
Bank of America 
Enterprise Technology & Global Risk L&LD 
Instructional Technology & Media

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GT&O Innovative Learning Blog & subscribe. 

 

>>-Original Message-
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Wagner Amaral
>>Sent: Friday, July 18, 2008 5:04 PM
>>To: Flash Coders List
>>Subject: Re: [Flashcoders] XML deep searching
>>
>>Hi Jason,
>>
>>The error you're getting is actually syntatical. Here's what 
>>you wrote:
>>re.(attribute())
>>And what you should've done:
>>re.test(attribute())
>>
>>Since re is an object of type RegExp, you want to call the 
>>method test() on it, and I guess it will work then
>>
>>Also, I believe this is more concise:
>>xml..*.topic.
>>instead of:
>>xml.topics..topic.*.
>>
>>Still, I've got a bizarre behaviour when testing this out, 
>>I'll post a new thread shortly describing the problem.
>>
>>Wagner
>>
>>
>>
>>On Fri, Jul 18, 2008 at 4:48 PM, Merrill, Jason < 
>>[EMAIL PROTECTED]> wrote:
>>
>>> OK, so based on what I just picked out of the "E4X, regexp and user 
>>> input" thread, I tried to mix some XML and a regex to solve my 
>>> problem, but I didn't get too far, and again, really don't 
>>know what 
>>> I'm doing with regular expressions, and I'm not quite a pro at E4X 
>>> yet.  I am getting this error when I try and search on [EMAIL PROTECTED] 
>>> attribute
>>> values:
>>>
>>>  "Filter operator not supported on type RegExp."
>>>
>>> based on this code:
>>>
>>>  var re:RegExp = new RegExp("^" + searchInput.text);  var 
>>> xmlListSearch:XMLList = xml.topics..topic.*.( re.( 
>>> attribute("title")));
>>>
>>> Which is drawing from this XML:
>>>
>>>  
>>>
>>>
>>>
>>>
>>>...etc.
>>>
>>> Any ideas?  Thanks.
>>>
>>>
>>> Jason Merrill
>>> Bank of America
>>> Enterprise Technology & Global Risk L&LD Instructional Technology & 
>>> Media
>>>
>>> Join the Bank of America Flash Platform Developer Community
>>>
>>> Are you a Bank of America associate interested in 
>>innovative learning 
>>> ideas and technologies?
>>> Check out our internal  GT&O Innovative Learning Blog & subscribe.
>>>
>>>
>>> ___
>>> 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] E4X filtering strange behaviour

2008-07-18 Thread Merrill, Jason
Thanks.  However, I have been told using @title is not good in most
situations because it will return an error if a node doesn't have the
attribute, wheras attribute("title") will not.

>>Also this is shorter:
>>var xmlListSearch:XMLList = test..topic.(re.test(@title));

But you still need to specify what XML to search through, no?  How would
the above know what XML object topic is within using the code above?

Jason Merrill 
Bank of America 
Enterprise Technology & Global Risk L&LD 
Instructional Technology & Media

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GT&O Innovative Learning Blog & subscribe. 

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


RE: [Flashcoders] XML deep searching

2008-07-18 Thread Merrill, Jason
Hey thanks Wagner and Kenneth, I'll try this out!  I feel pretty good I
was close!  I'll report back if it works for me.   

Jason Merrill 
Bank of America 
Enterprise Technology & Global Risk L&LD 
Instructional Technology & Media

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GT&O Innovative Learning Blog & subscribe. 

 

>>-Original Message-
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Wagner Amaral
>>Sent: Friday, July 18, 2008 5:04 PM
>>To: Flash Coders List
>>Subject: Re: [Flashcoders] XML deep searching
>>
>>Hi Jason,
>>
>>The error you're getting is actually syntatical. Here's what 
>>you wrote:
>>re.(attribute())
>>And what you should've done:
>>re.test(attribute())
>>
>>Since re is an object of type RegExp, you want to call the 
>>method test() on it, and I guess it will work then
>>
>>Also, I believe this is more concise:
>>xml..*.topic.
>>instead of:
>>xml.topics..topic.*.
>>
>>Still, I've got a bizarre behaviour when testing this out, 
>>I'll post a new thread shortly describing the problem.
>>
>>Wagner
>>
>>
>>
>>On Fri, Jul 18, 2008 at 4:48 PM, Merrill, Jason < 
>>[EMAIL PROTECTED]> wrote:
>>
>>> OK, so based on what I just picked out of the "E4X, regexp and user 
>>> input" thread, I tried to mix some XML and a regex to solve my 
>>> problem, but I didn't get too far, and again, really don't 
>>know what 
>>> I'm doing with regular expressions, and I'm not quite a pro at E4X 
>>> yet.  I am getting this error when I try and search on [EMAIL PROTECTED] 
>>> attribute
>>> values:
>>>
>>>  "Filter operator not supported on type RegExp."
>>>
>>> based on this code:
>>>
>>>  var re:RegExp = new RegExp("^" + searchInput.text);  var 
>>> xmlListSearch:XMLList = xml.topics..topic.*.( re.( 
>>> attribute("title")));
>>>
>>> Which is drawing from this XML:
>>>
>>>  
>>>
>>>
>>>
>>>
>>>...etc.
>>>
>>> Any ideas?  Thanks.
>>>
>>>
>>> Jason Merrill
>>> Bank of America
>>> Enterprise Technology & Global Risk L&LD Instructional Technology & 
>>> Media
>>>
>>> Join the Bank of America Flash Platform Developer Community
>>>
>>> Are you a Bank of America associate interested in 
>>innovative learning 
>>> ideas and technologies?
>>> Check out our internal  GT&O Innovative Learning Blog & subscribe.
>>>
>>>
>>> ___
>>> 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] Suddenly lots of 1065 Errors: Variable xxxxxx is not defined.

2008-07-18 Thread Benicio del Toro
Thanks for the tips.
I tried it on two different machines and after restart of both Flash and the
computer.
I also did check the autodeclare thing.

What's more I did manage to narow the problem to one line of recently
modified code and still don't get it.

I've got an array containing subtitle data (:
subtitles:Aray = [
new SubtitleAction ("bbb", 3, 3)
, new SubtitleAction ("bbb", 8, 3)
, new SubtitleAction ("bbb", 15, 3)
, new SubtitleAction ("bbb", 21.5, 3)
, new SubtitleAction ("bbb", 24, 3)
etc.
]

where SubtitleAction is simply a datatype class with following constructor:

public function SubtitleAction (text:String, triggerTime:Number ,
durationTime:Number)
{
super (TYPE_SUBTITLE);
this.text = text;
this.triggerTime = Math.floor(triggerTime);
this.durationTime = durationTime;
}

It does nothing else except being used by another part of application (which
manages display of subtitles).
SubtitleAction extends another class: ActionEvent but it makes use of only
one super's variable: 'type', which is set to constant: TYPE_SUBTITLE. The
problem starts when I try to set triggerTime not to a round number but to
21.5 for example like in the fourth line. To make sure that it's nothing
that would cause problem anywhere further I added Math.round () to round the
value in the constructor BUT it still adding .5 to 21messes up the whole
app. No compiler or regular runtime errors, just a bunch of 1065 Errors
begining with "Variable (my DocumentClass name ) is not defined".

I can live with round numbers of seconds to adjust the subtitles, but I
can't without understanding what's happening here. :-)

Best,
Konrad



2008/7/18 Fabio Pinatti <[EMAIL PROTECTED]>:

> On Fri, Jul 18, 2008 at 5:29 PM, Benicio del Toro <
> [EMAIL PROTECTED]> wrote:
>
> > Hi,
> >
> > I'm working on a quite large AS3 project in Flash and I'm closing to the
> > end
> > of it but suddenly my main file stopped compiling properly. There are no
> > compilers errors, but the application doesn't seem to start, and I get
> tons
> > of 1065:  'Variable xx is not defined' errors. I guess it lists most
> of
> > my custom classes (there are probably around 50 different classes in the
> > project, excluding simple indentifiers for the library assets.
> >
> > It all happened when I was editing some very non critical parts of the
> code
> > (adjusting timings of movie subtitles), but at some point I picked up my
> > phone and may have clicked on something unconsciously by mistake.  :-(
> >
> > I started looking into code, but honestly I don't know what may have
> caused
> > it. Is there any obvious reason, that I should check in the first place?
> >
> > Please help, I spent last 1,5 month writing the damn thing and it should
> > run
> > on public on Monday...
> >
> > Best regards,
> > Konrad
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
> Maybe you've marked off the "Automatically Declare Stage Instances", did
> you
> try see that?
>
> Best
>
> --
> Fábio Pinatti
> :: web.developer
>  www.pinatti.com.br
> :: 19. 9184.3745 / 3342.1130
> ___
> 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] AS3 - MovieClip in MovieClip not showing

2008-07-18 Thread Meinte van't Kruis
> MovieClip.width and MovieClip.height are not listed as MovieClip
properties
> in the documentation. Maybe you should switch to Sprites.

This is not true offcourse(would be a lovely adobe joke tho, 'ok guys, in
as3 we have no width or height on MovieClip, sorry and good luck').

Ummm ok, I did some small tests. The problem lies in the fact that
you're resetting its width and height before adding anything to it, if you
turn that around, it does show stuff. I think the problem lies with the fact
that when a movieclip is empty, it's dimensions are zero. WHen you then then
set its width and height properties while it is empty, it just ignores that
stuff, but somehow keeps it zero after you add stuff.

so mc=new Movieclip; mc.width=500;
mc.height=600;mc.addCHild(bigassMovieClipWIthStuffInIt)

will actually get you a big assMovieCLip within mc with width and height
zero.. (dont ask me why, its getting late :))

On Fri, Jul 18, 2008 at 10:16 PM, Keith Reinfeld <[EMAIL PROTECTED]>
wrote:

> > Just for the record:
> > Q: Sprite is the same as a MovieClip but without the timeline,
> > isn't it?
>
> MovieClip inherits from Sprite.
>
> Beyond that you will have to ask someone who can make sense of CS3's
> convoluted documentation.
>
> Regards,
>
> -Keith
> http://keithreinfeld.home.comcast.net
>
>
>
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
M.A. van't Kruis
http://www.malatze.nl/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] hiring

2008-07-18 Thread Meinte van't Kruis
where were you (dutch) guys a few years ago when I need you :P ;)

On Thu, Jul 17, 2008 at 1:48 PM, Gert-Jan van der Wel <
[EMAIL PROTECTED]> wrote:

> Hi Sid,
>
> True! We're not looking for freelancers, but for someone to fill an on site
> full time position, but the problem is the same. We adjusted our vacancy
> from a Flash coder to someone with OOP experience and wanting to learn
> Actionscript. We'll see...
>
> Op 16 jul 2008, om 18:10 heeft Sidney de Koning het volgende geschreven:
>
>
>  Tell me about it, we are based in Amsterdam and having much difficulty
>> getting freelancers.
>> However we already placed some ads on riajobs.org, and gotten more
>> reactions than using headhunters companies (Monster, ComputerFutures etc).
>> Company blogs and direct mailings are also more effective i think. (This
>> is specific for the dutch users: Have you tried freelance.nl ? )
>>
>> Good luck!
>>
>> Sid
>>
>>
>> On Jul 16, 2008, at 4:58 PM, Gert-Jan van der Wel wrote:
>>
>>  Thanks Sid!
>>>
>>> We're also looking for an ActionScript/Flash developer to join the
>>> Floorplanner team in Rotterdam, The Netherlands. It quite difficult to find
>>> good people...
>>>
>>> Gert-Jan
>>>
>>>
>>> Op 16 jul 2008, om 14:39 heeft Sidney de Koning het volgende geschreven:
>>>
>>>  try http://www.riajobs.org/

 Sid

 On Jul 16, 2008, at 2:29 PM, Romuald Quantin wrote:

  Hi,
>
>
>
> I'm not sure it is the right place to do that but people have been
> friendly
> on this list, I hope you can help.
>
>
>
> I'll have to hire a flash/flex developer in London UK for a permanent
> job.
>
>
>
> Can anyone tell me some good place to post an ad?
>
>
>
> I'm not looking for a "general IT job site" but some sites like the job
> section in www.thefwa.com   where I can find
> good
> developers.
>
> Maybe another mailing list?
>
>
>
> Any info?
>
>
>
> Thanks
>
>
>
> Romuald
>
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
 Sidney de Koning
 Flash / AIR Developer @ www.funky-monkey.nl
 Technical Writer @ www.insideria.com





 ___
 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
>>>
>>>
>> Sidney de Koning
>> Flash / AIR Developer @ www.funky-monkey.nl
>> Technical Writer @ www.insideria.com
>>
>>
>>
>>
>>
>> ___
>> 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
>



-- 
M.A. van't Kruis
http://www.malatze.nl/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AS3 programatically set 'focus' to textfield (blinking carret)

2008-07-18 Thread Latcho

HOW !!?

form.stage.focus = textfield
doesn't do a thing  (yes I wait for Event.ADDED_TO_STAGE)

I'd love to see that carret blinking on that field

please help me out

THANKS !

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


Re: [Flashcoders] E4X filtering strange behaviour

2008-07-18 Thread Kenneth Kawamoto
I get the correct node (although I also get Warning 3594). If you are 
tracing, you must do trace(xmlListSearch.toXMLString());


Also this is shorter:
var xmlListSearch:XMLList = test..topic.(re.test(@title));

Kenneth Kawamoto
http://www.materiaprima.co.uk/

Wagner Amaral wrote:

I was doing some tests here using code from Jason Merril (see previous
thread today), and something has brought my attention.
Here's the xml:

var test:XML = 
   
   
   
   
   
;

I tried two cases:
var re:RegExp = new RegExp("^Cold");
var xmlListSearch:XMLList = test..*.topic.(
re.test(attribute('title').toString()) );

and:
var re:RegExp = new RegExp("^Cold");
var xmlListSearch:XMLList = test..*.topic.(
!re.test(attribute('title').toString()) );
// this one just negates the RegExp.test() inside topic.() so I should get
the nodes NOT matching

Well, when I run the first case, I get an empty XMLList, so I was thinking
"well, that doesn't work".
However, when I run the second test, I get the XMLList with all elements
EXCEPT the one filtered out, so it actually works!
But what is going on that when the regexp returns true, my XMLList is empty?
This seems a bit strange.


Note: after writing all this, I tried something else:

// this does not work
var xmlListSearch:XMLList = test..*.topic.( attribute('title').toString() ==
"The Dark Knight" );

// this DO work
var xmlListSearch:XMLList = test..*.topic.( attribute('title').toString() !=
"The Dark Knight" );

Now, THAT's bizarre!

(BTW, I'm quite new to this E4X thing, I'm more of a XPath guy, so bear with
me if I did something completely wrong ;)


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


Re: [Flashcoders] XML deep searching

2008-07-18 Thread Matt S.
On Fri, Jul 18, 2008 at 5:06 PM, Wagner Amaral <[EMAIL PROTECTED]> wrote:
> BTW, what is it today? Official RegExp Day?

you mean you're not wearing your traditional RegExpDay sparkly hat?? (gasp).

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


Re: [Flashcoders] XML deep searching

2008-07-18 Thread Wagner Amaral
BTW, what is it today? Official RegExp Day?


On Fri, Jul 18, 2008 at 6:03 PM, Wagner Amaral <[EMAIL PROTECTED]>
wrote:

> Hi Jason,
>
> The error you're getting is actually syntatical. Here's what you wrote:
> re.(attribute())
> And what you should've done:
> re.test(attribute())
>
> Since re is an object of type RegExp, you want to call the method test() on
> it, and I guess it will work then
>
> Also, I believe this is more concise:
> xml..*.topic.
> instead of:
> xml.topics..topic.*.
>
> Still, I've got a bizarre behaviour when testing this out, I'll post a new
> thread shortly describing the problem.
>
> Wagner
>
>
>
>
> On Fri, Jul 18, 2008 at 4:48 PM, Merrill, Jason <
> [EMAIL PROTECTED]> wrote:
>
>> OK, so based on what I just picked out of the "E4X, regexp and user
>> input" thread, I tried to mix some XML and a regex to solve my problem,
>> but I didn't get too far, and again, really don't know what I'm doing
>> with regular expressions, and I'm not quite a pro at E4X yet.  I am
>> getting this error when I try and search on [EMAIL PROTECTED] attribute
>> values:
>>
>>  "Filter operator not supported on type RegExp."
>>
>> based on this code:
>>
>>  var re:RegExp = new RegExp("^" + searchInput.text);
>>  var xmlListSearch:XMLList = xml.topics..topic.*.( re.(
>> attribute("title")));
>>
>> Which is drawing from this XML:
>>
>>  
>>
>>
>>
>>
>>...etc.
>>
>> Any ideas?  Thanks.
>>
>>
>> Jason Merrill
>> Bank of America
>> Enterprise Technology & Global Risk L&LD
>> Instructional Technology & Media
>>
>> Join the Bank of America Flash Platform Developer Community
>>
>> Are you a Bank of America associate interested in innovative learning
>> ideas and technologies?
>> Check out our internal  GT&O Innovative Learning Blog & subscribe.
>>
>>
>> ___
>> 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] E4X filtering strange behaviour

2008-07-18 Thread Wagner Amaral
I was doing some tests here using code from Jason Merril (see previous
thread today), and something has brought my attention.
Here's the xml:

var test:XML = 
   
   
   
   
   
;

I tried two cases:
var re:RegExp = new RegExp("^Cold");
var xmlListSearch:XMLList = test..*.topic.(
re.test(attribute('title').toString()) );

and:
var re:RegExp = new RegExp("^Cold");
var xmlListSearch:XMLList = test..*.topic.(
!re.test(attribute('title').toString()) );
// this one just negates the RegExp.test() inside topic.() so I should get
the nodes NOT matching

Well, when I run the first case, I get an empty XMLList, so I was thinking
"well, that doesn't work".
However, when I run the second test, I get the XMLList with all elements
EXCEPT the one filtered out, so it actually works!
But what is going on that when the regexp returns true, my XMLList is empty?
This seems a bit strange.


Note: after writing all this, I tried something else:

// this does not work
var xmlListSearch:XMLList = test..*.topic.( attribute('title').toString() ==
"The Dark Knight" );

// this DO work
var xmlListSearch:XMLList = test..*.topic.( attribute('title').toString() !=
"The Dark Knight" );

Now, THAT's bizarre!

(BTW, I'm quite new to this E4X thing, I'm more of a XPath guy, so bear with
me if I did something completely wrong ;)
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XML deep searching

2008-07-18 Thread Wagner Amaral
Hi Jason,

The error you're getting is actually syntatical. Here's what you wrote:
re.(attribute())
And what you should've done:
re.test(attribute())

Since re is an object of type RegExp, you want to call the method test() on
it, and I guess it will work then

Also, I believe this is more concise:
xml..*.topic.
instead of:
xml.topics..topic.*.

Still, I've got a bizarre behaviour when testing this out, I'll post a new
thread shortly describing the problem.

Wagner



On Fri, Jul 18, 2008 at 4:48 PM, Merrill, Jason <
[EMAIL PROTECTED]> wrote:

> OK, so based on what I just picked out of the "E4X, regexp and user
> input" thread, I tried to mix some XML and a regex to solve my problem,
> but I didn't get too far, and again, really don't know what I'm doing
> with regular expressions, and I'm not quite a pro at E4X yet.  I am
> getting this error when I try and search on [EMAIL PROTECTED] attribute
> values:
>
>  "Filter operator not supported on type RegExp."
>
> based on this code:
>
>  var re:RegExp = new RegExp("^" + searchInput.text);
>  var xmlListSearch:XMLList = xml.topics..topic.*.( re.(
> attribute("title")));
>
> Which is drawing from this XML:
>
>  
>
>
>
>
>...etc.
>
> Any ideas?  Thanks.
>
>
> Jason Merrill
> Bank of America
> Enterprise Technology & Global Risk L&LD
> Instructional Technology & Media
>
> Join the Bank of America Flash Platform Developer Community
>
> Are you a Bank of America associate interested in innovative learning
> ideas and technologies?
> Check out our internal  GT&O Innovative Learning Blog & subscribe.
>
>
> ___
> 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] removing all listeners from a dpo

2008-07-18 Thread Fabio Pinatti
Hi list,

I'm wondering if I can have a generical function, that I can remove all
listeners registered for an object. Imagine a button with 10 listeners, and
I don`t need know which ones it are to remove. I simply call
"removeListeners(dpo)" and that function does all work.

Is there any way?

Thanks so much,

-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Suddenly lots of 1065 Errors: Variable xxxxxx is not defined.

2008-07-18 Thread Fabio Pinatti
On Fri, Jul 18, 2008 at 5:29 PM, Benicio del Toro <
[EMAIL PROTECTED]> wrote:

> Hi,
>
> I'm working on a quite large AS3 project in Flash and I'm closing to the
> end
> of it but suddenly my main file stopped compiling properly. There are no
> compilers errors, but the application doesn't seem to start, and I get tons
> of 1065:  'Variable xx is not defined' errors. I guess it lists most of
> my custom classes (there are probably around 50 different classes in the
> project, excluding simple indentifiers for the library assets.
>
> It all happened when I was editing some very non critical parts of the code
> (adjusting timings of movie subtitles), but at some point I picked up my
> phone and may have clicked on something unconsciously by mistake.  :-(
>
> I started looking into code, but honestly I don't know what may have caused
> it. Is there any obvious reason, that I should check in the first place?
>
> Please help, I spent last 1,5 month writing the damn thing and it should
> run
> on public on Monday...
>
> Best regards,
> Konrad
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>


Maybe you've marked off the "Automatically Declare Stage Instances", did you
try see that?

Best

-- 
Fábio Pinatti
:: web.developer
 www.pinatti.com.br
:: 19. 9184.3745 / 3342.1130
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] Suddenly lots of 1065 Errors: Variable xxxxxx is not defined.

2008-07-18 Thread Cor
Restart Flash or maybe your system.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Benicio del
Toro
Sent: vrijdag 18 juli 2008 22:29
To: Flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Suddenly lots of 1065 Errors: Variable xx is not
defined.

Hi,

I'm working on a quite large AS3 project in Flash and I'm closing to the end
of it but suddenly my main file stopped compiling properly. There are no
compilers errors, but the application doesn't seem to start, and I get tons
of 1065:  'Variable xx is not defined' errors. I guess it lists most of
my custom classes (there are probably around 50 different classes in the
project, excluding simple indentifiers for the library assets.

It all happened when I was editing some very non critical parts of the code
(adjusting timings of movie subtitles), but at some point I picked up my
phone and may have clicked on something unconsciously by mistake.  :-(

I started looking into code, but honestly I don't know what may have caused
it. Is there any obvious reason, that I should check in the first place?

Please help, I spent last 1,5 month writing the damn thing and it should run
on public on Monday...

Best regards,
Konrad
___
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] Re: Flashcoders Digest, Vol 10, Issue 20

2008-07-18 Thread Kurt Griffin
Perhaps I'm missing something, and this is probably slower than  
regEx, but couldn't you simply change



xml.topics..topic.(attribute("title").toUpperCase() == searchTerm);


to

xml.topics..topic.(attribute("title").toUpperCase().indexOf 
(searchTerm) > -1


?

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


[Flashcoders] Suddenly lots of 1065 Errors: Variable xxxxxx is not defined.

2008-07-18 Thread Benicio del Toro
Hi,

I'm working on a quite large AS3 project in Flash and I'm closing to the end
of it but suddenly my main file stopped compiling properly. There are no
compilers errors, but the application doesn't seem to start, and I get tons
of 1065:  'Variable xx is not defined' errors. I guess it lists most of
my custom classes (there are probably around 50 different classes in the
project, excluding simple indentifiers for the library assets.

It all happened when I was editing some very non critical parts of the code
(adjusting timings of movie subtitles), but at some point I picked up my
phone and may have clicked on something unconsciously by mistake.  :-(

I started looking into code, but honestly I don't know what may have caused
it. Is there any obvious reason, that I should check in the first place?

Please help, I spent last 1,5 month writing the damn thing and it should run
on public on Monday...

Best regards,
Konrad
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] AS3 - MovieClip in MovieClip not showing

2008-07-18 Thread Keith Reinfeld
> Just for the record:
> Q: Sprite is the same as a MovieClip but without the timeline, 
> isn't it?

MovieClip inherits from Sprite. 

Beyond that you will have to ask someone who can make sense of CS3's
convoluted documentation. 

Regards, 

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




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


RE: [Flashcoders] AS3 - MovieClip in MovieClip not showing

2008-07-18 Thread Cor
Thanks Keith,

Just for the record:
Q: Sprite is the same as a MovieClip but without the timeline, isn't it?



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Keith
Reinfeld
Sent: vrijdag 18 juli 2008 21:54
To: 'Flash Coders List'
Subject: RE: [Flashcoders] AS3 - MovieClip in MovieClip not showing

Hi Cor, 

If you comment out the lines where you are attempting to set the height and
width properties then the text will be visible. 

MovieClip.width and MovieClip.height are not listed as MovieClip properties
in the documentation. Maybe you should switch to Sprites. 

If this was AS2 you still would not be able to assign values to _width and
_height for an empty movieclip. 

Regards, 

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


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Cor
> Sent: Friday, July 18, 2008 12:38 PM
> To: 'Flash Coders List'
> Subject: RE: [Flashcoders] AS3 - MovieClip in MovieClip not showing
> 
> Hi,
> 
> I am the original poster.
> Thanks for your effort.
> I still hoping someone can help me.
> 
> It is correctly set as Document class.
> And it is the only class so far.
> 
> So if you create an empty fla and set the Document class to LesViewer
> 
> Create a new LesViewer.as in the same folder and copy/paste this code in
> it
> -class code -
> package {
> 
>   import flash.display.MovieClip;
>   import flash.display.SimpleButton;
>   import flash.text.TextField;
> 
>   public class LesViewer extends MovieClip{
> 
>   public const STAGE_WIDTH = 800;
>   public const STAGE_HEIGHT = 600;
> 
>   private var container:MovieClip;
>   private var header:MovieClip;
>   private var menu:MovieClip;
>   private var content:MovieClip;
>   private var footer:MovieClip;
>   private var tfHeader:TextField;
>   private var tfLessonInput:TextField;
>   private var tfFooter:TextField;
>   private var bSubmit:SimpleButton;
> 
>   public function LesViewer() {
>   init();
>   }
> 
>   private function init():void{
>   buildGUI();
>   }
> 
>   private function buildGUI():void{
>   //main container - everything is in here
>   container = new MovieClip();
>   container.x = 0;
>   container.y = 0;
>   container.width = STAGE_WIDTH;
>   container.height = STAGE_HEIGHT;
>   addChild(container);
> 
>   //header - contains a nice graphic/animation, a
> textfield, a lesson-number-input field, the submit button
>   header = new MovieClip();
>   header.x = 0;
>   header.y = 0;
>   header.width = STAGE_WIDTH;
>   header.height = STAGE_HEIGHT * .2;
> 
>   container.addChild(header);
>   // TODO: create animation
>   tfHeader = new TextField();
>   tfHeader.text = "Les:";
>   tfHeader.x = 300;
>   tfHeader.y = 20;
>   header.addChild(tfHeader);
> 
>   trace(container.height);
> 
>   //footer no real purpose yet, I guess I'll address
> some credentials to the author :-)
>   footer = new MovieClip();
>   footer.width = STAGE_WIDTH;
>   footer.height = 30;
>   footer.x = 0;
>   footer.y = STAGE_HEIGHT - footer.height;
>   container.addChild(footer);
> 
> 
>   //menu container - contains a Bitmap-thumbnail of
> every frame of the loaded swf
>   menu = new MovieClip();
>   menu.x = 0;
>   menu.y = header.height;
>   menu.width = STAGE_WIDTH*.2;
>   menu.height = STAGE_HEIGHT - header.height -
> footer.height;
> 
>   container.addChild(menu);
>   content = new MovieClip();
>   container.addChild(content);
> 
>   //inputfield for lesson number
>   //submit button
> 
> 
>   //content container
>   }
> 
> 
>   }
> 
> }
> 
> -end class code -
> 
> //Thanks again!
> //Cor
> 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

__

RE: [Flashcoders] AS3 - MovieClip in MovieClip not showing

2008-07-18 Thread Keith Reinfeld
Hi Cor, 

If you comment out the lines where you are attempting to set the height and
width properties then the text will be visible. 

MovieClip.width and MovieClip.height are not listed as MovieClip properties
in the documentation. Maybe you should switch to Sprites. 

If this was AS2 you still would not be able to assign values to _width and
_height for an empty movieclip. 

Regards, 

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


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Cor
> Sent: Friday, July 18, 2008 12:38 PM
> To: 'Flash Coders List'
> Subject: RE: [Flashcoders] AS3 - MovieClip in MovieClip not showing
> 
> Hi,
> 
> I am the original poster.
> Thanks for your effort.
> I still hoping someone can help me.
> 
> It is correctly set as Document class.
> And it is the only class so far.
> 
> So if you create an empty fla and set the Document class to LesViewer
> 
> Create a new LesViewer.as in the same folder and copy/paste this code in
> it
> -class code -
> package {
> 
>   import flash.display.MovieClip;
>   import flash.display.SimpleButton;
>   import flash.text.TextField;
> 
>   public class LesViewer extends MovieClip{
> 
>   public const STAGE_WIDTH = 800;
>   public const STAGE_HEIGHT = 600;
> 
>   private var container:MovieClip;
>   private var header:MovieClip;
>   private var menu:MovieClip;
>   private var content:MovieClip;
>   private var footer:MovieClip;
>   private var tfHeader:TextField;
>   private var tfLessonInput:TextField;
>   private var tfFooter:TextField;
>   private var bSubmit:SimpleButton;
> 
>   public function LesViewer() {
>   init();
>   }
> 
>   private function init():void{
>   buildGUI();
>   }
> 
>   private function buildGUI():void{
>   //main container - everything is in here
>   container = new MovieClip();
>   container.x = 0;
>   container.y = 0;
>   container.width = STAGE_WIDTH;
>   container.height = STAGE_HEIGHT;
>   addChild(container);
> 
>   //header - contains a nice graphic/animation, a
> textfield, a lesson-number-input field, the submit button
>   header = new MovieClip();
>   header.x = 0;
>   header.y = 0;
>   header.width = STAGE_WIDTH;
>   header.height = STAGE_HEIGHT * .2;
> 
>   container.addChild(header);
>   // TODO: create animation
>   tfHeader = new TextField();
>   tfHeader.text = "Les:";
>   tfHeader.x = 300;
>   tfHeader.y = 20;
>   header.addChild(tfHeader);
> 
>   trace(container.height);
> 
>   //footer no real purpose yet, I guess I'll address
> some credentials to the author :-)
>   footer = new MovieClip();
>   footer.width = STAGE_WIDTH;
>   footer.height = 30;
>   footer.x = 0;
>   footer.y = STAGE_HEIGHT - footer.height;
>   container.addChild(footer);
> 
> 
>   //menu container - contains a Bitmap-thumbnail of
> every frame of the loaded swf
>   menu = new MovieClip();
>   menu.x = 0;
>   menu.y = header.height;
>   menu.width = STAGE_WIDTH*.2;
>   menu.height = STAGE_HEIGHT - header.height -
> footer.height;
> 
>   container.addChild(menu);
>   content = new MovieClip();
>   container.addChild(content);
> 
>   //inputfield for lesson number
>   //submit button
> 
> 
>   //content container
>   }
> 
> 
>   }
> 
> }
> 
> -end class code -
> 
> //Thanks again!
> //Cor
> 
> ___
> 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] XML deep searching

2008-07-18 Thread Merrill, Jason
OK, so based on what I just picked out of the "E4X, regexp and user
input" thread, I tried to mix some XML and a regex to solve my problem,
but I didn't get too far, and again, really don't know what I'm doing
with regular expressions, and I'm not quite a pro at E4X yet.  I am
getting this error when I try and search on [EMAIL PROTECTED] attribute
values:

 "Filter operator not supported on type RegExp."

based on this code:

  var re:RegExp = new RegExp("^" + searchInput.text);
  var xmlListSearch:XMLList = xml.topics..topic.*.( re.(
attribute("title")));

Which is drawing from this XML:

  




...etc.

Any ideas?  Thanks.


Jason Merrill 
Bank of America 
Enterprise Technology & Global Risk L&LD 
Instructional Technology & Media

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GT&O Innovative Learning Blog & subscribe. 

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


Re: [Flashcoders] Tutorials for AS3 for beginners

2008-07-18 Thread Paul Jinks
Thanks all for replying. I'll check out your recommendations and look 
forward to sharing the journey here! :-)


Best wishes

Paul

Merrill, Jason wrote:

Heard good things about Rich Shupe too  - he's an active participant on
our Flash_Tiger list (maybe here too, can't remember).  Beside the
books, he has a site for learning AS3:
http://www.learningactionscript3.com/ 


Was going to recommend Moock as well, but I'm kinda still angered by his
article right now... :)   


The BEST place though, in my opinion, and in my personal experience, are
these lists.  You can ask any question and we'll help you learn AS3 -
that way, we all benefit.  Just start with one question at a time, like
how do I add something to the stage with code, or assign click events to
buttons... 

Jason Merrill 
Bank of America 
Enterprise Technology & Global Risk L&LD 
Instructional Technology & Media


Join the Bank of America Flash Platform Developer Community 


Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GT&O Innovative Learning Blog & subscribe. 

 

  

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

Sent: Friday, July 18, 2008 11:57 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Tutorials for AS3 for beginners

The Learning ActionScript 3.0 by Rich Shupe and Zevan Rosser 
is a very good book http://www.learningactionscript3.com/


--
Pedro Taranto


On Fri, Jul 18, 2008 at 12:18 PM, Cor <[EMAIL PROTECTED]> wrote:

  

I think AS2 is not compairable with AS3.
But I can surely recommend Essential Actionscript 3.0 of Moock and 
Actionscript Cookbook of Lott, Schall & Peters.

Both can be find ar O Reilly

HTH

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On 

Behalf Of Paul 
  

Jinks
Sent: vrijdag 18 juli 2008 17:08
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Tutorials for AS3 for beginners

I'm looking for a tutorial/book on AS3. I have some 

knowledge of AS2 
  
and rather more of JavaScript and would like to set about 

learning AS3 
  

in a fairly systematic way. Any recommendations?

TIA

Paul


___
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

  

___
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] SOLVED: preparing a series of keywords for a search

2008-07-18 Thread Cor
Thank you!
That clearifies a lot.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wagner
Amaral
Sent: vrijdag 18 juli 2008 21:13
To: Flash Coders List
Subject: Re: [Flashcoders] SOLVED: preparing a series of keywords for a
search

Well, because it isn't "just another class', it is a complex language that
needs an equally complex processor, which is what the AS3 RegExp class is -
a processor to the language.

Or, as wikipedia can say more clearly:

In computing, regular expressions provide a concise and flexible means for
identifying strings of text of interest, such as particular characters,
words, or patterns of characters. Regular expressions (abbreviated as regex
or regexp, with plural forms regexes, regexps, or regexen) are written in a
formal language that can be interpreted by a regular expression processor, a
program that either serves as a parser generator or examines text and
identifies parts that match the provided specification.

http://en.wikipedia.org/wiki/Regexp

So yeah, it's more powerful and complex than you are thinking, and a nice
book certainly comes handy ;)



On Fri, Jul 18, 2008 at 12:14 PM, Cor <[EMAIL PROTECTED]> wrote:

> Thank you!!
>
>
> I do own several books of O'Reilly and love everyone of them.
> But is there really that much to tell about that they write books about
one
> class??
>
> Anyway, I will look into it.
>
> Thanks again!
> Cor
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Wagner
> Amaral
> Sent: vrijdag 18 juli 2008 17:01
> To: Flash Coders List
> Subject: Re: [Flashcoders] SOLVED: preparing a series of keywords for a
> search
>
> This particular regexp will match everything (that's the /g) that is
> composed of:
>
> \s* => 0 or more whitespaces (space, tab, etc) => followed by:
> [,-:\r\t] => only one of these characters: , - : \r (newline) \t (tab) =>
> followed by:
> \s* => 0 or more whitespaces
>
> May I suggest you a book?
> It's called "Mastering Regular Expressions", by Jeffrey Friedl. It's a
very
> good book, well worth it.
> http://oreilly.com/catalog/9780596528126/
>
>
> On Fri, Jul 18, 2008 at 9:10 AM, Cor <[EMAIL PROTECTED]> wrote:
>
> > I have a problem understanding RegExp
> > Could you explain this:
> >
> > var re:RegExp = /\s*[,-:\r\t]\s*/gm;
> >
> > TIA
> > Cor
> >
> > ___
> > 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
>
___
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] E4X, regexp and user input

2008-07-18 Thread Merrill, Jason
OK that's weird - this is a very specific question, you  just answered it at 
the same time sent the same or very very similar question to the list.  So 
please read my post I just sent titled, "'XML deep searching" (may arrive 
before or after this one in weird server time)... seems like this may be 
exactly what I need.  Wow, that's odd. 

Jason Merrill 
Bank of America 
Enterprise Technology & Global Risk L&LD 
Instructional Technology & Media

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning ideas and 
technologies?
Check out our internal  GT&O Innovative Learning Blog & subscribe. 

 

>>-Original Message-
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Wagner Amaral
>>Sent: Friday, July 18, 2008 3:03 PM
>>To: Flash Coders List
>>Subject: Re: [Flashcoders] E4X, regexp and user input
>>
>>That would be:
>>var re:RegExp = new RegExp("^" + userString); _siteXML..*.( 
>>re.test( attribute("name")));
>>
>>Note: I simplified the regex a little bit. The .* at the end 
>>is redundant, and I removed the [] because /^New/ is 
>>different than /^[New]/ and the first seems more like what 
>>you want. The first matches any string beginning with "New", 
>>and the later matches any string beginning with any of the following
>>characters: "N", "e", "w".
>>
>>You too, go read that book I mentioned in a thread yesterday! ;)
>>
>>
>>
>>On Fri, Jul 18, 2008 at 1:45 PM, Pavel Krůšek <[EMAIL PROTECTED]>
>>wrote:
>>
>>> Hi List,
>>>
>>> this code work fine for me, successfully return all records with 
>>> attribute with first letter "N":
>>>
>>> _siteXML..*.( /^[N].*/.test( attribute("name")));
>>>
>>> but i don't know, how integrate this code with user input 
>>(from input
>>> textfield) - for example user entered string "New".
>>>
>>> Please help :)
>>>
>>> thanks
>>>
>>>
>>> Pavel
>>>
>>>
>>>
>>> ___
>>> 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] XML deep searching

2008-07-18 Thread Merrill, Jason
(Flex 3, AS3, but not really a Flex specific question)

In short, I'm trying to search for text inside an XML file and return
the node that contains it.  I'm creating a search button to return XML
nodes that contain the user-entered word.  Problem is, it doesn't have
to match exactly (meaning searching for "Apple" can return an array of
any nodes that have attribute values that contain stuff like, "The apple
does not fall far from the tree" or "I like apple stock"), and so also
needs to search individual words in text nodes and return the parent
node.  I'm using Flex, but I'm pretty sure the XML classes are the same
there as in Flash, so I thought someone here could help.  If you know of
any Flex components that would help with this, please chime in!  

Also, if this solution requires regular expressions, know that I'm 1) an
idiot when it comes to regular expressions, and 2) not sure how to mix
XML and reg expressions anyway.

So far, the following works to find any title attributes that match the
search term if they EXACTLY match, but it does not find nodes that have
text node content that matches the search term, or a node that contains
part of the search term. (i.e. if the node "title" attribute contains,
"The Dark Knight", if the user's search string is "Dark", it should find
that node and return it as a match.  Same with text nodes where there
are large paragraphs.) Here is what I have so far.  This will find a
node from all the descendants where the title attribute matches the
search term, but it has to match EXACTLY, and that's no very useful to
me.  

var searchTerm:String = searchInput.text.toUpperCase();
var xmlListSearch:XMLList =
xml.topics..topic.(attribute("title").toUpperCase() == searchTerm);
var xmlFind:XML = new XML(xmlListSearch[0]);

Who's tackled this before?  I know it's fairly common, I just haven't
been able to find any E4X examples to do it right.  Here is a portion of
my XML format (i.e, in the below first large paragraph, if I searched
for "Coldplay", it should return the topic node with the title
"Coldplay's New Album"):

















..etc..

Jason Merrill 
Bank of America 
Enterprise Technology & Global Risk L&LD 
Instructional Technology & Media

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GT&O Innovative Learning Blog & subscribe. 

 

>>-Original Message-
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Hans Wichman
>>Sent: Monday, July 14, 2008 7:57 AM
>>To: Flash Coders List
>>Subject: Re: [Flashcoders] Overlay problem
>>
>>Hmm not entirely sure what you mean, but normally a :
>>
>>_parent.onPress = function(){}
>>_parent.useHandcursor = false;
>>
>>does the trick.
>>
>>greetz
>>JC
>>
>>On Mon, Jul 14, 2008 at 1:37 PM, Rajiv Seth (Pixelated) < 
>>[EMAIL PROTECTED]> wrote:
>>
>>> Hi,
>>>
>>> I want to create an effect like
>>> http://www.limoosoft.com/Limoosoft-En.html
>>>
>>> When user clicks on "zoom image", large image loads in a movie, and 
>>> all links, rollver effects/actions are disabled by a 
>>semi-transparent image.
>>> How
>>> to create such layer, which can disable all links?
>>> --
>>> Regards
>>>
>>> Rajiv Seth
>>> Ph: 09839157388
>>> ___
>>> 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] SOLVED: preparing a series of keywords for a search

2008-07-18 Thread Wagner Amaral
Well, because it isn't "just another class', it is a complex language that
needs an equally complex processor, which is what the AS3 RegExp class is -
a processor to the language.

Or, as wikipedia can say more clearly:

In computing, regular expressions provide a concise and flexible means for
identifying strings of text of interest, such as particular characters,
words, or patterns of characters. Regular expressions (abbreviated as regex
or regexp, with plural forms regexes, regexps, or regexen) are written in a
formal language that can be interpreted by a regular expression processor, a
program that either serves as a parser generator or examines text and
identifies parts that match the provided specification.

http://en.wikipedia.org/wiki/Regexp

So yeah, it's more powerful and complex than you are thinking, and a nice
book certainly comes handy ;)



On Fri, Jul 18, 2008 at 12:14 PM, Cor <[EMAIL PROTECTED]> wrote:

> Thank you!!
>
>
> I do own several books of O'Reilly and love everyone of them.
> But is there really that much to tell about that they write books about one
> class??
>
> Anyway, I will look into it.
>
> Thanks again!
> Cor
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Wagner
> Amaral
> Sent: vrijdag 18 juli 2008 17:01
> To: Flash Coders List
> Subject: Re: [Flashcoders] SOLVED: preparing a series of keywords for a
> search
>
> This particular regexp will match everything (that's the /g) that is
> composed of:
>
> \s* => 0 or more whitespaces (space, tab, etc) => followed by:
> [,-:\r\t] => only one of these characters: , - : \r (newline) \t (tab) =>
> followed by:
> \s* => 0 or more whitespaces
>
> May I suggest you a book?
> It's called "Mastering Regular Expressions", by Jeffrey Friedl. It's a very
> good book, well worth it.
> http://oreilly.com/catalog/9780596528126/
>
>
> On Fri, Jul 18, 2008 at 9:10 AM, Cor <[EMAIL PROTECTED]> wrote:
>
> > I have a problem understanding RegExp
> > Could you explain this:
> >
> > var re:RegExp = /\s*[,-:\r\t]\s*/gm;
> >
> > TIA
> > Cor
> >
> > ___
> > 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
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] E4X, regexp and user input

2008-07-18 Thread Wagner Amaral
That would be:
var re:RegExp = new RegExp("^" + userString);
_siteXML..*.( re.test( attribute("name")));

Note: I simplified the regex a little bit. The .* at the end is redundant,
and I removed the [] because /^New/ is different than /^[New]/ and the first
seems more like what you want. The first matches any string beginning with
"New", and the later matches any string beginning with any of the following
characters: "N", "e", "w".

You too, go read that book I mentioned in a thread yesterday! ;)



On Fri, Jul 18, 2008 at 1:45 PM, Pavel Krůšek <[EMAIL PROTECTED]>
wrote:

> Hi List,
>
> this code work fine for me, successfully return all records with attribute
> with first letter "N":
>
> _siteXML..*.( /^[N].*/.test( attribute("name")));
>
> but i don't know, how integrate this code with user input (from input
> textfield) - for example user entered string "New".
>
> Please help :)
>
> thanks
>
>
> Pavel
>
>
>
> ___
> 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] AS3 - MovieClip in MovieClip not showing

2008-07-18 Thread Cor
Hi,

I am the original poster.
Thanks for your effort.
I still hoping someone can help me.

It is correctly set as Document class.
And it is the only class so far.

So if you create an empty fla and set the Document class to LesViewer

Create a new LesViewer.as in the same folder and copy/paste this code in it
-class code -
package {

import flash.display.MovieClip;
import flash.display.SimpleButton;
import flash.text.TextField;

public class LesViewer extends MovieClip{

public const STAGE_WIDTH = 800;
public const STAGE_HEIGHT = 600;

private var container:MovieClip;
private var header:MovieClip;
private var menu:MovieClip;
private var content:MovieClip;
private var footer:MovieClip;
private var tfHeader:TextField;
private var tfLessonInput:TextField;
private var tfFooter:TextField;
private var bSubmit:SimpleButton;   

public function LesViewer() {
init();
}

private function init():void{
buildGUI();
}

private function buildGUI():void{
//main container - everything is in here
container = new MovieClip();
container.x = 0;
container.y = 0;
container.width = STAGE_WIDTH;
container.height = STAGE_HEIGHT;
addChild(container);

//header - contains a nice graphic/animation, a
textfield, a lesson-number-input field, the submit button
header = new MovieClip();
header.x = 0;
header.y = 0;
header.width = STAGE_WIDTH;
header.height = STAGE_HEIGHT * .2;

container.addChild(header);
// TODO: create animation
tfHeader = new TextField();
tfHeader.text = "Les:";
tfHeader.x = 300;
tfHeader.y = 20;
header.addChild(tfHeader);

trace(container.height);

//footer no real purpose yet, I guess I'll address
some credentials to the author :-)
footer = new MovieClip();
footer.width = STAGE_WIDTH;
footer.height = 30;
footer.x = 0;
footer.y = STAGE_HEIGHT - footer.height;
container.addChild(footer);


//menu container - contains a Bitmap-thumbnail of
every frame of the loaded swf
menu = new MovieClip();
menu.x = 0;
menu.y = header.height;
menu.width = STAGE_WIDTH*.2;
menu.height = STAGE_HEIGHT - header.height -
footer.height;  

container.addChild(menu);
content = new MovieClip();
container.addChild(content);

//inputfield for lesson number
//submit button 


//content container
}


}

}

-end class code -

//Thanks again!
//Cor

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


Re: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-18 Thread daniele tassone
Double click on the component/botton and auto-creation of AS3 code is other
solution
in order to keep good code and good humor for people that don't want to
write code;

3 weeks ago i have explain at creative team that will work with me, how we
can work
togheter with as3; not happy to see that we can't use event on Button.

Next week other lesson at different creative team in order to explain same
things.
I'll hear the same word: loadMovie ? event ?

I don't want to speak bad about AS3, I think that is a good language/ide,
with a little bit of problem because it's young.

But i hope that Adobe can give the right way in order to do more and better
with low work.
Adobe have great experience in designer-tool-market, I'll hope for the
future.

Daniele Tassone



2008/7/18 allandt bik-elliott (thefieldcomic.com) <[EMAIL PROTECTED]>:

> i think someone has touched on it before, but if there is to be code
> applicable to movieclips / buttons on stage then they should work similarly
> to the way motion tweens can be copied as actionscript - allow the bad
> behaviour for numpties and quick jobs, but then compensate to move the code
> to where it should be.
>
> a
>
> On Fri, Jul 18, 2008 at 4:36 PM, Juan Pablo Califano <
> [EMAIL PROTECTED]> wrote:
>
> > You're probably right. Nevertheless, I think the spirit of the article
> has
> > been misunderstood. As I read it, it pointed out the need to have a
> > higher-level visual-style user interface to make simple things easier for
> > non programmers. Visual tools that can intuitively generate the AS 3 code
> > for adding simple behaviours and interactivity.  I'm a programmer myself
> > and
> > I don't think I'd use these features, but I now many people I work with
> who
> > would love to have them available. It'd make their lives easier, without
> > compromising efficency or mantainability (we're talking about simple
> stuff
> > anyway). I believe the "charges" about button events, getURL and
> > loadMovie are a good example of this point.
> >
> > Cheers
> > Juan Pablo Califano
> >
> >
> > 2008/7/18, Abe Pazos <[EMAIL PROTECTED]>:
> > >
> > > I think most of the people who would agree
> > > with these charges are not in this mailing list.
> > >
> > > Are there more AS3 coders out there?
> > > Or more designers who sometimes use
> > > a line or two of ActionScript with gotoAndPlays,
> > > loadMovies, on release/rollover/rollout?
> > >
> > > I wonder how would this discussion look
> > > like if this was a designers mailing list?
> > >
> > > Abe
> > > ___
> > > 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
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] E4X, regexp and user input

2008-07-18 Thread Pavel Krůšek

Hi List,

this code work fine for me, successfully return all records with  
attribute with first letter "N":


_siteXML..*.( /^[N].*/.test( attribute("name")));

but i don't know, how integrate this code with user input (from input  
textfield) - for example user entered string "New".


Please help :)

thanks


Pavel



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


RE: [Flashcoders] AS3 - MovieClip in MovieClip not showing

2008-07-18 Thread Merrill, Jason
>Have you added the instance of LesViewer to the display list?
>>> 
>>> He shouldn't have to, LesViewer is linked as the document class...
>>
>>Yes, I read the email too fast.
>>
>>> unless it actually isn't - then you have a problem. 
>>Otherwise, I was not
>>> able to locate any problems in the code.
>>
>>LOL, nor me.

LOL, ok then, I think the original poster needs to supply more
information or look more closely at their file to be sure it is set up
as they say it is, sinc everything checks out here.

Jason Merrill 
Bank of America 
Enterprise Technology & Global Risk L&LD 
Instructional Technology & Media

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GT&O Innovative Learning Blog & subscribe. 

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


RE: [Flashcoders] Tutorials for AS3 for beginners

2008-07-18 Thread Merrill, Jason
Heard good things about Rich Shupe too  - he's an active participant on
our Flash_Tiger list (maybe here too, can't remember).  Beside the
books, he has a site for learning AS3:
http://www.learningactionscript3.com/ 

Was going to recommend Moock as well, but I'm kinda still angered by his
article right now... :)   

The BEST place though, in my opinion, and in my personal experience, are
these lists.  You can ask any question and we'll help you learn AS3 -
that way, we all benefit.  Just start with one question at a time, like
how do I add something to the stage with code, or assign click events to
buttons... 

Jason Merrill 
Bank of America 
Enterprise Technology & Global Risk L&LD 
Instructional Technology & Media

Join the Bank of America Flash Platform Developer Community 

Are you a Bank of America associate interested in innovative learning
ideas and technologies?
Check out our internal  GT&O Innovative Learning Blog & subscribe. 

 

>>-Original Message-
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Pedro Taranto
>>Sent: Friday, July 18, 2008 11:57 AM
>>To: Flash Coders List
>>Subject: Re: [Flashcoders] Tutorials for AS3 for beginners
>>
>>The Learning ActionScript 3.0 by Rich Shupe and Zevan Rosser 
>>is a very good book http://www.learningactionscript3.com/
>>
>>--
>>Pedro Taranto
>>
>>
>>On Fri, Jul 18, 2008 at 12:18 PM, Cor <[EMAIL PROTECTED]> wrote:
>>
>>> I think AS2 is not compairable with AS3.
>>> But I can surely recommend Essential Actionscript 3.0 of Moock and 
>>> Actionscript Cookbook of Lott, Schall & Peters.
>>> Both can be find ar O Reilly
>>>
>>> HTH
>>>
>>> -Original Message-
>>> From: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] On 
>>Behalf Of Paul 
>>> Jinks
>>> Sent: vrijdag 18 juli 2008 17:08
>>> To: flashcoders@chattyfig.figleaf.com
>>> Subject: [Flashcoders] Tutorials for AS3 for beginners
>>>
>>> I'm looking for a tutorial/book on AS3. I have some 
>>knowledge of AS2 
>>> and rather more of JavaScript and would like to set about 
>>learning AS3 
>>> in a fairly systematic way. Any recommendations?
>>>
>>> TIA
>>>
>>> Paul
>>>
>>>
>>> ___
>>> 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
>>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-18 Thread allandt bik-elliott (thefieldcomic.com)
i think someone has touched on it before, but if there is to be code
applicable to movieclips / buttons on stage then they should work similarly
to the way motion tweens can be copied as actionscript - allow the bad
behaviour for numpties and quick jobs, but then compensate to move the code
to where it should be.

a

On Fri, Jul 18, 2008 at 4:36 PM, Juan Pablo Califano <
[EMAIL PROTECTED]> wrote:

> You're probably right. Nevertheless, I think the spirit of the article has
> been misunderstood. As I read it, it pointed out the need to have a
> higher-level visual-style user interface to make simple things easier for
> non programmers. Visual tools that can intuitively generate the AS 3 code
> for adding simple behaviours and interactivity.  I'm a programmer myself
> and
> I don't think I'd use these features, but I now many people I work with who
> would love to have them available. It'd make their lives easier, without
> compromising efficency or mantainability (we're talking about simple stuff
> anyway). I believe the "charges" about button events, getURL and
> loadMovie are a good example of this point.
>
> Cheers
> Juan Pablo Califano
>
>
> 2008/7/18, Abe Pazos <[EMAIL PROTECTED]>:
> >
> > I think most of the people who would agree
> > with these charges are not in this mailing list.
> >
> > Are there more AS3 coders out there?
> > Or more designers who sometimes use
> > a line or two of ActionScript with gotoAndPlays,
> > loadMovies, on release/rollover/rollout?
> >
> > I wonder how would this discussion look
> > like if this was a designers mailing list?
> >
> > Abe
> > ___
> > 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] Tutorials for AS3 for beginners

2008-07-18 Thread Pedro Taranto
The Learning ActionScript 3.0 by Rich Shupe and Zevan Rosser is a very good
book
http://www.learningactionscript3.com/

--
Pedro Taranto


On Fri, Jul 18, 2008 at 12:18 PM, Cor <[EMAIL PROTECTED]> wrote:

> I think AS2 is not compairable with AS3.
> But I can surely recommend Essential Actionscript 3.0 of Moock and
> Actionscript Cookbook of Lott, Schall & Peters.
> Both can be find ar O Reilly
>
> HTH
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Paul Jinks
> Sent: vrijdag 18 juli 2008 17:08
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] Tutorials for AS3 for beginners
>
> I'm looking for a tutorial/book on AS3. I have some knowledge of AS2 and
> rather more of JavaScript and would like to set about learning AS3 in a
> fairly systematic way. Any recommendations?
>
> TIA
>
> Paul
>
>
> ___
> 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] The Charges Against ActionScript 3.0

2008-07-18 Thread Juan Pablo Califano
You're probably right. Nevertheless, I think the spirit of the article has
been misunderstood. As I read it, it pointed out the need to have a
higher-level visual-style user interface to make simple things easier for
non programmers. Visual tools that can intuitively generate the AS 3 code
for adding simple behaviours and interactivity.  I'm a programmer myself and
I don't think I'd use these features, but I now many people I work with who
would love to have them available. It'd make their lives easier, without
compromising efficency or mantainability (we're talking about simple stuff
anyway). I believe the "charges" about button events, getURL and
loadMovie are a good example of this point.

Cheers
Juan Pablo Califano


2008/7/18, Abe Pazos <[EMAIL PROTECTED]>:
>
> I think most of the people who would agree
> with these charges are not in this mailing list.
>
> Are there more AS3 coders out there?
> Or more designers who sometimes use
> a line or two of ActionScript with gotoAndPlays,
> loadMovies, on release/rollover/rollout?
>
> I wonder how would this discussion look
> like if this was a designers mailing list?
>
> Abe
> ___
> 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] Tutorials for AS3 for beginners

2008-07-18 Thread Cor
I think AS2 is not compairable with AS3.
But I can surely recommend Essential Actionscript 3.0 of Moock and
Actionscript Cookbook of Lott, Schall & Peters.
Both can be find ar O Reilly

HTH

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Jinks
Sent: vrijdag 18 juli 2008 17:08
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Tutorials for AS3 for beginners

I'm looking for a tutorial/book on AS3. I have some knowledge of AS2 and
rather more of JavaScript and would like to set about learning AS3 in a
fairly systematic way. Any recommendations?

TIA

Paul


___
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] SOLVED: preparing a series of keywords for a search

2008-07-18 Thread Cor
Thank you!!


I do own several books of O'Reilly and love everyone of them.
But is there really that much to tell about that they write books about one
class??

Anyway, I will look into it.

Thanks again!
Cor


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Wagner
Amaral
Sent: vrijdag 18 juli 2008 17:01
To: Flash Coders List
Subject: Re: [Flashcoders] SOLVED: preparing a series of keywords for a
search

This particular regexp will match everything (that's the /g) that is
composed of:

\s* => 0 or more whitespaces (space, tab, etc) => followed by:
[,-:\r\t] => only one of these characters: , - : \r (newline) \t (tab) =>
followed by:
\s* => 0 or more whitespaces

May I suggest you a book?
It's called "Mastering Regular Expressions", by Jeffrey Friedl. It's a very
good book, well worth it.
http://oreilly.com/catalog/9780596528126/


On Fri, Jul 18, 2008 at 9:10 AM, Cor <[EMAIL PROTECTED]> wrote:

> I have a problem understanding RegExp
> Could you explain this:
>
> var re:RegExp = /\s*[,-:\r\t]\s*/gm;
>
> TIA
> Cor
>
> ___
> 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


[Flashcoders] Tutorials for AS3 for beginners

2008-07-18 Thread Paul Jinks
I'm looking for a tutorial/book on AS3. I have some knowledge of AS2 and
rather more of JavaScript and would like to set about learning AS3 in a
fairly systematic way. Any recommendations?

TIA

Paul


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


Re: [Flashcoders] SOLVED: preparing a series of keywords for a search

2008-07-18 Thread Wagner Amaral
This particular regexp will match everything (that's the /g) that is
composed of:

\s* => 0 or more whitespaces (space, tab, etc) => followed by:
[,-:\r\t] => only one of these characters: , - : \r (newline) \t (tab) =>
followed by:
\s* => 0 or more whitespaces

May I suggest you a book?
It's called "Mastering Regular Expressions", by Jeffrey Friedl. It's a very
good book, well worth it.
http://oreilly.com/catalog/9780596528126/


On Fri, Jul 18, 2008 at 9:10 AM, Cor <[EMAIL PROTECTED]> wrote:

> I have a problem understanding RegExp
> Could you explain this:
>
> var re:RegExp = /\s*[,-:\r\t]\s*/gm;
>
> TIA
> Cor
>
> ___
> 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] The Charges Against ActionScript 3.0

2008-07-18 Thread Abe Pazos

I think most of the people who would agree
with these charges are not in this mailing list.

Are there more AS3 coders out there?
Or more designers who sometimes use
a line or two of ActionScript with gotoAndPlays,
loadMovies, on release/rollover/rollout?

I wonder how would this discussion look
like if this was a designers mailing list?

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


Re: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-18 Thread Jordan L. Chilcott
I'm in the same boat here (been working with Flash since v4 came out, 
but have been coding for 25 years). Most of the stuff that has been 
iterated in this thread somewhat echo my opinions. I particularly agree 
with the one statement down below: AS3 is easier to use. The stigma is 
that AS2 coders have to learn a new way if you want to start coding with 
AS3. IMHO, it's a more proper way and more functional and far less 
confusing to the next person who has to look at an FLA and maintain it.


The article seemed a bit whiny as a refusal to change. There's nothing 
in those changes that are more difficult to implement than their 
predecessors.


If anything, I half agree with the unloading issue. All objects when 
discarded should be garbage collectable, timeline or not. To the garbage 
collector, it is just dereferenced object and not discarding it is 
definitely a bug more than anything else. However, I don't agree for a 
simple unload movie... that could break OOP logic structures if one were 
to simply unload without dereference. Again, we're talking a more 
structured language and despite its simplicity, there is a 
responsibility on the part of the person writing code. I don't apologize 
for being rather unforgiving towards this.


AS2 was an excuse for allowing a lot of bad habits, and now AS3 has 
addressed those bad habits. Adobe shouldn't have to go back to appeasing 
those bad habits as much as they should be showing more how to implement 
things the AS3 way.


jord

Romuald Quantin wrote:

Well, I've coded years with AS2 and I have to say, except for the problem
with loaded SWF, which will probably be solved soon:
http://www.gskinner.com/blog/archives/2008/07/additional_info.html,
I'm not missing AS2 at all!! I'm not from another language but AS3 is a lot
cleaner, nothing to compare. So yes, I guess it is easier to use.

Probably because I'm not using a lot the flash IDE, but I can understand
that for people who are using it or to make quick dirty test, some old AS
features can be missed.

Romu

  

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


Re: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-18 Thread Jordan L. Chilcott
I don't know if I could agree with the statement below. I have no real 
use for Flex as I can get everything I need from Flash, and can take it 
down as granular as I want. Flash's failure, IMHO, is providing a proper 
coding IDE for just plain ol' AS3, sans Flex. Thank goodness for things 
like FlashDevelop stepping in (and even on a Mac it still does me well 
in a virtualized Windows environment).


jord

Kerry Thompson wrote:

It IS two apps. Flash and Flex.
More and more of us hard-core coder types are using Flex for heavy-duty
development. 
  

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


RE: [Flashcoders] SOLVED: preparing a series of keywords for a search

2008-07-18 Thread Cor
I have a problem understanding RegExp 
Could you explain this:

var re:RegExp = /\s*[,-:\r\t]\s*/gm;

TIA
Cor

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


RE: [Flashcoders] SOLVED: preparing a series of keywords for a search

2008-07-18 Thread Mendelsohn, Michael
Yes, that would be nice, but it's AS2.  Hopefully AS3 soon!  Thanks!


- MM



Are you using AS3? That would be much easier:

var input:String = "Dog,cat,squirrel, bird - horse:worm";
var re:RegExp = /\s*[,-:\r\t]\s*/gm;
var result:Array = input.split(re);


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


Re: [Flashcoders] The Charges Against ActionScript 3.0

2008-07-18 Thread allandt bik-elliott (thefieldcomic.com)
The problem with splitting Flash up into the Designer App and the Coder App
(Talking Flash here, not Flex which i've never used) is that those of us
that have to deal with Flash as a scaling entity (I'm a freelance developer
so this week it's banners, next week it's site development and OOP) will be
forced to use 2 different environments, wtih all the relearning that using
different apps takes. I like how I can choose to use the Flash IDE for
anything or kick development out to another app for more intense work (I've
been using FlashDevelop with parallels where necessary) for any project I
do.

Designers need training to learn to use the timeline for their code rather
than putting it into arbitrary movieclips. That's the solution to the new
paradigm.



On Thu, Jul 17, 2008 at 10:48 PM, Matt S. <[EMAIL PROTECTED]> wrote:

> On Thu, Jul 17, 2008 at 5:38 PM, Jason Van Pelt
> <[EMAIL PROTECTED]> wrote:
> >
> > The negative side to creating a "flash without the as3" application is
> that
> > many of us "grew up" with Flash and used it as a way to learn to be
> > developers. I think Colin's point isn't to provide a basic app to basic
> > users, necessarily, but to make the point of entry easy for new users --
> as
> > it was for us.
> >
> > I started in version 3! :-)
>
> I think it was 4 for me. Good times
>
> .m
> ___
> 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