Re: [Flashcoders] frameworks and flash

2008-11-15 Thread Joel Stransky
Thanks for your input Steven. I actually stumbled across Gaia just after
writing something very similar in as2 complete with transition events. I was
blown away by Gaia and think it may be the way to go for me for now.
@Sebastian, I've basically done all the same things in as2 and have been
studying design patterns for some time now. I had always intended on writing
similar helper classes in as3 but was really curious if any popular
frameworks replaced the need.

On Sat, Nov 15, 2008 at 2:51 PM, sebastian <[EMAIL PROTECTED]> wrote:

> I think we just wrote about this, though it may have been on a different
> list. Apparently this is a hot subject lately...
>
> Whether to use a framework or a pattern like MVC really depends on a
> case-by-case assessment. The whole reason why someone invented design
> patterns was to address project-specific "design problems". So it makes no
> sense to say that one specific pattern will address all software
> architecture needs.
>
> There are dozens of design patterns, each one is best suited to a
> particular need. MVC, pureMVC, Carngorm, these are all basically MVC
> patterns with some tweaks.
>
> In general keeping the M the V and C separate make a lot of sense; not just
> from a clean-code perspective, but also in terms of code-re usability.
>
> Coding in such a way that you promote code re-usability is, IMHO, a really
> smart way good to go. Encapsulation is far more important than any one
> particular frame work. Keep the project-specific variables/sprites totally
> separate from the logic. That way you can re-use the logic again in a future
> project and accelerate your development speed continually from project to
> project.
>
> Encapsulation also reduces debugging time considerably -- if you know that
> an object works, then under similar conditions in a future project it will
> still work, reducing the areas you need to investigate when debugging.
> Exceptions, often done following change requests and in quick-fix debugging
> sessions, are your wizards bane.
>
> So by keeping the actions separate from the data or visual code, you can
> re-use them easily between projects. And by keeping the visual elements
> separate, you allow visual classes to be re-usable, same with model classes.
>
> To me, it is this clear separation that provides the real benefit. It
> creates both clarity in debugging as well as modular code. Nothing is more
> annoying than finding a class that animates sprites, creates visual
> elements, loads data and stores it and also defines for each button the same
> exact action as was in 3 other class files -- if I need to change anything I
> need to spend precious time hunting where it is and then changing the same
> lines of code in 3 different places!
>
> The more modular the code, ultimately the faster you can code, which means
> the more complex your projects can become and the higher your hourly rate
> can become.
>
> Examples:
>
> If you write an AS3 function that sets up tabs for a navigation, you never
> have to write than code in AS3 again in any new projects -- encapsulate the
> whole 'building the nav' logic, and just change the imported assets you need
> externally to that class and pass it some parameters that relate to dynamic
> variables [margin between elements etc]: loadNav.load
> (xmlFile,navButtonSprite,Parameters);
>
> Same with an XML parser, I just have an static method in a custom class I
> made that I can call, I pass it the function I want it to return to when
> done loading and voila. Now when I want to load in new XML I never have to
> write: 'load', 'onload' etc all I write is 'import myCustomXMLloader' and
> then 'ParseXML.load (xmlFile, callingObject, functionToCallWhenDoneName);'
>
> Same with preloaders, I use a static method which I pass the preloader
> sprite, image/movie to load and some parameters for position/alignment and
> it does the rest: 'Preloader.load (asset, preloaderObject,
> parameters:Object);
>
> Hope this helps,
>
> Seb.
>
>
> Paul Andrews wrote:
>
>> A framework gives you amethod of organising your code in a manner that
>> aids development and maintenance. Using a framework makes your code
>> organisation understandable to others that are familiar with the framework,
>> so it aids cooperative/team development. Potentially you can work on other
>> projects that use the same or similar framework more easily and maybe pick
>> up some coding guidelines/shortcuts and understand the strategies followed
>> by others.
>>
>> In tiny projects frameworks aren't too important. In larger co-operative
>> projects it is important for the reasons above.
>>
>> Paul
>> - Original Message - From: "Joel Stransky" <
>> [EMAIL PROTECTED]>
>> To: "Flash Coders List" 
>> Sent: Saturday, November 15, 2008 5:00 PM
>> Subject: Re: [Flashcoders] frameworks and flash
>>
>>
>>  @ekameleon, that seems a little intense for me atm. This discussion is
>>> mainly about weather or not it's just dumb not to use a framework vs.

Re: [Flashcoders] Drawing a continuous curved line through n points in AS1 or AS2 (Catmull-Rom splines?)

