RE: [Flashcoders] weird class could not be loaded.

2006-09-05 Thread Mike Keesey
What's the path? Is the class name actually "myClass"?

―
Mike Keesey
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Christian Pugliese
> Sent: Tuesday, September 05, 2006 2:31 PM
> To: Flashcoders mailing list
> Subject: [Flashcoders] weird class could not be loaded.
> 
> Ok, this is driving me nuts...
> 
> Everything is working and ok: path, declaration, the fla compiles
> alright...
> but when i check the syntax on the .as where i'm importing the class,
i
> get the following error:
> - The class or interface 'myClass' could not be loaded.
> 
> again, the classpath and declaration is ok... anybody already got
> something like this?? is this a bug? is this an ufo?
> 
> cheers
> 
> 
> ___
> 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


[Flashcoders] Text background

2006-09-05 Thread Mike Cobb

-

Hi!

I've got a tricky problem which I want to put to the list: Does anyone 
know any way to style a chunk of text with a background colour?


I've got a dynamic multi-line textfield bringing in html text. Flash has 
no CSS support for background-color, so I would like to find a 
workaround for adding a background to portions of text.


Flash 8, AS2

Any ideas?



--
-
Mike Cobb
Creative Director
HMC Interactive
-
Tel: + 44 (0)845 20 11 462
Mob: + 44 (0)785 52 54 743
Web: http://www.hmcinteractive.co.uk
-
Grosvenor House, Belgrave Lane,
Plymouth, PL4 7DA, UK.
-

I've got a new e-mail address: [EMAIL PROTECTED]
Please update your address book. 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


Re: [Flashcoders] getURL and IE 6.0.

2006-09-04 Thread Mike Cobb

-

This works fine for me. Try putting it in an html file & uploading it - 
it might just be a local problem.


The only issue I have is that a second click will not bring the window 
into focus - so you might want to consider a javascript option.




Adrian Ionut Beschea wrote:

I need the browser to open a new window  but if I press my button multiple 
times I want to get to that same  window.



Jim Berkey <[EMAIL PROTECTED]> wrote: Try it without the second paramater:

test_btn.onRelease= getThatURL;
function getThatURL() {
getURL("http://www.example.com/script.php";);
}


*** REPLY SEPARATOR  ***

On 9/4/2006 at 4:04 AM Adrian Ionut Beschea wrote:

Hello, 


I want to use getURL to open the exact same window whenever a user pushes
the button. 

The code is this : 


test_btn.onRelease= getThatURL;
function getThatURL() {
getURL("http://www.example.com/script.php","window_name";);
}

It works fine in Firefox, but in IE 6.0. it keeps opening new windows. 
Am I doing something wrong ? 
Is there a workaround this problem ? 

Thanks. 
Adi.


PS I am exporting for flash 7 as version:  2.0

  
-
Get your email and more, right on the  new Yahoo.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


o

___
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



-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.
___
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





--
-----
Mike Cobb
Creative Director
HMC Interactive
-
Tel: + 44 (0)845 20 11 462
Mob: + 44 (0)785 52 54 743
Web: http://www.hmcinteractive.co.uk
-
Grosvenor House, Belgrave Lane,
Plymouth, PL4 7DA, UK.
-

I've got a new e-mail address: [EMAIL PROTECTED]
Please update your address book. 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


Re: [Flashcoders] Fwd: Application Framework

2006-08-31 Thread Mike Britton

It's built into Flash 8:

import mx.xpath.XPathAPI;

function getXMLData() {
var myXML:XML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function(success:Boolean) {
if (success) {
var groupAr:Array = 
XPathAPI.selectNodeList(this.firstChild,
"/data/grouplist/group");
var itemAr:Array = 
XPathAPI.selectNodeList(this.firstChild,
"/data/itemList/item");
for (var i:Number=0; ihttp://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] Flash + Web Services problems

2006-08-31 Thread Mike Britton

Like this:




  




Mike
___
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] Flash + Web Services problems

2006-08-31 Thread Mike Britton

Try adding a domain="*" attribute to , and a
 node to your cross-domain-policy
nodes.

Let me know if this works so I can feel a smug sense of satisfaction.


Mike
___
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] Flash + Web Services problems

2006-08-31 Thread Mike Britton

What does your crossdomain.xml file look like?

Mike
___
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] TextFormat

2006-08-31 Thread Mike Mountain

Jason

The only way I can ever get the "dings" fonts to display in a dynamic tf
is by embedding them - even if they are on the users system. I assume
this is something to do with the dings family being a "symbol" font.

M

> He suggested I trace the font on the textfield, which is not 
> the same thing, and I was responding to that comment. It's 
> tracing "Wingdings" on the textfield's TextFormat.font, it's 
> just not rendering Wingdings on the screen.
> 
> Jason Merrill
> Bank of America
> Learning & Organization Effectiveness - Technology Solutions 
>  
___
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] Singleton not always Singleton?

2006-08-30 Thread Mike Keesey
Boy, is my face red! But I have seen bad package-naming conventions used
before, so hopefully the post wasn't completely useless for eveyone out
there.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adrian
Park
Sent: Sunday, August 27, 2006 4:34 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Singleton not always Singleton?

It *is* for Shell Petroleum :)


___
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] FLV8/VP6 decoding?

2006-08-30 Thread Mike Cobb

-

VP6 is a 'lossy' codec, which means it degrades the image quality of the 
video. If you convert an FLV to an AVI, you will get a low quality video 
with a high file size. Any compression you put on top will further 
degrade the quality of the image.


With this caveat in mind, you can convert an FLV to an AVI. The only way 
I know of is to import your FLV into the timeline of a new flash movie 
(make sure to set the correct stage size and frame rate). You can then 
export the flash movie to AVI format.


Hope that helps,




coderman wrote:

Hello,

is there anyway to decode Flash 8 / VP6 video back to say AVI?

-ROB

___
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





--
-
Mike Cobb
Creative Director
HMC Interactive
-
Tel: + 44 (0)845 20 11 462
Mob: + 44 (0)785 52 54 743
Web: http://www.hmcinteractive.co.uk
-
Grosvenor House, Belgrave Lane,
Plymouth, PL4 7DA, UK.
-

I've got a new e-mail address: [EMAIL PROTECTED]
Please update your address book. 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


Re: [Flashcoders] mvc dillema

2006-08-29 Thread Mike Britton

You could use EventDispatcher in the Model, View and Controller, and
send the XML data to your Model through your Controller.  When the
Model changes, make it dispatch an event that updates the view, etc.

Mike
___
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] OOP methodology and flash. I'm loosing my faith...

2006-08-29 Thread Mike Britton

All I have to say about this is tellTarget and _global


tellTarget was deprecated in Flash 5 and has been removed in AS3.  Not
sure what you mean about _global, or why the conversation is over.

If the original poster wants to build scalable and easily maintained
apps, suggesting he use tellTarget and _global to accomplish this is
questionable.  Maybe I'm missing something.


Mike
___
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] Singleton not always Singleton?

2006-08-25 Thread Mike Keesey
PET PEEVE ALERT

class com.shell.util.IntroAnimProxy

Unless you are actually doing Shell Petroleum's website at
http://shell.com, this isn't a proper name for the package. The "com"
convention is a strategy to keep package paths from overlapping on
different projects: if you're doing a website, you take the domain and
reverse it--voila, you have a path that nobody else will ever use, and
you don't ever have to worry about conflicts. (Assuming everyone sticks
by the convention, of course.)

I've even seen people make classes like "com.MyClass", as if "com" stood
for "component" or something. (It stands for "commercial".)

If you're not working on a website project, then you have a couple of
options:

1) Make a new package for the project in your own domain's package.
(e.g., "net.mywebsite.mynewproject") or your client's domain package.
Even if it's not going on the web, you can still guarantee it won't
conflict with any other packages.

2) Make a package that doesn't start with any top-level domain strings
("com", "org", "net", country codes, etc.)

I'll own that in this instance you'll only really have a problem if,
some day, you *do* work on http://shell.com, but still

(And if this *is* for Shell Petroleum, then I'll shut up now.)

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andrés
González & Aragón
Sent: Friday, August 25, 2006 9:29 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Singleton not always Singleton?

The problem i can see is tha in the singleton pattern constructor must
be
private.

May be triin with something like this :



class com.shell.util.IntroAnimProxy
{
 private static var _instance:IntroAnimProxy;
 public static function get instance():IntroAnimProxy
 {
  if( _instance == null ) _instance = new IntroAnimProxy();
  return _instance;
 }
 private function IntroAnimProxy()
 {
  trace("IntroAnimProxy");
 }
}


___
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] UML Diagrams

2006-08-25 Thread Mike Britton

It also has round trip AS2 code generation.  Gotta love that.

http://www.5etdemi.com/blog/archives/2005/11/uml-to-as2-generator-for-enterprise-architect/


Mike
___
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] UML Diagrams

2006-08-25 Thread Mike Britton

Enterprise Architect:
http://www.sparxsystems.com.au/products/ea.html

Mike
___
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] Local storage warning

2006-08-25 Thread Mike Cobb

-

I had a similar problem with the camera security dialog box and Zinc. My 
app was actually a kiosk, and my workaround was quite long winded - but 
it might give you some ideas.


First I should mention that checking the 'remember my settings' box in 
the security dialog never worked for me (apparently it's a bug in Zinc), 
so this is what I had to do:


On starting my Zinc application, I launched a macro program (Macro 
Express - http://www.macros.com/) to move the cursor and 'click' the 
Allow button. This worked great for a kiosk with an automated startup 
procedure.


I don't know if this will be of any help, but I thought I'd post it anyway.




Dimitrios Bendilas wrote:

Hello,

I have this very very urgent issue!

Users of an application I made with Flash 8 & Zinc get this warning screen: 
http://www.zefxis.gr/files/warning.jpg
when they first run the executable.

I know this is because my app saves some files on the hard drive.
The question is, is there any way to prevent this window from popping up?
The publisher of the application asked me to see if I can do anything about 
this.

So, can I?

Thanks a lot!

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





--
-----
Mike Cobb
Creative Director
HMC Interactive
-
Tel: + 44 (0)845 20 11 462
Mob: + 44 (0)785 52 54 743
Web: http://www.hmcinteractive.co.uk
-
Grosvenor House, Belgrave Lane,
Plymouth, PL4 7DA, UK.
-

I've got a new e-mail address: [EMAIL PROTECTED]
Please update your address book. 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


RE: [Flashcoders] Protect model setters from being called by anyclassexcept Controller

2006-08-24 Thread Mike Keesey
Wait--that doesn't expose the getters. H...

Okay, substitute the interface with a superclass (say, AbstractModel)
that has the getters, but not the setters. Then expose the Model object
as AbstractModel everywhere except inside the Control class.

I've never tried that, but I think it should work. A bit weird, though.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Keesey
Sent: Thursday, August 24, 2006 6:46 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Protect model setters from being called by
anyclassexcept Controller

In AS3.0 I think it can be package-private, but until then

One way is to have the Model class satisfy an interface that lacks the
property (of course, in AS2.0, all interfaces lack properties...), and
then only expose the model class as the interface elsewhere.

interface IModel {
function anybodyCanUseThis():Void;
}
class Model extends Object implements IModel {
public function Model() {
super();
}
public function get prop():Object {
return _prop;
}
public function set prop(p:Object):Void {
_prop = p;
}
public function anybodyCanUseThis():Void {
trace("anybodyCanUseThis()");
}
private var _prop:Object;
}
class Control extends Object {
public function Control() {
super();
_model = new Model();
}
public function get model():IModel {
return _model;
}
private function doSomethingWithModel():Void {
_model.prop = "Here we can access the property.";
}
private var _model:Model;
}
class SomeOtherClass extends Object {
public function SomeOtherClass() {
super();
_control = new Control();
_control.model.anybodyCanUseThis();
_control.model.prop = "This line will cause a compiler
error.";
}
private var _control:Control;
}

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Sacks | BLITZ
Sent: Thursday, August 24, 2006 6:37 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Protect model setters from being called by any
classexcept Controller

Hi,

I have a model class that has a bunch of getters and setters.
Example:

private var _prop:Object;
function get prop():Object {
return _prop;
}
function set prop(p:Object) {
_prop = p;
}

I have a controller class that instantiates that model. 

I'm wondering if there is some way to prevent any other class from using
the setter methods of the model except the controller class.  They still
should be able to access the getters.

I want to prevent future developers from being able to access the model
setters from anywhere except the controller in order to enforce proper
MVC patterns.

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

___
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] Protect model setters from being called by any classexcept Controller

2006-08-24 Thread Mike Keesey
In AS3.0 I think it can be package-private, but until then

One way is to have the Model class satisfy an interface that lacks the
property (of course, in AS2.0, all interfaces lack properties...), and
then only expose the model class as the interface elsewhere.

interface IModel {
function anybodyCanUseThis():Void;
}
class Model extends Object implements IModel {
public function Model() {
super();
}
public function get prop():Object {
return _prop;
}
public function set prop(p:Object):Void {
_prop = p;
}
public function anybodyCanUseThis():Void {
trace("anybodyCanUseThis()");
}
private var _prop:Object;
}
class Control extends Object {
public function Control() {
super();
_model = new Model();
}
public function get model():IModel {
return _model;
}
private function doSomethingWithModel():Void {
_model.prop = "Here we can access the property.";
}
private var _model:Model;
}
class SomeOtherClass extends Object {
public function SomeOtherClass() {
super();
_control = new Control();
_control.model.anybodyCanUseThis();
_control.model.prop = "This line will cause a compiler
error.";
}
private var _control:Control;
}

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Sacks | BLITZ
Sent: Thursday, August 24, 2006 6:37 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Protect model setters from being called by any
classexcept Controller

Hi,

I have a model class that has a bunch of getters and setters.
Example:

private var _prop:Object;
function get prop():Object {
return _prop;
}
function set prop(p:Object) {
_prop = p;
}

I have a controller class that instantiates that model. 

I'm wondering if there is some way to prevent any other class from using
the setter methods of the model except the controller class.  They still
should be able to access the getters.

I want to prevent future developers from being able to access the model
setters from anywhere except the controller in order to enforce proper
MVC patterns.

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


[Flashcoders] UML Diagrams

2006-08-24 Thread Mike Keesey
Just curious,
 
What do people on this use to create UML diagrams? Do you use a WYSIWYG
diagram-creating tool (preferrably which can output skeletal AS class
code)? Or do you use something that scans preexisting AS classes and
generates UML diagrams (or a UML-related XML format, like UXF).
 
I've experimented with a few such programs. I'd really like to find
something (or a combo solution) that can work both ways.
--
Mike Keesey
___
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] retrieving vars using query string

