Re: [Flashcoders] datagrid icon to delete a row.

2006-03-10 Thread Spike
Not sure if this applies to the datagrid component in Flash, but to to
this in Flex 1.5 you would do:

myDataGrid.dataProvider.removeItemAt(someIndex);

Spike

On 3/10/06, Rodrigo Guerra [EMAIL PROTECTED] wrote:
 my grid dataprovider is a xml (created in flash).

 the only way i can think to refresh the datagrid is associate it (again) to
 the xml source (updated). like delete the node then myDG.dataProvider =
 myXml (updated)

 is this correct?





 - Original Message -
 From: Clint Tredway [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Friday, March 10, 2006 2:19 PM
 Subject: RE: [Flashcoders] datagrid icon to delete a row.


 Basically what you will need to do is get the id of that row and remove
 it from the data populating the grid and then refresh the grid. (If I
 remember correctly) ;)

 HTH

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Rodrigo
 Guerra
 Sent: Friday, March 10, 2006 11:07 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] datagrid icon to delete a row.

 hi all,

 i'm using this example from phil,
 http://philflash.inway.fr/dgrenderer/dgiconrd.html to put a image inside
 a datagrid colum. (any other you can share would be appreciated)

 what i want is click in the image and delete the row. i thought the
 datagrid class would provide a easy method like removeRow(index).. but
 there isn't.
 what's the code to delete a row in the datagrid.


 thanks!




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

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


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

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



--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


Re: [Flashcoders] datagrid icon to delete a row.

2006-03-10 Thread Spike
Again, not sure how this would work in Flash, but in Flex you would
have a cell renderer for the button.

Inside the cell renderer you have a setValue() method that allows you
to determine something about the data for that row, so you can disable
the button or whatever else you need to do.

You also have a reference to the list itself through the listOwner
property, so when you get a click event on the button you can call
listOwner.dispatchEvent() and dispatch a custom event from the list.

Since you're creating the event you can easily put the data that
applies to that row in there. In the event handler for your custom
event you can loop over the dataProvider for the list and check which
row matches the data in the event. That will give you the row index.

There are lots of other ways to do it, but that's about the most
generic, so it should work for most scenarios.

Hopefully that makes some sort of sense.

Spike

On 3/10/06, Rodrigo Guerra [EMAIL PROTECTED] wrote:
 thanks spike, clint for the help.

 the dataProvider removeItemAt method works like a charm.

 i added the code below to get the grid row, but it's not working:

 var myListener = new Object();
 myListener.cellFocusIn = function(eventObject) {
 var cell = eventObject.itemIndex ;
 trace(The cell row is  + cell +  has gained focus);
 };
 myGrid.addEventListener(cellFocusIn, myListener);

 but it ONLY works if i have the property dg.editable set to true, and this
 property can't be true at this time.
 how can i get the dg row?

 regards,
 rodrigo

 - Original Message -
 From: Spike [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Friday, March 10, 2006 4:01 PM
 Subject: Re: [Flashcoders] datagrid icon to delete a row.


 Not sure if this applies to the datagrid component in Flash, but to to
 this in Flex 1.5 you would do:

 myDataGrid.dataProvider.removeItemAt(someIndex);

 Spike

 On 3/10/06, Rodrigo Guerra [EMAIL PROTECTED] wrote:
  my grid dataprovider is a xml (created in flash).
 
  the only way i can think to refresh the datagrid is associate it (again)
 to
  the xml source (updated). like delete the node then myDG.dataProvider =
  myXml (updated)
 
  is this correct?
 
 
 
 
 
  - Original Message -
  From: Clint Tredway [EMAIL PROTECTED]
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Sent: Friday, March 10, 2006 2:19 PM
  Subject: RE: [Flashcoders] datagrid icon to delete a row.
 
 
  Basically what you will need to do is get the id of that row and remove
  it from the data populating the grid and then refresh the grid. (If I
  remember correctly) ;)
 
  HTH
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of Rodrigo
  Guerra
  Sent: Friday, March 10, 2006 11:07 AM
  To: Flashcoders mailing list
  Subject: [Flashcoders] datagrid icon to delete a row.
 
  hi all,
 
  i'm using this example from phil,
  http://philflash.inway.fr/dgrenderer/dgiconrd.html to put a image inside
  a datagrid colum. (any other you can share would be appreciated)
 
  what i want is click in the image and delete the row. i thought the
  datagrid class would provide a easy method like removeRow(index).. but
  there isn't.
  what's the code to delete a row in the datagrid.
 
 
  thanks!
 
 
 
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 


 --
 
 Stephen Milligan
 Do you do the Badger?
 http://www.yellowbadger.com

 Do you cfeclipse? http://www.cfeclipse.org
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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

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



--

Stephen Milligan
Do you do the Badger?
http

Re: [Flashcoders] RE: Flex vs OpenLaszo

2005-12-21 Thread Spike
That's not 100% true.

You must have a Flex license for the server where the swf is served
from, but you don't have to have Flex installed on it.

I've worked with a couple of clients who use this configuration.

Spike

On 12/21/05, JesterXL [EMAIL PROTECTED] wrote:
 Nope, Flex 1 and Flex 1.5.

 Flex 1 and Flex 1.5 require a server if you wish to remain legal.  While you
 can easily create SWF's from Flex 1 and Flex 1.5 and run them independently,
 unless they were served from a server that has Flex 1 or 1.5 installed,
 that's illegal.

 Flex 2 does not have this legal requirement, and once you create a SWF, you
 can do whatever you want with it.

 - Original Message -
 From: Adrian Showater [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Sent: Wednesday, December 21, 2005 9:11 AM
 Subject: [Flashcoders] RE: Flex vs OpenLaszo


 JesterXL, please clarify:

 Flex 1.5 and 2 allow you to compile stand alone SWF's.  Flex 1.5, however,
 requires the Flex server to be installed on the box where the SWF is
 deployed to.

 Am I correct in assuming that you mean that Flex 1 requires the server while
 all subsequent versions do not?


 Adrian Showalter
 Software Developer
 Holmes BizNet
 www.HolmesBizNet.com http://www.HolmesBizNet.com
 330.893.3901 ext 102

 ___
 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



--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] [OTAnn] Feedback

2005-11-07 Thread Spike
Advertising a JNLP app on a Flash coders mailing list?

I'm assuming this is spam, you're trolling, or you're clueless.

The most likely reaction is a bunch of flash/flex developers putting
together an alternative that doesn't rely on client side Java.

Spike

On 11/7/05, shenanigans [EMAIL PROTECTED] wrote:

 I was interested in getting feedback from current mail group users.

 We have mirrored your mail list in a new application that provides a more
 aggregated and safe environment which utilizes the power of broadband.

 Roomity.com http://Roomity.com v 1.5 is a web 2.01 community webapp. Our
 newest version adds broadcast video and social networking such as favorite
 authors and an html editor.

 It?s free to join and any feedback would be appreciated.

 S.



 --

 Broadband interface (RIA) + mail box saftey = a href=
 http://Flashcoders_Discussion_List.roomity.com;Flashcoders_Discussion_List.roomity.com/a

 *Your* clubs, no sign up to read, ad supported; try broadband internet.
 ~~1131397872152~~
 --

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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Debugging wih FAMES?

2005-11-01 Thread Spike
Here's a use case that I see all the time and it fully justifies the use of
open source.

User A would really love to see company X would add feature Y to product Z.
User A posts to mailing lists and forums and wish forms until, with some
luck, enough requests come in to justify the development time required to
implement the feature. Often the turn-around for that will be years rather
than weeks or months.

User B either is, or knows the developer of an open source alternative. User
B wants the same feature and speaks to said developer. 2 days later the
feature is in the latest build of the open source tool and available to
everyone who wants it.

With Flex Builder 2 being built on the Eclipse platform, there is enormous
scope for open source developers to contribute very low level functionality
to extend and enhance the product.

You really do get the best of both worlds and I, for one, applaud Macromedia
for choosing it.

Spike

