Re: [Flashcoders] What good is a Controller?

2010-03-30 Thread allandt bik-elliott (thefieldcomic.com)
reading through the docs for robot legs left me feeling a bit lost

wth is [Inject] and why have i never heard of it before?

a

On 29 March 2010 23:54, Steven Sacks flash...@stevensacks.net wrote:

 MVC Public Service Announcement
 http://www.youtube.com/watch?v=91C7ax0UAAc

 If you want to learn about MVC, pick up the Ruby on Rails book.

 I suggest you use RobotLegs, which uses Mediators and Commands instead of
 Controllers.  RobotLegs is better suited for the world of Flash than MVC,
 which Flash blurs the lines between with MovieClip.

 ___
 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] What good is a Controller?

2010-03-30 Thread Karina Steffens
Very cheesy and very funny :) I suppose in my case it's the View that's
gotten too fat, and the Controller is over starved...

I'll have a look at RobotLegs, to see what best practices can be learned
from it.
 
Karina


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Steven Sacks
 Sent: 29 March 2010 11:55
 To: Flash Coders List
 Subject: Re: [Flashcoders] What good is a Controller?
 
 MVC Public Service Announcement
 http://www.youtube.com/watch?v=91C7ax0UAAc
 
 If you want to learn about MVC, pick up the Ruby on Rails book.
 
 I suggest you use RobotLegs, which uses Mediators and Commands instead
 of
 Controllers.  RobotLegs is better suited for the world of Flash than
 MVC, which
 Flash blurs the lines between with MovieClip.
 ___
 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] Strange Problem

2010-03-30 Thread Rohit Sharma
Hello everyone,

I am trying to put my application on facebook. For that I am using the
AS3 API.
I created a class to handle all the FB related stuff and what I found was
that my swf compilation was taking huge time
and nothing was getting added to stage and compiler was reporting no errors.
   When I started debugging the cause what I found was that as soon as I
declare a private var, this error happens.

Everything works fine in this case :-

package teenpattiBase
{
  import com.facebook.utils.FacebookSessionUtil;

  public class Fb_test1
  {
 //private var session:FacebookSessionUtil;

public function Fb_test1()
{
trace(the argument is getting called);
}
 }
}

as soon as I remove the comments from the variable declaration the
compilation is taking too much time and nothing is getting added on stage.

package teenpattiBase
{
  import com.facebook.utils.FacebookSessionUtil;

  public class Fb_test1
  {
 private var session:FacebookSessionUtil;

public function Fb_test1()
{
trace(the argument is getting called);
}
 }
}

 I tried to debug it but am getting nowhere.
Please help.

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


[Flashcoders] Re: Strange Problem

2010-03-30 Thread Rohit Sharma
Also, when I am trying to debug the swf or decompile the swf using HP
swfscan, I am getting this info that the swf contains no actionscript code.

On Tue, Mar 30, 2010 at 6:03 PM, Rohit Sharma rohit.sharma1...@gmail.comwrote:

 Hello everyone,

 I am trying to put my application on facebook. For that I am using the
 AS3 API.
 I created a class to handle all the FB related stuff and what I found was
 that my swf compilation was taking huge time
 and nothing was getting added to stage and compiler was reporting no
 errors.
When I started debugging the cause what I found was that as soon as I
 declare a private var, this error happens.

 Everything works fine in this case :-

 package teenpattiBase
 {
   import com.facebook.utils.FacebookSessionUtil;

   public class Fb_test1
   {
  //private var session:FacebookSessionUtil;

 public function Fb_test1()
 {
 trace(the argument is getting called);
 }
  }
 }

 as soon as I remove the comments from the variable declaration the
 compilation is taking too much time and nothing is getting added on stage.

 package teenpattiBase
 {
   import com.facebook.utils.FacebookSessionUtil;

   public class Fb_test1
   {
  private var session:FacebookSessionUtil;

 public function Fb_test1()
 {
 trace(the argument is getting called);
 }
  }
 }

  I tried to debug it but am getting nowhere.
 Please help.

 Thanks,
 Rohit

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