2006-08-24 Thread Mike Keesey
You can just set your FlashVars on the first frame on the main timeline.
(And make sure you delete them when done testing.)

I don't know of a better way.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, August 24, 2006 4:07 PM
To: Flashcoders mailing list
Subject: [Flashcoders] retrieving vars using query string

Hi All,
I'm using the BrowserStateManager class to set the state of my app using
parameters in the query string.  this makes it very hard to debug
however, so i was wondering how i can still pass vars to the app even
though i'm i'm not running the app in a browser as i debug it (debugging
using the dredded debugger that comes with flash)...

any ideas appreciated

cheers

b


___
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] Flash/Actionscript Coding conventions

2006-08-24 Thread Mike Keesey
It ends when you make your own damn third-party tools! ;)

Seriously, though, I don't find that I have to comment out huge swaths
of class functions at a time very often. Even if I did have to comment
out several functions, they might not be next to each other, anyway.
And, as I said before, commenting out a single function is *easier* when
each one is preceded by a block comment--one keystroke of backspace or
delete (unless it's the very last function). Finally, nothing about
Javadoc precludes you from using block comments inside function bodies.

Have you actually tried Javadoc or is this dislike preemptive?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Sacks | BLITZ
Sent: Thursday, August 24, 2006 9:58 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Flash/Actionscript Coding conventions

So you're saying I need to use a third party tool to overcome an issue
created by another third party tool?  Where does it end?
WHERE...DOES...IT...END?   :)

___
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] onLoadInit failure

2006-08-24 Thread Mike Mountain
The MovieCLip Loader events do not fire off correctly in IE when the
content has been cached and IE is set to check for updates
"Automatically" or "Never".

It's utter crap.

Cheers

M

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Tony Fairfield
> Sent: 23 August 2006 17:20
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] onLoadInit failure
> 
> Does anyone have any insights as to why onLoadInit (the 
> movieClipLoader
> event) might fail in some instances?
> 
> Background:
> I create programs for CD and web delivery. Programs simply 
> consist of a menu system and a movie clip into which external 
> swfs are loaded as the content.
> I preload this swf content using the movieLoader routine as 
> described in Flash Help in order for page display to be 
> seamless. I use onLoadInit in order to gather information 
> about files for use in navigation once they are initialized 
> and I also have the option to call a function to "start" the content.
> 
> Problem:
> While testing, each swf loaded successfully triggers the 
> onLoadComplete and then onLoadInit perfectly. However, when 
> launching the projector or the generated swf, onLoadComplete 
> is always successful but the onLoadInit event simply fails 
> for the majority of the pages. For reasons I cannot 
> understand, it will succeed for certain files - the same ones 
> - only occasionally. I have noticed that page content seems 
> to affect the onLoadInit, because pages with graphics were 
> less likely to init. And as a test, I created substitute 
> pages that were completely empty, about 2k each. The problem 
> went away.
> 
> Thanks to anyone who can help, even if only to inform me that 
> onLoadInit is known to be unreliable.
> 
> Tony Fairfield
> 
> ___
> 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


RE: [Flashcoders] Flash/Actionscript Coding conventions

2006-08-24 Thread Mike Mountain
Surely this is just a matter of using a fully featured IDE to develop
your code in - if you use Flashdevelop for instance you can block
comment/uncomment any lines/lines using "//" syntax from the  edit menu
with "comment line", or with keyboard shortcuts - this will not conflict
with block comments "/**/" and therefore you will no longer have a
problem. Life once more is wonderful.

M

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Steven Sacks | BLITZ
> Sent: 24 August 2006 02:19
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] Flash/Actionscript Coding conventions
> 
> > why does adding block comments to your code ruin it?
> 
> > I still don't understand how Javadoc makes your process suffer.
> 
> >From my first post:
> Commenting like that in your code makes it completely 
> impossible to easily and completely comment out blocks of 
> code using /* */ because they have their */ inside their 
> comments.  Believe it or not, this is a very important tool 
> in debugging.
> 
> If somebody wrote something completely impenetrable and I'm 
> in charge of implementing it and it doesn't work, guess what? 
>  I rewrite it or I make them fix it.
> 
> I'm not saying documentation isn't important, I'm saying 
> mucking up your code with documentation in Actionscript by 
> using Javadoc's requirements is counterproductive to Flash 
> development.  If Javadoc let me use line comments instead of 
> block comments I would have no issue.
> 
> ___
> 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


RE: [Flashcoders] Flash/Actionscript Coding conventions

2006-08-23 Thread Mike Keesey
So you never look at the Flash help code? You just open the .as files
and trawl through them?

> And to the point about Javadoc, I'm not going to ruin my code and
> handicap my debugging ability to satisfy some poorly thought out
> requirement of a 3rd party tool.  They require you to use block
> commenting in your code to automatically write documentation and
that's
> counterproductive to actual coding.  It should work hand in hand with
> not diametrically opposed to the coding process.  If they were smart
> about it, they would support line commenting with non-asterisk
> delimiters.  Say //! !//, or //| |// or //[ ]//, etc.  Exclamations,
> pipes, and brackets are all better choices because they do not
conflict
> with anything.

I am totally confused by your raging asteriskism. What do asterisks
conflict with that those do not? What's wrong with asterisks?

I actually like having block comments before functions because it makes
it ridiculously easy to comment out a function. Just remove the last "/"
(assuming there's a block comment after the function as well; if not you
have to add a "*/"). Makes it very easy to do "Move Method" refactorings
and suchlike.

> I'm not going to make my process suffer nor am I going to litter my
code
> with ugly asterisks just to document my work when I can spend that
> energy writing cleaner, easier to read code with light commenting in
the
> code itself.   :)

I still don't understand how Javadoc makes your process suffer.
--
Mike Keesey

___
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] Flash/Actionscript Coding conventions

2006-08-23 Thread Mike Keesey
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Steven Sacks | BLITZ
> Sent: Wednesday, August 23, 2006 11:19 AM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] Flash/Actionscript Coding conventions
>
> > Putting a block comment before a function is standard
>
> All standards are is somebody's way of saying "I code like this and so
> should you." 

Fair enough; it is *a* standard. But it is widely used, informative,
and, perhaps most importantly, there is software out there that can
automatically generate documentation from it.

> And by the way, nobody reads those documents anyway.

I do. It's far easier to read one sentence of English than scan ten
lines of cryptic code.

//
// This is much better commenting
// It's easier to read than all those asterisks
// IMNSHO
/

Oh I used about 6 asterisks in my example. I don't like huge lines of
them, either.
--
Mike Keesey

___
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] Flash/Actionscript Coding conventions

2006-08-23 Thread Mike Keesey
Putting a block comment before a function is standard, though (Javadoc).

Putting one *inside* a function is awful, though, I agree.

/**
 *  This is a perfectly fine Javadoc comment
 *
 *  @param  bar some parameter
 */
public function foo(bar:Object):Void {
/* Using a block comment here is totally bogus. */
// Line comments, though, are great!
}

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Sacks | BLITZ
Sent: Wednesday, August 23, 2006 10:21 AM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Flash/Actionscript Coding conventions

I have an issue with coders who put block comments in the middle of
their code, such as:

/***
** SOME COMMENTS
**/
function foo() {
trace("hello world");
}


Or even worse:

/***
** SOME COMMENTS
**/
function foo() {
/* some comments inside the code */
trace("hello world");
}

People who comment like that are my bane and here is why.  Commenting
like that in your code makes it completely impossible to easily and
completely comment out blocks of code using /* */ because they have
their */ inside their comments.  Believe it or not, this is a very
important tool in debugging.

So, please do everyone a favor and only use block comments before and
after your code and use line comments // for all comments inside your
code.  :)

Thanks,
Steven

___
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


RE: [Flashcoders] Dynamically Upcast to a class in the _global tree?

2006-08-23 Thread Mike Keesey
What would be the point of that? The only point of upcasting is to have
things compile with strict typing, and the compiler can't tell what the
class is if it's dynamically determined.

Are you talking about dynamic *instantiation*? Then you could use
something like this:

// Import all classes that may be needed.
import mygroup.mypackage.mysubpackage.MyClass;
// Set up variables.
var packagePath:String = "mygroup.mypackage.mysubpackage";
var className:String = "MyClass";
// Get the class' constructor function.
var classFunc:Function = getClass(packagePath, className);
// Instantiate a test object.
var test:Object = new classFunc();
// Test the instantiation; should output result of MyClass.toString().
trace(test);
/**
 *  Returns a class' constructor function, given the package path
 *  and the class' name.
 *
 *  Classes must be imported or they will not be found.
 *
 *  @param  packagePath path of the package, e.g. [EMAIL PROTECTED]
"flash.geom"}
 *  @param  className   name of the class, e.g. [EMAIL PROTECTED] 
"Point"}
 *  @return constructor function, or [EMAIL PROTECTED] undefined}
 */
function getClass(packagePath:String, className:String):Function {
var package:Object = getPackage(packagePath);
return package[className];
}
/**
 *  Returns a class package, given its path.
 *
 *  @param  packagePath path of the package, e.g. [EMAIL PROTECTED]
"flash.geom"}
 *  @return class package ([EMAIL PROTECTED] Object} instance), or
 *  [EMAIL PROTECTED] undefined}
 *  @see#getClass
 */
function getPackage(path:String):Object {
var package:Object = _global;
var pathArray:Array = path.split(".");
for (var i:Number = 0; i < pathArray.length; ++i) {
package = package[pathArray[i]];
}
return package;
}

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of aaron
smith
Sent: Wednesday, August 23, 2006 8:27 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Dynamically Upcast to a class in the _global
tree?

no that is just the usual way of doing it.. I need to be able to
dynamically
upcast..

like: vart = new _global['somepackage']['someClass']();

something like that.. i can't remeber how to do that.. with prototypes
or
_global..