On 11/1/05, Nick Weekes [EMAIL PROTECTED] wrote:

 I don't understand why you would go for a (possibly) less functional tool
 than FlexBuilder 2 just because its open source?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Martin
 Wood
 Sent: 01 November 2005 10:19
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Debugging wih FAMES?



 JesterXL wrote:
  I used to use FAME because MTASC is extremely fast at compiling
  compared to Flash.
 
  However, MTASC is apparently not going to support AS3, thus the whole
  point of using FAME, for me anyway, is dead. While Flashout has some
  nicely formatted traces, and ASDT has some neat templates, it doesn't
  compare to FlexBuilder 2.
 
  So, yeah, I'd dump FAME and go to FlexBuilder 2.

 I wouldnt get too concerned yet. Flex 2 is still alpha, theres plenty of
 time for AS3 related things to happen in the open source world.

 I know Flex2 is all very exciting at the moment, but i'll never give up my
 open source. NEVER.

 :)


 martin
 ___
 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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Newbie AS3 question

2005-11-01 Thread Spike
Yes indeed!

You can usually find an alternative approach to solving the problem than
using the singleton pattern, but it is distinctly different to using static
methods.

Glad to hear it works the way it does in other languages at least.

Spike

On 10/29/05, A.Cicak [EMAIL PROTECTED] wrote:

 Problem with JasterXL's class is initialization. For example if you had to
 initialize something in that class you should make static method called
 InitCurrencyFormatter(). But when to call it? If other classes are using
 CurrencyFormatter than you should ensure to call InitCurrencyFormatter()
 before construction of any class which uses it is called. But what if
 InitCurrencyFormatter also depends on some other class which is made just
 with static methods (like JasterXL's). In that case that other class would
 have to have InitOtherClass() and it also should be called before other
 objects are constructed and before InitCurrencyFormatter. Now imagine 20
 classes like that and thousands of lines of code depending on them, it
 would
 be almost impossible to keep track when to initialize any of these
 classes,
 and it would be very error prone (you change order of execution and you
 start using uninitialized objects). If you make these classes singletons
 you
 don't have that problem, because when you call getInstance() if object was
 not initialized getInstance will call new and that will call its
 constructor
 ( which now replaces InitCurrencyFormatter, InitOtherClass, etc..) and it
 will ensure that all objects are initialized at time of their use, and you
 do not have to worry about order of execution.


 Spike [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 Sure,

 Here's a slightly more complete implementation of that last example:


 public class CurrencyFormatter {

 private static formatter:CurrencyFormatter;

 public function getInstance():CurrencyFormatter {
 // use ExternalInterface or IP lookup or whatever to determine locale
 if (locale == UK) {
 formatter = new UKCurrencyFormatter();
 } else {
 formatter = new USCurrencyFormatter();
 }
 return formatter;
 }

 class USCurrencyFormatter extends CurrencyFormatter {

 public formatValue(val:Number) {
 // very simplistic formatting
 return $ + String(val);
 }
 }

 class UKCurrencyFormatter extends CurrencyFormatter {

 public formatValue(val:Number) {
 // very simplistic formatting
 return £ + String(val);
 }
 }

 }

 Let me know if that explains it a bit better.

 Spike


 On 10/29/05, JesterXL [EMAIL PROTECTED] wrote:
 
  Can you elaborate? Why wouldn't the static class work in that case?
 
  - Original Message -
  From: Spike [EMAIL PROTECTED]
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Sent: Friday, October 28, 2005 9:54 PM
  Subject: Re: [Flashcoders] Newbie AS3 question
 
 
  ok,
 
  That's just a static class.
 
  Like I said, there's a subtle but important difference between singleton
  and
  a static class.
 
  Here's another example.
 
  You have a requirement to provide a currency formatter.
 
  One way to do this is to create a singleton that returns a different
  currency formatter depending on which locale you are in.
 
  So in the class you would have something like this (Omitting method
  declarations for simplicty):
 
  public class CurrencyFormatter {
 
  class USCurrencyFormatter extends CurrencyFormatter {
 
  }
 
 
  class UKCurrencyFormatter extends CurrencyFormatter {
 
  }
  }
 
  Now if I call CurrencyFormatter.getInstance() it gives me the correct
  formatter for my locale.
 
  With your static class approach you have to check in every method what
 the
  locale is and handle it accordingly. That's fine for one or two locales,
  but
  if you want to handle 20, it gets pretty ugly.
 
  You can solve the problem in other ways of course, but it does
 demonstrate
  the difference between static classes and the singleton pattern. The
  singleton pattern offers you a lot more possibilities.
 
  Spike
 
  On 10/29/05, JesterXL [EMAIL PROTECTED] wrote:
  
   To clarify:
  
  
   class ServerConnection
   {
   private static var url;
   private static var port;
   private static var socket;
  
   public static function connect(p_url, p_port)
   {
   url = p_url;
   port = p_port;
   socket = new Socket();
   socket.connect(url, port);
   }
  
   public static function getData()
   {
   // Simple function that gets something from the server.
   }
   }
  
   Then to use:
  
   ServerConnection.connect(myURL, myPort);
  
   - Original Message -
   From: JesterXL [EMAIL PROTECTED]
   To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
   Sent: Friday, October 28, 2005 9:25 PM
   Subject: Re: [Flashcoders] Newbie AS3 question
  
  
   Naw, I don't know the exact way Singleton is implemented, hence my
 long
   battle with finding clarification. It could of been solved in 10
 seconds
   over a beer, but email sux.
  
   I figured Math.abs was the Singleton pattern, and ARP, me, Sho

Re: [Flashcoders] Bizare...AS3.0 packages have methods?

2005-10-31 Thread Spike
It's a method of the package.

When you create an AS 3 class you can put methods inside the package {}
block, but outside any class definitions.

I'm not sure why it works that way, but that's the way it works.

Spike

On 10/31/05, Martin Wood [EMAIL PROTECTED] wrote:

 i think its just a function declared with package scope.


 Mark Lapasa wrote:
  flash.util.trace()
 
 
 
  Is that a method of a package? Or a compiler directive?
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Free and open source software

2005-10-30 Thread Spike
Here's a page listing all sorts of open source software. You might find some
stuff there:

http://en.wikipedia.org/wiki/List_of_open-source_software_packages

Spike

On 10/29/05, Liam Morley [EMAIL PROTECTED] wrote:

 Flash: http://flasm.sourceforge.net/

 On 10/29/05, Ian Thomas [EMAIL PROTECTED] wrote:
 
  Sound - Audacity: *http://audacity.sourceforge.net/*
 
  On 10/28/05, Patrick Matte [EMAIL PROTECTED] wrote:
  
   Hi, I'm rounding up a list of free and open source software.
  
   For flash, I have found MTASC and swfmil.
  
   Does anyboby know of any other free software for editing sound, video,
   bitmap and vector images?
  
  ___
  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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Newbie AS3 question

2005-10-29 Thread Spike
You're welcome!

This has been an interesting thread and I've learned a bit more about
ActionScript in the process :-)

Spike

On 10/29/05, JesterXL [EMAIL PROTECTED] wrote:

 That makes perfect sense and is a good reason.

 So, from this 2nd conversation, I've gleaned something else to add to the
 list:
 - getInstance() is a unspoken standard that implies the class is a
 Singleton
 used in other languages other than ActionScript
 - getInstance() treats a class as a true class without static properties,
 thus making it easier to go from Singleton to a true class without having
 to
 change a bunch of code, because all it really does is make 1, and only 1,
 instance of itself.

 The thought of changing multiple lines of code to go from static to non
 would really suck; that drives the point home for me. Thanks for taking
 the
 time to explain it Spike!

 - Original Message -
 From: Spike [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Saturday, October 29, 2005 12:05 PM
 Subject: Re: [Flashcoders] Newbie AS3 question


 It's not necessarily any better from an implementation point of view. You
 can often do the same thing with a static class as you can with a
 singleton.

 The big benefit comes if you need to change from singleton/static to
 different instances for each invocation.

 If you have followed the static class approach you have static method
 calls
 all through your code that you will need to change if the class now needs
 to
 be non-static.

 If you have followed the singleton approach, you only need to change the
 line of code that retrieves the instance inside the singleton.

 That's a pretty big benefit IMO.

 To get back to where we started all this, the original statement that
 brought all this up was your suggestion that

 Foo.someMethod()

 was identical to

 Foo.getInstance().someMethod()

 Whether one is better than another is something that can be debated to
 death, and often is on Java mailing lists, but hopefully you'll at least
 agree that they are indeed doing different things.

 Spike

 On 10/29/05, JesterXL [EMAIL PROTECTED] wrote:
 
  I would have 20 static classes, not 20 if/then/switch statements. You'd
  have that same if/then statement in the getInstance() function, though,
 to
  know which formatter to return.
 
  Again, I'm having a hard time seeing why getInstance is more appopriate
  than
  just making static classes, and how this applys to the Singleton
 pattern.
 
 
 
 ___
 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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Spike
Good lord!

Why do you say that?

It's an extra 2 lines of code and it allows you to reparent any of the
children of any of the movie clipse.

I'd be more inclined to say it's awesome!

Spike

On 10/28/05, Andreas Rønning [EMAIL PROTECTED] wrote:

 Shaw, Matt wrote:

 Assuming the Game class is your root/stage class:
 
 
 Public class Game extends MovieClip {
 public function Game(){
  var gameworld:MovieClip = new MovieClip(); //new GameWorld()?
  this.addChild( gameworld );
 
  var game_bg:MovieClip = new MovieClip();
  gameworld.addChild( game_bg );
 }
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:
 [EMAIL PROTECTED] On Behalf Of Andreas Rønning
 Sent: Friday, October 28, 2005 1:08 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] Newbie AS3 question
 
 AS3 noob question ahoy!
 
 I'm reading the AS3 reference trying to get accustomed to the idea, but
 some things (though they look better) i don't really get right away :) Hence
 my feeling of incredible stupidity.
 
 I realise the AS3 in the reference is Flex-related, but in Flash IDE
 terms, how would i do something like this in AS3:
 
 var baseClip = _root.createEmptyMovieClip(gameworld,1);
 var backGround = baseClip.createEmptyMovieClip(game_bg,1);
 
 I get how much more practical myClip = new MovieClip(); looks, but i
 don't get how i connect a clip created this way with the traditional clip
 hierarchy. Is that out the window as well?
 The reference describes |DisplayObjectContainer.addChild(), but i'm
 guessing this doesnt really count for how it'll work in the Flash IDE?
 
 Any helpful hints at what the future holds? :)
 |
 - Andreas
 ___
 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
 
 
  That's horrifying.

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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Why Flex?

2005-10-28 Thread Spike
*snip*
i like flex and where it can be used but i'd like to
see the features in flex syncronized in/with flash authoring. that would
be killer.
*snip*

I don't see any reason why that wouldn't be good for everybody.

Personally I have always found Flash authoring a very frustrating tool to
work with, but I'm a very code centric type of person. The only time I want
to see what my app looks like is when I test it. I find any time I use a
graphical tool to build apps I end up sitting there for far too long trying
to debug something that was created visually, which I don't completely
understand, and which I probably can't control down to the finest detail.

Flex 1.5 and Flex Builder 2 give me the option of using that as my workflow.

I'm not saying Flash authoring isn't a good tool. It obviously is for a very
large number of people, but without Flex and other options for building apps
in a code centric way I doubt if I would be working with flash at all.

It's all about choice :-)

Spike

On 10/28/05, Judah Frangipane [EMAIL PROTECTED] wrote:

 right on. that's what i'm talking about. flash was about 80%-90% there
 for developers and then they forked the sucker. are they focus on
 developers in the next version of flash authoring since 8 was a designer
 oriented release? i like flex and where it can be used but i'd like to
 see the features in flex syncronized in/with flash authoring. that would
 be killer.

 ryanm wrote:

  One might ask, however, why, instead of creating a whole new
  development platform, they didn't just release better components that
  are easier to skin, better CSS support, better html support, and just
  make Flash a whole lot more capable and eay to develop for. Sure,
  skinning is easy in Flex, but why not make skinning components easy in
  Flash, rather than making skinning is easier in Flex a marketing
  campaign for Flex?
 
  ryanm
  ___
  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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Free and open source software

2005-10-28 Thread Spike
Bitmap - Gimp
Vector - Inkscape

There are some for sound and video, but I don't know them off the top of my
head.

Spike

On 10/28/05, Patrick Matte [EMAIL PROTECTED] wrote:

 Hi, I'm rounding up a list of free and open source software.

 For flash, I have found MTASC and swfmil.

 Does anyboby know of any other free software for editing sound, video,
 bitmap and vector images?


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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Spike
*snip*
AS3 and Flex both hammer the point that this really has little use other
than confirming for those programmers who are not familiar with
ActionScript. Same goes for the Singleton.method vs.
Singleton.getInstance().method argument; the latter is for those programmers
who don't know ActionScript well.
*snip*

Maybe there's something I don't understand, or maybe you typed it wrong, but
in every other OO language I've dealt with there's a significant but subtle
difference between

Singleton.getInstance().method()

and

Singleton.method()

The former is calling an instance method and the latter is calling a static
method.

Instance methods have access to instance data that is persisted as long as
the instance exists, static methods have access only to static data and that
data passed in to the method call.

Is this not true in ActionScript?

Spike

On 10/28/05, JesterXL [EMAIL PROTECTED] wrote:

 I'm the opposite end of the spectrum. This:

 class Box extends UIObject
 {
 function doStuff()
 {
 move(x + 10, y + 10);
 setSize(width + 100, height + 100);
 visible = !visible;
 }
 }

 looks more readable to me than:

 class Box extends UIObject
 {
 function doStuff()
 {
 this.move(this.x + 10, this.y + 10);
 this.setSize(this.width + 100, this.height + 100);
 this.visible = !this.visible;
 }
 }

 To each their own. I can see it justified in extending intrinsic classes,
 as the first parameter to setInterval, and the first parameter in
 Delegate.

 AS3 and Flex both hammer the point that this really has little use other
 than confirming for those programmers who are not familiar with
 ActionScript. Same goes for the Singleton.method vs.
 Singleton.getInstance().method argument; the latter is for those
 programmers
 who don't know ActionScript well.

 If you do it every day, there is no point.

 - Original Message -
 From: Muzak [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Friday, October 28, 2005 5:37 PM
 Subject: Re: [Flashcoders] Newbie AS3 question


 Well, to me it's the other way around.
 Code that doesn't use proper references looks messy to me.

 Whe I'm lazy or in a hurry, I do skip them, but I usually find myself
 adding
 them afterwards anyway.

 So, I'm with ryanm on this one ;-)

 regards,
 Muzak

 - Original Message -
 From: Martin Wood [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Friday, October 28, 2005 11:03 PM
 Subject: Re: [Flashcoders] Newbie AS3 question


 
 
  ryanm wrote:
  What I don't get is why it needs this.addChild instead of just
  addChild. I've been sick of the keyword this for a long time
  and have since avoided it in AS2.
 
  Any reason that it needs to be back in for AS3?
 
  Maybe because it's one of the most useful scope references ever
  invented?
 
  The fundamental concept that you seem to miss is that addChild is
  meaningless by itself, it is a method of an object (in
  proper OOP development), and if you just say addChild, who is adding
  the child?
 
  the context is the current class. Occasionally 'this' is useful if you
  happen to name a method parameter or local variable the
  same as a member variable and need to distinguish the two.
 
  But, I dont agree that its bad form to leave it out, nor is it any more
  difficult to maintain.
 
  in my opinion putting 'this' in everywhere to me just makes things
 harder
  to read.
 
  thanks,
 
  Martin


 ___
 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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Newbie AS3 question

2005-10-28 Thread Spike
Passing a reference to the current object is not the only place where using
the this prefix is useful.

If you come along maintain someone's code 6 months from now and you find a
complex method of 200 lines of so, it's useful to have the this prefix to
distinguish between variables that are local to the function and those that
are available to the instance.

Using the this prefix in your code is more likely to make you look like an
obsessively meticulious programmer than a newbie in my experience.

If the IDE you use automatically highlights the instance variables then
there isn't much point in using the this prefix that way, but it's certainly
a valid excuse for doing it.

Spike

On 10/28/05, A.Cicak [EMAIL PROTECTED] wrote:

 Well, I dont agree, this keyword refers to current class, so its only
 more
 typing to include it, and making code less
 readable. Only reason keyword this exists is if you want to pass
 reference
 to current object somewhere, in which case
 you must use this. To me using this in your code makes you look like
 wannabe-programmer, :) But I gues its matter of taste. btw, old VB does
 not
 have this keyword, and if you were reffering to VB(.NET), it is more OOP
 and more complex than AS3, so I gues programmers in VB.NET http://VB.NET(if 
 there are
 some, since C# is there) are not wannabe-programmers :)


 ryanm [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  What I don't get is why it needs this.addChild instead of just
  addChild. I've been sick of the keyword this for a long time and have
  since avoided it in AS2.
 
  Any reason that it needs to be back in for AS3?
 
  Maybe because it's one of the most useful scope references ever
  invented?
 
  The fundamental concept that you seem to miss is that addChild is
  meaningless by itself, it is a method of an object (in proper OOP
  development), and if you just say addChild, who is adding the child?
 You
  need a reference. You could do it like this if you like:
 
  class Game extends MovieClip {
  var world:MovieClip;
  var bg:MovieClip;
  function Game(){
  var GameReference:Game = this;
  world = new MovieClip();
 
  GameReference.addChild( world );
 
  bg = new MovieClip();
  world.addChild( bg );
  }
  }
 
  The point is, you shouldn't use functions that aren't attached to
  objects, it's bad form, and it's thoroughlly confusing to people who
 later
  have to maintain your code. Besides, it makes you look like one of those
  wannabe-programmer VB guys. ;-)
 
  ryanm
  ___
  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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Newbie AS3 question

2005-10-28 Thread Spike
Forgot to mention, the other common place you'll see it is in constructors
or anywhere else you find yourself with method arguments that match the name
of an instance variable.

public function Person(fname:String,lname:String) {
this.fame = fname;
this.lname = lname;
}

Is it good practice? Probably not.

is it commonly seen in code? Definitely.

Spike

On 10/28/05, Spike [EMAIL PROTECTED] wrote:

 Passing a reference to the current object is not the only place where
 using the this prefix is useful.

 If you come along maintain someone's code 6 months from now and you find a
 complex method of 200 lines of so, it's useful to have the this prefix to
 distinguish between variables that are local to the function and those that
 are available to the instance.

 Using the this prefix in your code is more likely to make you look like an
 obsessively meticulious programmer than a newbie in my experience.

 If the IDE you use automatically highlights the instance variables then
 there isn't much point in using the this prefix that way, but it's certainly
 a valid excuse for doing it.

 Spike

 On 10/28/05, A.Cicak [EMAIL PROTECTED] wrote:
 
  Well, I dont agree, this keyword refers to current class, so its only
  more
  typing to include it, and making code less
  readable. Only reason keyword this exists is if you want to pass
  reference
  to current object somewhere, in which case
  you must use this. To me using this in your code makes you look like
  wannabe-programmer, :) But I gues its matter of taste. btw, old VB does
  not
  have this keyword, and if you were reffering to VB(.NET), it is more
  OOP
  and more complex than AS3, so I gues programmers in 
  VB.NEThttp://VB.NET(if there are
  some, since C# is there) are not wannabe-programmers :)
 
 
  ryanm [EMAIL PROTECTED] wrote in message
  news:[EMAIL PROTECTED]
   What I don't get is why it needs this.addChild  instead of just
   addChild. I've been sick of the keyword this for a long time and
  have
   since avoided it in AS2.
  
   Any reason that it needs to be back in for AS3?
  
   Maybe because it's one of the most useful scope references ever
   invented?
  
   The fundamental concept that you seem to miss is that addChild is
   meaningless by itself, it is a method of an object (in proper OOP
   development), and if you just say addChild, who is adding the child?
  You
   need a reference. You could do it like this if you like:
  
   class Game extends MovieClip {
   var world:MovieClip;
   var bg:MovieClip;
   function Game(){
   var GameReference:Game = this;
   world = new MovieClip();
  
   GameReference.addChild( world );
  
   bg = new MovieClip();
   world.addChild( bg );
   }
   }
  
   The point is, you shouldn't use functions that aren't attached to
   objects, it's bad form, and it's thoroughlly confusing to people who
  later
   have to maintain your code. Besides, it makes you look like one of
  those
   wannabe-programmer VB guys. ;-)
  
   ryanm
   ___
   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
 



 --
 
 Stephen Milligan
 Do you do the Badger?
 http://www.yellowbadger.com

 Do you cfeclipse? http://www.cfeclipse.org




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash vs Flex