2008-11-15 Thread Ivan Dembicki
Hello matt,

look at
http://bezier.googlecode.com/files/ru.bezier.zip


-- 
iv
http://www.bezier.ru
http://bezier.googlecode.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Drawing a continuous curved line through n points in AS1 or AS2 (Catmull-Rom splines?)

2008-11-15 Thread Hans Wichman
Hi,

you might be looking for a bezier thingy, or it might just be as
simple as averaging the control points:

If it's the latter, there's some sample source here for something like that:
http://objectpainters.com/blog/2007/07/18/drawing-using-controlpoints/

greetz
JC


On Sat, Nov 15, 2008 at 9:40 PM, Anthony Pace <[EMAIL PROTECTED]> wrote:
> I don't know of a good as1/2 lib.  This math has a lot to do with line
> smoothing, and can be used for various applications from graphics to
> accurate signal processing.  I would suggest brushing up on your
> calculus/trig for assuming the tangency of a given point on the locus, and
> for assuming the points on the "cage".
>
> Hints:
>
>   * calculating the first segment of the curve is always the most
> intensive imho.  (although their are tons of methods for cheating
> this, they effect accuracy)
>   * It all has to do with finding the axis of symmetry to project an
> accurate curve, and finding the points on the quadratic or
> cubic(way easier but slower because it has more points) "cage".
>   * If you already have the previous points, for the last segment of
> the curve, you already know several of the points for the next
> segment.
>
> If anything, learning what is required for this project, although having an
> uphill learning curve, will make you a better mathematician.
>
> Anyone else have hints?
>
> Thank You,
> Anthony Pace
>
>
>
> matt stuehler wrote:
>>
>> All,
>>
>> I'm looking for an AS1 (ideal) or AS2 version of a function that will
>> draw a continuous curved line through n points. I don't know much
>> about the math behind this, but I think that a Catmull-Rom spline is
>> what I'm looking for.
>>
>> I've found a terrific example in AS3
>> (http://www.cartogrammar.com/blog/continuous-curves-with-actionscript-3),
>> but it uses a number of AS3 classes that I don't have access to in AS2
>> (e.g., fl.motion.BezierSegment).
>>
>> Can anyone share a working example, or point me in a useful direction?
>>
>> Many thanks in advance!
>>
>> Cheers,
>> Matt
>> ___
>> 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] Drawing a continuous curved line through n points in AS1 or AS2 (Catmull-Rom splines?)

2008-11-15 Thread Anthony Pace
I don't know of a good as1/2 lib.  This math has a lot to do with line 
smoothing, and can be used for various applications from graphics to 
accurate signal processing.  I would suggest brushing up on your 
calculus/trig for assuming the tangency of a given point on the locus, 
and for assuming the points on the "cage".


Hints:

   * calculating the first segment of the curve is always the most
 intensive imho.  (although their are tons of methods for cheating
 this, they effect accuracy)
   * It all has to do with finding the axis of symmetry to project an
 accurate curve, and finding the points on the quadratic or
 cubic(way easier but slower because it has more points) "cage".
   * If you already have the previous points, for the last segment of
 the curve, you already know several of the points for the next
 segment.

If anything, learning what is required for this project, although having 
an uphill learning curve, will make you a better mathematician.


Anyone else have hints?

Thank You,
Anthony Pace



matt stuehler wrote:

All,

I'm looking for an AS1 (ideal) or AS2 version of a function that will
draw a continuous curved line through n points. I don't know much
about the math behind this, but I think that a Catmull-Rom spline is
what I'm looking for.

I've found a terrific example in AS3
(http://www.cartogrammar.com/blog/continuous-curves-with-actionscript-3),
but it uses a number of AS3 classes that I don't have access to in AS2
(e.g., fl.motion.BezierSegment).

Can anyone share a working example, or point me in a useful direction?

Many thanks in advance!

Cheers,
Matt
___
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] frameworks and flash

2008-11-15 Thread sebastian
I think we just wrote about this, though it may have been on a different 
list. Apparently this is a hot subject lately...


Whether to use a framework or a pattern like MVC really depends on a 
case-by-case assessment. The whole reason why someone invented design 
patterns was to address project-specific "design problems". So it makes 
no sense to say that one specific pattern will address all software 
architecture needs.


There are dozens of design patterns, each one is best suited to a 
particular need. MVC, pureMVC, Carngorm, these are all basically MVC 
patterns with some tweaks.


In general keeping the M the V and C separate make a lot of sense; not 
just from a clean-code perspective, but also in terms of code-re usability.