On 8/23/06, Hans Wichman <[EMAIL PROTECTED]> wrote:
>
> Hi,
> not sure if this is what you mean but:
>
> import com.somepackage.HomeView;
> var bv:BasicView = getSomeBasicView();
> var newHomeViewHomeView =HomeView( bv );
>
> grtz
> JC
>
>
> On 8/23/06, aaron smith <[EMAIL PROTECTED]> wrote:
> >
> > How do I cast to something that is in the _global tree. by that i
mean.
> > cast
> > referencing like this: _global.com.somepackage.SomeClass( var ) or
is
> the
> > _prototype chain? I can't remember...
> >
> > the situation is this, I have a BasicView class. that needs to
> dynamically
> > be upcast to other views that would potentially extend it, say a
> HomeView
> > that extends BasicView..
> >
> > say like this:
> >
> > var bv:BasicView = getSomeBasicView();
> > var newHomeView:_global.com.somepackage.HomeView =
> > _global.com.somepackage.HomeView( bv );
> >
> > I'm pretty sure it's possible, don't remember how to do it...
> >
> > 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
>
___
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


RE: [Flashcoders] Special characters?

2006-08-22 Thread Mike Mountain
 [as]
for (i=288; i<=318; i++) {
var val = String.fromCharCode(i);
trace(val);
}
[/as]

Any good?

M

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Steven Loe
> Sent: 22 August 2006 16:40
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] Special characters?
> 
> How does one access characters in a font that are beyond the 
> standard ascii 127 characters? I'm about to start working 
> with a custom font that has icons in the outer reaches of the 
> key map. The icons are in locations 288 - 318. 
> 
> Any ideas how to get these characters?
> 
> Thanks in advance,
> 
> Steven
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection 
> around http://mail.yahoo.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
> 
___
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 woes

2006-08-22 Thread Mike Mountain
I swear I saw a sortable datagrid on IFBIN - can't check at the mo' as
my work proxy won't allow access - but it is definetely dooable

M 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Chris Hill
> Sent: 19 August 2006 01:50
> To: 'Flashcoders mailing list'
> Subject: [Flashcoders] DataGrid woes
> 
> I'm in a real bind, with no real solution. I'm using the 
> DataGrid, which I've used before, but the problem is that 
> multiple selection and re-ordering seems to be unbelievably 
> broken. I've never used these features, and I've googled just 
> about every possibility to shed light on the subject and 
> found nothing. I guess that noone out there has created a 
> data grid and tried to make it sortable?
> 
> I've got a datagrid. Users ideally would be able to select 
> multiple rows a la shift-click. Then they click either 'move 
> down' or 'move up', which modifies the data provider, sets 
> the grid's data provider, then sets the selectedIndices to 
> what it was before. This results in terrible graphical 
> glitches, and its also reporting the wrong number of lines.
> 
> I'd preferably at this point either:
> 
> A: Find some magic fairy dust to fix the DataGrid
> B: Find some replacement component that does what the 
> DataGrid does, but does not suck.
> 
> If i don't do that then I have to:
> 
> C: Write my own DataGrid, which is fine, and I need to do it 
> anyway, but not right now if I can help it.
> 
> Thanks
> Chris
> ___
> 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


[Flashcoders] JOB: Full time and contract work at ID Society in New York

2006-08-21 Thread Mike Brittain
ID Society (New York, NY) is currently looking for a full-time, on-site
ActionScript developer who has some experience with standards-compliant
XHTML and CSS development.  Please see our recent job posting:

http://jobs.37signals.com/jobs/361

I would also like to hear from any contractors (preferably New
York-based) who are expert-level ActionScripters and would be interested
in working with us.  

Please respond with all inquiries about these positions to
[EMAIL PROTECTED]

Thank you,
Mike

-- 
 
MIKE BRITTAIN
Director of Technology

ID Society, Inc.
138 West 25th Street, 9th Floor
New York, NY 10001
___
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] Capped MovieClip._rotation, what can be done?

2006-08-21 Thread Mike Cobb

-

As I understand it, flash is limited to rotating objects in steps of 0.1 
degrees.




Bart Wttewaall wrote:

Hi Flashcoders,

I've been busy recreating the famous PageFlip application and I've
noticed something weird. It seems that movieclips have a limitation to
their rotation. When I turn over a page in the application, there are
visible errors in the shadows and masks that make this page up. They
flicker left and right when dragging the page, due to their capped
_rotation property.

Wanna see for yourself? Paste this on your root, then create a rather
wide movieclip (name = mc) and set the fps to 99 for a visible
demonstration:

var rot = 0;
onEnterFrame = function() {
rot += 0.01;
mc._rotation = rot;
}

You'll notice that the movieclip won't rotate smoothly, but rather
tick like a clock, skipping angles.

I've already accepted that there's nothing that can be done about
this, but just to be sure I'd like to ask if anyone has had trouble
with this in their application and what you did about it, either to
mask it up or actually solve this problem.

With regards,
Bart Wttewaall
___
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





--
-----
Mike Cobb
Creative Director
HMC Interactive
-
Tel: + 44 (0)845 20 11 462
Mob: + 44 (0)785 52 54 743
Web: http://www.hmcinteractive.co.uk
-
Grosvenor House, Belgrave Lane,
Plymouth, PL4 7DA, UK.
-

I've got a new e-mail address: [EMAIL PROTECTED]
Please update your address book. 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


RE: [Flashcoders] vars with $

2006-08-18 Thread Mike Keesey
I have seen others do it, or mark parameters with a "p_".

I prefer not to mark parameters in any special way. I mark private
variables with "_", so those are already distinct. And if I have a
function that's so long that I can't see the top from somewhere in the
body, it's well past time to cut it down into more manageable chunks.

Plus, using "$" makes it more confusing when switching between PHP or
Perl (or another language that uses "$" to mark all variables) and
ActionScript.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tom Lee
Sent: Friday, August 18, 2006 1:38 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] vars with $

I've used it to indicate arguments in a function to clarify the origin
of
the variable, like this:

function myFunc($arg1,$arg2){
trace($arg1+" : "+$arg2);
}

I don't know where I picked that up, but for me it makes the code easier
to
read since you know immediately they are arguments.  I've seen people
use
the underscore for the same purpose, but that can confuse things since
ActionScript uses that for some native properties (_x,_y).

Does anyone else do this, or am I just in my own little universe?


___
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] Best way to learn OO Analysis andDesign withActionScript

2006-08-18 Thread Mike Mountain
"it's crucial to be in sync with specialist language and concepts"

Completely agree, but Jargon in any industry is always a barrier to
effective communication between the initiated and the uninitiated,
whether it is intentional or not. I just find that the OOP literati can
sometimes be a little "too" keen when it comes to overcomplicating
things for the sake of good "OOP". And this includes the abundance of
interchangeable jargon, for patterns, techniques and basic concepts. And
yes sometimes believe it or not I think (especially on forums and blogs
etc.) that some of this comes down to a basic good old fashioned I know
more oop than you do "dick measuring competition". Once initiated into
this clique it then gives us a warm feeling to perpetuate the problem by
showing everyone just how complicated we can make the simplest of things
seem. Its Societies problem, not just OOP developers if that's any
consolation!

M

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of James Marsden
> Sent: 18 August 2006 16:23
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Best way to learn OO Analysis 
> andDesign withActionScript
> 
> I used to have a problem with this too, hating the 'verbal 
> smokescreen' 
> as you put it, but it's crucial to be in sync with specialist 
> language and concepts in order to cut through 
> misunderstanding between peers. I don't think it's about 
> making ourselves more important, but making sure you're able 
> to communicate complex ideas quickly.
> 
> I'm a Fine art graduate, and there's no environment worse 
> than that for absurdly long winded conceptual bullshit - at 
> least OOP concepts actually lock people's understandings together!
> 
> J
> 
> 
___
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] Best way to learn OO Analysis and Design withActionScript

2006-08-18 Thread Mike Mountain
I find the hardest thing to get my head around is the absurd amount of
Jargon involved in OOP - for what are essentially simple concepts. I
really wish we wouldn't perpetuate the practice of trying to make
ourselves important by using such a verbal smokescreen. Once you get
past the copious amounts of conceptual diarrohea the actual fundamentals
are fairly easy to understand. I know it's easier to define concepts
using singular terms, but it would seem that OOP tends to go overboard
with this a hell of a lot. OOP dictionary anyone? This is componounded
by other concepts being explained within the bounds of this "jargon" -
One question inevitably leads to many more.

M

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Mike Britton
> Sent: 18 August 2006 15:33
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Best way to learn OO Analysis and 
> Design withActionScript
> 
> I second James' recommendation of Headfirst Design Patterns.  
> I also recommend downloading an Enterprise Architect trial 
> http://www.sparxsystems.com/ or Poseidon 
> http://gentleware.com/index.php and learning some UML.  It 
> helps me to step outside of the code and focus on the logic 
> behind the business decisions.  Understanding sequence 
> diagrams ("user clicks button, event is passed to manager, 
> etc) first can help you sketch out class diagrams that 
> eventually turn into really scalable systems.  Then later, 
> people can wade right in and add to it.
> 
> Most important: try not to learn everything at once.  Give 
> your brain time to wrap around small chunks of new info.
> 
> My .02
> 
> 
> Mike
___
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] Best way to learn OO Analysis and Design with ActionScript

2006-08-18 Thread Mike Britton

I second James' recommendation of Headfirst Design Patterns.  I also
recommend downloading an Enterprise Architect trial
http://www.sparxsystems.com/ or Poseidon
http://gentleware.com/index.php and learning some UML.  It helps me to
step outside of the code and focus on the logic behind the business
decisions.  Understanding sequence diagrams ("user clicks button,
event is passed to manager, etc) first can help you sketch out class
diagrams that eventually turn into really scalable systems.  Then
later, people can wade right in and add to it.

Most important: try not to learn everything at once.  Give your brain
time to wrap around small chunks of new info.

My .02


Mike
___
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] MovieClip loader IE Caching bug

2006-08-18 Thread Mike Mountain
 
http://chattyfig.figleaf.com/pipermail/flashcoders/2005-February/132366.
html

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Mike Mountain
> Sent: 18 August 2006 09:09
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] MovieClip loader IE Caching bug
> 
> Can't remember where I found it, I just googled AS2 qlod 
> loaderClass I think...
> 
> M 
> 
___
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] MovieClip loader IE Caching bug

2006-08-18 Thread Mike Mountain
Can't remember where I found it, I just googled AS2 qlod loaderClass I
think...

M 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Ryan Potter
> Sent: 17 August 2006 17:43
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] MovieClip loader IE Caching bug
> 
> I ran into the same problem yesterday.  Just looked all over 
> for an as2 version of qload and I am not coming up with it.  
> Would you mind posting a link?
> 
> Thanks.
> 
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Mike Mountain
> Sent: Thursday, August 17, 2006 2:29 AM
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] MovieClip loader IE Caching bug
> 
> OK I've narrowed it down to when IE is set to "never check" 
> or "automatic" for page update checking in the settings - I 
> can't believe there's so little information out there on such 
> a serious bug. I had to completely scrap using the MovieClip 
> Loader, fortunately there's a few
> AS2 conversions of qlod which slotted neatly in.
> 
> I wonder if flash 9 will have similar problems with its Loader events?
> 
> M
> 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On 
> Behalf Of Mike 
> > Mountain
> > Sent: 16 August 2006 15:58
> > To: Flashcoders mailing list
> > Subject: [Flashcoders] MovieClip loader IE Caching bug
> > 
> > I don't do too much online work to be honest so I've only 
> just found 
> > this out - but I cannot believe Adobe haven't fixed this bug.
> > http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/com
> > mon/html/w
> > whelp.htm?context=LiveDocs_Parts&file=2538.html
> > 
> > Using listeners for the movieclip loader, events only fire 
> the first 
> > time the swf is loaded, if it's cached in ie then the 
> listeners don't 
> > fire!
> > 
> > How fundamentally flawed is this!?!
> > 
> > Is their an elegant workaround or do I really have to use the 'old'
> > onEnterFrame bytesLoaded v bytesTotal comparision?
> > 
> > OMG Arrgh! Etc.
> > 
> > M
> > 
> > 
> > ___
> > 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
> 
> ___
> 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


RE: [Flashcoders] MovieClip loader IE Caching bug

2006-08-17 Thread Mike Mountain
OK I've narrowed it down to when IE is set to "never check" or
"automatic" for page update checking in the settings - I can't believe
there's so little information out there on such a serious bug. I had to
completely scrap using the MovieClip Loader, fortunately there's a few
AS2 conversions of qlod which slotted neatly in.