2005-10-27 Thread Spike
FWIW,

Quite a few people I know have studiously avoided Flash development for no
other reason than that they have found it a very frustrating experience.
That was mostly down to a combination of the development experience when
using the Flash authoring tool and the fact that ActionScript programming
can sometimes seem like a bit of a black art if you come to it from other
languages.

Using MTASC instead of Flash authoring improved this a bit, but with the
increased power and expressiveness of ActionScript 3, they are now starting
to see Flash as a real option for business app development.

When compared to the size of the existing flash development community, I'm
not sure how big that group is, from what I've seen it could be quite
significant.

Spike

On 10/27/05, Jon Bradley [EMAIL PROTECTED] wrote:

 On Oct 27, 2005, at 10:14 AM, Mike Britton wrote:

  That makes sense Robert.
 
  In the same line of thinking, as the Flex stuff evolves, I see the
  Flash IDE
  turning into a sort of Photoshop for Flash where graphical assets are
  designed/maintained, and FlexBuilder 2 (eclipse) becoming the
  programming
  environment.

 I don't think that's likely to happen at all. I suspect a vast majority
 of users will continue to use the IDE.

 This is just a prediction on my part: the number of people who use the
 IDE or a combination of the IDE and a text editor will probably
 outnumber the FlexBuilder/Eclipse platform users 3:1, or even much more
 (10:1?).

  So FlexBuilder 2 will be for development, period, rapid or
  otherwise, and Flash or the Flash IDE will be a designer's tool.
  Both
  sit on top of the Flash Platform and are the foundation for
  implementing the
  technology.

 Still doubt that a lot. FlexBuilder 2 will probably used for
 development of _enterprise_applications_. I don't think Macromedia will
 be able to push it's use too much further outside those limits.

 Don't get me wrong, I love the metaphor and what it could possibly do
 for my Flash development. But, the random project that comes along
 which could benefit from that environment doesn't nearly justify the
 resources and time I'd need to devote to really knowing the platform.

 In the Flash community, we've got designers, designer/developers
 (design with some programming) and serious developers (strictly
 programming). I'd say the former two in that list far outnumber the
 latter.

 Jon

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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash vs Flex