Coding in such a way that you promote code re-usability is, IMHO, a 
really smart way good to go. Encapsulation is far more important than 
any one particular frame work. Keep the project-specific 
variables/sprites totally separate from the logic. That way you can 
re-use the logic again in a future project and accelerate your 
development speed continually from project to project.


Encapsulation also reduces debugging time considerably -- if you know 
that an object works, then under similar conditions in a future project 
it will still work, reducing the areas you need to investigate when 
debugging. Exceptions, often done following change requests and in 
quick-fix debugging sessions, are your wizards bane.


So by keeping the actions separate from the data or visual code, you can 
re-use them easily between projects. And by keeping the visual elements 
separate, you allow visual classes to be re-usable, same with model classes.


To me, it is this clear separation that provides the real benefit. It 
creates both clarity in debugging as well as modular code. Nothing is 
more annoying than finding a class that animates sprites, creates visual 
elements, loads data and stores it and also defines for each button the 
same exact action as was in 3 other class files -- if I need to change 
anything I need to spend precious time hunting where it is and then 
changing the same lines of code in 3 different places!


The more modular the code, ultimately the faster you can code, which 
means the more complex your projects can become and the higher your 
hourly rate can become.


Examples:

If you write an AS3 function that sets up tabs for a navigation, you 
never have to write than code in AS3 again in any new projects -- 
encapsulate the whole 'building the nav' logic, and just change the 
imported assets you need externally to that class and pass it some 
parameters that relate to dynamic variables [margin between elements 
etc]: loadNav.load (xmlFile,navButtonSprite,Parameters);


Same with an XML parser, I just have an static method in a custom class 
I made that I can call, I pass it the function I want it to return to 
when done loading and voila. Now when I want to load in new XML I never 
have to write: 'load', 'onload' etc all I write is 'import 
myCustomXMLloader' and then 'ParseXML.load (xmlFile, callingObject, 
functionToCallWhenDoneName);'


Same with preloaders, I use a static method which I pass the preloader 
sprite, image/movie to load and some parameters for position/alignment 
and it does the rest: 'Preloader.load (asset, preloaderObject, 
parameters:Object);


Hope this helps,

Seb.

Paul Andrews wrote:
A framework gives you amethod of organising your code in a manner that 
aids development and maintenance. Using a framework makes your code 
organisation understandable to others that are familiar with the 
framework, so it aids cooperative/team development. Potentially you can 
work on other projects that use the same or similar framework more 
easily and maybe pick up some coding guidelines/shortcuts and understand 
the strategies followed by others.


In tiny projects frameworks aren't too important. In larger co-operative 
projects it is important for the reasons above.


Paul
- Original Message - From: "Joel Stransky" 
<[EMAIL PROTECTED]>

To: "Flash Coders List" 
Sent: Saturday, November 15, 2008 5:00 PM
Subject: Re: [Flashcoders] frameworks and flash



@ekameleon, that seems a little intense for me atm. This discussion is
mainly about weather or not it's just dumb not to use a framework vs. 
plain

as3 when building common flash sites. I'm looking to hear things like,
"PureMVC makes everything easier." or "It makes no sense not to use 
Mate."


On Sat, Nov 15, 2008 at 2:42 AM, Hans Wichman <
[EMAIL PROTECTED]> wrote:


Read the article, some good, some bad.
If anyone declares you for a fool if you prefix interfaces with 'I'
and use marker interface, I tend to gloss over the rest of the article
since it no longer comes across trustworthy... Personal preference
aside:)

On Sat, Nov 15, 2008 at 12:05 AM, David Hershberger
<[EMAIL PROTECTED]> wrote:
> Haha!  Before you try Cairngorm, check out this article:
>
>
http://blog.iconara.net/2008/04/13/a

Re: [Flashcoders] frameworks and flash

2008-11-15 Thread Steven Sacks

Joel,

Considering the types of Flash sites you're talking about building, Flex is not 
the solution you need.  However, Flex is absolutely worth learning, if only to 
expand your skillset which leads to making more money per hour. ;)


Out of all the frameworks you listed, only Gaia is for making the types of 
websites you said you are making.  The rest are application frameworks. 
PureMVC, Mate and Cairngorm are primarily intended to work with Flex and any 
support you seek on learning those frameworks will most likely come from Flex 
developers and not Flash ones.  They are important to learn if and when you 
learn Flex.


Gaia AS3 is only 40k (AS2 is slightly smaller).  I hate code bloat and have 
spent a lot of effort keeping Gaia as lean as possible.  There's even an option 
to optimize the main.swf by removing any assets you aren't using in your site, 
which can potentially decrease the file size down to 29k.