I wonder if flash 9 will have similar problems with its Loader events?

M

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Mike Mountain
> Sent: 16 August 2006 15:58
> To: Flashcoders mailing list
> Subject: [Flashcoders] MovieClip loader IE Caching bug
> 
> I don't do too much online work to be honest so I've only 
> just found this out - but I cannot believe Adobe haven't 
> fixed this bug.
> http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/com
> mon/html/w
> whelp.htm?context=LiveDocs_Parts&file=2538.html
> 
> Using listeners for the movieclip loader, events only fire 
> the first time the swf is loaded, if it's cached in ie then 
> the listeners don't fire!
> 
> How fundamentally flawed is this!?!
> 
> Is their an elegant workaround or do I really have to use the 'old'
> onEnterFrame bytesLoaded v bytesTotal comparision?
> 
> OMG Arrgh! Etc.
> 
> M
> 
> 
> ___
> 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


RE: [Flashcoders] OT: Flashmaps - anybody used it before?

2006-08-17 Thread Mike Mountain
There's also this free google map component:

http://www.afcomponents.com/map_google/ 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of David Rorex
> Sent: 17 August 2006 04:48
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] OT: Flashmaps - anybody used it before?
> 
> FYI, Yahoo Maps also provides maps in flash, and they have a 
> developer site, and free API and everything. I didn't look at 
> flashmaps much, but they may work for you.
> 
> -David R
> 
> On 8/16/06, Anggie Bratadinata <[EMAIL PROTECTED]> wrote:
> > One of my prospective clients want to have flash app with 
> US map. My 
> > partner found this nice tools, www.flashmaps.com and I'm 
> wondering if 
> > you guys have some experience with it.
> >
> > note:
> > this message is cross-posted to Flashnewbie list, hope you 
> wouldn't mind.
> >
> > --
> > Anggie Bratadinata
> > Web|Graphic|Flash
> > Jl. Raya Langsep 21
> > Malang - East Java
> > I N D O N E S I A
> > http://design.ibshastautama.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
> >
> ___
> 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


Re: [Flashcoders] [AMFPHP] return; -> Feature / bug ?

2006-08-16 Thread Mike Britton

I always put my methodTable in the constructor, not include it.  This
could be the source of the problem.
___
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] [AMFPHP] return; -> Feature / bug ?

2006-08-16 Thread Mike Britton

You need to create a methodTable array in the constructor of every
class you're using with AMFPHP.
___
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] [AMFPHP] return; -> Feature / bug ?

2006-08-16 Thread Mike Britton

methodTable = array(
"test1" => array(
"description"=>"I return 'hello world'",
"access"=>"remote",
"arguments"=>array(),
"returntype"=>"string"),

"test2" => array(
"description"=>"I return 'hello'",
"access"=>"remote",
"arguments"=>array(),
"returntype"=>"string")
);
    }

function test1() {
return $this->test2()." world";
}

function test2() {
return "hello";
}
}

?>




test1();
echo $message;



?>






Mike
___
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] OT: Blitz Labs Xray

2006-08-16 Thread Mike Mountain
Hi John - once more, heaps of praise for this app - it truly is a
lifesaver.

Can I be cheeky and ask if there's any chance of a standalone version of
the flex one? Zinc wrapped maybe?

M 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of John Grden
> Sent: 16 August 2006 16:39
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] OT: Blitz Labs Xray
> 
> http://labs.blitzagency.com/?cat=8
> 
> Also, that other link to the xray interface is to an older 
> version now.  It was current until this morning and I just 
> tried to FTP to it and the password's changed etc.
> 
> So, use this one
> 
> http://www.rockonflash.com/xray/flex/Xray.html
> 
> I plan on keeping it there for a while.
> 
> On 8/16/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
> >
> > Thanks John!  You've always been very responsive.  I would have 
> > contacted you/Blitz directly, but the site didn't have any e-mail 
> > addresses listed or other contact information.
> >
> > How about a link to the help docs also?
> >
> > Thanks!
> >
> > Jason Merrill
> > Bank of America
> > Learning & Organization Effectiveness - Technology Solutions
> >
> >
> >
> >
> >
> >
> > >>-Original Message-
> > >>From: [EMAIL PROTECTED] 
> [mailto:flashcoders- 
> > >>[EMAIL PROTECTED] On Behalf Of John Grden
> > >>Sent: Wednesday, August 16, 2006 11:23 AM
> > >>To: Flashcoders mailing list
> > >>Subject: Re: [Flashcoders] OT: Blitz Labs Xray
> > >>
> > >>Sorry Jason, I should have posted to the lists-
> > >>
> > >>Blitz moved their servers to a provider ( I will keep 
> them safe from
> > >>scrutiny) and that provider swore up and down that our 
> backups were
> > safe
> > >>shold there be a problem.  THere was a problem and the 
> backups were
> > being
> > >>done.
> > >>
> > >>So, we had to restore in some other fasion (don't ask me how, I 
> > >>didn't
> > do
> > >>it) and now all of the id's are changed.  I've been 
> trying to update
> > the
> > >>links, but there are a ton of them.
> > >>
> > >>Anyway, everything you need is right here:
> > >>
> > >>interface:
> > >>http://www.osflash.org/xray#interface_v2.0_-_6.1.2006
> > >>
> > >>connector (1.6)
> > >>http://www.osflash.org/xray#connectors_8.11.2006
> > >>
> > >>I just put the lastest interface out there this morning for the
> > 1.6connector.
> > >>
> > >>Thanks for your help Jason,
> > >>
> > >>jpg
> > >>
> > >>On 8/16/06, Merrill, Jason 
> <[EMAIL PROTECTED]> wrote:
> > >>>
> > >>> Excuse the semi-OT:
> > >>>
> > >>> Blitz Labs seems to have turned their site into a blog 
> basically,
> > and in
> > >>> so doing, have broken many of the links.  All the 
> download links 
> > >>> do
> > not
> > >>> work on their site - at least the ones related to Xray - I'm 
> > >>> trying
> > to
> > >>> get XRay installed for Flash debugging - does anyone 
> have all the 
> > >>> components required to run Xray they can send me in a 
> zip offlist?
> > >>>
> > >>> Or even an older version of Xray?
> > >>>
> > >>> Thanks.
> > >>>
> > >>>
> > >>>
> > >>> Jason Merrill
> > >>> Bank of America
> > >>> Learning & Organization Effectiveness - Technology Solutions
> > >>>
> > >>>
> > >>>
> > >>>
> > >>> ___
> > >>> 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
> > >>>
> > >>
> > >>
> > >>
> > >>--
> > >>[  JPG  ]
> > >>___
> > >>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
> >
> 
> 
> 
> -- 
> [  JPG  ]
> ___
> 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 

[Flashcoders] MovieClip loader IE Caching bug

2006-08-16 Thread Mike Mountain
I don't do too much online work to be honest so I've only just found
this out - but I cannot believe Adobe haven't fixed this bug.
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/w
whelp.htm?context=LiveDocs_Parts&file=2538.html

Using listeners for the movieclip loader, events only fire the first
time the swf is loaded, if it's cached in ie then the listeners don't
fire!

How fundamentally flawed is this!?!

Is their an elegant workaround or do I really have to use the 'old'
onEnterFrame bytesLoaded v bytesTotal comparision?

OMG Arrgh! Etc.

M


___
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] [AMFPHP] return; -> Feature / bug ?

2006-08-16 Thread Mike Britton

$this->test2();

hth,

Mike
___
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] AS3 bitmapdata lock/unlock

2006-08-16 Thread Mike Mountain
Hi Ralph

If you're feeling generous I'd be interested in seeing the source for
those comparisons

Cheers

M

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Hauwert, Ralph
> Sent: 16 August 2006 11:16
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] AS3 bitmapdata lock/unlock
> 
> Actually doublebuffering or pageflipping routines could 
> easily use these functions for optimizations. The thing is, 
> that as soon as you swap out one bitmapdata for another (or 
> the holder bitmap class), you lock it anyway.
> 
> The lock function on itself does not replace the functions of 
> a double / triple / frame buffer or a pageflipping routine. 
> But you could easily intergrate these functions.
> 
> I've did some speed comparisons; lock and unlock make a great 
> deal of difference in speed; if you are writing a large 
> amount of pixels, rectangles; be sure to lock first.
> 
> Ralph.
___
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] AS3 bitmapdata lock/unlock

2006-08-16 Thread Mike Mountain
That's how I read it, just wondered if anyone had done any real
performance comparisions - my test is fairly simple.

M

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Meinte van't Kruis
> Sent: 16 August 2006 10:43
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] AS3 bitmapdata lock/unlock
> 
> from the AS3 reference:
> "
> Locks an image so that any objects that reference the 
> BitmapData object, such as Bitmap objects, are not updated 
> when this BitmapData object changes.
> To improve performance, use this method along with the 
> unlock() method before and after numerous calls to the 
> setPixel() or setPixel32() method.
> "
> 
> With this in mind, it does seem to function like a double 
> buffering mechanism, since you can actually alter bitmapdata 
> before showing it on screen, therefor avoidoing the image to 
> show while processing it.
> 
> -Meinte
___
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] AS3 bitmapdata lock/unlock

2006-08-16 Thread Mike Mountain
Just messing around converting some double buffering AS2 routines to AS3
when I stumbled upon lock() and unlock() - does this make double
buffering unnecessary? I'm not noticing any immediate speed differences
between my routine using double buffering and my test with
lock()/unlock().

Cheers

M
___
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] print question

2006-08-11 Thread Mike Mountain
Have you thought of perhaps loading the swf into an MC offstage and
using the printjob class to print that. And googling first is just plain
courtesy man. Otherwise the quality of the forums decline and all the
people who would've had the answer to your problem move on elsewhere.

M 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Flash guru
> Sent: 11 August 2006 14:24
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] print question
> 
> Alright apparentlymy question was stupid, but no one has yet 
> to answer it, and yes i have read the pringjob class and 
> nothing i read would lead me to believe i can print an 
> external swf with it.
> ___
> 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


Re: [Flashcoders] Re: quotes in XML

2006-08-09 Thread Mike Britton

Are you using remoting?  Check out AMFPHP: http://www.amfphp.org/

You don't need to use the XML object to send your POST, just to receive it.
Create your XML object after you get your result back.

var my_xml = new XML();my_xml.onLoad = function(success){if (success){trace(
this);}}my_xml.load("yourScript.php");
___
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] Flash cant add up!!

2006-08-09 Thread mike cann

oaky great cheers :D

On 09/08/06, Michael Kneib <[EMAIL PROTECTED]> wrote:





http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_13989



Am Mi, 9.08.2006, 16:46, schrieb mike cann:
> Okay, i may be going crazy but slap this on frame one of a flash file
and
>  observe the output:
>
>...
>
> so the res value continues on like that being 0.0996 rather
> than 0.1..
>
>


___
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


RE: [Flashcoders] Calling functions in sequence

2006-08-09 Thread Mike Mountain
You can also store references to functions in an array and call them from the 
array.

FuncArr= []
FuncArr[0]=func0
FuncArr[1]=func1

// call func 1

FuncArr[1]()

// call a load of funcs in sequence
Var len=FuncArr.length
For(var i=0; i -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Andreas Rønning
> Sent: 09 August 2006 15:11
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Calling functions in sequence
> 
> I might be mistaken, but:
> 
> function doAll(){
>   func1();
>   func2();
>   func3();
>   func4();
> }
> 
___
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] Flash cant add up!!

2006-08-09 Thread mike cann

Okay, i may be going crazy but slap this on frame one of a flash file and
observe the output:

//

var incrementNum:Number = 0;
var oldNum:Number = 0;
var resultNum:Number =0;

onEnterFrame = function(){gogo();}

function gogo()
{
   oldNum = incrementNum;
   incrementNum += 0.1;
   resultNum = incrementNum - oldNum;

   trace("old: "+oldNum);
   trace("inc: "+incrementNum);
   trace("res: "+resultNum);
   trace("");
}

stop();

//

For those who dont have the time to test it the output follows like this:

//

old: 0
inc: 0.1
res: 0.1

old: 0.1
inc: 0.2
res: 0.1

old: 0.2
inc: 0.3
res: 0.1

old: 0.3
inc: 0.4
res: 0.1

old: 0.4
inc: 0.5
res: 0.1