2005-10-27 Thread Spike
It's probably worth pointing out that you can create an ActionScript 3
project in Flex Builder that never goes anywhere near the Flex Framework.

I have quite a few of those on my machine for a number of things that I
would previously done in the Flash authoring tool.

I have spent a good portion of the last 2 years writing plugins for Eclipse
though, so it is a pretty natural way for me to work.

Spike

On 10/27/05, Michael Bedar [EMAIL PROTECTED] wrote:

 Personally I have never been tempted to work in Eclipse - I like the
 IDE and work well in it.. but I have to admit FlexBuilder2 is
 tempting me a bit. In most of my projects these days there is no need
 for an FLA, so I will definitely be learning Flex enough to at least
 make an educated decision between the two environments... or to use both




 On Oct 27, 2005, at 11:55 AM, Jon Bradley wrote:

  On Oct 27, 2005, at 10:14 AM, Mike Britton wrote:
 
 
  That makes sense Robert.
 
  In the same line of thinking, as the Flex stuff evolves, I see the
  Flash IDE
  turning into a sort of Photoshop for Flash where graphical
  assets are
  designed/maintained, and FlexBuilder 2 (eclipse) becoming the
  programming
  environment.
 
 
  I don't think that's likely to happen at all. I suspect a vast
  majority of users will continue to use the IDE.
 
  This is just a prediction on my part: the number of people who use
  the IDE or a combination of the IDE and a text editor will probably
  outnumber the FlexBuilder/Eclipse platform users 3:1, or even much
  more (10:1?).
 
 
  So FlexBuilder 2 will be for development, period, rapid or
  otherwise, and Flash or the Flash IDE will be a designer's
  tool. Both
  sit on top of the Flash Platform and are the foundation for
  implementing the
  technology.
 
 
  Still doubt that a lot. FlexBuilder 2 will probably used for
  development of _enterprise_applications_. I don't think Macromedia
  will be able to push it's use too much further outside those limits.
 
  Don't get me wrong, I love the metaphor and what it could possibly
  do for my Flash development. But, the random project that comes
  along which could benefit from that environment doesn't nearly
  justify the resources and time I'd need to devote to really knowing
  the platform.
 
  In the Flash community, we've got designers, designer/developers
  (design with some programming) and serious developers (strictly
  programming). I'd say the former two in that list far outnumber the
  latter.
 
  Jon
 
  ___
  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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash vs Flex