RE: [Flashcoders] What good is a Controller?

2010-03-30 Thread Karina Steffens
While html and css would certainly be part of the View, and the database
(MySQL, XML or any other way of holding data) would be part of the Model
layer, I agree with Dave that php is not, strictly speaking, a Controller. I
think that PHP (or ASP, or any server-side language) would more likely to be
all three put together - it gets the data from the database, it handles
application logic, and it can be used to write html directly into the page.
It would in fact be possible to split all your php code into Model, View,
and Controller classes, if you wanted to, use another class-based design
pattern, or skip all of that altogether. 

On the other hand, you might also simply split PHP into the View and Model
components, and skip the Controller altogether. Or if you take a simple
script that works in conjunction with a Flash application, PHP is more
likely to be part of the Model and nothing else, since Flash would be
handling presentation and logic.


 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Dave Watts
 Sent: 29 March 2010 6:04
 To: Flash Coders List
 Subject: Re: [Flashcoders] What good is a Controller?
 
  there is plenty of commentary out there to suggest that the
 controller is
  largely unnecessary and that the views can do it all as encapsulated
 objects
  (i've even read something by someone much smarter than me [
  http://c2.com/cgi-bin/wiki?MvcIsNotObjectOriented] that suggested
 that the c
  in mvc was anti-oop) but for me the benefit for the controller is
 that i can
  create functionality separate from design.
 
 I don't think it's really anti-OOP as much as irrelevant to OOP. The
 controller has nothing to do with your object domain model, it's just
 a mechanism to get messages from views to models or other views, and
 vice-versa.
 
  if you look at the html / php / mysql model, mvc has a very natural
 flow -
  the mysql database and the php interact much like the controller
 (php) and
  the model (mysql) and the result is then fed to the views (the served
 html
  page).
 
 Strictly speaking, that's not how most web application developers
 categorize the components of an MVC design (despite what the Wikipedia
 page says). PHP (or whatever application server you're using) would
 serve both as the controller and the views, and perhaps even the model
 as well. PHP itself doesn't really encourage this sort of separation
 (although it doesn't prevent it either), but for example, in a Java
 web app you might use JSP for your views, and a single servlet as a
 controller, and beans as your model. And of course, JSPs, servlets and
 beans are all just Java code. But, generally speaking, views are
 responsible for their own rendering, which typically requires
 server-side logic. If the view isn't responsible for its own rendering
 (which would be the case in a static HTML view, then the design
 pattern in question might better be described as Model-View-Presenter
 (MVP):
 
 http://en.wikipedia.org/wiki/Model_View_Presenter
 
 Now, this doesn't take into consideration the use of client-side
 functionality and where that fits, but that presumably would just be
 additional view logic.
 
 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 http://training.figleaf.com/
 
 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our training centers, online, or onsite.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] What good is a Controller?

2010-03-30 Thread allandt bik-elliott (thefieldcomic.com)
yeh - i over simplied that example and ended up with the wrong answer



On 30 March 2010 14:25, Karina Steffens kar...@neo-archaic.net wrote:

 While html and css would certainly be part of the View, and the database
 (MySQL, XML or any other way of holding data) would be part of the Model
 layer, I agree with Dave that php is not, strictly speaking, a Controller.
 I
 think that PHP (or ASP, or any server-side language) would more likely to
 be
 all three put together - it gets the data from the database, it handles
 application logic, and it can be used to write html directly into the page.
 It would in fact be possible to split all your php code into Model, View,
 and Controller classes, if you wanted to, use another class-based design
 pattern, or skip all of that altogether.

 On the other hand, you might also simply split PHP into the View and Model
 components, and skip the Controller altogether. Or if you take a simple
 script that works in conjunction with a Flash application, PHP is more
 likely to be part of the Model and nothing else, since Flash would be
 handling presentation and logic.


  -Original Message-
  From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
  boun...@chattyfig.figleaf.com] On Behalf Of Dave Watts
  Sent: 29 March 2010 6:04
  To: Flash Coders List
  Subject: Re: [Flashcoders] What good is a Controller?
 
   there is plenty of commentary out there to suggest that the
  controller is
   largely unnecessary and that the views can do it all as encapsulated
  objects
   (i've even read something by someone much smarter than me [
   http://c2.com/cgi-bin/wiki?MvcIsNotObjectOriented] that suggested
  that the c
   in mvc was anti-oop) but for me the benefit for the controller is
  that i can
   create functionality separate from design.
 
  I don't think it's really anti-OOP as much as irrelevant to OOP. The
  controller has nothing to do with your object domain model, it's just
  a mechanism to get messages from views to models or other views, and
  vice-versa.
 
   if you look at the html / php / mysql model, mvc has a very natural
  flow -
   the mysql database and the php interact much like the controller
  (php) and
   the model (mysql) and the result is then fed to the views (the served
  html
   page).
 
  Strictly speaking, that's not how most web application developers
  categorize the components of an MVC design (despite what the Wikipedia
  page says). PHP (or whatever application server you're using) would
  serve both as the controller and the views, and perhaps even the model
  as well. PHP itself doesn't really encourage this sort of separation
  (although it doesn't prevent it either), but for example, in a Java
  web app you might use JSP for your views, and a single servlet as a
  controller, and beans as your model. And of course, JSPs, servlets and
  beans are all just Java code. But, generally speaking, views are
  responsible for their own rendering, which typically requires
  server-side logic. If the view isn't responsible for its own rendering
  (which would be the case in a static HTML view, then the design
  pattern in question might better be described as Model-View-Presenter
  (MVP):
 
  http://en.wikipedia.org/wiki/Model_View_Presenter
 
  Now, this doesn't take into consideration the use of client-side
  functionality and where that fits, but that presumably would just be
  additional view logic.
 
  Dave Watts, CTO, Fig Leaf Software
  http://www.figleaf.com/
  http://training.figleaf.com/
 
  Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
  GSA Schedule, and provides the highest caliber vendor-authorized
  instruction at our training centers, online, or onsite.
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 ___
 Flashcoders 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] Re: Strange Problem

2010-03-30 Thread Jim Lafser
Sounds like you might need to do a clean build. Delete the ASO files and then 
build your SWF.





From: Rohit Sharma rohit.sharma1...@gmail.com
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Tue, March 30, 2010 9:04:14 AM
Subject: [Flashcoders] Re: Strange Problem

Also, when I am trying to debug the swf or decompile the swf using HP
swfscan, I am getting this info that the swf contains no actionscript code.

On Tue, Mar 30, 2010 at 6:03 PM, Rohit Sharma rohit.sharma1...@gmail.comwrote:

 Hello everyone,

    I am trying to put my application on facebook. For that I am using the
 AS3 API.
 I created a class to handle all the FB related stuff and what I found was
 that my swf compilation was taking huge time
 and nothing was getting added to stage and compiler was reporting no
 errors.
    When I started debugging the cause what I found was that as soon as I
 declare a private var, this error happens.

 Everything works fine in this case :-

 package teenpattiBase
 {
      import com.facebook.utils.FacebookSessionUtil;

      public class Fb_test1
      {
          //private var session:FacebookSessionUtil;

        public function Fb_test1()
        {
            trace(the argument is getting called);
        }
      }
 }

 as soon as I remove the comments from the variable declaration the
 compilation is taking too much time and nothing is getting added on stage.

 package teenpattiBase
 {
      import com.facebook.utils.FacebookSessionUtil;

      public class Fb_test1
      {
          private var session:FacebookSessionUtil;

        public function Fb_test1()
        {
            trace(the argument is getting called);
        }
      }
 }

  I tried to debug it but am getting nowhere.
 Please help.

 Thanks,
 Rohit

___
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] What good is a Controller?

2010-03-30 Thread Karina Steffens
Hi Jim,

Thanks for the comprehensive examples, especially the clock face. I guess
another advantage then would be the ability to swap the view instead of the
controller, and (for example) have text-only console like view for testing 
debugging? You might also say that Xray is another View.

In your framework, would the one controller for each view also mean that can
be only one view per controller? I tend to use a single model for multiple
views (the model could consist of a number of classes, but it's still one
model layer), it might make sense to do the same with the controller. To
clarify, I don't mean only one controller for all the views, more like
clusters of views with a single controller in their middle. Or does that
break the pattern?

Another question about your implementation - who's the chicken and who's the
egg? Does the view instantiate its controller, the controller the view, or a
Main class that creates all? 

In my current implementation, I have a Main application class (linked to the
stage) that creates the Model, the (limited) Controller, and passes the View
(which is a symbol on the stage with Class Linkage) to the controller. The
Controller's only function is to link them all together as Broadcaster
listeners (all Views listen/broadcast to all Models. The Controller is the
third part of the equation, because it can listen/broadcast to both Views
and Models, but it sort of stops there. 

I also have some parts of the View interacting with each other via
Broadcaster, but I'm beginning to think that this should really be the
Controller's function - to intercept messages from one View to another: for
example, from a PageView to the MainView, or from a ComponentView (eg the
menu or breadcrumbs) to a PageView if necessity arises. 

Then on the smaller scale of Page or Component, I suppose each could have
their own Controller class that's still linked to the main MVC structure, so
that it can talk to the Model, but doesn't handle communications with other
Views. 

Does that make sense to you guys, or am I overcomplicating here? 

Karina



 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-
 boun...@chattyfig.figleaf.com] On Behalf Of Jim Lafser
 Sent: 29 March 2010 6:37
 To: Flash Coders List
 Subject: Re: [Flashcoders] What good is a Controller?
 
 When I've implemented MVC:
   * I have one controller for each view
   * Each view knows about it's controller, but only as a generic
 controller (either as an interface or a base class)
   * Each View registers it's controller as the event listener for
 each of it's buttons.
   * Each controller translates a generic call in itself into a
 specific call to the model that may or may not cause a state change.
   * In response to state changes, the model notifies all views.
   * The notification can include the state change information, OR
   * The view can request the state change information from the
 model.
   * The view changes updates what is presented to the user as
 needed based on the change in state.
 The reason to implement the listener in the controller is to separate
 the implementation of the business logic  from the display logic. This
 makes the implementation of the specific function on the model
 independent of the generic function on the view.
 
 Example: an application has several views that each have a next and
 previous button. Each view registers the next button with its
 controllers next function. Each controller provides next and previous
 functions that invoke one or more methods on the model that may cause a
 state change.
 
 This provides a decoupling of the business logic from the display
 logic. If I want to change what is displayed, or how it is displayed, I
 change the view. If I want to change the response to user input, I
 change the controller.
 
 An example of why this is nice: I've got a clock face that I want to
 use as a stop watch (elapsed time) and as a timer (count-down timer).
 View could be identical, and just change the controller to change the
 functionality. Start, Stop and Reset would all have different meanings
 that are handled by the controller. I know that a bug in the timer code
 is independent of the stop watch code.
 
 In certain situations, it may be beneficial to implement a view as
 another instance of the MVC pattern. An example of this would be where
 a user is making choices in a configuration, and those choices don't
 get saved into the application state until the OK or Apply
 button is clicked. While the choices are being made, the views internal
 state is stored in the views model, and when OK is clicked the choices
 get stored into the application's model.
 
 Whether or not it's worthwhile to implement a view as another
 internal MVC pattern depends upon the complexity of the view vs. the
 added complexity of the overall system. IMHO, the choice should be to
 go with what makes the overall system the easiest 

Re: [Flashcoders] What good is a Controller?

2010-03-30 Thread Steven Sacks

If you know the basics of MVC, then you should be able to learn RobotLegs.

[Inject] is SwiftSuspenders metadata, which RobotLegs uses.

Just because it's foreign to you doesn't mean it's not worth learning.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] What good is a Controller?

2010-03-30 Thread Merrill, Jason
Seems Robotlegs was built for Flex and requires some alterations
(documented on their site) in order for it to work with Flash. How much
effort is involved in that, do you know?


Jason Merrill 

Bank of  America  Global Learning 
Learning  Performance Solutions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Steven
Sacks
Sent: Tuesday, March 30, 2010 1:35 PM
To: Flash Coders List
Subject: Re: [Flashcoders] What good is a Controller?

If you know the basics of MVC, then you should be able to learn
RobotLegs.

[Inject] is SwiftSuspenders metadata, which RobotLegs uses.

Just because it's foreign to you doesn't mean it's not worth learning.
___
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] What good is a Controller?

2010-03-30 Thread Steven Sacks
RobotLegs was built for AS3, not Flex.  I am using it in a pure AS3 project 
right now.


It's easy to setup for Flash IDE.

http://www.helmutgranda.com/2009/12/02/robotlegs-and-flash-ide-cs4-injection/

Believe me, it's worth learning. RobotLegs is amazing.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] What good is a Controller?

2010-03-30 Thread Steven Sacks

though obviously, using mxmlc to compile makes it a lot easier.

FlashDevelop, FDT, FlexBuilder, anything can be used to compile Flash without 
Flash (or Flex).

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


RE: [Flashcoders] What good is a Controller?

2010-03-30 Thread Merrill, Jason
OK - because when I checked into it a few months ago, they had something
on their site that said it was currently only available for Flex.  Even
still, I know it's an AS3 framework, but they have information in the
help section about what to do to make it work in Flash CS* because it
doesn't work with it out of the box as it does for Flex.  Good to see
Helmut's post about setting it up for Flash CS* - looks pretty
straightforward, I'll check it out.


Jason Merrill 

Bank of  America  Global Learning 
Learning  Performance Solutions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Steven
Sacks
Sent: Tuesday, March 30, 2010 2:09 PM
To: Flash Coders List
Subject: Re: [Flashcoders] What good is a Controller?

RobotLegs was built for AS3, not Flex.  I am using it in a pure AS3
project 
right now.

It's easy to setup for Flash IDE.

http://www.helmutgranda.com/2009/12/02/robotlegs-and-flash-ide-cs4-injec
tion/

Believe me, it's worth learning. RobotLegs is amazing.
___
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] What good is a Controller?

2010-03-30 Thread Merrill, Jason
FlashDevelop, FDT, FlexBuilder, anything can be used to compile Flash
without 
Flash (or Flex).

Well... yes, but with the Flex SDK as the compiler- not entirely on
their own.

Jason Merrill 

Bank of  America  Global Learning 
Learning  Performance Solutions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)


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


Re: [Flashcoders] What good is a Controller?

2010-03-30 Thread Karl DeSaulniers

Hi Jason,
Real quick question.
Kind-of based off what you guys are talking about.
I currently work in Flash CS3 in AS2.
I was wanting to try one of the other flash developing programs out  
there,
but it seems the new releases of the ones you listed below are more  
AS3 geared.

Can I still program in AS2 utilizing any of the programs you listed?
Or am I the last AS2 developer on the planet and just need to get in  
line to the AS3 3rd period class?

lol

A nickel for your thoughts.. its hard times out there.
Best,


Karl


On Mar 30, 2010, at 1:22 PM, Merrill, Jason wrote:


FlashDevelop, FDT, FlexBuilder, anything can be used to compile Flash

without

Flash (or Flex).


Well... yes, but with the Flex SDK as the compiler- not entirely on
their own.

Jason Merrill

Bank of  America  Global Learning
Learning  Performance Solutions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)


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

Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Re: [Flashcoders] What good is a Controller?

