[Flashcoders] Swtich Statement issue!?

2005-12-06 Thread Dan Thomas
I have a method that returns a number which I know to be of value 1
I have a static number variable in another class (SWF_STATE) which I
also know to be 1.
In an if() statement they evaluate to equal the same, however in the
following switch statement it will not evaluate?


trace(TYPE:+currItem.getMediaType()+ COMPARED TO: +
VideoVO.SWF_STATE); // this traces TYPE:1 COMPARED TO:1


if(currItem.getMediaType() == VideoVO.SWF_STATE)
{
trace(wtf?!);//this evaluates and traces
}
switch(currItem.getMediaType()) // this switch always traces the
error (default branch)
{
case VideoVO.FLV_STATE:
this.currentPlayer = swfPlayer;
break;
case VideoVO.SWF_STATE:
this.currentPlayer = swfPlayer;
break;
case VideoVO.MP3_STATE:
this.currentPlayer = swfPlayer;
break;
case sometest==VideoVO.JPG_STATE:
this.currentPlayer = swfPlayer;
break;
default:
trace(ERROR: NO MEDIA TYPE!);
}

trace(sometest); // traces 1
trace(VideoVO.SWF_STATE); // traces 1

Any help on this very much appreciated!

Dan

This message and any attachments should only be read by those persons to whom 
it is addressed and be used by them for its intended purpose.  It must not 
otherwise be reproduced, modified, distributed, published or actioned. If you 
have received this e-mail in error, please notify us immediately by telephone 
on 01202 237000 and delete it from your computer immediately. This e-mail 
address must not be passed to any third party or be used for any other purpose. 
Every reasonable precaution has been taken to ensure that this e-mail, 
including attachments, does not contain any viruses. However, no liability can 
be accepted for any damage sustained as a result of such viruses, and 
recipients are advised to carry out their own checks. 


Moov2 Ltd cannot accept liability for statements made which are clearly the 
senders own and not made on behalf of the Moov2 Ltd. An e-mail reply to this 
address may be subject to interception or monitoring for operational reasons or 
for lawful business purposes.


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


RE: [Flashcoders] flash and ASP.NET

2005-12-09 Thread Dan Thomas
I've taken a look and was pretty impressed but what they say to be offering, 
however was also a little confused, i downloaded the free edition that 
supposedly supports remoting with asp.net but it didn't seem to include all the 
files it said it would. I've joined their yahoo mailing list and posted for 
help so will keep you posted.
 
Dan



From: [EMAIL PROTECTED] on behalf of Gabe Varela
Sent: Fri 09/12/2005 22:12
To: Flashcoders mailing list
Subject: RE: [Flashcoders] flash and ASP.NET



There aren't any links to the standard edition on their site anymore.

-Original Message-
From: hank williams [mailto:[EMAIL PROTECTED]
Sent: Friday, December 09, 2005 11:30 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] flash and ASP.NET

I am not a user so I am not an expert on flashorb. But as I understand
it, weborb is just the most recent version that, along with handling
flash remoting also does ajaxy stuff.  I believe the free version is the
standard edition. If you cant find the weborb, I think the flashorb
standard edtion is fine since all that weborb does is add support for
ajaxy stuff.

Regards
Hank

On 9 Dec 2005 17:54:42 -, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:

 between flashorb pro, flashorb standard and weborb and the fact their
news doesn't link to the item the news is talking about I was a little
confused on what to download, is weborb professional for .net the free
thing ?  I could find a weborb standard in the downloads section...

 grant

 - Original Message -
 From: hank williams [EMAIL PROTECTED]
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Sent: 12/7/05 3:13 PM
 Subject: Re: [Flashcoders] flash and ASP.NET

  www.flashORB.com  has a free .NET remoting product.
 
  Regards
  Hank
 
  On 12/7/05, Michael Appelmans  wrote:
   I need to create a Flash application for a small non-profit can't
   afford the
   $999 price tag of MM's Flash Remoting gateway. Is there a third
   party remoting solution like AMFPHP that I could use? Essentially
   I need to read and write to an Access database on a Windows web
host.
  
   Thanks for any suggestions and pointers to examples for this.
  
   Michael
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

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


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



This message and any attachments should only be read by those persons to whom 
it is addressed and be used by them for its intended purpose.  It must not 
otherwise be reproduced, modified, distributed, published or actioned. If you 
have received this e-mail in error, please notify us immediately by telephone 
on 01202 237000 and delete it from your computer immediately. This e-mail 
address must not be passed to any third party or be used for any other purpose. 
Every reasonable precaution has been taken to ensure that this e-mail, 
including attachments, does not contain any viruses. However, no liability can 
be accepted for any damage sustained as a result of such viruses, and 
recipients are advised to carry out their own checks. 


Moov2 Ltd cannot accept liability for statements made which are clearly the 
senders own and not made on behalf of the Moov2 Ltd. An e-mail reply to this 
address may be subject to interception or monitoring for operational reasons or 
for lawful business purposes.


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


RE: [Flashcoders] flash and ASP.NET

2005-12-10 Thread Dan Thomas
For what its worth I have managed to get WebOrb working (with a bit of help 
from Scott Hyndman), yet to do anything other than take a look and mess around 
with the samples it comes with but looks pretty decent. Certainly a nice viable 
alternative for .net heads.
 
From their downloads page I downloaded WebOrb for .Net after setting up my 
local IIS to run .net properly and it worked fine.
 
Dan



From: [EMAIL PROTECTED] on behalf of Tjalle Groen
Sent: Sat 10/12/2005 17:56
To: Flashcoders mailing list
Subject: Re: [Flashcoders] flash and ASP.NET



Why don't you just use XML for the communication between flash en ASP.NET. 

Just use .net for the database connection and read/write actions. 

Write out your XML with .NET and import the page just like you would import 
XML in Flash. 

Use that all the time and it works like a charm... 

oioioi 

Tjalle 


On 12/7/05, Paul Hart [EMAIL PROTECTED] wrote: 
 
 I have written a .NET based web service(for a game scoreboard) which I 
 use to read/write to a SQL database from flash, the type of data 
 source doesn't matter to .NET, if you want I can package it up and 
 send the source to you?  Let me know because I'll need to remove 
 sensitive connection string details etc. 
 I can also send you the scoreboard as2 class which work well with the 
 web service. 
 
 Regards 
 Paul 
 On 07/12/05, Pete Hotchkiss [EMAIL PROTECTED] wrote: 
  Openamf is not .NET 
  
  http://starwolf.ch/ is 
  
  -Original Message- 
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Serge 
  Jespers 
  Sent: 07 December 2005 12:56 
  To: Flashcoders mailing list 
  Subject: Re: [Flashcoders] flash and ASP.NET 
  
  
  Have a look at http://www.openamf.org 
  Don't know if this can help you but it's also a third party remoting 
  solution. 
  
  
  
   I need to create a Flash application for a small non-profit can't 
   afford the 
   $999 price tag of MM's Flash Remoting gateway. Is there a third party 
   remoting solution like AMFPHP that I could use? Essentially I need 
   to read 
   and write to an Access database on a Windows web host. 
   
   Thanks for any suggestions and pointers to examples for this. 
   
   Michael 
   ___ 
   Flashcoders mailing list 
   Flashcoders@chattyfig.figleaf.com 
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 
  
  ___ 
  Flashcoders mailing list 
  Flashcoders@chattyfig.figleaf.com 
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 
  
  
  ___ 
  Flashcoders mailing list 
  Flashcoders@chattyfig.figleaf.com 
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 
  
 ___ 
 Flashcoders mailing list 
 Flashcoders@chattyfig.figleaf.com 
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 
 



-- 
Tjalle Groen 

http://www.kermitsmistake.tk 
http://www.boredsheep.tk 
___ 
Flashcoders mailing list 
Flashcoders@chattyfig.figleaf.com 
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders 


This message and any attachments should only be read by those persons to whom 
it is addressed and be used by them for its intended purpose.  It must not 
otherwise be reproduced, modified, distributed, published or actioned. If you 
have received this e-mail in error, please notify us immediately by telephone 
on 01202 237000 and delete it from your computer immediately. This e-mail 
address must not be passed to any third party or be used for any other purpose. 
Every reasonable precaution has been taken to ensure that this e-mail, 
including attachments, does not contain any viruses. However, no liability can 
be accepted for any damage sustained as a result of such viruses, and 
recipients are advised to carry out their own checks. 


Moov2 Ltd cannot accept liability for statements made which are clearly the 
senders own and not made on behalf of the Moov2 Ltd. An e-mail reply to this 
address may be subject to interception or monitoring for operational reasons or 
for lawful business purposes.


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


[Flashcoders] Array like access to custom class?

2005-12-20 Thread Dan Thomas
Can I provide array like access to a custom collection object?

E.g.

Class MyClass
{
private var myArray:Array;

public function getArray():Array
{
return this.myArray;
}
}