2005-10-27 Thread Spike
As someone who has never really spent much time in the Flash authoring tool,
could you explain the exact features that would be really useful in a Flex
Builder library plugin?

If it looks feasible I might attempt it.

Spike

On 10/27/05, Mike Britton [EMAIL PROTECTED] wrote:

 Rather, In this scenario, Flex is to Flash what Dreamweaver is to
 Photoshop.

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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash vs Flex

2005-10-27 Thread Spike
On 10/27/05, Mike Britton [EMAIL PROTECTED] wrote:

 1. Map symbols to classes via some kind of package explorer wizard


Not totally sure what you mean by that...

My understanding is that everything in AS 3/Flash 8.5 is a class and that
symbols are no more.

Like I said, I don't do much in the flash authoring tool, so I could be way
off there.

2. Import existing Libraries from Flash and maintain symbols' package paths


Existing libraries in what format?

swc, fla, graphics in a directory?

3. Ability to export so you can import into another FlexBuilder installation


I don't think this will be a problem.

There may be issues with components/EULA.


yep, will need to look into that

Those are the biggies. I'm sure others will have more.


Thanks

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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash vs Flex

2005-10-27 Thread Spike
On 10/27/05, JesterXL [EMAIL PROTECTED] wrote:

 If you right click on an image in Flash' library, you can edit it in
 Fireworks. When done, the image asset in Flash's library is updated.


This should be possible.

If Flex could do this, this is the first step in keeping you in the IDE,
 but bringing in outside resources only when necessarey.

 Even better would be the ability to edit SWC's assets. Since they aren't
 always components, and could just be single classes, or even just asset
 holders, it'd be nice to have Flash launch so you could edit the graphics.
 I know Flash can do this via OLE from Word, so similiar scenario. Edit my
 SWC graphics, and update the SWC.


A SWC is just a zip file with a different file extension, so I'd say this
should also be possible. A little more tricky, but definitely possible

Finally, give me a library panel in Eclipse; same thing as the Project Panel
 currently, only shows thumbnail previews of the images upon rollover.


You mean images in a .swc?

Going further, shows previews of states of different components and you can
 edit the graphics of those states.


Hmmm, that might be a bit more tricky, but could definitely investigate it.

I've told you all of this before, hahah!


You have?

When?