2010-03-30 Thread Kerry Thompson
Karl DeSaulniers wrote:

 Or am I the last AS2 developer on the planet and just need to get in line to
 the AS3 3rd period class?

I do recommend AS3, but you're far from the last doing AS2. I just
finished up a 4-month AS2 contract, and last I heard, they were still
looking for contractors who know AS2.

When you have an extensive app or Web site built in AS2, switching to
AS3 is really tough, especially when it's a popular site and expanding
rapidly. There are lots of legacy AS2 gigs out there.

I would still become an AS3 expert. That's where the real action is.
Plus, you can use cool tools like Flex/FlexBuilder/Flashbuilder, and
AS3 is just plain better than AS2.

Cordially,

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


Re: [Flashcoders] What good is a Controller?

2010-03-30 Thread Karl DeSaulniers

Thanks for that Kerry.
I want to learn AS3, I really do, but it takes too much time away  
from making money for me that I find myself missing out. :(
I wish it was easier to make the transition, but then everyone would  
be a AS3 developer, right.


*Sigh*

Best,
Karl


On Mar 30, 2010, at 4:50 PM, Kerry Thompson wrote:

Karl DeSaulniers wrote:

Or am I the last AS2 developer on the planet and just need to get  
in line to

the AS3 3rd period class?


I do recommend AS3, but you're far from the last doing AS2. I just
finished up a 4-month AS2 contract, and last I heard, they were still
looking for contractors who know AS2.

When you have an extensive app or Web site built in AS2, switching to
AS3 is really tough, especially when it's a popular site and expanding
rapidly. There are lots of legacy AS2 gigs out there.

I would still become an AS3 expert. That's where the real action is.
Plus, you can use cool tools like Flex/FlexBuilder/Flashbuilder, and
AS3 is just plain better than AS2.

Cordially,

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

Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


Re: [Flashcoders] What good is a Controller?

2010-03-30 Thread Nathan Mynarcik
It actually is easier than you think. You just have to walk the plank and jump. 
I did, and never looked back. 


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

-Original Message-
From: Karl DeSaulniers k...@designdrumm.com
Date: Tue, 30 Mar 2010 16:55:47 
To: Flash Coders Listflashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] What good is a Controller?

Thanks for that Kerry.
I want to learn AS3, I really do, but it takes too much time away  
from making money for me that I find myself missing out. :(
I wish it was easier to make the transition, but then everyone would  
be a AS3 developer, right.

*Sigh*

Best,
Karl


On Mar 30, 2010, at 4:50 PM, Kerry Thompson wrote:

Karl DeSaulniers wrote:

 Or am I the last AS2 developer on the planet and just need to get  
 in line to
 the AS3 3rd period class?

I do recommend AS3, but you're far from the last doing AS2. I just
finished up a 4-month AS2 contract, and last I heard, they were still
looking for contractors who know AS2.

When you have an extensive app or Web site built in AS2, switching to
AS3 is really tough, especially when it's a popular site and expanding
rapidly. There are lots of legacy AS2 gigs out there.

I would still become an AS3 expert. That's where the real action is.
Plus, you can use cool tools like Flex/FlexBuilder/Flashbuilder, and
AS3 is just plain better than AS2.

Cordially,

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

Karl DeSaulniers
Design Drumm
http://designdrumm.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


Re: [Flashcoders] What good is a Controller?

2010-03-30 Thread Kerry Thompson
Karl DeSaulniers wrote:

 I want to learn AS3, I really do, but it takes too much time away from
 making money for me that I find myself missing out. :(
 I wish it was easier to make the transition, but then everyone would be a
 AS3 developer, right.

Hey, if you're doing well with AS2, there's nothing wrong with that.
It's not going away for a long time.

COBOL used to be the dominant language for business apps. I haven't
programmed in COBOL for 25 years, but I still see COBOL gigs posted.
Once you get a sizable app built in a language, you have to have a
compelling reason to switch to another. So, there are still COBOL
programmers around, maintaining 20-year-old programs.

I chose to teach myself AS3 because it's the future. I had a year of
pretty low income while I was learning, and doing gigs at a reduced
price to get practical experience. Fortunately, my wife earns enough
that I could take that year to become proficient. Some people don't
have that luxury.

By the time you run out of AS2 gigs, you might be old enough to
retire, or we might all be doing AS4, or some totally new environment
and language. No one can predict the computer future with any
accuracy, so we have to keep re-inventing ourselves every 3-5 years.
In your career, you will probably need to learn at least 4 or 5 new
languages--in my 30th year or programming, I'm on my 9th language.

Cordially,

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


Re: [Flashcoders] What good is a Controller?

2010-03-30 Thread Karl DeSaulniers

Thanks guys for your responses.

Kerry,
Too true. I've had to teach myself PHP, XML, MySQL, Javascript and I  
already knew HTML before I learned flash.
I know there are a lot of AS2 jobs out there, but I live in a major  
city and major cities don't dwell in the older languages.
So yeah, the scenario you were speaking of, just minus the wife. (but  
I digress)
I really want to get into OOP and I feel like AS3 would be a better  
language to learn that in.
I was going to learn it in AS2 just so I would know it, but that may  
be a good Learning AS3 project.

Just don't want to bite off more than I can chew.
I wish I already knew what the transitions were for the things I know  
how to code in AS2,

but redoing all those projects in AS3 is what I have no time to do.

So which of those other flash developing programs would be ok for  
doing AS2?

Best,

Karl


On Mar 30, 2010, at 5:10 PM, Kerry Thompson wrote:

Karl DeSaulniers wrote:


I want to learn AS3, I really do, but it takes too much time away from
making money for me that I find myself missing out. :(
I wish it was easier to make the transition, but then everyone  
would be a

AS3 developer, right.


Hey, if you're doing well with AS2, there's nothing wrong with that.
It's not going away for a long time.

COBOL used to be the dominant language for business apps. I haven't
programmed in COBOL for 25 years, but I still see COBOL gigs posted.
Once you get a sizable app built in a language, you have to have a
compelling reason to switch to another. So, there are still COBOL
programmers around, maintaining 20-year-old programs.

I chose to teach myself AS3 because it's the future. I had a year of
pretty low income while I was learning, and doing gigs at a reduced
price to get practical experience. Fortunately, my wife earns enough
that I could take that year to become proficient. Some people don't
have that luxury.

By the time you run out of AS2 gigs, you might be old enough to
retire, or we might all be doing AS4, or some totally new environment
and language. No one can predict the computer future with any
accuracy, so we have to keep re-inventing ourselves every 3-5 years.
In your career, you will probably need to learn at least 4 or 5 new
languages--in my 30th year or programming, I'm on my 9th language.

Cordially,

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

Karl DeSaulniers
Design Drumm
http://designdrumm.com

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


RE: [Flashcoders] What good is a Controller?

2010-03-30 Thread Barry Hannah
If you work on a PC I can highly recommend FlashDevelop.
It comes with a really nice AS3 Preloader preset. Coupled with the Flex
compiler you're straight into flaless Flash.

Btw my opinion, I reckon you really need to take the plunge into AS3,
asap.

Barry.


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl
DeSaulniers
Sent: Wednesday, 31 March 2010 11:26 a.m.
To: Flash Coders List
Subject: Re: [Flashcoders] What good is a Controller?

Thanks guys for your responses.

Kerry,
Too true. I've had to teach myself PHP, XML, MySQL, Javascript and I  
already knew HTML before I learned flash.
I know there are a lot of AS2 jobs out there, but I live in a major  
city and major cities don't dwell in the older languages.
So yeah, the scenario you were speaking of, just minus the wife. (but  
I digress)
I really want to get into OOP and I feel like AS3 would be a better  
language to learn that in.
I was going to learn it in AS2 just so I would know it, but that may  
be a good Learning AS3 project.
Just don't want to bite off more than I can chew.
I wish I already knew what the transitions were for the things I know  
how to code in AS2,
but redoing all those projects in AS3 is what I have no time to do.

So which of those other flash developing programs would be ok for  
doing AS2?
Best,

Karl


On Mar 30, 2010, at 5:10 PM, Kerry Thompson wrote:

Karl DeSaulniers wrote:

 I want to learn AS3, I really do, but it takes too much time away from
 making money for me that I find myself missing out. :(
 I wish it was easier to make the transition, but then everyone  
 would be a
 AS3 developer, right.

Hey, if you're doing well with AS2, there's nothing wrong with that.
It's not going away for a long time.

COBOL used to be the dominant language for business apps. I haven't
programmed in COBOL for 25 years, but I still see COBOL gigs posted.
Once you get a sizable app built in a language, you have to have a
compelling reason to switch to another. So, there are still COBOL
programmers around, maintaining 20-year-old programs.

I chose to teach myself AS3 because it's the future. I had a year of
pretty low income while I was learning, and doing gigs at a reduced
price to get practical experience. Fortunately, my wife earns enough
that I could take that year to become proficient. Some people don't
have that luxury.

By the time you run out of AS2 gigs, you might be old enough to
retire, or we might all be doing AS4, or some totally new environment
and language. No one can predict the computer future with any
accuracy, so we have to keep re-inventing ourselves every 3-5 years.
In your career, you will probably need to learn at least 4 or 5 new
languages--in my 30th year or programming, I'm on my 9th language.

Cordially,

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

Karl DeSaulniers
Design Drumm
http://designdrumm.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


Re: [Flashcoders] Re: Strange Problem

2010-03-30 Thread Rohit Sharma
Its still not working.

On Tue, Mar 30, 2010 at 7:19 PM, Jim Lafser jimlaf...@yahoo.com wrote:

 Sounds like you might need to do a clean build. Delete the ASO files and
 then build your SWF.




 
 From: Rohit Sharma rohit.sharma1...@gmail.com
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Tue, March 30, 2010 9:04:14 AM
 Subject: [Flashcoders] Re: Strange Problem

 Also, when I am trying to debug the swf or decompile the swf using HP
 swfscan, I am getting this info that the swf contains no actionscript code.

 On Tue, Mar 30, 2010 at 6:03 PM, Rohit Sharma rohit.sharma1...@gmail.com
 wrote:

  Hello everyone,
 
 I am trying to put my application on facebook. For that I am using the
  AS3 API.
  I created a class to handle all the FB related stuff and what I found was
  that my swf compilation was taking huge time
  and nothing was getting added to stage and compiler was reporting no
  errors.
 When I started debugging the cause what I found was that as soon as I
  declare a private var, this error happens.
 
  Everything works fine in this case :-
 
  package teenpattiBase
  {
   import com.facebook.utils.FacebookSessionUtil;
 
   public class Fb_test1
   {
   //private var session:FacebookSessionUtil;
 
 public function Fb_test1()
 {
 trace(the argument is getting called);
 }
   }
  }
 
  as soon as I remove the comments from the variable declaration the
  compilation is taking too much time and nothing is getting added on
 stage.
 
  package teenpattiBase
  {
   import com.facebook.utils.FacebookSessionUtil;
 
   public class Fb_test1
   {
   private var session:FacebookSessionUtil;
 
 public function Fb_test1()
 {
 trace(the argument is getting called);
 }
   }
  }
 
   I tried to debug it but am getting nowhere.
  Please help.
 
  Thanks,
  Rohit
 
 ___
 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