old: 0.5
inc: 0.6
res: 0.1

old: 0.6
inc: 0.7
res: 0.1

old: 0.7
inc: 0.8
res: 0.1

old: 0.8
inc: 0.9
res: 0.1

old: 0.9
inc: 1
res: 0.1

old: 1
inc: 1.1
res: 0.1

old: 1.1
inc: 1.2
res: 0.1

old: 1.2
inc: 1.3
res: 0.1

old: 1.3
inc: 1.4
res: 0.1

old: 1.4
inc: 1.5
res: 0.1

old: 1.5
inc: 1.6
res: 0.1

old: 1.6
inc: 1.7
res: 0.1

old: 1.7
inc: 1.8
res: 0.1

old: 1.8
inc: 1.9
res: 0.1

old: 1.9
inc: 2
res: 0.0999

old: 2
inc: 2.1
res: 0.1

old: 2.1
inc: 2.2
res: 0.1

old: 2.2
inc: 2.3
res: 0.1

old: 2.3
inc: 2.4
res: 0.1

old: 2.4
inc: 2.5
res: 0.1

old: 2.5
inc: 2.6
res: 0.1

old: 2.6
inc: 2.7
res: 0.1

old: 2.7
inc: 2.8
res: 0.1

old: 2.8
inc: 2.9
res: 0.1

old: 2.9
inc: 3
res: 0.1

old: 3
inc: 3.1
res: 0.1

old: 3.1
inc: 3.2
res: 0.1

old: 3.2
inc: 3.3
res: 0.1

old: 3.3
inc: 3.4
res: 0.1

old: 3.4
inc: 3.5
res: 0.1

old: 3.5
inc: 3.6
res: 0.1

old: 3.6
inc: 3.7
res: 0.1

old: 3.7
inc: 3.8
res: 0.1

old: 3.8
inc: 3.9
res: 0.1

old: 3.9
inc: 4
res: 0.0996

old: 4
inc: 4.1
res: 0.0996

old: 4.1
inc: 4.2
res: 0.0996

old: 4.2
inc: 4.3
res: 0.0996

old: 4.3
inc: 4.4
res: 0.0996

old: 4.4
inc: 4.5
res: 0.0996

old: 4.5
inc: 4.6
res: 0.0996

old: 4.6
inc: 4.7
res: 0.0996

old: 4.7
inc: 4.8
res: 0.0996

old: 4.8
inc: 4.9
res: 0.0996

old: 4.9
inc: 5
res: 0.0996

old: 5
inc: 5.1
res: 0.0996

old: 5.1
inc: 5.2
res: 0.0996

//

so the res value continues on like that being 0.0996 rather than
0.1..

anyone have any idea why flash does this???
___
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] name objects dynamicly

2006-08-06 Thread Mike
"so.data.MyIndex.toString" is a function object.
"so.data.MyIndex.toString()" is a string representation of
"so.data.MyIndex".

--
T. Michael Keesey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Céline
Nguyen
Sent: Sunday, August 06, 2006 4:18 PM
To: Flashcoders mailing list
Subject: [Flashcoders] name objects dynamicly

I want to create a Shared Object and store lots of arrays and an index.
In order to be able to retrieve the right array in the future, I'd like
to 
name each array after the following pattern : MyArrayName + MyIndex

so = SharedObject.getLocal("MyLocalSharedObject");
so.data.MyArrayName["MyIndex"+so.data.MyIndex.toString] = [];
so.data.MyArrayName["MyIndex"+so.data.MyIndex.toString].push("member
0");

I don't understand because I have no compile time error, but
trace("so.data.MyArrayNameMyIndex0[0] is undefined.

Same when I want to give a dynamic name of a new class object instance.
I don't know how to write it.

Have you got an idea, please ? 


___
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


[Flashcoders] UIScrollbar disabled state?

2006-08-01 Thread Mike Pearce
First time I've noticed this..

 

Where are the disabled state skins for UIScrollbar?

Seems crazy that as soon as the scrollbar is disabled the buttons return to
halo?

 

Anyone noticed this or am I missing something?

 

Ie: you can set  - upArrowUpName, upArrowOverName, but not the disabled
state.

 

.wtf?

 

Mike Pearce

Nectarine  +61 3 9687 7820

 <http://www.nectarine.com.au/> www.nectarine.com.au

 

___
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] Loading a 3500 entry XML file

2006-07-31 Thread Mike
Now there's an interesting problem.

I have one really awkward idea. I'm assuming the XML structure is
something like this?









- Use the XML object's onData handler so that you can work with the raw
string data.
- Strip out the root opening and closing tags.
- Iterate through the string until you reach the end:
--- (The current character should be a "<".)
--- Set a countOpenTags variable to 1
--- Iterate:
- move forward one character
- For every character, if it is a "<", increment countOpenTags, and
if it is a ">", decrement countOpenTags
- When countOpenTags is 0:
--- Grab everything from to the current position in the string. This
grabbed string represents the raw data for an entry tag.
--- Create a timeout call to parse the grabbed string. Timeouts
should be spaced apart by a certain number of milliseconds.
(Experimentation will be required.) The last timeout should have a
callback that signals that all the XML has been parsed.
--- Break the loop.
--- If at the last character, break the loop.


Also, if you're interesting, I have an "async" package for performing
long calculations asynchronously. It works somewhat similarly. Basically
it keeps track of "checkpoints" and provides ways to keep track of time,
so that if too much time is spent, it can break out of the procedure and
re-enter it on a timeout. Checkpoints correspond to options on a large
switch statement. It's kind of a hack, but it's come in useful on
several occasions.
--
T. Michael Keesey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Clayton
Sent: Monday, July 31, 2006 9:10 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Loading a 3500 entry XML file

Hi all,

 

For reasons I'd rather not get into :s I'm loading an XML file into
flash
with 3500 entries (each has 13 child nodes describing elements of the
entry). To my initia, happyl surprise, Flash 8 only took several seconds
to
load it! I'm easing into processing to vars, and realized I needed
something
with no whitespace so flash could discern it's contents properly. When I
told flash to .ignoreWhite on the XML object it kaks out and dies
(unresponsive and crash). I decided to save it the trouble and had a
developer strip the whitespace out of the actual XML file when generated
from the Database. Smaller file (sans whitespace) however.that becomes
unresponsive on load too, and crashes Flash! (even with the .ignoreWhite
removed). Any ideas why? Any suggested other methods?

 

Clayton

___
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


RE: [Flashcoders] Problems getting the brightness of a colorreturnedfrom getPixel

2006-07-29 Thread Mike
Small correction.

This:
"This compares each bit in the first number to each bit in the
second
number. If both bits are 1 (on), that bit is 1 (on) in the result. If
both bits are 0 (off), both bits are 0 (off) in the result. So the
result is:"

...should be:
"This compares each bit in the first number to each bit in the
second
number. If both bits are 1 (on), that bit is 1 (on) in the result. If
*either bit is* 0 (off), *that bit is* 0 (off) in the result. So the
result is:"
(emphasis added)
--
T. Michael Keesey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Sent: Saturday, July 29, 2006 3:25 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Problems getting the brightness of a
colorreturnedfrom getPixel

You seem to be thinking of numbers as if they are stored like strings.
They aren't.

RGB colors are stored as 3-byte (24-bit) numbers.

For example, red looks like this in binary:

b

...which is the same thing as this in hexadecimal:

0xFF

... which is the same thing as this in decimal:

16711680

To isolate, for example the red portion, you can use SHIFT RIGHT (>>) to
shift all bits to the "right" by 16 bits. Binary:

b >> 16 = b

Hexadecimal:

0xFF >> 16 = 0xFF

Decimal:

16711680 >> 16 = 255

Generally it's a good idea not to presume that there may not be more
bits to the left, so you can filter them out using a bitwise AND (&). To
explain, this better, here's how to extract the green value from bright
cyan (0x7F):

The binary value of the color:

0111

Split into colors:

  0111

Shift right 8 bits:

10111b >> 8 = 

In hexadecimal, this result is:

0x

In decimal, it is:

65535

Clearly this is too large, because it includes the red value. To remove
it, we use a bitwise AND.

b & 0xFF = b = 0xFF

To illustrate, we are taking this value:

b (=0x; =65535)

...and doing a bitwise AND with this value:

b (=0x00FF; =255)

This compares each bit in the first number to each bit in the second
number. If both bits are 1 (on), that bit is 1 (on) in the result. If
both bits are 0 (off), both bits are 0 (off) in the result. So the
result is:

b (=0xFF; =255)

...which is, indeed, the green value of the color.

So Martin Wood's example (slightly edited):

var r:Number = color >> 16 & 0xFF;
var g:Number = color >> 8 & 0xFF;
var b:Number = color & 0xFF;

... is how to retrieve the red, green, and blue values from a single RGB
color number.
--
T. Michael Keesey


___
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


RE: [Flashcoders] Problems getting the brightness of a color returnedfrom getPixel

2006-07-29 Thread Mike
You seem to be thinking of numbers as if they are stored like strings.
They aren't.

RGB colors are stored as 3-byte (24-bit) numbers.

For example, red looks like this in binary:

b

...which is the same thing as this in hexadecimal:

0xFF

... which is the same thing as this in decimal:

16711680

To isolate, for example the red portion, you can use SHIFT RIGHT (>>) to
shift all bits to the "right" by 16 bits. Binary:

b >> 16 = b

Hexadecimal:

0xFF >> 16 = 0xFF

Decimal:

16711680 >> 16 = 255

Generally it's a good idea not to presume that there may not be more
bits to the left, so you can filter them out using a bitwise AND (&). To
explain, this better, here's how to extract the green value from bright
cyan (0x7F):

The binary value of the color:

0111

Split into colors:

  0111

Shift right 8 bits:

10111b >> 8 = 

In hexadecimal, this result is:

0x

In decimal, it is:

65535

Clearly this is too large, because it includes the red value. To remove
it, we use a bitwise AND.

b & 0xFF = b = 0xFF

To illustrate, we are taking this value:

b (=0x; =65535)

...and doing a bitwise AND with this value:

b (=0x00FF; =255)

This compares each bit in the first number to each bit in the second
number. If both bits are 1 (on), that bit is 1 (on) in the result. If
both bits are 0 (off), both bits are 0 (off) in the result. So the
result is:

b (=0xFF; =255)

...which is, indeed, the green value of the color.

So Martin Wood's example (slightly edited):

var r:Number = color >> 16 & 0xFF;
var g:Number = color >> 8 & 0xFF;
var b:Number = color & 0xFF;

... is how to retrieve the red, green, and blue values from a single RGB
color number.
--
T. Michael Keesey


___
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: [SPAM] RE: [Flashcoders] String Empowerment

2006-07-28 Thread Mike
If you REALLY wanted to be fancy, you could have it accept an array of
words *not* to capitalize (unless they are the first word). For example:

var lowerCaseWords:Array = ["a", "an", "and", "of", "the"];

trace("a tale of two cities".toTitleCase(lowerCaseWords));

trace("THE PRINCE AND THE PAUPER".toTitleCase(lowerCaseWords));

// Output:
// A Tale of Two Cities
// The Prince and the Pauper
--
T. Michael Keesey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Sacks | BLITZ
Sent: Friday, July 28, 2006 12:01 PM
To: Flashcoders mailing list
Subject: RE: [SPAM] RE: [Flashcoders] String Empowerment

> umm... Title Case as MS Word calls it...

Title Case in Word is different than capitalize.  Title Case capitalizes
every word in a string.  Capitalize only capitalizes the first character
of the string.  However, toTitleCase() would be a handy method.  I'll
code it.
___
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


[Flashcoders] Decompiler for AS3

2006-07-28 Thread Mike Mountain
We're discussing on the HaXe mailing list whether it would be possible
to decompile from Flash 8/AS2  swfs to Haxe, then (when the support is
added) recompile to Flash9/AS3 swfs to help speed up AS2 to AS3
conversion.

Obvious stumbling block at the moment is nothing decompiles to HaXe, but
as a related issue Ralf Bokelberg wondered if it would even be possible
to decompile a Flash 9 swf at all?

Anyone (Burak?)

M




___
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] AS3 scripting, first try - some Q's

2006-07-28 Thread Mike Mountain
Well my frustration was stoked by the vague error messages being churned
out by the compiler. But no sweat.

M 


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Supriya
> Sent: 28 July 2006 09:40
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] AS3 scripting, first try - some Q's
> 
> Well, I was trying to make a light moment. Hope you saw the 
> smiley in the answer.
> Again this is also a light moment :) . Chill out buddy :)
___
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] AS3 scripting, first try - some Q's

2006-07-28 Thread Mike Mountain
 
> Hi Mike,
> 
> I didnt know FlashCoders was a place to get one's code 
> reviewed for silly mistakes in logic.  Hence I just cleared 
> your way from thinking its an AS3 problem. Anyways glad to 
> know you figured it out.

You're right, it's not and I did think it was an AS2 - AS3 translation
problem, it wasn't, great, but it wouldn't have hurt too much to just
post what the problem actually was as well would it?

> And for your second question, I had already replied to it.

Hadn't seen this, looked back through the archive and found it now, for
some reason it wasn't being grouped in the same subject. I had actually
tried this approach - but it seemed to effect the whole document, not
individual mc's - will revisit.

Ta

M
___
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] loadComplete but no loadInit

2006-07-27 Thread Mike
Random thought--is it possible that the initialization code for the
loaded SWF is throwing an error? (I have no idea if this would stop
onLoadInit from being called, though.)

It's a long shot, but
--
T. Michael Keesey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tony
Fairfield
Sent: Thursday, July 27, 2006 6:30 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] loadComplete but no loadInit

Exactly the problem I encountered a few days ago - but no solution to it
yet. The only clue I have is that in the testing environment both
onLoadComplete and onLoadInit were successfully working. It was when I
tried
launching either a standalone projector or the swf independently, that
the
onLoadInit became erratic - it would fail on certain pages and not on
others. I am loading external swfs as page content using
movieClipLoader,
and I know it isn't the page content or size, because all are identical
(
small files of about 15k with exactly the same content). I have tried
using
delegates and cleaning the Listener and Loader (removing and deleting,
then
recreating) up completely after each load - same result. The answer is
out
there somewhere .

 

T Fairfield

___
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


RE: [Flashcoders] How to change reference?

2006-07-27 Thread Mike
It's a hack, but you can do:

as.func1.apply(_root);

Might be better to change func1 so that it takes a MovieClip as a
parameter. Then you could just do:

as.func1(_root);

(Although that's still a bit of a hack.)
--
T. Michael Keesey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of natalia
Vikhtinskaya
Sent: Thursday, July 27, 2006 3:40 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] How to change reference?

Maybe I was not clear.

Clip "as" has function "funk1"

To call this function from root I should say as.func1 or from another
clip:
_root.as.func1.

I want to find way to call this function as _root.func1 even if she is
in
clip with name "as".


2006/7/27, denfi <[EMAIL PROTECTED]>:
>
> you dun have to put _root.attachMovie since you are already attaching
it
> right from your current maintimeline.
>
> Instead just:
>
> attachMove("as","as",100); will do the job.
>
> Regrads!
>
> On 7/27/06, natalia Vikhtinskaya <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> >
> > I attach clip with this code:
> >
> > _root.attachMovie("as","as",100);
> >
> > Is it possible to change reference to this clip? Instead of
> >
> > as.something
> >
> > to have _root.something
> >
> >
> > Another words I want to find way to say _root instead of _root.as.
Is it
> > possible?
> >
> > Thank you for help.
> > ___
> > 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
> >
>
>
>
> --
> Discipline can be painful, but it helps when you give it a chance.
> ___
> 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

___
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] AS3 scripting, first try - some Q's

2006-07-27 Thread Mike Mountain
Anyone got an answer to the second part:

what's the simple AS3 scripting way (I know the class way) of doing

myObj.onEnterFrame=function(){
 this.x+=1
//Etc.
}

Cheers

Mike
___
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] AS3 scripting, first try - some Q's

2006-07-27 Thread Mike Mountain
for(var i=0; i -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Mike Mountain
> Sent: 27 July 2006 17:17
> To: Flashcoders mailing list
> Subject: RE: [Flashcoders] AS3 scripting, first try - some Q's
> 
> 
> > > function moveme(event:Event):void{
> > 
> > 
> > You aren't passing in an event there... so perhaps that is 
> causing the 
> > vomit?
> 
> The event gets passed auotmatically, it traces out fine
> 
> > 
> > On 7/27/06, Supriya <[EMAIL PROTECTED]> wrote:
> > >
> > > its not an AS3 problem, its a small problem in your logic in the 
> > > function moveme find it out :)
> 
> Y'see if I could work it out I wouldn't have posted would I? 
> This may be a "wood for trees" situation, but posts like that 
> just aren't helpful, so what's the point in posting? 
> 
> M
> ___
> 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


RE: [Flashcoders] AS3 scripting, first try - some Q's

2006-07-27 Thread Mike Mountain

> > function moveme(event:Event):void{
> 
> 
> You aren't passing in an event there... so perhaps that is 
> causing the vomit?

The event gets passed auotmatically, it traces out fine

> 
> On 7/27/06, Supriya <[EMAIL PROTECTED]> wrote:
> >
> > its not an AS3 problem, its a small problem in your logic in the 
> > function moveme find it out :)

Y'see if I could work it out I wouldn't have posted would I? This may be
a "wood for trees" situation, but posts like that just aren't helpful,
so what's the point in posting? 

M
___
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] AS3 scripting, first try - some Q's

2006-07-27 Thread Mike Mountain
OK having a dabble in AS3 for the first time and I ported a simple
particle script over to the timeline:

[as]
import flash.events.Event;
var numBots:int = 50;
var balls:Array=new Array();
//
for(var i=0; i<=numBots; i++){
var bl:Ball=new Ball();
var tmpBall=addChild(bl);
tmpBall.xmin = tmpBall.width/2;
tmpBall.ymin = tmpBall.height/2;
tmpBall.xmax = 550-tmpBall.xmin;
tmpBall.ymax = 400-tmpBall.ymin;
//
tmpBall.x =
Math.floor(Math.random()*(550-tmpBall.width))+tmpBall.xmin;
tmpBall.y =
Math.floor(Math.random()*(400-tmpBall.height))+tmpBall.ymin;
//
tmpBall.xVel = Math.floor(Math.random()*20)-10;
tmpBall.yVel = Math.floor(Math.random()*20)-10;
tmpBall.alpha=Math.random()*1
tmpBall.scaleX=tmpBall.scaleY=Math.random()*1
balls.push(tmpBall);
}
addEventListener(Event.ENTER_FRAME, moveme);

function moveme(event:Event):void{  
var l=balls.length; 
for(var i=0; i<=l; i++){
var bot:Ball = balls[i];
var nextX = bot.xVel+bot.x;
var nextY = bot.yVel+bot.y;
if (nextX>bot.xmax) {
bot.xVel = bot.xVel*-1;
nextX = bot.xmax-(nextX-bot.xmax);
} else if (nextXbot.ymax) {
bot.yVel = bot.yVel*-1;
nextY = bot.ymax-(nextY-bot.ymax);
} else if (nextYhttp://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] pass variables between classes in AS3

2006-07-27 Thread Mike
Depends on the structure, but, in the end, it sounds like it will boil
down to having some static method for the the document class to find the
movieclip, or the movieclip to find the document class. The simplest
variant of this approach is the Singleton pattern.

Is there only one instance of your document class, ever? Or only one
instance of your movieclip class?
--
T. Michael Keesey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Carl
Welch
Sent: Thursday, July 27, 2006 12:09 AM
To: Flashcoders mailing list
Subject: [Flashcoders] pass variables between classes in AS3

I have an AS3 document class where I load and parse an xml file into
an array. I would like to pass that array to a movieclip(?) class -
basically its a button that will create new movieclips that will
differ based on my xml array. How in the world do I get the array from
the document class to other classes... arggg! as3 is blowing my mind.
I've googled but I can't find anything that make sense to my as2
brain.

Thanks again.

-- 
Carl Welch
http://www.carlwelch.com
[EMAIL PROTECTED]
805.403.4819
___
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


RE: [Flashcoders] Array Empowerment

2006-07-26 Thread Mike
> -Original Message-
> From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of js
> Sent: Wednesday, July 26, 2006 7:01 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Array Empowerment
> 
> I was fairly surprised to see that if(this.length == 0) is considered 
sloppy opposed to (!this.length);

Err, other way around. (Although I have to admit I've been guilty of the
latter on numerous occasions--blame my C background.)
--
T. Michael Keesey

___
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] Array Empowerment

2006-07-26 Thread Mike
> > - "nitems" looks like "number of items" (i.e., "length"); why not
> > "numSetItems" or "countSetItem"?
>
> Yeah, I didn't think it was very descriptive either, but it returns
the
> number of non null/undefined items in the array (which, at the moment,
I
> don't see as very useful, hehe).  Perhaps it could be notNullCount()?

Yes, even better than my suggestions (or "countNotNull").

> This method actually inspires me to create a more useful method that I
> think is missing: count.

Nice.

> > - "some" -- maybe "forSome", or "exists"? (Also, "every" makes more
> > sense to me as "forAll".)
>
> every and some come from php.  But you bringing this up made me think
> about it, and I've concluded that 'any' is a more descriptive method
> name (and one less character to type!). 'any' and 'every' go together
> well (like chocolate and peanut butter).  I've renamed 'some' to
'any'.

In mathematics these are the quantifiers written as an upside-down "A"
and a backwards "E", respectively. They are usually read (and often
written) as "for all" and "[there] exists" or "for some"--hence my
suggestions.

There must be equivalent Java functions somewhere (and ActionScript is
far more akin to Java than PHP or Ruby).

> > - "eql" -- "equals" is far more standard
>
> eql is what is used in Ruby, while Java uses equals.  I don't know if
> there's a clear standard.  I like Ruby.  I think it's a great
language.
> I have no problem with shaving a few chars off for quicker typing,
> especially if "equals" ever enters into the language.  eql is more
> likely to not conflict with anything.

But, as pointed out before, ActionScript is far more akin to Java, where
"equals" is something just about every single object has. Furthermore,
some Flash objects (e.g., Point), already use "equals". Finally, "eql"
looks a lot like "leq".

> > - "include" is pretty close to a reserved word
>
> You're right.  I've renamed it 'has', which I think is perfect, and,
> coincidentally, still maintains alphabetical order without having to
> move it.  :)

Nice.

> > - the "delete" functions don't so much "delete" (i.e., totally
destroy)
> > as "remove" or "strip".
>
> They do delete - from the Array.  This method belongs to the Array
> class.  Hence, it's doing exactly what it says and what you expect -
> deleting an element from the Array.  Once you delete it from the
Array,
> it's no longer in the Array.  It's not Object.delete, it's
Array.delete.
> 
> Delete is the original name of the method in Ruby, but delete is a
Flash
> native method and cannot be assigned to a function.  So, I've used
> deleteAll, deleteAt and deleteIf.

There is no Object.delete or Array.delete, nor can there be, since
"delete" is a keyword--not a native method (like, say, "trace" or
"setInterval"), but part of the language itself (like "new"--same as in
C and Java and PHP). "Deleting" means you are utterly destroying the
object--essentially forcing garbage collection. "Removing" means you are
taking it out of the array (but it might still be referenced somewhere
else). I think you should only use "delete" (or "destroy") as part of
the name if you are actually forcing deletion, not if you are just
removing a reference.

In short, I don't think it's a good idea to use Ruby or PHP conventions
in ActionScript. Look to other ActionScript conventions first, then look
to Java conventions.

Niggling points, I know, but legible code is worth some thought, I
think.
--
T. Michael Keesey

___
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] net connection debugger not working in F8

2006-07-26 Thread Mike Boutin
Ive had this problem using the f8 remoting files.  It seems to fix 
itself for me by restarting flash...


Bbt Lists wrote:
Has anyone had this issue, or a way around it? I had searched google, 
and found references to using the mx2004 files to replace the F8 ones, 
but i do not have access to those...


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


RE: [Flashcoders] Array Empowerment

2006-07-26 Thread Mike Mountain
Doh, scrolled right past it, nice work.

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of janosch
> Sent: 26 July 2006 11:04
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Array Empowerment
> 
> uniq is the appropriate function
> 
> Janosch
___
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] Array Empowerment

2006-07-26 Thread Mike Mountain
Yup good to see, an optimised "remove duplicate items" would be good, or
have I missed it?

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Hans Wichman
> Sent: 26 July 2006 10:41
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Array Empowerment
> 
> Hi Steven,
> awesome, very welcome additions.
> Would addIfNotPresent (in want of a better name), 
> getRandomItem(with the option of deleting that randomItem), 
> randomizeOrder , make any sense to add as well? Or am I 
> missing something (with respect to the code that is).
> 
> greetz
> Hans
> 
>
___
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] Array Empowerment

2006-07-25 Thread Mike
Question totally unrelated to implementation and optimization:

Why do the function names have underscores when "camel-humped" names are
the customary syntax in ActionScript (and Java, and Javascript...)?

Some of the names could be clearer:
- "nitems" looks like "number of items" (i.e., "length"); why not
"numSetItems" or "countSetItem"?
- "rindex" is a bit confusing; why not "lastIndexOf" (as in the String
object)? (Also "index" could be "indexOf", to better agree with the
String interface.)
- "some" -- maybe "forSome", or "exists"? (Also, "every" makes more
sense to me as "forAll".)
- "uniq" -- do those two characters make much difference?
- "eql" -- "equals" is far more standard
- "include" is pretty close to a reserved word -- why not "hasItem"?
- the "delete" functions don't so much "delete" (i.e., totally destroy)
as "remove" or "strip".

Cool stuff, though!
--
T. Michael Keesey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ryanm
Sent: Tuesday, July 25, 2006 7:31 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Array Empowerment

> Here is the next iteration - new and improved.   Again, all
> comments and optimizations, including conversations about
> optimizations, are most welcome!
>
Those are great additions. You need a duplicate_deep and a 
replicate_deep, though. Right now, any obejcts stored in the array will
be 
references in the new array. A _deep method would make copies of those
too, 
recursively caling Array.duplicate, or Object.duplicate. ;-)

ryanm 

___
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


RE: [Flashcoders] Attention Recursion & Speed Experts

2006-07-25 Thread Mike
Why have the step with the semicolon? You can just do this:

var foo:Array = ["a", "b", "c", ["d", "e", ["d", "e", ["d", "e", ["d",
"e", "f", ["g", ["h"]], [[], "i"], "j"];
var fooFlat:Array = foo.toString().split(",");

Potential problems with this approach:
- It does not preserve the type of the elements, converting them all to
string.
- Any element that equates to a string with a comma in it will be
evaluated as two elements. E.g, if foo is set to ["a,b", "c"], it will
flatten to a 3-element array.

So it's only useful if the atomic elements are strings, and they are
guaranteed not to include commas.

I have no idea how efficient it is, processor-wise, although I would
suspect it is rather slow.
--
T. Michael Keesey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bernard
Visscher
Sent: Tuesday, July 25, 2006 2:05 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Attention Recursion & Speed Experts

I don't know if I understand this correctly, but is it making a array
flat?

Then this is the fastest way I think:

var foo : Array = ["a", "b", "c", ["d", "e",["d", "e",["d", "e",["d",
"e", "f", ["g", ["h"]], [[], "i"], "j"];
var fooString:String = foo.join(";");
fooString = fooString.split(",").join(";");
foo = fooString.split(";");

output:
a,b,c,d,e,d,e,d,e,d,e,f,g,h,,i,j
 

Bernard

> -Oorspronkelijk bericht-
> Van: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Namens 
> Danny Kodicek
> Verzonden: dinsdag 25 juli 2006 21:51
> Aan: Flashcoders mailing list
> Onderwerp: Re: [Flashcoders] Attention Recursion & Speed Experts
> 
> >Oh, I just noticed that Mark's was fastest.  
> 
> Sorry, replied to an easlier mail before noticing the thread 
> continued...
> 
> Danny
> ___
> 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

___
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] XML access

2006-07-24 Thread Mike Boutin

Yes you can use it in the same way...

eg. mainMenu[i].childNodes[i].childNodes[0].firstChild.nodeValue;

Jose Maria Barros wrote:

sorry...i didnt explained the whole thing..

the thing is that flash duplicates one button mc with all the elements from
the xml...and makes a loop.
Every button have a different link for a different pictures...

But the first one works good..(newBut.link = mainMenus[i].firstChild
.firstChild.nodeValue):


   
 >>>>>>>> this one works..
http://www.kirupa.com/developer/mx2004/pg/kresge.jpg

http://www.kirupa.com/developer/mx2004/pg/medialab.jpg

   


now the second..when i try to use this :

newBut.link2= mainMenus[i].firstChild.firstChild.firstChild.nodeValue;

to catch this:


   
 http://www.kirupa.com/developer/mx2004/pg/kresge.jpg 
http://www.kirupa.com/developer/mx2004/pg/medialab.jpg

   


On 7/24/06, Mike Boutin <[EMAIL PROTECTED]> wrote:


My not use childNodes?
mainMenu.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
mainMenu.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;


Jose Maria Barros wrote:
> Hi,
>
> i have the xml:
>
> 
>
>
http://www.kirupa.com/developer/mx2004/pg/kresge.jpg

>http://www.kirupa.com/developer/mx2004/pg/medialab.jpg
> 
>
> 
>
> in flash, the variable "link" that holded the "image" node:
>
> newBut.link = mainMenus[i].firstChild.firstChild.nodeValue;
>
> worked..welll...
>
>
> now i want to have other variable..that holds the "imagep"
> node..normally it
> would write:
>
> newBut.link2= mainMenus[i].firstChild.firstChild.firstChild.nodeValue;
>
>
> But it says is undefined...hows that ?
>
> 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


___
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


Re: [Flashcoders] Form Help Needed, Please - STILL NEED HELP

2006-07-24 Thread Mike Boutin
You could try using loadVars and return a status in xml rather than 
loadVariablesNum...


var myVars:LoadVars = new LoadVars;
var xml_results:XML = new XML();
xml_results.ignoreWhite = true;
xml_results.onLoad = function(success:Boolean){
if (success){

} else {

}
}
myVars.sendAndLoad("yourfile.asp", xml_results, "POST");


Loren R. Elks wrote:

Come on folks.  I know someone can help me with this.  Please.

Sincerely,
Loren

-Original Message-
From: Loren R. Elks 
Sent: Thursday, July 20, 2006 10:21 AM

To: 'flashcoders@chattyfig.figleaf.com'
Subject: Form Help Needed, Please


Hi:

I've got a form that just does not send.  Can someone please look at my
code?

I placed the FLA, SWF, HTML and ASP files in a zip located at:
www.d-mag.org/testform/sent_out.zip

I found out that I'm going to have to use ASP, as the client's webhost
does not support PHP.

Could you also email reply back to me directly as well?
[EMAIL PROTECTED] 


Thank you,
Loren
___
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


Re: [Flashcoders] XML access

2006-07-24 Thread Mike Boutin
My not use childNodes? 
mainMenu.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;

mainMenu.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;


Jose Maria Barros wrote:

Hi,

i have the xml:


   
   http://www.kirupa.com/developer/mx2004/pg/kresge.jpg 
   http://www.kirupa.com/developer/mx2004/pg/medialab.jpg

   


in flash, the variable "link" that holded the "image" node:

newBut.link = mainMenus[i].firstChild.firstChild.nodeValue;

worked..welll...


now i want to have other variable..that holds the "imagep" 
node..normally it

would write:

newBut.link2= mainMenus[i].firstChild.firstChild.firstChild.nodeValue;


But it says is undefined...hows that ?

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


Re: [Flashcoders] Radiobutton groupName issue *URGENT*

2006-07-20 Thread Mike Boutin
Thanks for all the posts. Yes this is what i ended up doing, i just 
figured there might be a way around it.. thanks again!



Mike

eric dolecki wrote:

yup - seems like a scoping issue...

if all the radiobutton mcw were nested in a larger, single mc, they could
all register with the radiobutton groupname that is defined in that single
mc. in theory.

e.d.

On 7/20/06, Alberto Florentin <[EMAIL PROTECTED]> wrote:


Hey, I just worked with radiobutton group for first time (at least for 2
years).  Had some problems on how to access the radioGroup object itself.
Finally used var radiogroup = eval(myradioButton.groupName) and then 
added

to it the event listener.  Problem is, to make it work I had to include
the
path to the movieclip containing the radiobutton, like this var 
radiogroup

=
eval(path +"."+myradioButton.groupName).  So I understand the
radiobuttongroup object belongs to the _parent.myradioButton
movieclip.  In
your case it seems that you get multiple radiobutton groups, one for each
movieclip.  You have to find some other way to do it.

Alberto

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Mike 
Boutin

Sent: Wednesday, July 19, 2006 8:35 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Radiobutton groupName issue *URGENT*


I am creating multiple movieclips with 1 radiobutton in each.  I want
them all the tie into 1 radiobutton Group, but the follow code doesnt
seem to work.  Can anyone tell me what im doing wrong and how to go
about fixing it?


I created a test case to show exactly what im trying to do...


import mx.controls.RadioButton;
for (var i =0; i<10; i++){
var mc:MovieClip = this.createEmptyMovieClip("rbHolder_"+i,
this.getNextHighestDepth());
var rb = mc.createClassObject(RadioButton, "rb_"+i,
mc.getNextHighestDepth(), {label:"rb_"+i, groupName:"configGroup"});
mc._y = i * 20;
trace("Group Name: "+rb.groupName);
}



Mike Boutin
___
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


___
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


RE: [Flashcoders] HTML Parser with Flash

2006-07-19 Thread Mike
XHTML or HTML 4.0?

If the former, you can just use the XML object. If the latter ... have
fun
--
T. Michael Keesey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sara
Czyzewicz
Sent: Wednesday, July 19, 2006 1:46 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] HTML Parser with Flash

 

Fellow Flashcoders,

 

I'm looking for a way of parsing through an HTML page using
ActionScript.

Would be greatly appreciated if someone could point me in some
direction... 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


RE: [Flashcoders] Difference between null and undefined?

2006-07-19 Thread Mike
That is really weird, huh?

Well, for strings, I think it's often better to use .length for Boolean
tests, anyway:

function test(s:String) {
if (s.length) {
// Catches any nonempty string.
} else {
// Catches null, undefined, and empty strings.
}
}
--
T. Michael Keesey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of janosch
Sent: Wednesday, July 19, 2006 10:24 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Difference between null and undefined?

Thats very strange, but in usual case  you do not check for the pure 
value, but for the value, saved in a variable:
a = "foo";
trace(!a); // false

Janosch




Mike schrieb:

>That's what I thought, too, but when I did the test, !"foo" evaluated
as
>true.
>
>trace(!"foo"); /// Outputs "true".
>--
>T. Michael Keesey


___
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] Radiobutton groupName issue *URGENT*

2006-07-19 Thread Mike Boutin
I am creating multiple movieclips with 1 radiobutton in each.  I want 
them all the tie into 1 radiobutton Group, but the follow code doesnt 
seem to work.  Can anyone tell me what im doing wrong and how to go 
about fixing it?



I created a test case to show exactly what im trying to do...


import mx.controls.RadioButton;
for (var i =0; i<10; i++){
	var mc:MovieClip = this.createEmptyMovieClip("rbHolder_"+i, 
this.getNextHighestDepth());
	var rb = mc.createClassObject(RadioButton, "rb_"+i, 
mc.getNextHighestDepth(), {label:"rb_"+i, groupName:"configGroup"});

mc._y = i * 20;
    trace("Group Name: "+rb.groupName);
}



Mike Boutin
___
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] Difference between null and undefined?

2006-07-19 Thread Mike
That's what I thought, too, but when I did the test, !"foo" evaluated as
true.

trace(!"foo"); /// Outputs "true".
--
T. Michael Keesey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of janosch
Sent: Wednesday, July 19, 2006 9:39 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Difference between null and undefined?

little error in !"foo", correct like this:

if (!"foo") {
// This will never run.
trace('"foo"');
}


___
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] Difference between null and undefined?

2006-07-19 Thread Mike
Whoops...

if (![].length) {
// This will never run.
trace("[].length");
}

... should say ...

if (![].length) {
// This will always run.
trace("[].length");
}

... and ...

if (!"foo".length) {
// This will always run.
trace('"foo".length');
}

... should say ...

if (!"foo".length) {
// This will never run.
trace('"foo".length');
}
--
T. Michael Keesey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Sent: Wednesday, July 19, 2006 9:07 AM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Difference between null and undefined?

You can actually just use (!var) in most cases.

if (!undefined) {
// This will always run.
trace(undefined);
}
if (!null) {
// This will always run.
trace(null);
}
if (!false) {
// This will always run.
trace(false);
}
if (!0) {
// This will always run.
trace(0);
}
if (!"") {
// This will always run.
trace('""');
}
if (!"".length) {
// This will always run.
trace('"".length');
}
if (!"foo") {
// This will always run.
trace('"foo"');
}
// Conversely...
if (!"foo".length) {
// This will always run.
trace('"foo".length');
}
if (!true) {
// This will never run.
trace(true);
}
if (!1) {
// This will never run.
trace(1);
}
if (!-1) {
// This will never run.
trace(-1);
}
if (!(Math.random() + 1)) {
// This will never run.
trace("Math.random() + 1");
}
if (!{}) {
// This will never run.
trace("{}");
}
if (![]) {
// This will never run.
trace("[]");
}
--
T. Michael Keesey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rifled
Cloaca
Sent: Wednesday, July 19, 2006 8:00 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Difference between null and undefined?

FlashCoders,

I've recently been upgrading some old Flash MX code to Flash 8, and have
been running into issues where properties return 'undefined' instead of
'null'.  I seem to recall that undefined was introduced in Flash 7.
I've
always been confused about when something is undefined versus null, so I
always check for both. { (var != undefined && var != null) }

Is there an explanation somewhere regarding the difference between
undefined
and null, and when to expect which?  If not, can someone who understands
explain it?

Thanks in advance!

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

___
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] Difference between null and undefined?

2006-07-19 Thread Mike
It's useful in traces.
--
T. Michael Keesey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rifled
Cloaca
Sent: Wednesday, July 19, 2006 9:34 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Difference between null and undefined?

This is particularly annoying:

"In files published for Flash Player 6 or earlier, the value of
String(undefined) is "" (an empty string). In files published for Flash
Player 7 or later, the value of String(undefined) is "undefined"
(undefinedis converted to a string)."

Why convert 'undefined' to a string?  When is that useful?


___
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] Difference between null and undefined?

2006-07-19 Thread Mike
You can actually just use (!var) in most cases.

if (!undefined) {
// This will always run.
trace(undefined);
}
if (!null) {
// This will always run.
trace(null);
}
if (!false) {
// This will always run.
trace(false);
}
if (!0) {
// This will always run.
trace(0);
}
if (!"") {
// This will always run.
trace('""');
}
if (!"".length) {
// This will always run.
trace('"".length');
}
if (!"foo") {
// This will always run.
trace('"foo"');
}
if (![].length) {
// This will never run.
trace("[].length");
}
// Conversely...
if (!"foo".length) {
// This will always run.
trace('"foo".length');
}
if (!true) {
// This will never run.
trace(true);
}
if (!1) {
// This will never run.
trace(1);
}
if (!-1) {
// This will never run.
trace(-1);
}
if (!(Math.random() + 1)) {
// This will never run.
trace("Math.random() + 1");
}
if (!{}) {
// This will never run.
trace("{}");
}
if (![]) {
// This will never run.
trace("[]");
}
--
T. Michael Keesey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rifled
Cloaca
Sent: Wednesday, July 19, 2006 8:00 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Difference between null and undefined?

FlashCoders,

I've recently been upgrading some old Flash MX code to Flash 8, and have
been running into issues where properties return 'undefined' instead of
'null'.  I seem to recall that undefined was introduced in Flash 7.
I've
always been confused about when something is undefined versus null, so I
always check for both. { (var != undefined && var != null) }

Is there an explanation somewhere regarding the difference between
undefined
and null, and when to expect which?  If not, can someone who understands
explain it?

Thanks in advance!

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


[Flashcoders] Flash videos streaming from RealServer

2006-07-18 Thread Mike Nowak
We were recently forced to move a whole lot of videos to a seperate RealServer 
media streaming server. After changing the paths, all our flvs worked fine... 
however, any SWFs with videos embeded in them (for various reasons) behave 
oddly. The videos play, but I can't do much beyond that.

getBytesLoaded() and getBytesTotal() are undefined, which I can understand, so 
I switched to using _framesloaded and _framestotal (which comes in as the file 
streams in).

telling it to stop() or go to a frame doesn't do anything, and I'm having 
trouble with unloading it, amongst other things.

Yet, when I test locally, everything works. Is it RealServer? Is it a 
cross-domain issue (and if it is, why's the file playing to begin with and why 
do the flvs work)? I'm totally at a loss at trouble shooting this.

-mike

___
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] ActionScript Application Framework

2006-07-18 Thread Mike Britton

We definitely can do this, but it may amount to reinventing the wheel.

Do you suggest this in lieu of Cairngorm and ARP?  Are there things about
these frameworks that make them undesirable?

Mike
___
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] AMFPHP: CrossDomain

2006-07-17 Thread Mike Britton

To skirt this issue, I use AMFPHP proxy classes on my swf's host
server to talk to other servers or snap up RSS files.  Not sure about
filesystem stuff though.  It seems like that would be a security issue
on the backend as well as the front!

Feel free to mail me offlist if you want to check out one of the PHP
proxy classes.

Mike
___
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] How to embed metadata in SWF files?

2006-07-16 Thread Mike Britton

I would build a "wrapper" MovieClip class extension for your compiled
SWF, and use LocalConnection to send/receive the values.  That is, use
LocalConnection in both the compiled swfs and in the wrapper.  The
wrapper is the receiver and the compiled clips are the broadcasters.

http://www.osflash.org/localconnection

hth,

Mike
___
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] How to embed metadata in SWF files?

2006-07-15 Thread Mike Britton

A couple questions for you Jeff:

1. What version of Flash player are you targeting?
2. How are you generating the swfs?


Mike
___
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] Flash SQL

2006-07-14 Thread mike cann

this doesnt sound like a good idea as anyone can download your .swf and
decompile it then change that SELECT * statement to a DROP statement with
ease.

On 12/07/06, Jose Maria Barros <[EMAIL PROTECTED]> wrote:


Now im working on a project that involves SQL Server, ASP , XML and
flash..and i think its so difficult to work with this for me..
Maybe tthis component whill help..but not much..

Im not a good coder..so maybe this help

On 7/12/06, jcarlos <[EMAIL PROTECTED]> wrote:
>
> it seems to be interesting
>
> But I didn´t see any Stored Procedure based example
>
> Isn´t  this SQL open way of dB query not very recommended since it
exposes
> your persistence logic, tables and so on ???
>
> I´m not an n-layers app expert but I found this arguments very often

>
> João Carlos
>
> - Original Message -
> From: "Tunç Atakan" <[EMAIL PROTECTED]>
> To: "'Flashcoders mailing list'" 
> Sent: Wednesday, July 12, 2006 9:39 AM
> Subject: RE: [Flashcoders] Flash SQL
>
>
> > http://www.netdrims.com/flashsql/
> >
> >
> > Anybody use this component?
> >
> > I need comment?
> >
> > Thanx...
> >
> > Tunc
> >
> >
> >
> > ___
> > 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
>
___
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


RE: [Flashcoders] conflicts with the name of another class

2006-07-14 Thread Mike
I find this happens when two classes import each other. Just compile
again and the error goes away. Weird little bug that will hopefully go
away in Flash 9.

(I'm assuming you don't actually have two classes both named
'ConnectDots'.)
--
T. Michael Keesey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Kønig
Sent: Thursday, July 13, 2006 2:44 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] conflicts with the name of another class

Sometimes I get this message with differnet classes. Never knew what
causes 
it:

The name of this class, 'ConnectDots', conflicts with the name of
another 
class that was loaded, 'ConnectDots'.

Anyone else?


___
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


RE: [Flashcoders] Abstract classes in AS3?

2006-07-12 Thread Mike
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nicolas
Cannasse
Sent: Wednesday, July 12, 2006 1:16 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Abstract classes in AS3?
>
> Mike Keesey wrote:
> > I don't really care whether they allow private constructors or not,
as
> > long as they provide some way of accomplishing the same thing.
> > Specifically, I want to be able to:
> > 1) Limit the number of instances of certain classes (singletons,
> > enumerations).
>
> Did you have a look at haXe enums ?
> http://haxe.org/ref#the_power_of_enum

Sure, something like that would be nice. But it's not in AS3.0.

> > 2) Have methods which are not attached to specific class instances.
> 
> That's a bit like static methods no ?

I was incomplete. I should have said, "Have *bundled* methods which are
not attached to specific class instances." That is, I want to be able to
have groups of static methods. Static classes are how this is currently
accomplished, but if we can't have private constructors, there's no way
to prevent someone from (pointlessly) instantiating a static class.

Can methods be attached to packages in AS3.0? If so, that might help.

> > 3) Be able to create classes that cannot be instantiated themselves
but
> > can be superclasses of concrete classes.
>
> Yes, I agree there. Removing the ability to create private
constructors
> seems completely pointless. The rational behind it seems a bit like
"you
> don't need that", which is not a very strong point IMHO.

Exactly!

Replace the removed functionality with some other strategy, but don't
just get rid of it and pretend nothing's wrong.
--
Mike Keesey

___
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] Php Host (Full Control)

2006-07-12 Thread Mike
I'm gonna jump on this thread with a more specific question.

One person mentioned www.hostbrigade.com, which offers, among other
things:
# Full root access
# Install anything you want

Any recommendations for other hosts like this?
--
Mike Keesey

___
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] IIS vs Apache: transferring of vars from swf to PHPproblem?

2006-07-12 Thread Mike Britton

Bernard is right.  Take a look at these resources before you go live with
your application:

http://del.icio.us/search/?all=PHP+security


Mike
___
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] Php Host

2006-07-12 Thread Mike Britton

I use FutureQuest (http://www.futurequest.net/) and love their service.
I've never had a problem for over four years.  They have PHP, MySQL and
Ruby; shared and dedicated hosting; I can't say enough good things about
them quite honestly.

hth,

Mike
___
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] Abstract classes in AS3?

2006-07-11 Thread Mike
I don't really care whether they allow private constructors or not, as
long as they provide some way of accomplishing the same thing.
Specifically, I want to be able to:
1) Limit the number of instances of certain classes (singletons,
enumerations).
2) Have methods which are not attached to specific class instances.
3) Be able to create classes that cannot be instantiated themselves but
can be superclasses of concrete classes.

#3 for example, is much better implemented with the "abstract" keyword
than with private constructors, but AS3.0 doesn't have the "abstract"
keyword, so now there is no way to elegantly accomplish this (i.e., in
such a way that errors are caught at compile-time instead of runtime).

So, yeah, make all constructors public if you must, but give us some
other way to accomplish these things.
--
T. Michael Keesey

___
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] Abstract classes in AS3?

2006-07-11 Thread Mike
Yeah, but what if you're doing an enumeration class, like so:

class TransitionState {
private function TransitionState() {
}
public static var NOT_PLAYED_IN:TransitionState = new
TransitionState();
public static var PLAYING_IN:TransitionState = new
TransitionState();
public static var PLAYED_IN:TransitionState = new
TransitionState();
public static var PLAYING_OUT:TransitionState = new
TransitionState();
public static var PLAYED_OUT:TransitionState = new
TransitionState();
}

I want to be able to assume that these are the only 5 TransitionState
objects in existence! (Okay, somebody could extend the class and make
more--are they adding "final" in AS3.0?)

Or what about static method classes? Why should something like this be
allowed?:

var stupid:Math = new Math();

Or, to return to the original topic, what if you want to do a
pseudo-abstract class?

Saying it's not ECMAScript doesn't fully answer the question--what is
ECMAScript's rationale for not allowing private constructors?
--
T. Michael Keesey

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of eka
Sent: Tuesday, July 11, 2006 11:45 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Abstract classes in AS3?

private constructor is not ECMAScript !

to create a Singleton you can use a simple object inherit "internal"
class,
it's more clean :)

links about this subject : http://blog.jasonnussbaum.com/?p=112

french discussion about this subject :
http://groups.google.com/group/FCNG/browse_thread/thread/544f79b0b223b15
a/e2b2527f81678da7?lnk=st&q=constructeur+AS3&rnum=1#e2b2527f81678da7



PS : sorry for my english ^_^

EKA+ :)



2006/7/11, Weyert de Boer <[EMAIL PROTECTED]>:
>
> Why is it removed?
> ___
> 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

___
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


<    1   2   3   4   5   6   7   8   9   10   >