A lot of developers and designers making the transition from AS2 to AS3 have 
found Gaia very helpful in that process, since it takes care of a lot of the 
extra code that is so overwhelming, and gives you time to slowly acclimate to 
the changes.


Gaia also has an active forum with over 800 members, a robust Wiki and 
documentation, ASDocs, and I am available on the forums every day answering 
questions.


If you're going to be at MAX, come check out my Gaia presentation on Tuesday at 
4:00pm.


http://360max.wikispaces.com/Gaia+Framework

Cheers and good luck!

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


[Flashcoders] Drawing a continuous curved line through n points in AS1 or AS2 (Catmull-Rom splines?)

2008-11-15 Thread matt stuehler
All,

I'm looking for an AS1 (ideal) or AS2 version of a function that will
draw a continuous curved line through n points. I don't know much
about the math behind this, but I think that a Catmull-Rom spline is
what I'm looking for.

I've found a terrific example in AS3
(http://www.cartogrammar.com/blog/continuous-curves-with-actionscript-3),
but it uses a number of AS3 classes that I don't have access to in AS2
(e.g., fl.motion.BezierSegment).

Can anyone share a working example, or point me in a useful direction?

Many thanks in advance!

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


Re: [Flashcoders] Good CMS options?

2008-11-15 Thread Jim Robson
Alfresco is highly customizable, using Java or JavaScript web scripts,
and it's open source.

http://wiki.alfresco.com/wiki/Main_Page

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


Re: [Flashcoders] frameworks and flash

2008-11-15 Thread Paul Andrews
A framework gives you amethod of organising your code in a manner that aids 
development and maintenance. Using a framework makes your code organisation 
understandable to others that are familiar with the framework, so it aids 
cooperative/team development. Potentially you can work on other projects 
that use the same or similar framework more easily and maybe pick up some 
coding guidelines/shortcuts and understand the strategies followed by 
others.


In tiny projects frameworks aren't too important. In larger co-operative 
projects it is important for the reasons above.


Paul
- Original Message - 
From: "Joel Stransky" <[EMAIL PROTECTED]>

To: "Flash Coders List" 
Sent: Saturday, November 15, 2008 5:00 PM
Subject: Re: [Flashcoders] frameworks and flash



@ekameleon, that seems a little intense for me atm. This discussion is
mainly about weather or not it's just dumb not to use a framework vs. 
plain

as3 when building common flash sites. I'm looking to hear things like,
"PureMVC makes everything easier." or "It makes no sense not to use Mate."

On Sat, Nov 15, 2008 at 2:42 AM, Hans Wichman <
[EMAIL PROTECTED]> wrote:


Read the article, some good, some bad.
If anyone declares you for a fool if you prefix interfaces with 'I'
and use marker interface, I tend to gloss over the rest of the article
since it no longer comes across trustworthy... Personal preference
aside:)

On Sat, Nov 15, 2008 at 12:05 AM, David Hershberger
<[EMAIL PROTECTED]> wrote:
> Haha!  Before you try Cairngorm, check out this article:
>
>
http://blog.iconara.net/2008/04/13/architectural-atrocities-part-x-cairngorms-model-locator-pattern/
>
> Having used Cairngorm for a while now I have to agree with him.  The
article
> is pretty harsh, and it only talks about the ModelLocator part.
>
> Dave
>
> On 11/14/08, Joel Stransky <[EMAIL PROTECTED]> wrote:
>>
>> Thanks for the post Dave. Cairngorm sounds a lot like PureMVC which 
>> does
>> away with events and implements a global command structure. So far 
>> it's

>> appealing although my first run in with it was under bad conditions. A
>> client of a friend had mangled it something fierce before he was 
>> brought

in
>> at which point he brought me in to implement deep linking. It was ugly
to
>> say the least. I have however heard great things about it since then. 
>> My

>> gut
>> says I should know how to do this stuff on my own before I go relying
too
>> heavily on tools that prevent me from getting to know the inner 
>> workings

>> intimately.
>>
>> It's just tough to esitmate flash/flex work effictively anymore 
>> without