This would allow access to the array items as so:

var someClass:MyClass = new MyClass;
thisItem = someClass.getArray[0];

How can I change it so I can achieve the same thing but with access to
the items like this:

var someClass:MyClass = new MyClass;
thisItem = someClass[0];

Hope that makes some sort of sense?

Cheers,

DannyT 

This message and any attachments should only be read by those persons to whom 
it is addressed and be used by them for its intended purpose.  It must not 
otherwise be reproduced, modified, distributed, published or actioned. If you 
have received this e-mail in error, please notify us immediately by telephone 
on 01202 237000 and delete it from your computer immediately. This e-mail 
address must not be passed to any third party or be used for any other purpose. 
Every reasonable precaution has been taken to ensure that this e-mail, 
including attachments, does not contain any viruses. However, no liability can 
be accepted for any damage sustained as a result of such viruses, and 
recipients are advised to carry out their own checks. 


Moov2 Ltd cannot accept liability for statements made which are clearly the 
senders own and not made on behalf of the Moov2 Ltd. An e-mail reply to this 
address may be subject to interception or monitoring for operational reasons or 
for lawful business purposes.


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


RE: [Flashcoders] Array like access to custom class?

2005-12-20 Thread Dan Thomas
Thanks very much Morten

DannyT
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Morten
Barklund Shockwaved
Sent: 20 December 2005 13:15
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Array like access to custom class?

Dan Thomas wrote:
 Can I provide array like access to a custom collection object?
 
 E.g.
 
 Class MyClass
 {
   private var myArray:Array;
   
   public function getArray():Array
   {
   return this.myArray;
   }
 }
 
 [snip]
 
 How can I change it so I can achieve the same thing but with access to
 the items like this:
 
 var someClass:MyClass = new MyClass;
 thisItem = someClass[0];

Use __resolve:

class MyClass
{
private var myArray:Array;

public function __resolve(name:String):Object
{
if (!isNaN(name)) {
return myArray[Number(name)];
} else {
return false;
}
}
}

But it will not strict type properly at all, so you lose major 
benefits of using as2 this way. I'd do it:

class MyClass
{
private var myArray:Array;

public function elem(n:Number):Object
{
return myArray[n];
}
}

And:

var someClass:MyClass = new MyClass;
thisItem = someClass.elem(0);

Then you will get proper validation of argument, parameter and return
types.

-- 
Morten Barklund - Information Architect - Shockwaved
Gothersgade 49, 4th floor - DK-1123 Copenhagen K, Denmark
Phone: +45 7027 2227 - Fax: +45 3369 1174
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

This message and any attachments should only be read by those persons to whom 
it is addressed and be used by them for its intended purpose.  It must not 
otherwise be reproduced, modified, distributed, published or actioned. If you 
have received this e-mail in error, please notify us immediately by telephone 
on 01202 237000 and delete it from your computer immediately. This e-mail 
address must not be passed to any third party or be used for any other purpose. 
Every reasonable precaution has been taken to ensure that this e-mail, 
including attachments, does not contain any viruses. However, no liability can 
be accepted for any damage sustained as a result of such viruses, and 
recipients are advised to carry out their own checks. 


Moov2 Ltd cannot accept liability for statements made which are clearly the 
senders own and not made on behalf of the Moov2 Ltd. An e-mail reply to this 
address may be subject to interception or monitoring for operational reasons or 
for lawful business purposes.


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


[Flashcoders] OT: Disney-esque designer folios

2006-03-21 Thread Dan Thomas
Hey am looking for some Disney-esque designer portfolios for a potential
future flash project. Anyone have any suggestions or can point me in the
right direction?

Cheers
Dan

This message and any attachments should only be read by those persons to whom 
it is addressed and be used by them for its intended purpose.  It must not 
otherwise be reproduced, modified, distributed, published or actioned. If you 
have received this e-mail in error, please notify us immediately by telephone 
on 01202 237000 and delete it from your computer immediately. This e-mail 
address must not be passed to any third party or be used for any other purpose. 
Every reasonable precaution has been taken to ensure that this e-mail, 
including attachments, does not contain any viruses. However, no liability can 
be accepted for any damage sustained as a result of such viruses, and 
recipients are advised to carry out their own checks. 


Moov2 Ltd cannot accept liability for statements made which are clearly the 
senders own and not made on behalf of the Moov2 Ltd. An e-mail reply to this 
address may be subject to interception or monitoring for operational reasons or 
for lawful business purposes.


___
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