- Original Message -
 From: Spike [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Thursday, October 27, 2005 1:15 PM
 Subject: Re: [Flashcoders] Flash vs Flex


 As someone who has never really spent much time in the Flash authoring
 tool,
 could you explain the exact features that would be really useful in a Flex
 Builder library plugin?

 If it looks feasible I might attempt it.

 Spike

 On 10/27/05, Mike Britton [EMAIL PROTECTED] wrote:
 
  Rather, In this scenario, Flex is to Flash what Dreamweaver is to
  Photoshop.
 
  Mike
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 
 Stephen Milligan
 Do you do the Badger?
 http://www.yellowbadger.com

 Do you cfeclipse? http://www.cfeclipse.org
 ___
 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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash vs Flex

2005-10-27 Thread Spike
Hmm

So a library is imported, and lives only in the Flash authoring tool?

The only way to export library items is to add them to a .fla and export
that as a .swf?

The items must be stored somewhere, so maybe I can dig around and figure
that out.

Spike

On 10/27/05, Mike Britton [EMAIL PROTECTED] wrote:

  ok, in what format is the library saved from the Flash IDE?

 Right now from what I know it isn't possible to save a Library from the
 IDE,
 but if I were to venture a guess I'd say this would be possible using
 JSFL.
 If so, a resulting XML and SWC would make sense.

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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flash vs Flex

2005-10-27 Thread Spike
I do usually chat to Macromedia about this sort of stuff before I implement
it.

Often they can't give me a definitive answer on whether it will be
implemented or not because it hasn't been decided yet. In that case I
usually hold off until I'm fairly sure they won't.

No point in me doing work they're already on top of, but it does help if I
understand what people might want before asking them if it's likely to
happen.

Spike

On 10/27/05, Judah Frangipane [EMAIL PROTECTED] wrote:

 I'm all for making plugins and updates to FB but if this is a huge
 upgrade you might want to submit your feature requests to
 labs.macromedia.com http://labs.macromedia.com first. They released FB2
 as alpha so that the Flash
 community could talk about what needs to be added. I'm not sure how open
 MM will be about this but you can ask them if they have this feature in
 the plan IMHO.

 Judah

 Spike wrote:

 On 10/27/05, Mike Britton [EMAIL PROTECTED] wrote:
 
 
 Not totally sure what you mean by that...
 
 
 Map symbols to classes via some kind of package explorer wizard: if you
 create a movieclip in Flash, it goes into the Flash Library as a symbol.
 When you right-click this new symbol in the Library and choose
 'properties'
 you'll see a wizard in which you can associate the symbol with an
 actionscript class. It would be nice to have the same capability in this
 hypothetical Library plugin for Eclipse, only you can surf to the class
 and
 choose it instead of having to write 'com.arp.blah.blah...'.
 
 
 
 
 
 ok, I think I see what you mean now.
 
 I'll wait and see what happens when Flash authoring gets update for AS 3
 and
 Flash 8.5. My understanding is that everything will be a class and that
 symbols won't really exist any more.
 
 I can look at picking apart .swc files and seeing how much of that I can
 display. I did that already for the Flex 1.5 framework, so I know quite a
 bit about what's going on in there, it's just a question of how much it's
 changed since then.
 
 
 
 2. Import existing Libraries from Flash and maintain symbols' package
 paths
 
 
 Existing libraries in what format?
 
 
 A designer creates a new Flash file and creates the visual interface.
 He/she
 arranges his native Flash IDE Library, naming symbols and such. A
 developer
 then goes into Eclipse and from this hypothetical plugin can import that
 native Flash Library.
 
 
 
 
 ok, in what format is the library saved from the Flash IDE?
 
 .fla, .swf or .swc
 
 .swc is by far the easiest to deal with, but that doesn't help if there
 are
 .swf files inside.
 
 It will be possible to run an instance of the flash player inside the
 library plugin, so that would allow display of .swf assets.
 
 .fla files would be the trickiest of the lot and I'm inclined to say that
 it's probably better not to bother since they need to be turned into
 either
 a .swf or .swc to use them in a project anyhow.
 
 
 
 There may be issues with components/EULA.
 
 
 yep, will need to look into that
 
 
 This is keeping people from sharing source and that is bad. Can't they
 just
 open source the components? Come on! (Bangs fist on keyboard.)
 
 
 
 
 heheheh
 
 Yeah, dammit!
 
 and while they're at it, I'll have a copy of the flash paper source so I
 can
 sort out this text table problem I'm struggling with.
 
 Mike
 
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
 
 
 --
 
 Stephen Milligan
 Do you do the Badger?
 http://www.yellowbadger.com
 
 Do you cfeclipse? http://www.cfeclipse.org
 ___
 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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3.0 only projects + flex framework

2005-10-26 Thread Spike
I haven't tried it with Flex 2 files, but I have managed to load a
FlashPaper swf. It didn't work perfectly, but I could view the file and use
some of the controls like zooming.

Spike

On 10/26/05, Tom Versweyveld [EMAIL PROTECTED] wrote:

 And load a Flex 2 swf into an as3/8.5 swf with the new Loader class?
 When I try this the Flex2 swf doesn't even initialize...?!

 tom

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Spike
 Sent: woensdag 26 oktober 2005 10:38
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] AS3.0 only projects + flex framework

 You can load a Flex 1.5 swf into a Flex 2 project, but you can't
 interact
 with it unless you use the LocalConnection approach.

 Not sure if you can do that right now, but I intend to find out.

 Spike

 On 10/26/05, Tom Versweyveld [EMAIL PROTECTED] wrote:
 
  Does this mean there is no way of loading a Flex swf into an AS3
  project?
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf Of
 JesterXL
  Sent: maandag 24 oktober 2005 23:00
  To: Flashcoders mailing list
  Subject: Re: [Flashcoders] AS3.0 only projects + flex framework
 
  It's black and white; either your're ActionScript only, or you're
 using
  the
  components. If you use Application.mxml as your root, then you are
  using
  the Flex framework, otherwise, for the time being, your main AS file
  extends
  MovieClip.
 
  - Original Message -
  From: Benjamin Dobler [EMAIL PROTECTED]
  To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
  Sent: Monday, October 24, 2005 4:20 PM
  Subject: AW: [Flashcoders] AS3.0 only projects + flex framework
 
 
 
   Keep in mind AS only projects don't use the Flex framework, so
   mx.controls.Button won't work; you'd have to utilize the Flex
  framework.
 
  Thanks Jesse that`s what i wanted to get sure of. Is there not even a
  workaround to use the framework in as only projects?
 
  ___
  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
 



 --
 
 Stephen Milligan
 Do you do the Badger?
 http://www.yellowbadger.com

 Do you cfeclipse? http://www.cfeclipse.org
 ___
 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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] while(true) and infinite loop... :(

2005-10-26 Thread Spike
How about using the break keyword?


***
package {
import flash.display.Sprite;
import flash.util.trace;

public class LoopTest extends Sprite {

public function LoopTest() {
var i:uint = 0;
for(;;) {
i++;
if (i  20) {
break;
}
}
trace(Loop exited.);
}

}
}
*



On 10/26/05, Morrisy Van [EMAIL PROTECTED] wrote:


 hi list,

 been doing some flex2 AS3 socket programming recently,
 just wondering could i use some code like this (as we
 do in java):

 [code]
 String line;
 for(;;) {
 line = in.readLine( );
 if (line == null) throw new IOException(Unexpected
 EOF);
 if (line.equals(.)) break;
 msgs.add(line);
 }
 [/code]

 or
 [code]
 while(true){
 //do some socket operation
 }
 [/code]

 whenever I ran code like this, flash player went into
 infinite loop and crashes.

 so is there any way to wait until the socket finishes
 it's job and the code went on ?

 btw, I know there are onSocketData and onProgress for
 socket, but by using them i would have to split my
 code into chunks and it's gonna be hard to maintain.

 thanks.




 __
 Yahoo! Mail - PC Magazine Editors' Choice 2005
 http://mail.yahoo.com
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: AW: [Flashcoders] AS3.0 only projects + flex framework

2005-10-25 Thread Spike
When you say Nothing really happens, what exactly does happen?

Does the browser open the file?

Do you get an error?

Spike

On 10/25/05, Weyert de Boer [EMAIL PROTECTED] wrote:

 Hi Spike,

 Specifically, you need to launch the file by clicking on the debug button
 in
 Eclipse rather than just browsing to the file.
 
 
 Yes, after following the tutorial for AS only project, I have set a
 breakpoint on a trace() and then hit the debug button. Nothing really
 happens neither can I find a trace into/step over feature.

 If so, how did you install the plugin?
 
 
 As mentioned in the readme file via Find and Install update and a
 Archived site etc.

 Yours,
 Weyert de Boer
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: AW: [Flashcoders] AS3.0 only projects + flex framework

2005-10-25 Thread Spike
Can you post the code for the file you are trying to debug?

It sounds like the debugger is probably running, but the line where you have
set the breakpoint isn't being executed.

Spike

On 10/25/05, Weyert de Boer [EMAIL PROTECTED] wrote:

 Spike wrote:

 When you say Nothing really happens, what exactly does happen?
 
 Does the browser open the file?
 
 
 Yes, the browser opens. After that it keeps trying to accesss
 www.macromedia.com http://www.macromedia.com in the browser (Firefox) in
 the status bar. Earlier I
 got a window asking where the debugger is. Not anymore. I really would
 like to have debugger support, that way I can keep a track of my trace
 message etc.

 Do you get an error?
 
 
 Nope.
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] LocalConnection in Flex 2

2005-10-25 Thread Spike
That's kinda funny,

I copied mine directly from the docs for the LocalConnection class. The only
bits I changed were to display a text field rather than using trace to
output info.

Where in the docs did you find the example you posted?

Spike

On 10/25/05, Muzak [EMAIL PROTECTED] wrote:

 LOL, I didn't do a thing.. just copy/paste from the docs ;-)
 Well, I did test it though..

 Muzak

 - Original Message -
 From: Spike [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: Wednesday, October 26, 2005 12:08 AM
 Subject: Re: [Flashcoders] LocalConnection in Flex 2


 Yep,

 That works here.

 You've done a few things differently to what I had. That's why I
 originally
 thought it was AS 2.

 I'll poke around and see if I can isolate what was causing it to fail.

 Spike



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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] LocalConnection in Flex 2

2005-10-25 Thread Spike
Never mind,

Found the code for your example under Communicating with the Browser in
the Developing Flex Apps part of the docs.

Spike

On 10/25/05, Spike [EMAIL PROTECTED] wrote:

 That's kinda funny,

 I copied mine directly from the docs for the LocalConnection class. The
 only bits I changed were to display a text field rather than using trace to
 output info.

 Where in the docs did you find the example you posted?

 Spike

 On 10/25/05, Muzak [EMAIL PROTECTED] wrote:
 
  LOL, I didn't do a thing.. just copy/paste from the docs ;-)
  Well, I did test it though..
 
  Muzak
 
  - Original Message -
  From: Spike [EMAIL PROTECTED] 
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Sent: Wednesday, October 26, 2005 12:08 AM
  Subject: Re: [Flashcoders] LocalConnection in Flex 2
 
 
  Yep,
 
  That works here.
 
  You've done a few things differently to what I had. That's why I
  originally
  thought it was AS 2.
 
  I'll poke around and see if I can isolate what was causing it to fail.
 
  Spike
 
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 
 Stephen Milligan
 Do you do the Badger?
 http://www.yellowbadger.com

 Do you cfeclipse? http://www.cfeclipse.org




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3.0 only projects + flex framework

2005-10-24 Thread Spike
I have 2 or 3 AS only projects on my machine. None of them are functionally
complete yet, but I can post one or two fo them when they are.

As Michael already said, there are several simple examples in the help files
that can be run as just .as files. No MXML at all.

Spike

On 10/24/05, Benjamin Dobler [EMAIL PROTECTED] wrote:

 Yeah i would like to see those stuff. Be sure i meant AS only projects no
 MXML included.

 Benjamin Dobler
 RIA Development
 web: http://www.richapps.de
 mail: [EMAIL PROTECTED]
  -Ursprüngliche Nachricht-
  Von: [EMAIL PROTECTED] [mailto:flashcoders-
  [EMAIL PROTECTED] Im Auftrag von Michael Klishin
  Gesendet: Montag, 24. Oktober 2005 21:07
  An: Flashcoders mailing list
  Betreff: Re: [Flashcoders] AS3.0 only projects + flex framework
 
  Benjamin Dobler wrote:
   I`m wondering if anyone suceeded in making an as 3.0 only project in
  flex
   builder with the flex framework.
  
   Something as simple as addChild(new mx.controls.Button); would make my
  day!
 
  I did. You wanna see result or what?
  Actually you can use examples from help to check what next generation of
  RIA will be...
 
  --
  Michael Klishin,
  [EMAIL PROTECTED]
 
 
  Non progredi est regredi
  ___
  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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: AW: [Flashcoders] AS3.0 only projects + flex framework

2005-10-24 Thread Spike
In order to see anything with the debugger you usually need to set a
breakpoint somewhere in the code.

Right-click in the left margin of the editor and choose toggle breakpoint.
Make sure it's inside a script block and on a line that has some executable
code on it.

Once you've done that, hit the debug button.

When the player gets to that line in the code it should pause and you should
be able to see all the variables in debug view.

HTH

Spike

On 10/24/05, Weyert de Boer [EMAIL PROTECTED] wrote:

 Benjamin Dobler wrote:

 Yeah i would like to see those stuff. Be sure i meant AS only projects no
 MXML included.
 
 
 Do you also have a working project file that works together with the
 debugger and/or profiler? I am not getting that working, I downloaded
 the Flex Eclipse plugin.. but nothing. Do I need to full download for
 that?

 Cheers,
 Weyert


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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3.0 only projects + flex framework