a
>> framework involved it seems. Clients don't have the time or budget for
>> builds from scratch. Flash used to be so fun but now it's a constant
>> learning curve. ugg.
>>
>> Interestingly enough I looked up the cairngorm site and saw a link to
this
>> blog post made just yesterday:
>> http://www.anandvardhan.com/2008/11/13/popular-flex-frameworks/
>>
>> This should also be informative.
>> http://www.insideria.com/2008/11/new-poll-which-flex-framework.html
>>
>>
>>
>> On Fri, Nov 14, 2008 at 1:52 PM, David Hershberger <
[EMAIL PROTECTED]
>> >wrote:
>>
>>
>> > We have been using Adobe Flex for the past year and have really 
>> > liked

it.
>> > It would be hard to call it "blazing" and "bloat" does seem like it
might
>> > apply to some extent, but on the other hand it does so many nice
things
>> for
>> > us it is hard to argue with.  MXML is very powerful, but there is
>> certainly
>> > a big learning curve.  For basic stuff, buttons and containers and
text,
>> > it's easy to get started.  There are lots of subtle details though, 
>> > so

>> when
>> > you start wanting to do things in ways the Flex authors didn't
anticipate
>> > it
>> > often takes experimentation to find a way that works.  The Flex
framework
>> > code is open source at least, so you can always dig into that and 
>> > see

>> what
>> > it's doing.
>> >
>> > We have also used Cairngorm, with mixed results.  Cairngorm doesn't
>> really
>> > give you much code, it is mostly a set of design patterns.  Some of
the
>> > important code it does give is a "controller" which connects 
>> > Cairngorm
>> > Events to Cairngorm Commands.  Cairngorm events inherently know 
>> > their
>> > dispatcher, which is a singleton, so you can just fire off events 
>> > like

>> so:
>> >   new SaveGameEvent(game, user).dispatch();
>> > and the controller connects that to the appropriate
>> SaveGameCommand.  We've
>> > come to the conclusion that Cairngorm is great for situations where
most
>> > user actions imply immediate communications with a server, but not 
>> > so

>> > useful
>> > for situations where user actions are just manipulating data 
>> > internal

to
>> > the
>> > .swf.  We have ended up using Cairngorm Events and Commands just on
the
>> > networking side of our app, and for everything else we do more of a
basic
>> > Model/View pattern.
>> >
>> > I don't believe Cairngorm relies on Flex, but Fl

Re: [Flashcoders] frameworks and flash

2008-11-15 Thread Joel Stransky
@ekameleon, that seems a little intense for me atm. This discussion is
mainly about weather or not it's just dumb not to use a framework vs. plain
as3 when building common flash sites. I'm looking to hear things like,
"PureMVC makes everything easier." or "It makes no sense not to use Mate."

On Sat, Nov 15, 2008 at 2:42 AM, Hans Wichman <
[EMAIL PROTECTED]> wrote:

> Read the article, some good, some bad.
> If anyone declares you for a fool if you prefix interfaces with 'I'
> and use marker interface, I tend to gloss over the rest of the article
> since it no longer comes across trustworthy... Personal preference
> aside:)
>
> On Sat, Nov 15, 2008 at 12:05 AM, David Hershberger
> <[EMAIL PROTECTED]> wrote:
> > Haha!  Before you try Cairngorm, check out this article:
> >
> >
> http://blog.iconara.net/2008/04/13/architectural-atrocities-part-x-cairngorms-model-locator-pattern/
> >
> > Having used Cairngorm for a while now I have to agree with him.  The
> article
> > is pretty harsh, and it only talks about the ModelLocator part.
> >
> > Dave
> >
> > On 11/14/08, Joel Stransky <[EMAIL PROTECTED]> wrote:
> >>
> >> Thanks for the post Dave. Cairngorm sounds a lot like PureMVC which does
> >> away with events and implements a global command structure. So far it's
> >> appealing although my first run in with it was under bad conditions. A
> >> client of a friend had mangled it something fierce before he was brought
> in
> >> at which point he brought me in to implement deep linking. It was ugly
> to
> >> say the least. I have however heard great things about it since then. My
> >> gut
> >> says I should know how to do this stuff on my own before I go relying
> too
> >> heavily on tools that prevent me from getting to know the inner workings
> >> intimately.
> >>
> >> It's just tough to esitmate flash/flex work effictively anymore without
> a
> >> framework involved it seems. Clients don't have the time or budget for
> >> builds from scratch. Flash used to be so fun but now it's a constant
> >> learning curve. ugg.
> >>
> >> Interestingly enough I looked up the cairngorm site and saw a link to
> this
> >> blog post made just yesterday:
> >> http://www.anandvardhan.com/2008/11/13/popular-flex-frameworks/
> >>
> >> This should also be informative.
> >> http://www.insideria.com/2008/11/new-poll-which-flex-framework.html
> >>
> >>
> >>
> >> On Fri, Nov 14, 2008 at 1:52 PM, David Hershberger <
> [EMAIL PROTECTED]
> >> >wrote:
> >>
> >>
> >> > We have been using Adobe Flex for the past year and have really liked
> it.
> >> > It would be hard to call it "blazing" and "bloat" does seem like it
> might
> >> > apply to some extent, but on the other hand it does so many nice
> things
> >> for
> >> > us it is hard to argue with.  MXML is very powerful, but there is
> >> certainly
> >> > a big learning curve.  For basic stuff, buttons and containers and
> text,
> >> > it's easy to get started.  There are lots of subtle details though, so
> >> when
> >> > you start wanting to do things in ways the Flex authors didn't
> anticipate
> >> > it
> >> > often takes experimentation to find a way that works.  The Flex
> framework
> >> > code is open source at least, so you can always dig into that and see
> >> what
> >> > it's doing.
> >> >
> >> > We have also used Cairngorm, with mixed results.  Cairngorm doesn't
> >> really
> >> > give you much code, it is mostly a set of design patterns.  Some of
> the
> >> > important code it does give is a "controller" which connects Cairngorm
> >> > Events to Cairngorm Commands.  Cairngorm events inherently know their
> >> > dispatcher, which is a singleton, so you can just fire off events like
> >> so:
> >> >   new SaveGameEvent(game, user).dispatch();
> >> > and the controller connects that to the appropriate
> >> SaveGameCommand.  We've
> >> > come to the conclusion that Cairngorm is great for situations where
> most
> >> > user actions imply immediate communications with a server, but not so
> >> > useful
> >> > for situations where user actions are just manipulating data internal
> to
> >> > the
> >> > .swf.  We have ended up using Cairngorm Events and Commands just on
> the
> >> > networking side of our app, and for everything else we do more of a
> basic
> >> > Model/View pattern.
> >> >
> >> > I don't believe Cairngorm relies on Flex, but Flex gives you "data
> >> binding"
> >> > which works very nicely with Cairngorm.  Flex data binding lets you
> mark
> >> > certain state variables with [Bindable] and then the compiler builds
> >> > data-change events for you.  Then your view mxml classes use the data
> >> > binding syntax like  and the view
> >> updates
> >> > automagically whenever the Game's description field changes.  A
> Cairngorm
> >> > command might query a server and then the server-response-handler in
> the
> >> > command can set game.description.
> >> >
> >> > Dave
> >> >
> >> > On 11/14/08, Joel Stransky <[EMAIL PROTECTED]> wrote:
> >> > >
> >> > > Hello,
> >> > > So I'm tryi

Re: [Flashcoders] Controlling Sound in the timeline - AS3

2008-11-15 Thread Kenneth Kawamoto

I don't think so.

If the sound was "Stream" you could control the sound's playtime by 
sending the playhead to the desired frame.


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

karim beyrouti wrote:
This worked - thanks - however - my sound is triggered on the timeline ( 
event - loop ) , is there a way i can control the sound position - i.e. 
restart the sound or skip to a certain position in the audio? Or maybe 
this is asking a little too much from timeline triggered sounds.



Many thanks...

On 14 Nov 2008, at 21:30, Kenneth Kawamoto wrote:


Shouldn't it be more like:

var stfm:SoundTransform = theMC.soundTransform;
stfm.volume = 0;
theMC.soundTransform = stfm;

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

Karim Beyrouti wrote:
Hi ! Another simple AS3 question - well at least I hope so. I am 
trying to set the volume of a sound that has been embedded in the

'root' timeline of a loaded movieclip (as3). So I tried:
Themc.soundTransform.volume = 0;   
But nothing happened - no mute or anything in AS2 we used to be 
able to

do: s:Sound = new Sound( themc ).
s.volume = 0;
but this does not work in AS3...
It's probably something simple but I am really scratching my head 
with this
one. Also, it's a little odd, but there is no chapter on "Sound" in 
Colin

Mook's Essential ActionScript 3.0 book...
Thanks
Karim

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


Re: [Flashcoders] Controlling Sound in the timeline - AS3

2008-11-15 Thread karim beyrouti
This worked - thanks - however - my sound is triggered on the timeline  
( event - loop ) , is there a way i can control the sound position -  
i.e. restart the sound or skip to a certain position in the audio? Or  
maybe this is asking a little too much from timeline triggered sounds.



Many thanks...

On 14 Nov 2008, at 21:30, Kenneth Kawamoto wrote:


Shouldn't it be more like:

var stfm:SoundTransform = theMC.soundTransform;
stfm.volume = 0;
theMC.soundTransform = stfm;

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

Karim Beyrouti wrote:
Hi ! Another simple AS3 question - well at least I hope so. I am  
trying to set the volume of a sound that has been embedded in the

'root' timeline of a loaded movieclip (as3). So I tried:
Themc.soundTransform.volume = 0;
But nothing happened - no mute or anything in AS2 we used to be  
able to

do: s:Sound = new Sound( themc ).
s.volume = 0;
but this does not work in AS3...
It's probably something simple but I am really scratching my head  
with this
one. Also, it's a little odd, but there is no chapter on "Sound" in  
Colin

Mook's Essential ActionScript 3.0 book...
Thanks
Karim

___
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] ComboBox + Custom Cursor , AS3

2008-11-15 Thread Cor
Hi Keith,

I am a fine, thank you.
I am also just trying to help, and hopefully together we find the answer.

About addChildAt:
My bad...
I made a mistake and did not get the error. I think that's a BUG. Hahaha.

I rebuild a little test and you are right, it throws the error.

But generally spoken, I think a thrown error is not a bug because it tells
you, you are trying to do something impossible with your program.
So thrown errors are your friend!

Kind regards
Cor


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Keith
Reinfeld
Sent: vrijdag 14 november 2008 20:50
To: 'Flash Coders List'
Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3

Cor, 

addChildAt() -- Tested: 

Any index 0 thru numChildren (inclusive) = No RangeError.

Any index greater than numChildren = RangeError. 
 
That's why I thought 'bug'. 
 
Just an observation. Just trying to help. 
 
So, Cor, howyabin? 
 
Regards, 

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


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Cor
> Sent: Friday, November 14, 2008 1:18 PM
> To: 'Flash Coders List'
> Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
> 
> I guess because you set the customCursor in the array position.
> And array positions can be set to any index, and for that matter it can't
> be
> out of range.
> 
> stage.addChildAt(customCursor, 100); will try to put the child at index
> hundred.
> Eventually the displayList notices a empty index and will shuffle
> everything
> in place so there is never an empty indexed location.
> The same as when you remove a child for the displayList.
> 
> I am not completely sure if this is the correct technical description, but
> from what I have read about the displayList, it figures.
> 
> Kind regards
> Cor
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Keith
> Reinfeld
> Sent: vrijdag 14 november 2008 20:11
> To: 'Flash Coders List'
> Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
> 
> Hi Cor,
> 
> Right. I know all that. The question is why doesn't
> 
>   stage.addChildAt(customCursor, stage.numChildren);
> 
> trigger a RangeError?
> 
> Regards,
> 
> -Keith
> http://keithreinfeld.home.comcast.net
> 
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:flashcoders-
> > [EMAIL PROTECTED] On Behalf Of Cor
> > Sent: Friday, November 14, 2008 12:38 PM
> > To: 'Flash Coders List'
> > Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
> >
> > It is not a bug.
> > The displayList stores it objects in a Array, wich starts at 0.
> > So Array["obj1","obj2","obj3","obj4"] has 4 children wich are located at
> > position 0, 1, 2, 3.
> > If you remove a child every other moves up 1 place.
> >
> > So stage.numChildren is accordingly out of range.
> >
> > HTH
> > C
> >
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Keith
> > Reinfeld
> > Sent: vrijdag 14 november 2008 18:57
> > To: 'Flash Coders List'
> > Subject: RE: [Flashcoders] ComboBox + Custom Cursor , AS3
> >
> > Joel,
> >
> > Another good optimization point, Joel. If we assume that Karim's custom
> > cursor is already a child of the stage, then setChildIndex() should be
> > more
> > efficient. So I guess it depends on the implementation.
> >
> > Interestingly,
> >
> > I get a RangeError with this:
> >
> > stage.setChildIndex(customCursor, stage.numChildren);
> >
> > but this works:
> >
> > stage.setChildIndex(customCursor, stage.numChildren - 1);
> >
> > However,
> >
> > stage.addChildAt(customCursor, stage.numChildren);
> >
> > does not trigger the RangeError, and
> >
> > stage.addChildAt(customCursor, stage.numChildren - 1);
> >
> > still produces the desired result.
> >
> > If this is a bug then 'stage.numChildren - 1' would be the safe way to
> go.
> >
> > Regards,
> >
> > -Keith
> > http://keithreinfeld.home.comcast.net
> >
> >
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED] [mailto:flashcoders-
> > > [EMAIL PROTECTED] On Behalf Of Joel Stransky
> > > Sent: Friday, November 14, 2008 10:25 AM
> > > To: Flash Coders List
> > > Subject: Re: [Flashcoders] ComboBox + Custom Cursor , AS3
> > >
> > > Very nice Keith. Wouldn't setChildIndex() work as well? Or is
> > addChildAt()
> > > better for ensuring that the cursor is added to the display list?
> > >
> > > On Fri, Nov 14, 2008 at 11:08 AM, Keith Reinfeld
> > > <[EMAIL PROTECTED]>wrote:
> > >
> >
> >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > No virus found in this incoming message.
> > Checked by AVG - http://www.avg.com
> > Version: 8.0.175 / Virus Database: 270.9.3/1788 - Release Date: 14-11-
> 2008
> > 13:36
> >
> > ___
>

Re: [Flashcoders] How much would you charge?

2008-11-15 Thread Hans Wichman
Completely unrelated conclusion, there is no relation between charging
10 hours for one hour of work and reusing standard components or not.
If I follow your line of reasoning you say that because you are so
good and can complete it in an hour instead of where someone else
would take 10 it allows you to charge the 10 hours instead of the one?

I think a couple of things are related here:
- what did you communicate to your client? If you say this will cost
you $300 and we use a standard component, and this is involved, these
are the consequences blahblah and he agrees well good for you, I don't
see a problem here (you agree on a fixed price). If you finish it in 1
lucky you, if you spent 20, too bad
- if you tell your client I'll sent you an invoice after its done
based on hours invested, and you spent 1 but send an invoice for 20,
it's being dishonest. I'm all for making money too but honesty does
not exclude making money. Honesty does not exclude smart either :).
- your wages. If you are so damn good that you finish things in 1 hour
instead of 10, one of the places this should be reflected is your
wage. That why you charge $100 an hour instead of $10 for example.
That's why people come to you, because you're that fast and good.
Of course this might differ per location and how much competition there is:)

My 2 cnts, super duper honesty has nothing to do with it.




On Fri, Nov 14, 2008 at 9:27 PM, Carl Welch <[EMAIL PROTECTED]> wrote:
>>
>> The comment about a client being 'none the wiser' and the implication that
>> you're just making the extra dough by handing off some crap someone else did
>> is what's not cool.
>>
>> The point was, if you're repackaging something that someone already did
>> without any value add, then that's dishonest. Hands down, end of story.
>
>
>
> then stop using Flash and create your own programming language while your at
> it...if you want to be completely"honest".
>
> You pay a fee to use Flash, you also can pay a fee to use an extension
> (read:component) inside of flash... speaking of components, I hope you don't
> use the datagrid component either. But hey, go ahead and waste all of your
> time and program your own - reinvent the wheel, go for it, be super duper
> "honest" sheeesh. If tools are available to help you finish your work in
> as little amount of time and with limited amount of de-bugging needed, then
> use them my point was/is to maximize your dollar to time ratio. If you
> quote someone $350 dollars for a project and you finish it in an hour, you
> can say you make $350 an hour... but if it takes you 40 hours to do the same
> job you make $8.75 an hour. I'm pretty sure that is minimum wage and you
> might as well go work for Burger King. I don't know about anyone else here,
> but I'm not in this business to make minimum wage. I have mouths to feed.
> Dollar to time ratio, baby, that's what its all about when you're a
> freelancer and I'm a one man sweat shop. No matter what you say or think,
> you have to be a smart business person too as a good developer/designer.
>
> And for the record I am not affiliated in anyway with slideshowpro. I just
> think the user interface is about as clean as they come and clients love
> it... but then again, a lot of clients love powerpoint... so, whatever.
>
>
>
> On Nov 14, 2008, at 10:56 AM, Jon Bradley wrote:
>
>>
>> On Nov 14, 2008, at 12:27 PM, Carl Welch wrote:
>>
>>> using tools of the trade is far from ripping clients off. Ridiculous
>>> statement.
>>
>>
>> It's not ridiculous at all. Read my reply to my initial email where I
>> elaborated a bit more.
>>
>> The comment about a client being 'none the wiser' and the implication that
>> you're just making the extra dough by handing off some crap someone else did
>> is what's not cool.
>>
>> The point was, if you're repackaging something that someone already did
>> without any value add, then that's dishonest. Hands down, end of story.
>>
>> - j
>> ___
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> --
> Carl Welch
> http://www.carlwelch.com
> http://www.jointjam.com
> [EMAIL PROTECTED]
> 805.403.4819
>
>
>
>
> ___
> 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