2005-10-24 Thread Spike
You should be able to use the Flex framework without requiring any MXML.

It might take a bit of detective work, but since all MXML files get turned
into ActionScript files prior to being compiled it should definitely be
possible.

You'll probably get a lot of value out of using mxml.exe at the command
line:

mxmlc.exe -keep ./Hello.mxml

That should cause it to keep the generated .as files when it compiles a
.mxml file.

By a process of elimination you should be able to figure out what you need
to add to your .as projects to get them to work.

Spike

On 10/24/05, Benjamin Dobler [EMAIL PROTECTED] wrote:


  Keep in mind AS only projects don't use the Flex framework, so
  mx.controls.Button won't work; you'd have to utilize the Flex framework.

 Thanks Jesse that`s what i wanted to get sure of. Is there not even a
 workaround to use the framework in as only projects?

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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3.0 only projects + flex framework

2005-10-24 Thread Spike
Hi Bevan,

Not sure exactly what might have been going wrong, but if that's all you
have in your file then it will fail.

This should work though, assuming you have a file called test.xml in the
same folder as the XMLTest.as:

XMLTest.as

package {

import flash.display.Sprite;
import flash.events.Event;
import flash.net.URLRequest;
import flash.net.URLLoader;
import flash.util.trace;

public class XMLTest extends Sprite {

var myXML:XML = new XML();
var XML_URL:String = test.xml;
var myXMLURL:URLRequest = new URLRequest(XML_URL);
var myLoader:URLLoader = new URLLoader(myXMLURL);

public function XMLTest() {

myLoader.addEventListener(complete, xmlLoaded);

}

public function xmlLoaded(evtObj:Event) {
myXML = XML(myLoader.data);
trace(Data loaded.);
}
}
}



Spike

On 10/24/05, Bevan Christians [EMAIL PROTECTED] wrote:

 i have an arb question just on the side about a/s3 dont mean to hijack
 the thread
 but i'm kinda new

 i have this code (saw it under examples in the manual)

 code
 public function xmlLoader()
 {
 var myXML:XML = new XML();
 var XML_URL:String = http://localhost/flextest/data.xml;;
 var myXMLURL:URLRequest = new URLRequest(XML_URL);
 var myLoader:URLLoader = new URLLoader(myXMLURL);
 myLoader.addEventListener(complete, xmlLoaded);

 private function xmlLoaded(evtObj:Event)
 {
 myXML = XML(myLoader.data);
 trace(Data loaded.);
 }

 }
 /code

 but on debug running i get the following error:
 TypeError: Error #2007: Parameter 'listener' must be non-null.
 can anyone point me in the direction i should look
 no spoonfeeding required :/
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] OT: Flash player keeps 'downgrading' itself

2005-10-24 Thread Spike
I do have flash paper and have not seen this happen.

Spike

On 10/24/05, Steve Mathews [EMAIL PROTECTED] wrote:

 I for one do not have FlashPaper.

 On 10/24/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  In the case of computers that are downgrading themselves, how many of
  you have FlashPaper installed. I think Contribute also has a similar
  issue. That is whenever you launch MS Office apps after upgrading to
  Flash 8 it will downgrade you to Flash 7 player. But it is a noticeable
  downgrade in that when you luanch the app, the installer for FlashPaper
  or Contribute launches and tries to fix things up. At least that was
  the case with the Flash 8 beta players. I think they fixed something at
  the end so it shouldn't do that. However there could be a chance that
  that particular fix isn't applied to the 8.5 alpha player. This is only
  speculation of course.
 
  Sincerely
  Mark R. Jonkman
 
  - Original Message -
  From: John Dowdell [EMAIL PROTECTED]
  Date: Monday, October 24, 2005 1:15 pm
  Subject: Re: [Flashcoders] OT: Flash player keeps 'downgrading' itself
 
   Mike Mountain wrote:
My Flash player keeps silently reverting to version 7, I don't
   know if
it's a website I visit forcing a silent 'downgrade', or
   something to do
with my PC (win XP).
  
   I'm not familiar with this symptom. I know you're on a PC, but am
   not
   sure of the browser (IE uses ActiveX Controls; others use Netscape
   Plugins).
  
   To repro it we'd likely have to know the procedure too (visit the
   site 
   install, background ActiveX, auto-update etc), whether there were
   things
   like a system restart after one of the installs, whether it occurs
   on
   some pages or any page, whether there have been any alpha or beta
   versions installed into that browser, how you know which version
   is
   being used, etc.
  
   I don't know of a way that a webpage can force a silent
   downgrade, if
   that's of help.
  
   jd
  
  
  
  
   --
   John Dowdell . Macromedia Developer Support . San Francisco CA USA
   Weblog: http://www.macromedia.com/go/blog_jd
   Aggregator: http://www.macromedia.com/go/weblogs
   Technotes: http://www.macromedia.com/support/
   Spam killed my private email -- public record is best, thanks.
   ___
   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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Undefined and null in Flex2

2005-10-21 Thread Spike
Hi Robert,

Gordon Smith from Macromedia posted this to another list a while ago. I am
reproducing it with his permission. Hopefully it will clarify things a bit:

Note, that this applies only to AS 3, not to AS 2

***
 'undefined' is basically legacy baggage in AS3 that must remain for
ECMA-262 compatibility.

Type Object is the ONLY type that can store the value undefined. It can
also store the value null... it can store anything!

Some but not all other classes can store null:

A derived class like Button can store null but not undefined.

String and Array can store null but not undefined.

Number can store NaN but it can't store undefined or null.

int and uint can't store NaN, undefined, or null; they only store
integers like 23.

Boolean can't store undefined or null; it only stores true and false.

Since Object is the only type that can store undefined, if you try to
set a var of another type to undefined, it will be coerced into
something different. For example, setting a Number to undefined will
coerce it to NaN.

- Gordon
*

Spike


On 10/21/05, Robert Edgar [EMAIL PROTECTED] wrote:

 AFAIK null and undefined are the same thing in F7/8 and can be used
 interchangeably
 Conceptually however we tend to think of 'undefined' and 'defined but has
 a
 null value' as two different things.

 From what I have read in the Flex2 documentation undefined and null are
 no
 longer the same thing and null means 'defined but has a null value'.

 Can someone confirm that is correct.

 Thanks
 Rob


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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Learn AS2 or AS3?

2005-10-21 Thread Spike
I've spent a fair bit of time this week helping people who are trying to get
their Flex 1.5 apps working in Flex 2. Some of those apps worked with only a
tiny tweak here and there and others will pretty much require a total
rewrite. What I'm finding is that there is enough difference between what
you *can* do in AS 2 and what you *must* do in AS 3 that it's probably
better to learn AS 3 and use as much of those principles and syntax as
possible when creating AS 2 apps. That way your AS 2 apps will still work
and you'll have minimum pain if and when you port them to AS 3.

FWIW, the apps that were easiest to convert were what I would consider well
designed in an OO sense. Each file did one thing and only one thing. Each
file was well decoupled from other files and well encapsulated.

I'd like to think that's just because OO is a good thing, but I suspect that
it's got as much to do with the fact that AS 3 is stricter about OO concepts
than AS 2 was.

Spike

On 10/21/05, ryanm [EMAIL PROTECTED] wrote:

  Perharps I was not clear
  But for me between AS2 and AS3 the only thing similar is the syntax
  Not the logic
 
 It is neither logic or syntax that changed. Really, all that changed is
 the DOM and some other APIs. The syntax is the same (a for loop is still a
 for loop, etc), and the logic is the same (enterframe events are still
 enterframe events, they're just managed more efficiently, etc), and what
 has
 changed is the paradigm that only movieclip objects have a visible
 presence
 on the stage, that once created they cannot be reparented, etc. The API
 has
 become more powerful and flexible, and as a result will require stricter,
 more organized code, that's all.

 ryanm

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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Learn AS2 or AS3?

2005-10-21 Thread Spike
Strictly speaking the VMs care an awful lot about what they get, but you can
use any tool you like to create a swf that conforms to what the VM requires.

Creating an ActionScript compiler that generated java bytecode is certainly
possible, but would have the same problems. You'd have to make sure that the
resulting Java bytecode was compatible with whatever JVM you were planning
on running it on.

Spike

On 10/21/05, Ron Wheeler [EMAIL PROTECTED] wrote:

 Interesting.
 Strickly speaking VMs do not care. You can use MTASC or Swish or MMC or
 your own program to create the code. The player will execute the code
 that it gets.

 If you have 2 VMs supporting 2 different byte-codes (AS2 and AS3) then
 you really have 2 products and only the branding (Macromedia Flash)
 makes them similar.
 If someone wanted to make an Actionscript compiler that generated Java
 byte-code, there is no reason why that could not be done. The emulation
 of movie clips would be a nice peice of code but not impossible.

 Ron

 ryanm wrote:

  AS1 and AS2 and AS3 all compile to Flash Player byte-code. The VM
  could not care less how you created the byte-code. You could define
  your own language and write your own compiler to generate an swf.
 
  Sort of true, but misleading. AS1(2) bytecode runs in the old VM,
  and AS3 bytecode runs in the new VM, and the different VMs
  *definately* care how your code was created. AS1 bytecode will not run
  in the new VM and AS3 bytecode will not run in the old one. This is a
  kind of clean break for Flash. Not as clean as I would like, since
  having 2 VMs causes bloat, but clean in the sense that the new VM is
  incompatible with the old one because of the fundamental changes in
  the way the player works.
 
  ryanm
  ___
  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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Not getting my own posts

2005-10-21 Thread Spike
Really?

I've been trying for months to find out how to stop GMail from showing me
doubles of every message I send to a list.

*goes off to look at GMail settings again*

Spike

On 10/21/05, Josh Gormley [EMAIL PROTECTED] wrote:

 GMail users do not (by default, at least) receive emails from
 themselves.
 You may be able to configure this, but I'm not sure (I don't use GMail).

 Josh

 On Oct 21, 2005, at 5:01 PM, Eric E. Dolecki wrote:

  Even though the list is set to send me my own posts, I am not
  getting them...
 
  e.dolecki
  ___
  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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Undefined and null in Flex2

2005-10-21 Thread Spike
You're welcome,

The reason I posted that particular item is that AFAIK Gordon is one of the
engineers who actually writes the code for the player.

If there's a disagreement between him and the documentation, my money's on
him every time.

Having said that, this stuff is all likely to change and may not be true in
future betas or the final release, but it should be right for the public
alpha version.

Unfortunately I don't know enough to answer your questions with any degree
of certainty. The only people with proper access to that sort of stuff are
Macromedians. With a bit of luck someone may chirp up and clarify.

Spike

On 10/22/05, Robert Edgar [EMAIL PROTECTED] wrote:

 Thanks spike for taking the time to reply but...

 Calling it legacy seems to contradict the current AS3 docs..

 For example I think it is getStyle that is documented to return undefined
 if
 the style property doesn't not exist, it then goes on to say that the
 undefined it returns is NOT the same as null (undefined!=null).

 So I take from that that undefined far from being legacy is alive and well
 and activley used by MM in AS3...

 Of course could be then docs are wrong or will change.

 I note the comment about how it only applies to Object though and
 understand
 how when assigned the value will be coerced, thanks.

 It seemed to me that the docs were effectively setting a recommended
 practice that for generic getAnyProperty type of functions they should
 return undefined for undefined values rather than as at present return
 null(because currently undefined==null).

 I am somewhat confused now if MM regard undefined as legacy i.e.
 deprecated,
 should we being returning undefined or null.


 Also given that undefined!=null makes me wonder..

 if(!x){...}else{}

 Does this work differently in AS3 dependent on whether x is undefined or
 null or does AS3 require explicit check for nullness if(x!=null)

 Rob


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Spike
 Sent: Friday, October 21, 2005 5:42 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Undefined and null in Flex2


 Hi Robert,

 Gordon Smith from Macromedia posted this to another list a while ago. I am
 reproducing it with his permission. Hopefully it will clarify things a
 bit:

 Note, that this applies only to AS 3, not to AS 2

 ***
 'undefined' is basically legacy baggage in AS3 that must remain for
 ECMA-262 compatibility.

 Type Object is the ONLY type that can store the value undefined. It can
 also
 store the value null... it can store anything!

 Some but not all other classes can store null:

 A derived class like Button can store null but not undefined.

 String and Array can store null but not undefined.

 Number can store NaN but it can't store undefined or null.

 int and uint can't store NaN, undefined, or null; they only store integers
 like 23.

 Boolean can't store undefined or null; it only stores true and false.

 Since Object is the only type that can store undefined, if you try to set
 a
 var of another type to undefined, it will be coerced into something
 different. For example, setting a Number to undefined will coerce it to
 NaN.

 - Gordon
 *

 Spike


 On 10/21/05, Robert Edgar [EMAIL PROTECTED] wrote:
 
  AFAIK null and undefined are the same thing in F7/8 and can be used
  interchangeably Conceptually however we tend to think of 'undefined'
  and 'defined but has a
  null value' as two different things.
 
  From what I have read in the Flex2 documentation undefined and null
  are
  no
  longer the same thing and null means 'defined but has a null value'.
 
  Can someone confirm that is correct.
 
  Thanks
  Rob
 
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 



 --
 
 Stephen Milligan
 Do you do the Badger?
 http://www.yellowbadger.com

 Do you cfeclipse? http://www.cfeclipse.org
 ___
 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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] A reason to use Windows

2005-10-19 Thread Spike
Very cool,

I know a few people who will be keen to read that.

Spike

On 10/19/05, Alisdair Mills [EMAIL PROTECTED] wrote:

 It took a bit of tinkering but I have the flex framework 2 and
 actionscript 3 compiling on OS X (nb. not flex builder 2 plugin). if
 you get all the jar files from the lib folder from the windows
 standalone application - you can then use mxmlc.jar from the command
 line or set up an ant script to do it. works great - can compile mxml
 and/or AS class files no problem, and you can use it with any editor
 of your choice.

 so no need to rush out and make bill gates richer just yet ;)

 will post a howto when i get a free minute.

 On 18 Oct 2005, at 20:37, Spike wrote:

  Flex 2 requires Flex Builder 2.
 
  Several parts of Flex Builder 2 rely on parts of the java.awt
  family of
  packages. There is a really nasty bug with threading on OS X whihc
  means
  that SWT and awt don't play well at all. Unfortunately the only way
  to fix
  it is at the OS level, so you have to use one or the other. I
  expect MM will
  have to reimplement the awt stuff for the OS X version.
 
  AFAIK VirtualPC or some equivalent is the only way to get it going
  on OS X.
 
  Spike
 
  On 10/18/05, Dave Watts [EMAIL PROTECTED] wrote:
 
 
 
  Flex 2 I cannot run it on my Mac :-(
  Woe is me.
 
 
  I haven't tried to do this, but I would think you could run it on
  a Mac,
  although it may not be supported. With Flex 1.x at least, you could
  install
  it as an EAR or WAR file onto a J2EE app server. I suspect you can
  do the
  same thing with Flex 2, although you may need to run the installer on
  Windows, or you may need to download a J2EE installer.
 
  Dave Watts, CTO, Fig Leaf Software
  http://www.figleaf.com/
 
  Fig Leaf Software provides the highest caliber vendor-authorized
  instruction at our training centers in Washington DC, Atlanta,
  Chicago, Baltimore, Northern Virginia, or on-site at your location.
  Visit http://training.figleaf.com/ for more information!
 
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 
 
 
 
  --
  
  Stephen Milligan
  Do you do the Badger?
  http://www.yellowbadger.com
 
  Do you cfeclipse? http://www.cfeclipse.org
  ___
  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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] how to get a rollover event from a button component

2005-10-19 Thread Spike
does mouseMove do what you want?

Spike

On 10/19/05, eugen pflüger [EMAIL PROTECTED] wrote:

 hello,

 this should be an easy one but i dont get it.

 how can i catch a rollover event from a button component?
 i just wanted to build a little tooltip.

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




--

Stephen Milligan
Do you do the Badger?
http://www.yellowbadger.com

Do you cfeclipse? http://www.cfeclipse.org
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders