Re: [Flashcoders] Yahoo! Maps Flash API

2006-06-15 Thread Diego Guidi

I have tried the component that you link, and the
com.yahoo.maps.widgets.NavigatorWidget don't work!

2006/6/14, Mike Britton [EMAIL PROTECTED]:

I'm getting started with the Yahoo! Flash API, and noticed their Maps
mxp doesn't include com.yahoo.maps.widgets.NavigatorWidget.  Looks
like Yahoo! needs to update their MXP to include this code since
there's an article on Adobe about how to use it.

http://www.adobe.com/devnet/flash/articles/yahoo_mashup_02.html

If anyone's run into this, let me know (and if you have this MXP with
com.yahoo.maps.widgets.NavigatorWidget included, I'd appreciate it
someone could send this to me offlist).


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




--
Diego Guidi
http://lacorrente.blogspot.com è il mio blog personale...
http://blogs.ugidotnet.org/GisSharpBlog è il mio blog tecnico...
http://nts.sourceforge.net è la mia NetTopologySuite...
___
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] xls - xml mapping

2006-06-15 Thread MetaArt
Make a simple CMS, based on server-side language like PHP, and allow client
to write its new content, leaving to PHP the job to write it in xml file...

* Enrico Tomaselli
* web designer
[EMAIL PROTECTED]
http://www.metatad.it
* Skype: MetaArt
RSS: http://www.metatad.it/mnfeeder.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] .swf's containing html's location

2006-06-15 Thread Aaron Buchanan
That's a cool way to do that. Unfortunately, I am unable to modify the
embed, as it's automated by the ad serving application.

Thanks though!
Aaron


On 6/14/06 10:46 PM, Rajat Paharia [EMAIL PROTECTED] wrote:

 Here's something I tried that might work if you have control over the code
 used to do the embed. You'll need to set allowScriptAccess to always and
 set the name/id in the OBJECT/EMBED tags to the same as the variable
 embedName. This doesn't require any javascript to be embedded in the page.
 This sets a variable named location to the location of the HTML page. You
 should wait a frame or two before trying to read it.
 
 getURL ('javascript:document.getElementById(' + embedName+
 ').setVariable(location, window.location.href); void (0);');
 
 I have in my notes that this only worked in IE, but can't remember the
 specifics. Also won't work on MySpace where they overwrite allowScriptAccess
 to never.
 
 Crazy the hoops you need to jump through to even attempt to get this
 information.
 
 best, - rajat
 
 
 On 6/14/06, Aaron Buchanan [EMAIL PROTECTED] wrote:
 
 After I asked, I found a bunch of people mentioning this bug. Sorry for
 bein
 lazy.. According to some livedocs post, we cannot rely on this event
 because:
 
 The problem is that the MovieClipLoader.onLoadError function is triggered
 by 404 HTTP error... as far as I know, nor mozilla or CF based servers
 return 404 error to flash.. that's why it doesn't work...
 
 FROM:
 
 http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/h
 tml/wwhelp.htm?context=Flash_MX_2004file=1579.html
 
 So I tried not using the moviecliploader class, and just using a loadmovie
 then an iterative function to watch the movieclip's _url property to
 change,
 but it didn't.
 
 I guess the clip's _url value will only be updated once the load has
 finished, or an error has been returned. Otherwise it's still waiting for
 something to load (as indicated by the status waiting for
 lab-media.com...).
 
 Anyone else have any ideas? I'm about out, sigh.
 
 Thx!
 Aaron
 
 
 On 6/14/06 9:06 PM, Aaron Buchanan [EMAIL PROTECTED] wrote:
 
 Interesting find Jameson! I just ran it on a pc here at the office and
 it
 worked in IE and failed in Firefox. It also fails on OS X in firefox.
 
 Anyone know of any issues with onLoadError not being triggered from
 firefox?
 
 Thx!
 Aaron
 
 
 On 6/14/06 8:45 PM, Jameson Hsu [EMAIL PROTECTED] wrote:
 
 I think I figured out the problem.  Your solution only seems to work
 when
 running Safari.  I'm running Firefox on a PC so that's why your
 examples
 weren't working for me.
 
 Jameson
 
 
 ___
 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] The Delegate class ...

2006-06-15 Thread Ian Thomas

On 6/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Alot of people complain that you can't pass parameters with delegate. Well
you can, a multiple of ways, and if you structure your code with some
forethought, you can have it pass params if you are delegating a function
structured do so.


Alternatively you could use (or write, as I did) a slightly more
advanced version of Delegate which takes function passing into
account.

A couple of popular variants are:

http://www.dynamicflash.co.uk/2005/02/delegate-class-refined/

and

http://www.person13.com/articles/proxy/Proxy.htm

They let you write things like:

myButton1.onRelease=Delegate.create(this,onSomeButtonPressed,green);
myButton2.onRelease=Delegate.create(this,onSomeButtonPressed,red);

:

function onSomeButtonPressed(colour:String)
{
  trace(The +red+ button was pressed!);
}

and also to pass additional parameters to existing callback function.

HTH,
 Ian
___
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] The Delegate class ...

2006-06-15 Thread eka

Hello :)

You can use my Delegate implementation too in VEGAS Framework :

-
http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/vegas/events/Delegate.as(
vegas.events.Delegate class)
- http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/bin/test/vegas/events/(example
with Delegate and Event Model EventDispatcher, etc..)
- http://svn1.cvsdude.com/osflash/vegas/AS2/trunk/src/vegas/events/ (package
vegas.events)

More information about VEGAS : http://osflash.org/vegas

EKA+ :)

2006/6/15, Ian Thomas [EMAIL PROTECTED]:


On 6/15/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 Alot of people complain that you can't pass parameters with delegate.
Well
 you can, a multiple of ways, and if you structure your code with some
 forethought, you can have it pass params if you are delegating a
function
 structured do so.

Alternatively you could use (or write, as I did) a slightly more
advanced version of Delegate which takes function passing into
account.

A couple of popular variants are:

http://www.dynamicflash.co.uk/2005/02/delegate-class-refined/

and

http://www.person13.com/articles/proxy/Proxy.htm

They let you write things like:

myButton1.onRelease=Delegate.create(this,onSomeButtonPressed,green);
myButton2.onRelease=Delegate.create(this,onSomeButtonPressed,red);

:

function onSomeButtonPressed(colour:String)
{
   trace(The +red+ button was pressed!);
}

and also to pass additional parameters to existing callback function.

HTH,
  Ian
___
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] Command line compile

2006-06-15 Thread Nicolas Cannasse
 Scott  Stacey:
 Yeah, seems crazy not to use mtasc, but unfortunately that's not my  
 decision to make.

If you need MTASC support, you can contract with my company.

You'll have to spent some money and most likely we will not have
anything to do since the compiler just works :)

Nicolas
___
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] Command line compile

2006-06-15 Thread Nicolas Cannasse
 A couple notes about MTASC -
 
 First off its pretty strict. Your code has to be pretty solid, items have
 to be casted properly, variables cannot be redefined in the same scope,
 etc, or MTASC bitches at your fierce. Its not a bad thing in the long run,
 but something you should think about preparing for if you are going to use
 it. I had to refactor an entire codebase which was quite large, and clean
 up the casting and variable definitions, in order for MTASC to work with
 it. IT was not fun. The code, by no means was incorrect or even sloppy.
 MTASC is just super super strict. I personally like that tho.

I would put that the other way and say that MMC is actually a very
sloppy - and even buggy - compiler. Some people reported that when
compiling with MTASC they could actually find BUGS in their code that
should have been reported by MMC but were not.

Now if you like strictness, you should turn ON the -strict commmandline
flag. I'm sure you will like it :)

Nicolas
___
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] camera detection

2006-06-15 Thread Mayur Bais
Hello all,

 

I am trying to develop  camera recording application.

I was able to record the video and save it and play back again .

 

But my problem is :  it needs to  show  camera feed in video component by
default,  if user has already attached camera to  his PC and 

NOT show the setting popup asking user to allow camera access.

 

How can I go about this ?

Thanks in  advance 

Regards,

Mayur 

 

 

 

___
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] getting Google Video wmode=transparent to work

2006-06-15 Thread Paul Evans

On 15 Jun 2006, at 02:19, Barrett wrote:
Flash stays on top of everything in a site, DHTML, Javascript, z- 
index layer

order, everything, unless you set wmode to transparent,


Unless you have a *visual* reason for wmode=transparent, you might  
try wmode=opaque. You should get the same logical control - but with  
less cpu overhead (hence better performance).


As to why it is not working for you - you might wish to post a link  
to the affected page so others can see your code rather than taking  
guesses at what's wrong.


Or you could compare what you are doing with this...

http://www.communitymx.com/content/source/E5141/wmodeopaque.htm

Paul
--
[ http://www.creative-cognition.co.uk/ ]


___
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] Class overloading question

2006-06-15 Thread Nik Derewianka

Hi All,

Im trying to overload the Sound class to add my own features, it works fine
for all the basic features, but what do i need to do with my class to pass
through a parameter to the constructor of the superclass ?  ie for the var x
= new ExtendedSound(my_soundMC), what do i need to call in my class to pass
the my_soundMC up to the original Sound class?  (ExtendedSound already has
extends Sound in its class definition).

Regards,
--
:: Nik Derewianka ::
:: freelance director programmer ::
___
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] ComboBox and Other Flash Components

2006-06-15 Thread Lieven Cardoen
I've created a ComboBox. Strangely when I open the combobox, the field
with selections goes under the other components...???

 

Any idea as why. Swapdepths doesn't solve it.

 

Lieven

 

lieven cardoen

indiegroup
interactive digital experience
engelse wandeling 2 k18 
b8500 kortrijk 
T +32 (0)56/361 197
// communicatie bij voorkeur op [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 

 

___
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] Class overloading question

2006-06-15 Thread eka

hello :)

in AS1 :

_global.SuperSound = function ( mc ) {
super (mc) ;
}

SuperSound.prototype.__proto__ = Sound.prototype ; // inherit

in AS2 :

class SuperSound extends Sound {

   // o Constructor

   function SuperSound( mc ) {
  super(mc) ;
   }

}

You can use super to call the superclass constructor

You can use super too in methods :


class SuperSound extends Sound {

   // o Constructor

   function SuperSound( mc ) {
  super(mc) ;
  this.target = mc ;
   }

   // -o Public Properties

  public var target:MovieClip ;

   // -o Public Methods

  public function stop () {
 super.stop() ;
 trace(i stop the sound in :  + target) ;
   }
}

EKA+ :)

2006/6/15, Nik Derewianka [EMAIL PROTECTED]:


Hi All,

Im trying to overload the Sound class to add my own features, it works
fine
for all the basic features, but what do i need to do with my class to pass
through a parameter to the constructor of the superclass ?  ie for the var
x
= new ExtendedSound(my_soundMC), what do i need to call in my class to
pass
the my_soundMC up to the original Sound class?  (ExtendedSound already has
extends Sound in its class definition).

Regards,
--
:: Nik Derewianka ::
:: freelance director programmer ::
___
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] Class overloading question

2006-06-15 Thread André Goliath
 
RTFM @ super()
  
This will call the parent constructor with the parameters you pass to it.
That should always be the first line in inherited classes.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nik
Derewianka
Sent: Thursday, June 15, 2006 11:19 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Class overloading question

Hi All,

Im trying to overload the Sound class to add my own features, it works fine
for all the basic features, but what do i need to do with my class to pass
through a parameter to the constructor of the superclass ?  ie for the var x
= new ExtendedSound(my_soundMC), what do i need to call in my class to pass
the my_soundMC up to the original Sound class?  (ExtendedSound already has
extends Sound in its class definition).

Regards,
-- 
:: Nik Derewianka ::
:: freelance director programmer ::
___
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] Class overloading question

2006-06-15 Thread André Goliath
Sorry, I ment

That should always be the first line in constructors of inherited classes,

not the first line of the class itself...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of André
Goliath
Sent: Thursday, June 15, 2006 12:38 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Class overloading question

 
RTFM @ super()
  
This will call the parent constructor with the parameters you pass to it.
That should always be the first line in inherited classes.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nik
Derewianka
Sent: Thursday, June 15, 2006 11:19 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Class overloading question

Hi All,

Im trying to overload the Sound class to add my own features, it works fine
for all the basic features, but what do i need to do with my class to pass
through a parameter to the constructor of the superclass ?  ie for the var x
= new ExtendedSound(my_soundMC), what do i need to call in my class to pass
the my_soundMC up to the original Sound class?  (ExtendedSound already has
extends Sound in its class definition).

Regards,
-- 
:: Nik Derewianka ::
:: freelance director programmer ::
___
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] Class overloading question

2006-06-15 Thread eka

Hello :)

you can use the Function Constructor of the SuperClass too


class MyClass extends SuperClass {

function MyClass ( param ) {

trace(test1 in MyClass constructor) ;

SuperClass.call(this, param) ; // like super()

trace(test2 in MyClass constructor) ;

}

}

EKA+ :)

2006/6/15, André Goliath [EMAIL PROTECTED]:


Sorry, I ment

That should always be the first line in constructors of inherited classes,

not the first line of the class itself...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of André
Goliath
Sent: Thursday, June 15, 2006 12:38 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Class overloading question


RTFM @ super()

This will call the parent constructor with the parameters you pass to it.
That should always be the first line in inherited classes.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nik
Derewianka
Sent: Thursday, June 15, 2006 11:19 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Class overloading question

Hi All,

Im trying to overload the Sound class to add my own features, it works
fine
for all the basic features, but what do i need to do with my class to pass
through a parameter to the constructor of the superclass ?  ie for the var
x
= new ExtendedSound(my_soundMC), what do i need to call in my class to
pass
the my_soundMC up to the original Sound class?  (ExtendedSound already has
extends Sound in its class definition).

Regards,
--
:: Nik Derewianka ::
:: freelance director programmer ::
___
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] Class overloading question

2006-06-15 Thread André Goliath
RTFM @ super()
  
This will call the parent constructor with the parameters you pass to it.
That should always be the first line in inherited classes.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Nik
Derewianka
Sent: Thursday, June 15, 2006 11:19 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Class overloading question

Hi All,

Im trying to overload the Sound class to add my own features, it works fine
for all the basic features, but what do i need to do with my class to pass
through a parameter to the constructor of the superclass ?  ie for the var x
= new ExtendedSound(my_soundMC), what do i need to call in my class to pass
the my_soundMC up to the original Sound class?  (ExtendedSound already has
extends Sound in its class definition).

Regards,
-- 
:: Nik Derewianka ::
:: freelance director programmer ::
___
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] Class overloading question

2006-06-15 Thread Nik Derewianka

Thanks all :)

Regards,
--
:: Nik Derewianka ::
:: freelance director programmer ::
___
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] xls - xml mapping

2006-06-15 Thread Ron Wheeler
If you give the client an OpenOffice spreadsheet, the data is already 
stored in XML and you may only need a minor transformation with XSLT to 
get it into a format that you want for for your flash backend.

OpenOffice is free and looks a lot like Excel .
If your client will only deal with Excel, you can read the Excel 
spreadsheet with OpenOffice, save it as an OpenOffice spreadsheet and 
continue the process.
We used this to build a searchable database of Personal Protective 
Equipment for First Responders that ran without any server(police cars 
and firetrucks do not generally have their own on board servers.).


Ron

Kedar Mehendale wrote:

Hi,

I have designed a website in flash with a xml backend. All the products are 
called from the xml datasheet. Now the client wants a simpler way of updating 
the site. He finds xml difficult to work on.

How can i map an xls to the xml backend. ie the client will update the xls file 
 upload it. From there the xml should read the xls file and update the site.

Is that possible. Pls do help if anyone knows the solution or codes to do it.

Thanks.

Regards,
Kedar Mehendale

Account Supervisor
Tribal DDB India 
[EMAIL PROTECTED]

Brindavan , 3rd Floor, Shree Ram Mills, Worli, Mumbai 18
Tel: 022-30404055 /58
Cell: 9820211838
www.tribalddbindia.com


This email is intended only for the named person or entity to which it is 
addressed and contains valuable business information that is privileged, 
confidential and/or otherwise protected from disclosure. Dissemination, 
distribution or copying of this email or the information herein, by anyone 
other than the intended recipient or an employee or an agent responsible for 
delivering the message to the intended recipient, is strictly prohibited. All 
contents are the copyright property of Mudra Communications Pvt. Ltd. (Mudra) 
or its group Companies or its clients. If you are not the intended recipient, 
you are nevertheless bound to respect the sender's legal rights. We require 
that unintended recipients delete the email and destroy all electronic copies 
in their system, retaining no copies in any media. Information in this message 
that do not relate to the official business of sender or its group Companies 
shall be understood to be neither given nor endorsed by the Company. If you 
have received this e-mail in error, please notify us immediately by email to 
[EMAIL PROTECTED]

The email has been successfully scanned for presence of virus.  It is 
recommended to scan along with attachment, if any, before launching. We do not 
accept any liability for any errors, omissions, viruses or computer problems 
experienced by any recipient as a result of this email.








___
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] camera detection

2006-06-15 Thread Mike Cobb

-

Hello,

If you right-click on the flash movie and check the remember box, this 
will stop the dialog appearing for that computer only.


There is no way to stop the dialog box appearing unless a user does this 
- it's a security feature to stop us developers spying on people without 
their knowledge ;)


HTH

Mike


Mayur Bais wrote:

Hello all,

 


I am trying to develop  camera recording application.

I was able to record the video and save it and play back again .

 


But my problem is :  it needs to  show  camera feed in video component by
default,  if user has already attached camera to  his PC and 


NOT show the setting popup asking user to allow camera access.

 


How can I go about this ?

Thanks in  advance 


Regards,

Mayur 

 

 

 


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

___
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] ComboBox Halo

2006-06-15 Thread Matthew Simpson
Good Morning.

I have a ComboBox on stage which is not behaving properly. When I pull
down the list within the Combo the Halo surrounding the drop down list
stays visible on stage also when I use the scrollbar to scroll down to a
selection, the moment I move the mouse away from the scroll bar the drop
down rolls back up. I can use the scroll wheel on my mouse to make a
selection.

Has anyone encountered this type of behavior? 
 

Sincerely,

Matthew Simpson

Senior U.I. Engineer 

SmartEquip Inc.

203.604.1309

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 

 

This e-mail, including attachments, is covered by the Electronic
Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and
may be legally privileged. If you are not the intended recipient, you
are hereby notified that any retention, dissemination, distribution, or
copying of this communication is strictly prohibited. Please reply to
the sender that you have received the message in error, and then please
delete it. Thank you.


___
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] xls - xml mapping

2006-06-15 Thread Scott Hyndman

What server-side language are you dealing with? If it's a .NET
language, this kind of thing is very easy to accomplish. You can
access the contents of excel spreadsheets in one of two ways.

1. There is a ADO.NET data provider called Microsoft Jet
http://www.aspfree.com/c/a/Database-Code/Accessing-an-Excel-Spreadsheet-in-ASPNET-VB-and-C-by-Alex-Lowe/

2. You can use the Excel Object Library (I believe it's available just
by installing Excel)
http://www.codeproject.com/csharp/csharp_excel.asp

Scott

On 15/06/06, Ron Wheeler [EMAIL PROTECTED] wrote:

If you give the client an OpenOffice spreadsheet, the data is already
stored in XML and you may only need a minor transformation with XSLT to
get it into a format that you want for for your flash backend.
OpenOffice is free and looks a lot like Excel .
If your client will only deal with Excel, you can read the Excel
spreadsheet with OpenOffice, save it as an OpenOffice spreadsheet and
continue the process.
We used this to build a searchable database of Personal Protective
Equipment for First Responders that ran without any server(police cars
and firetrucks do not generally have their own on board servers.).

Ron

Kedar Mehendale wrote:
 Hi,

 I have designed a website in flash with a xml backend. All the products are 
called from the xml datasheet. Now the client wants a simpler way of updating the 
site. He finds xml difficult to work on.

 How can i map an xls to the xml backend. ie the client will update the xls file 
 upload it. From there the xml should read the xls file and update the site.

 Is that possible. Pls do help if anyone knows the solution or codes to do it.

 Thanks.

 Regards,
 Kedar Mehendale
 
 Account Supervisor
 Tribal DDB India
 [EMAIL PROTECTED]
 Brindavan , 3rd Floor, Shree Ram Mills, Worli, Mumbai 18
 Tel: 022-30404055 /58
 Cell: 9820211838
 www.tribalddbindia.com
 

 This email is intended only for the named person or entity to which it is 
addressed and contains valuable business information that is privileged, 
confidential and/or otherwise protected from disclosure. Dissemination, 
distribution or copying of this email or the information herein, by anyone other 
than the intended recipient or an employee or an agent responsible for delivering 
the message to the intended recipient, is strictly prohibited. All contents are 
the copyright property of Mudra Communications Pvt. Ltd. (Mudra) or its group 
Companies or its clients. If you are not the intended recipient, you are 
nevertheless bound to respect the sender's legal rights. We require that 
unintended recipients delete the email and destroy all electronic copies in their 
system, retaining no copies in any media. Information in this message that do not 
relate to the official business of sender or its group Companies shall be 
understood to be neither given nor endorsed by the Company. If you have received 
this e-mail in error, please notify us immediately by email to [EMAIL PROTECTED]

 The email has been successfully scanned for presence of virus.  It is 
recommended to scan along with attachment, if any, before launching. We do not 
accept any liability for any errors, omissions, viruses or computer problems 
experienced by any recipient as a result of this email.








 ___
 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] Sharing fla over network

2006-06-15 Thread Kurt Dommermuth

Hello fellow flashers,

I hope everyone is well!

First, let me apologize.  I know this topic must have been discussed many 
times before, but I simply can't find any info about it.


I recently hired an assistant and we need to share and simultaneously work 
on .fla files over a local network.


There must be tools for this, but a search on google didn't yield anything 
(must not be using the right terminology).


Any recommendations?

thank you very much for your time!

Kurt Dommermuth

___
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] Problem with AnimationPackage

2006-06-15 Thread Jan Schluenzen

Hi everyone!

I'm currenty trying out Alex Uhlmann's AnimationPackage
(http://www.alex-uhlmann.de/flash/animationpackage/) and I ran into a
problem concerning the Animation class. This might be a bug but I'm
currently guessing that I did something wrong somewhere along the
way...

So, I'm trying to set up a simple Animation instance where 3
movieclips (mc1, mc2 and mc3) are moved across the screen with
different starting points. All of this works well, as long as I don't
change the TweenModes and DurationModes of the AnimationCore class.
Then only the first tween starts, the others just don't happen. Does
anyone know what the deal is?

Here's the code:

import  de.alex_uhlmann.animationpackage.*;
import  de.alex_uhlmann.animationpackage.animation.*;
import  de.alex_uhlmann.animationpackage.drawing.*;
import  de.alex_uhlmann.animationpackage.utility.*;
import  com.robertpenner.easing.*;

APCore.initialize();
APCore.setFPS(31);

// These are the two lines of code that break the functionality!
AnimationCore.setTweenModes(AnimationCore.FRAMES);
AnimationCore.setDurationModes(AnimationCore.MS);

var a = new  Animation();
a.addChild(new Move(mc1, 390, 93), 0, 1000);
a.addChild(new  Move(mc2, 390, 215), 300, 1500);
a.addChild(new Move(mc3, 390, 347), 1000,  3000);
a.animationStyle(3000, Expo.easeOut);
a.animate(0,  100);


thanks in advance!
Jan
___
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] Command line compile

2006-06-15 Thread Merrill, Jason
Having said that, once I got it running through MTASC I went from a
four
and half minute compile time to 29 seconds. That made things so much
easier :)

I'm just curious - what kinds of projects are people working on that
compiling takes 4  1/2 minutes?  I use a lot of AS 2 classes I write
for projects, and leverage oether classes, keep almost all media
external, and compiling in the IDE never takes more than a few seconds.
Maybe it's the kind of projects I work on.  I have no doubt there are
reasons compiling takes a lot longer on larger projects with a different
focus than what I'm doing, I'm just curious what causes those long
compile times.  Makes me feel a little inadequate.  :) 

Jason Merrill
Bank of America 
Learning 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] Accessing non-interface methods from an object ofan interface type

2006-06-15 Thread Mark Lapasa
Thanks EKA and JC for your answers.

I -kinda- knew that was the answer but I wanted to know if there was another
way.

Casting/trantyping an abstract object down into one of a concrete type seems
like to me very self-defeating to use abstractions as a data type.

I might as well say

var tmp:ConcreteClass = new ConcreteClass();
tmp.bar();

as JC has mentioned and forget about the low-coupling flexibility of using
interfaces. I imagined the inital route I wanted to go ought to work at
run-time but the compiler is not forgiving.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Hans
Wichman
Sent: Wednesday, June 14, 2006 5:52 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Accessing non-interface methods from an
object ofan interface type


The compiler sees an object of type Interface which does not support the
method you are trying to call. Either use:
var tmp:ConcreteClass = new ConcreteClass();
or
var tmp:Interface = new ConcreteClass();
ConcreteClass(tmp).bar();

grtz
JC



On 6/14/06, Mark Lapasa [EMAIL PROTECTED] wrote:

 ///
 // Inside Interface.as //
 ///
 interface Interface
 {
public function foo():Void;
 }



 ///
 // Inside ConcreteClass.as //
 ///
 import Interface;

 class ConcreteClass implements Interface
 {
public function foo():Void { trace(Foo was fired);};  // As
 required by
 the interface
public function bar():Void { trace(Bar was fired);};
 }



 ///
 // Inside the Test.FLA //
 ///
 import ConcreteClass;
 import Interface;
 var tmp:Interface = new ConcreteClass();

 tmp.foo();  // Works
 tmp.bar();  // Doesn't Work, why?




 I don't think all the public ConcreteClass methods have to be listed in an
 interface.
 Has anyone else come across this problem? Thx,


 -mL
 http://knowledge.lapasa.net


 ___
 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] Sharing fla over network

2006-06-15 Thread Zeh Fernando
I recently hired an assistant and we need to share and simultaneously work 
on .fla files over a local network.
There must be tools for this, but a search on google didn't yield anything 
(must not be using the right terminology).


There isn't. Only one people can work on a .FLA at a time.

You can have separate symbols that are loaded (shared) from other .FLA 
files at design time, so then can be worked on and the reloaded. But usually 
it's not worth the hassle.


Usually, you shouldn't have the need for two people to work on the same .FLA 
file at the same time simply because changing two different aspects of a 
source file would make compiling and debugging impossible. If they want to 
work on two different things, you'd better split the .FLA file into 
different files, then the website would have different SWF files which are 
loaded on demand on the website.



- Zeh 


___
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] Sharing fla over network

2006-06-15 Thread Danny Kodicek


I recently hired an assistant and we need to share and simultaneously 
work

on .fla files over a local network.
There must be tools for this, but a search on google didn't yield 
anything (must not be using the right terminology).


There isn't. Only one people can work on a .FLA at a time.

You can have separate symbols that are loaded (shared) from other .FLA 
files at design time, so then can be worked on and the reloaded. But 
usually it's not worth the hassle.


Usually, you shouldn't have the need for two people to work on the same 
.FLA file at the same time simply because changing two different aspects 
of a source file would make compiling and debugging impossible. If they 
want to work on two different things, you'd better split the .FLA file 
into different files, then the website would have different SWF files 
which are loaded on demand on the website.


Not forgetting external script files too, of course.

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


Re: [Flashcoders] Sharing fla over network

2006-06-15 Thread Kurt Dommermuth

Makes sense.  Thanks Zeh.

Maybe you can tell me if there if there is any way to ensure that accessing 
fla files over the network is stable.  I know in the past that flas have 
disappeared on me when working off a network drive.  I'm guessing you'd say 
that I should duplicate whatever it is and put in on my own local drive and 
not even risk it, but I thought I'd ask.  It's just a mess to have client 
work all over the place.


thanks again!
Kurt

\At 09:49 AM 6/15/2006, you wrote:

I recently hired an assistant and we need to share and simultaneously 
work on .fla files over a local network.
There must be tools for this, but a search on google didn't yield 
anything (must not be using the right terminology).


There isn't. Only one people can work on a .FLA at a time.

You can have separate symbols that are loaded (shared) from other .FLA 
files at design time, so then can be worked on and the reloaded. But 
usually it's not worth the hassle.


Usually, you shouldn't have the need for two people to work on the same 
.FLA file at the same time simply because changing two different aspects 
of a source file would make compiling and debugging impossible. If they 
want to work on two different things, you'd better split the .FLA file 
into different files, then the website would have different SWF files 
which are loaded on demand on the website.



- Zeh
___
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] Sharing fla over network

2006-06-15 Thread Merrill, Jason
Isn't is a better idea to have different people writing classes and then
sharing those? You can use interfaces to make sure they are complying
with the specs you establish for the project.  Then just have one person
compile the .fla.  The people writing classes can compile their own
.flas to test their classes, but the classes should be abstract enough
that only the lead Flash person needs to compile the .fla importing the
other classes the other developers wrote.  

Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Kurt Dommermuth
Sent: Thursday, June 15, 2006 9:57 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Sharing fla over network

Makes sense.  Thanks Zeh.

Maybe you can tell me if there if there is any way to ensure that
accessing
fla files over the network is stable.  I know in the past that flas
have
disappeared on me when working off a network drive.  I'm guessing
you'd say
that I should duplicate whatever it is and put in on my own local
drive and
not even risk it, but I thought I'd ask.  It's just a mess to have
client
work all over the place.

thanks again!
Kurt

\At 09:49 AM 6/15/2006, you wrote:

I recently hired an assistant and we need to share and
simultaneously
work on .fla files over a local network.
There must be tools for this, but a search on google didn't yield
anything (must not be using the right terminology).

There isn't. Only one people can work on a .FLA at a time.

You can have separate symbols that are loaded (shared) from other
.FLA
files at design time, so then can be worked on and the reloaded. But
usually it's not worth the hassle.

Usually, you shouldn't have the need for two people to work on the
same
.FLA file at the same time simply because changing two different
aspects
of a source file would make compiling and debugging impossible. If
they
want to work on two different things, you'd better split the .FLA
file
into different files, then the website would have different SWF files
which are loaded on demand on the website.


- Zeh
___
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] Sharing fla over network

2006-06-15 Thread Ian Thomas

And if you're going to be working on a collection of different
external .as files, it's always a good idea to look at using a
versioning system such as Subversion/SVN -
http://subversion.tigris.org

Versioning systems aren't a great deal of help with binary files such
as .flas, but are a great help with text files such as .as files, .xml
files and anything else you have lying about.

Subdividing your .fla file into a number of smaller files as Zeh
suggests, and making your classes external then stuffing the whole
thing in Subversion is about the best solution that you can get. It's
not ideal - multiple people working on .flas never is.

An alternative strategy is to use MTASC and Swfmill to generate all
your .swfs from text-based sources files (.as files and .xml files)
and not to have any top-level .fla files at all (although you'd
probably need .flas for some graphical assets). That, combined with
Subversion, can be a lot easier to control.

Sharing binary source files between people is always a pain - sorry!

Cheers,
 Ian

On 6/15/06, Danny Kodicek [EMAIL PROTECTED] wrote:


Not forgetting external script files too, of course.

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


Re: [Flashcoders] Accessing non-interface methods from an object ofan interface type

2006-06-15 Thread eka

Hello :)

i forget ... you can transform your expression too with [] notation :

import ConcreteClass;
import Interface;
var tmp:Interface = new ConcreteClass();

tmp[bar]() ; // works too

EKA+ :)


2006/6/15, Mark Lapasa [EMAIL PROTECTED]:


Thanks EKA and JC for your answers.

I -kinda- knew that was the answer but I wanted to know if there was
another
way.

Casting/trantyping an abstract object down into one of a concrete type
seems
like to me very self-defeating to use abstractions as a data type.

I might as well say

var tmp:ConcreteClass = new ConcreteClass();
tmp.bar();

as JC has mentioned and forget about the low-coupling flexibility of using
interfaces. I imagined the inital route I wanted to go ought to work at
run-time but the compiler is not forgiving.



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Hans
Wichman
Sent: Wednesday, June 14, 2006 5:52 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Accessing non-interface methods from an
object ofan interface type


The compiler sees an object of type Interface which does not support the
method you are trying to call. Either use:
var tmp:ConcreteClass = new ConcreteClass();
or
var tmp:Interface = new ConcreteClass();
ConcreteClass(tmp).bar();

grtz
JC



On 6/14/06, Mark Lapasa [EMAIL PROTECTED] wrote:

 ///
 // Inside Interface.as //
 ///
 interface Interface
 {
public function foo():Void;
 }



 ///
 // Inside ConcreteClass.as //
 ///
 import Interface;

 class ConcreteClass implements Interface
 {
public function foo():Void { trace(Foo was fired);};  // As
 required by
 the interface
public function bar():Void { trace(Bar was fired);};
 }



 ///
 // Inside the Test.FLA //
 ///
 import ConcreteClass;
 import Interface;
 var tmp:Interface = new ConcreteClass();

 tmp.foo();  // Works
 tmp.bar();  // Doesn't Work, why?




 I don't think all the public ConcreteClass methods have to be listed in
an
 interface.
 Has anyone else come across this problem? Thx,


 -mL
 http://knowledge.lapasa.net


 ___
 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] Sharing fla over network

2006-06-15 Thread Zeh Fernando

Makes sense.  Thanks Zeh.
Maybe you can tell me if there if there is any way to ensure that 
accessing fla files over the network is stable.  I know in the past that 
flas have disappeared on me when working off a network drive.  I'm 
guessing you'd say that I should duplicate whatever it is and put in on my 
own local drive and not even risk it, but I thought I'd ask.  It's just a 
mess to have client work all over the place.


If you're only talking about .FLA files, well, yes, it's a mess having them 
locally. You'd also need to replicate the deploy files (ie, html files, 
images, xmls, other files). Having them over a network is the best choice, 
although there's the constant problem - since Flash keeps the .FLA file 
open, if your connection with the server is lost, your .FLA file is doomed 
and you won't even be able to save it anymore (you'd have to copy everything 
to a new .FLA file and save it instead). Granted, I haven't had this problem 
with Flash 8, so I don't know if it's still like this, but it's probably the 
case.


I'd stick with editing .FLA files over the network, but having a backup 
policy to backup files at least once a day to a separate place, and 
remembering to do incremental file naming saves once in a while (ie, 
index00.fla, then index01.fla, then index02.fla) to avoid a worst case 
scenario. I've never seen files disappear over a network, but the 
disconnection problem is easy to notice and, most times, easy to fix as long 
as you noticed it before closing Flash (which is also easy, since you're 
unable to save).


In the end, the biggest problem you can have a is a power failure --  
crashing the server and your computer at the same time would probably be the 
end for the .fla file.



- Zeh 


___
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] Accessing non-interface methods from an object ofan interface type

2006-06-15 Thread Ian Thomas

It's really all about the design. It very much depends on what you're
trying to use the interfaces to achieve.

If you're finding that you constantly need to downcast the interfaces
to concrete objects then either your design isn't one that's suited to
interfaces, or you're using them in the wrong way.

Why is it that you're ending up having to call functions that aren't
defined in the interface? Don't get me wrong - there can be extremely
good reasons for this. But if it's happening throughout your code,
then you've got a design problem and should maybe think about
refactoring something.

The same would be true of using ordinary superclasses rather than
interfaces, incidentally - it's the constant downcasting that shows
there's something up...

Cheers,
 Ian

On 6/15/06, Mark Lapasa [EMAIL PROTECTED] wrote:

Thanks EKA and JC for your answers.

I -kinda- knew that was the answer but I wanted to know if there was another
way.

Casting/trantyping an abstract object down into one of a concrete type seems
like to me very self-defeating to use abstractions as a data type.

I might as well say

var tmp:ConcreteClass = new ConcreteClass();
tmp.bar();

as JC has mentioned and forget about the low-coupling flexibility of using
interfaces. I imagined the inital route I wanted to go ought to work at
run-time but the compiler is not forgiving.

___
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] Sharing fla over network

2006-06-15 Thread jim
If you can use some source control like SVN that might be what you are
looking for. Its pretty easy to set up and will stop you writing over each
others changes.

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: 15 June 2006 15:02
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Sharing fla over network

Isn't is a better idea to have different people writing classes and then
sharing those? You can use interfaces to make sure they are complying
with the specs you establish for the project.  Then just have one person
compile the .fla.  The people writing classes can compile their own
.flas to test their classes, but the classes should be abstract enough
that only the lead Flash person needs to compile the .fla importing the
other classes the other developers wrote.  

Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Kurt Dommermuth
Sent: Thursday, June 15, 2006 9:57 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Sharing fla over network

Makes sense.  Thanks Zeh.

Maybe you can tell me if there if there is any way to ensure that
accessing
fla files over the network is stable.  I know in the past that flas
have
disappeared on me when working off a network drive.  I'm guessing
you'd say
that I should duplicate whatever it is and put in on my own local
drive and
not even risk it, but I thought I'd ask.  It's just a mess to have
client
work all over the place.

thanks again!
Kurt

\At 09:49 AM 6/15/2006, you wrote:

I recently hired an assistant and we need to share and
simultaneously
work on .fla files over a local network.
There must be tools for this, but a search on google didn't yield
anything (must not be using the right terminology).

There isn't. Only one people can work on a .FLA at a time.

You can have separate symbols that are loaded (shared) from other
.FLA
files at design time, so then can be worked on and the reloaded. But
usually it's not worth the hassle.

Usually, you shouldn't have the need for two people to work on the
same
.FLA file at the same time simply because changing two different
aspects
of a source file would make compiling and debugging impossible. If
they
want to work on two different things, you'd better split the .FLA
file
into different files, then the website would have different SWF files
which are loaded on demand on the website.


- Zeh
___
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] Eolas fix and backspace key flash bug

2006-06-15 Thread Geoff Stearns
that's not really accurate...  you can have the flash inserted as the  
page loads and not have to activate it. the requirement is that it's  
written by an external script, and not invoked natively by the  
browser (and plain html).


it doesn't matter if it's done onload or inline as the page is loading.

the solution to all of this is to just use one of the many js  
solutions that don't have issues like this.


if you can't use javascript for some reason (which should never be  
the case), then be prepared to force your customers to click to  
activate the control.




On Jun 14, 2006, at 5:19 PM, ryanm wrote:


   There's no magic there, the embedded object cannot exist prior  
to the onload event firing or it will require activation. Period.  
Don't use a delay, use the onload event. A delay is unpredictable  
because you are working on the client side, where bandwidth,  
network congestion, and the size of the images and other files  
loaded into the page will cause the amount of time before the  
onload event fires to vary drastically. To state that more clearly,  
you will *never* accomplish this in any predictable way using a  
time delay, not even if you make the delay over 1 minute, because  
somewhere there is still a guy using a 14.4 modem.


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] Accessing non-interface methods from an object ofaninterface type

2006-06-15 Thread Mark Lapasa
Thanks EKA!

That'll work for me. Smells funny but I like it =)

Thx Ian, the only thing I can think of as an argument is Marker Interfaces.
Then again, I think I might just be using using interfaces the wrong way as
I am trying to establish some form of polymorphism in trying to access both
foo() and bar() methods.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ian
Thomas
Sent: Thursday, June 15, 2006 10:24 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Accessing non-interface methods from an
object ofaninterface type


It's really all about the design. It very much depends on what you're
trying to use the interfaces to achieve.

If you're finding that you constantly need to downcast the interfaces
to concrete objects then either your design isn't one that's suited to
interfaces, or you're using them in the wrong way.

Why is it that you're ending up having to call functions that aren't
defined in the interface? Don't get me wrong - there can be extremely
good reasons for this. But if it's happening throughout your code,
then you've got a design problem and should maybe think about
refactoring something.

The same would be true of using ordinary superclasses rather than
interfaces, incidentally - it's the constant downcasting that shows
there's something up...

Cheers,
  Ian

On 6/15/06, Mark Lapasa [EMAIL PROTECTED] wrote:
 Thanks EKA and JC for your answers.

 I -kinda- knew that was the answer but I wanted to know if there was
another
 way.

 Casting/trantyping an abstract object down into one of a concrete type
seems
 like to me very self-defeating to use abstractions as a data type.

 I might as well say

 var tmp:ConcreteClass = new ConcreteClass();
 tmp.bar();

 as JC has mentioned and forget about the low-coupling flexibility of using
 interfaces. I imagined the inital route I wanted to go ought to work at
 run-time but the compiler is not forgiving.
___
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] Eolas fix and backspace key flash bug

2006-06-15 Thread 8ball Developer

Hi Karina,

(probably already answered question) Why does the javascript need to be
external?  Is  there any solution to this problem that uses an internal
javascript.

Thanks in Advance.

On 6/14/06, Karina Steffens [EMAIL PROTECTED] wrote:


Hi Alec,

You could try ObjectSwap on my blog -
http://www.neo-archaic.net/blog/2006/04/25/objectswap.htm

Karina




___
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] Accessing non-interface methods from an object ofaninterface type

2006-06-15 Thread Ian Thomas

On 6/15/06, Mark Lapasa [EMAIL PROTECTED] wrote:

Thx Ian, the only thing I can think of as an argument is Marker Interfaces.
Then again, I think I might just be using using interfaces the wrong way as
I am trying to establish some form of polymorphism in trying to access both
foo() and bar() methods.


Hm. If you're using marker interfaces just to note that specific
objects are to be treated in a specific way, then you probably don't
need to be downcasting anyway - as putting a marker interface (which
inherently contains no function signatures) on something doesn't
guarantee that that object has any particular behaviour as far as
methods goes.

It's just a signal to some containing code of some sort that you're
allowed to do particular things to that object - to take a Java
example, implementing Serializable means that the containing code is
allowed to walk through the object's fields and store each one in a
'standard' way. There are no guarantees about methods, so downcasting
and calling a method is a bit peculiar.

But anyway, I'm waffling now - without knowing what you're trying to
do, I can't really offer any alternatives to your current design. :-)

Cheers,
 Ian
___
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] Eolas fix and backspace key flash bug

2006-06-15 Thread Geoff Stearns
you have to use an external script because of the way the patent was  
worded.. by using an external script, you are somehow not infringing  
on it, so that's how the patch works.




On Jun 15, 2006, at 11:09 AM, 8ball Developer wrote:


Hi Karina,

(probably already answered question) Why does the javascript need  
to be
external?  Is  there any solution to this problem that uses an  
internal

javascript.

Thanks in Advance.

On 6/14/06, Karina Steffens [EMAIL PROTECTED] wrote:


Hi Alec,

You could try ObjectSwap on my blog -
http://www.neo-archaic.net/blog/2006/04/25/objectswap.htm

Karina




___
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] Eolas fix and backspace key flash bug

2006-06-15 Thread Geoff Stearns
also i might as well take this opportunity to point everyone to  
SWFObject:


http://blog.deconcept.com/swfobject/

it fixes all the eolas problems you are having, it's really easy to  
use, supports express install, does plugin detection and can provide  
alternate content, opens your wine bottles and tin cans, and gives  
you a massage at the end of a long day. check it out.




On Jun 15, 2006, at 11:09 AM, 8ball Developer wrote:


Hi Karina,

(probably already answered question) Why does the javascript need  
to be
external?  Is  there any solution to this problem that uses an  
internal

javascript.

Thanks in Advance.

On 6/14/06, Karina Steffens [EMAIL PROTECTED] wrote:


Hi Alec,

You could try ObjectSwap on my blog -
http://www.neo-archaic.net/blog/2006/04/25/objectswap.htm

Karina




___
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] Accepting 1 parameter with 2 possible types in a method?

2006-06-15 Thread Adrian Park

Hi List,

What's the neatest way of accepting a single parameter with 2 possible types
into a method and then working out what type of parameter has been passed?

e.g. in pseudo code

private function myMethod( i:Number/String ):Void {

  if ( i is a String ) {
 // do this
  } else if ( i is a Number ) {
 // do this
  }
}

I can think of several alternatives :
- passing a generic object which contains the property and then using typeof
on that property
- calling 2 different methods but, in this case, it just makes sense to be
one since it's doing the same thing with either parameter (retrieving a bit
of data from an Array which may be identified using a numerical id or a
String ID)
- limiting my method to accepting a String only and then defining a second
method that returns the correspoding String identifier given a numerical
identifier

All of the ways I can think of seem dirty. Is there a nice clean way or is
it wrong to expect the method to accept one parameter of different types?

Thanks in advance,
Adrian P.
___
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] Accepting 1 parameter with 2 possible types in a method?

2006-06-15 Thread Daniel Cascais

you could try this:

private function myMethod( i:Object ):Void

On 6/15/06, Adrian Park [EMAIL PROTECTED] wrote:

Hi List,

What's the neatest way of accepting a single parameter with 2 possible types
into a method and then working out what type of parameter has been passed?

e.g. in pseudo code

private function myMethod( i:Number/String ):Void {

   if ( i is a String ) {
  // do this
   } else if ( i is a Number ) {
  // do this
   }
}

I can think of several alternatives :
- passing a generic object which contains the property and then using typeof
on that property
- calling 2 different methods but, in this case, it just makes sense to be
one since it's doing the same thing with either parameter (retrieving a bit
of data from an Array which may be identified using a numerical id or a
String ID)
- limiting my method to accepting a String only and then defining a second
method that returns the correspoding String identifier given a numerical
identifier

All of the ways I can think of seem dirty. Is there a nice clean way or is
it wrong to expect the method to accept one parameter of different types?

Thanks in advance,
Adrian P.
___
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




--
Daniel Cascais
Tel: +56 (0)2  4589495
Cel: +56 (0)9  9417355
___
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] Accepting 1 parameter with 2 possible types in a method?

2006-06-15 Thread eric dolecki

you could use 2 params... use String for one, Number for the other - and
then use accordingly?

On 6/15/06, Adrian Park [EMAIL PROTECTED] wrote:


Hi List,

What's the neatest way of accepting a single parameter with 2 possible
types
into a method and then working out what type of parameter has been passed?

e.g. in pseudo code

private function myMethod( i:Number/String ):Void {

   if ( i is a String ) {
  // do this
   } else if ( i is a Number ) {
  // do this
   }
}

I can think of several alternatives :
- passing a generic object which contains the property and then using
typeof
on that property
- calling 2 different methods but, in this case, it just makes sense to be
one since it's doing the same thing with either parameter (retrieving a
bit
of data from an Array which may be identified using a numerical id or a
String ID)
- limiting my method to accepting a String only and then defining a second
method that returns the correspoding String identifier given a numerical
identifier

All of the ways I can think of seem dirty. Is there a nice clean way or is
it wrong to expect the method to accept one parameter of different types?

Thanks in advance,
Adrian P.
___
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] Accepting 1 parameter with 2 possible types in a method?

2006-06-15 Thread eka

Hello :)

you can try this example :

private function _myMethod( args ):Void {

  var arg0 = arguments[0] ;

  switch (true) {

case arg0 instanceof String :

  break ;

case arg0 instanceof Number :

  break ;
 default
 throw new Error(Illegal Argument,  + arg0 +  must be
String or Number) ;
 )
}

For me ... this method is a good alternative :)

EKA+ :)

2006/6/15, Adrian Park [EMAIL PROTECTED]:


Hi List,

What's the neatest way of accepting a single parameter with 2 possible
types
into a method and then working out what type of parameter has been passed?

e.g. in pseudo code

private function myMethod( i:Number/String ):Void {

   if ( i is a String ) {
  // do this
   } else if ( i is a Number ) {
  // do this
   }
}

I can think of several alternatives :
- passing a generic object which contains the property and then using
typeof
on that property
- calling 2 different methods but, in this case, it just makes sense to be
one since it's doing the same thing with either parameter (retrieving a
bit
of data from an Array which may be identified using a numerical id or a
String ID)
- limiting my method to accepting a String only and then defining a second
method that returns the correspoding String identifier given a numerical
identifier

All of the ways I can think of seem dirty. Is there a nice clean way or is
it wrong to expect the method to accept one parameter of different types?

Thanks in advance,
Adrian P.
___
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] Accepting 1 parameter with 2 possible types in a method?

2006-06-15 Thread Ian Thomas

Hi Adrian,
 I'd do it like this:

private function myMethod(i:Object):Void
{
 if (i instanceof String) {
   // do this
 }
 else if (i instanceof Number) {
   // do this
 }
 else
 {
   // report an error
 }
}

And, as you see, stick in an error condition - because by changing the
input type to Object you throw away all type-safety and can't
guarantee that someone won't try passing in a completely different
type of object...

As to whether it's dirty or not - that's your call, really. :-) It
really depends on the purpose of the function. I've used it
occasionally to fake overloading of functions just to make APIs easier
to understand.

Sorry to be blurry about it, but without knowing a bit more about the
circumstances, it's kind of hard to say...

HTH,
 Ian

On 6/15/06, Adrian Park [EMAIL PROTECTED] wrote:

Hi List,

What's the neatest way of accepting a single parameter with 2 possible types
into a method and then working out what type of parameter has been passed?

e.g. in pseudo code

private function myMethod( i:Number/String ):Void {

   if ( i is a String ) {
  // do this
   } else if ( i is a Number ) {
  // do this
   }
}

I can think of several alternatives :
- passing a generic object which contains the property and then using typeof
on that property
- calling 2 different methods but, in this case, it just makes sense to be
one since it's doing the same thing with either parameter (retrieving a bit
of data from an Array which may be identified using a numerical id or a
String ID)
- limiting my method to accepting a String only and then defining a second
method that returns the correspoding String identifier given a numerical
identifier

All of the ways I can think of seem dirty. Is there a nice clean way or is
it wrong to expect the method to accept one parameter of different types?

Thanks in advance,
Adrian P.

___
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] Yahoo! Maps Flash API

2006-06-15 Thread Caleb E. Brown
I had this exact same problem until I downloaded some of the samples from the 
reference manual.  After that I was able to import the widgets correctly.

I did notice that the parameters for the component were different in the sample 
from the component that I dragged straight from my component window.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Diego Guidi
Sent: Thursday, June 15, 2006 2:14 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Yahoo! Maps Flash API

I have tried the component that you link, and the
com.yahoo.maps.widgets.NavigatorWidget don't work!

2006/6/14, Mike Britton [EMAIL PROTECTED]:
 I'm getting started with the Yahoo! Flash API, and noticed their Maps
 mxp doesn't include com.yahoo.maps.widgets.NavigatorWidget.  Looks
 like Yahoo! needs to update their MXP to include this code since
 there's an article on Adobe about how to use it.

 http://www.adobe.com/devnet/flash/articles/yahoo_mashup_02.html

 If anyone's run into this, let me know (and if you have this MXP with
 com.yahoo.maps.widgets.NavigatorWidget included, I'd appreciate it
 someone could send this to me offlist).


 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



-- 
Diego Guidi
http://lacorrente.blogspot.com è il mio blog personale...
http://blogs.ugidotnet.org/GisSharpBlog è il mio blog tecnico...
http://nts.sourceforge.net è la mia NetTopologySuite...
___
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

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 6/14/2006
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.4/364 - Release Date: 6/14/2006
 
___
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] Eolas fix and backspace key flash bug

2006-06-15 Thread Geoff Stearns

there's a number of known issues with it... maybe this is the problem?

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

i have a summary of all the issues related to the eolas stuff here:
http://blog.deconcept.com/2005/12/15/internet-explorer-eolas-changes- 
and-the-flash-plugin/




On Jun 15, 2006, at 11:41 AM, Tom Lee wrote:


 the solution to all of this is to just use one of the many js
solutions that don't have issues like this.

If you're referring to the issue I'm reporting, I'm afraid your  
solution is
not immune either.  Two out of 3 of my PCs will show the click to  
activate
message if you have cleared your cache and then visited your  
example pages

without restarting your browser first.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Geoff
Stearns
Sent: Thursday, June 15, 2006 10:56 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Eolas fix and backspace key flash bug

that's not really accurate...  you can have the flash inserted as the
page loads and not have to activate it. the requirement is that it's
written by an external script, and not invoked natively by the
browser (and plain html).

it doesn't matter if it's done onload or inline as the page is  
loading.


the solution to all of this is to just use one of the many js
solutions that don't have issues like this.

if you can't use javascript for some reason (which should never be
the case), then be prepared to force your customers to click to
activate the control.



On Jun 14, 2006, at 5:19 PM, ryanm wrote:



   There's no magic there, the embedded object cannot exist prior
to the onload event firing or it will require activation. Period.
Don't use a delay, use the onload event. A delay is unpredictable
because you are working on the client side, where bandwidth,
network congestion, and the size of the images and other files
loaded into the page will cause the amount of time before the
onload event fires to vary drastically. To state that more clearly,
you will *never* accomplish this in any predictable way using a
time delay, not even if you make the delay over 1 minute, because
somewhere there is still a guy using a 14.4 modem.

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


___
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] Eolas fix and backspace key flash bug

2006-06-15 Thread Karina Steffens
A massage you say? Wow, I could really do with one of those ;)

Seriously, I think SWFObject is a great solution (especially the massage)
with loads of advantages. It's just a question of what works better for the
situation. ObjectSwap is best as a  quick fix, where Flash is already
embedded, and it's main advantage is that you don't have to have JavaScript
(the script will just be ignored, but Flash will still display). And there's
also an optional plugin detection, although not express install. 

Btw, I'm glad I didn't call it FlashSwap, when I was looking for a name...
Those Adobe legal people are completely out of line. 

Karina


 -Original Message-
 From: Geoff Stearns [mailto:[EMAIL PROTECTED] 
 Sent: 15 June 2006 16:19
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Eolas fix and backspace key flash bug
 
 also i might as well take this opportunity to point everyone to
 SWFObject:
 
 http://blog.deconcept.com/swfobject/
 
 it fixes all the eolas problems you are having, it's really 
 easy to use, supports express install, does plugin detection 
 and can provide alternate content, opens your wine bottles 
 and tin cans, and gives you a massage at the end of a long 
 day. check it out.
 
 
 
 On Jun 15, 2006, at 11:09 AM, 8ball Developer wrote:
 
  Hi Karina,
 
  (probably already answered question) Why does the 
 javascript need to 
  be external?  Is  there any solution to this problem that uses an 
  internal javascript.
 
  Thanks in Advance.
 
  On 6/14/06, Karina Steffens [EMAIL PROTECTED] wrote:
 
  Hi Alec,
 
  You could try ObjectSwap on my blog - 
  http://www.neo-archaic.net/blog/2006/04/25/objectswap.htm
 
  Karina
 
 
 
  ___
  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] Accepting 1 parameter with 2 possible types in a method?

2006-06-15 Thread Adrian Park

Hi all. Thanks for the responses.

I think my favoured route would be by Typing the parameter as generic Object
as it means it's still one parameter which seems neater.

Ian, I'm intrigued if your suggestion works - I had considered it but
assumed it wouldn't work because the result of the typeOf operation would
just be 'object' (since that is what the parameter is typed as).

I'm going to try it as that is exactly the kind of solution I was after.

Thanks
Adrian P


On 6/15/06, Ian Thomas [EMAIL PROTECTED] wrote:


Hi Adrian,
  I'd do it like this:

private function myMethod(i:Object):Void
{
  if (i instanceof String) {
// do this
  }
  else if (i instanceof Number) {
// do this
  }
  else
  {
// report an error
  }
}

And, as you see, stick in an error condition - because by changing the
input type to Object you throw away all type-safety and can't
guarantee that someone won't try passing in a completely different
type of object...

As to whether it's dirty or not - that's your call, really. :-) It
really depends on the purpose of the function. I've used it
occasionally to fake overloading of functions just to make APIs easier
to understand.

Sorry to be blurry about it, but without knowing a bit more about the
circumstances, it's kind of hard to say...

HTH,
  Ian

On 6/15/06, Adrian Park [EMAIL PROTECTED] wrote:
 Hi List,

 What's the neatest way of accepting a single parameter with 2 possible
types
 into a method and then working out what type of parameter has been
passed?

 e.g. in pseudo code

 private function myMethod( i:Number/String ):Void {

if ( i is a String ) {
   // do this
} else if ( i is a Number ) {
   // do this
}
 }

 I can think of several alternatives :
 - passing a generic object which contains the property and then using
typeof
 on that property
 - calling 2 different methods but, in this case, it just makes sense to
be
 one since it's doing the same thing with either parameter (retrieving a
bit
 of data from an Array which may be identified using a numerical id or a
 String ID)
 - limiting my method to accepting a String only and then defining a
second
 method that returns the correspoding String identifier given a numerical
 identifier

 All of the ways I can think of seem dirty. Is there a nice clean way or
is
 it wrong to expect the method to accept one parameter of different
types?

 Thanks in advance,
 Adrian P.
___
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] Eolas fix and backspace key flash bug

2006-06-15 Thread Tom Lee
Thanks for the pointer, Geoff - the jscript.dll was not at issue in my case
however.

I have a feeling it may relate to the bug described in this article:

http://blog.metawrap.com/blog/MicrosoftsEolasActiveXPatchForIESometimesBreak
sJavaScriptWorkaround.aspx

However, I have no way to prove it since I can't uninstall the Hotfixes.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Geoff
Stearns
Sent: Thursday, June 15, 2006 12:19 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Eolas fix and backspace key flash bug

there's a number of known issues with it... maybe this is the problem?

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

i have a summary of all the issues related to the eolas stuff here:
http://blog.deconcept.com/2005/12/15/internet-explorer-eolas-changes- 
and-the-flash-plugin/



On Jun 15, 2006, at 11:41 AM, Tom Lee wrote:

  the solution to all of this is to just use one of the many js
 solutions that don't have issues like this.

 If you're referring to the issue I'm reporting, I'm afraid your  
 solution is
 not immune either.  Two out of 3 of my PCs will show the click to  
 activate
 message if you have cleared your cache and then visited your  
 example pages
 without restarting your browser first.

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Geoff
 Stearns
 Sent: Thursday, June 15, 2006 10:56 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Eolas fix and backspace key flash bug

 that's not really accurate...  you can have the flash inserted as the
 page loads and not have to activate it. the requirement is that it's
 written by an external script, and not invoked natively by the
 browser (and plain html).

 it doesn't matter if it's done onload or inline as the page is  
 loading.

 the solution to all of this is to just use one of the many js
 solutions that don't have issues like this.

 if you can't use javascript for some reason (which should never be
 the case), then be prepared to force your customers to click to
 activate the control.



 On Jun 14, 2006, at 5:19 PM, ryanm wrote:

There's no magic there, the embedded object cannot exist prior
 to the onload event firing or it will require activation. Period.
 Don't use a delay, use the onload event. A delay is unpredictable
 because you are working on the client side, where bandwidth,
 network congestion, and the size of the images and other files
 loaded into the page will cause the amount of time before the
 onload event fires to vary drastically. To state that more clearly,
 you will *never* accomplish this in any predictable way using a
 time delay, not even if you make the delay over 1 minute, because
 somewhere there is still a guy using a 14.4 modem.

 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


 ___
 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] FileReference and Getting File Path

2006-06-15 Thread azsl1326-email
I am using the FileReference Class to upload images. Is there a way to get the 
path to the selected file? Ideally, I would like to preview the image before 
being uploaded and need the path.
 
 Thanks for any and all replies.
___
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] FileReference and Getting File Path

2006-06-15 Thread Mike Boutin
Is it possible for you to just grab the name after it is selected from 
the FileReference object?



var listener:Object = new Object();
listener.onSelect = function(file:FileReference):Void  {
trace(file.name);
};


Boots

[EMAIL PROTECTED] wrote:

I am using the FileReference Class to upload images. Is there a way to get the 
path to the selected file? Ideally, I would like to preview the image before 
being uploaded and need the path.
 
 Thanks for any and all replies.

___
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] Accepting 1 parameter with 2 possible types in a method?

2006-06-15 Thread Ian Thomas

Hi Adrian,
 Your i:Object declaration is a _compile-time_ declaration. All it's
there for is to make the compiler happy. instanceof, which is what I'm
using (typeof is an older construct which is more limited and less
safe) is an operator which does a comparison at runtime on the
underlying object that you're passing around. Rather than at compile
time. So it doesn't know or care whether you typed i:Object or
i:String - it's just working with the actual value of i, which has an
underlying type.

This code works because a number is represented by a Number class,
which is a subclass of Object - and because a string is represented by
a String class, which is also a subclass of Object. (This isn't quite
true, but is true enough for these circumstances!). Because Object is
the common superclass, the compiler doesn't get upset when you type
myFunction(5) or myFunction(fred).

It's somewhat clearer if I show you an example of a class (rather than
Number or String - they are both a little bit different internally but
Flash hides the differences from us using something called
autoboxing):

class A {
function A(){}
}

class B extends A{
function B(){}
}

var a:A=new A();
var b:B=new B();
var c:A=new B();

trace(a instanceof A); //true
trace(b instanceof A); //true
trace(c instanceof A); //true
trace(a instanceof B); //false
trace(b instanceof B); //true
trace(c instanceof B); //true

As you can probably see, instanceof is working on the underlying
object that's been created, never mind what you typed after the colon.

The reason I use instanceof instead of typeof is that typeof would
give you a less useful answer:
trace(typeof A); // function  (because it's a constructor function)
trace(typeof B); // function (because it's a constructor function)

In your case, typeof should do the job. But just bear in mind that
it's an old operator, and should probably be retired. ;-)

HTH,
Ian


On 6/15/06, Adrian Park [EMAIL PROTECTED] wrote:


Ian, I'm intrigued if your suggestion works - I had considered it but
assumed it wouldn't work because the result of the typeOf operation would
just be 'object' (since that is what the parameter is typed as).

___
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] ComboBox Halo

2006-06-15 Thread Steven Sacks
When I experience crazy behavior like this in Flash that absolutely
shouldn't happen, I take a few steps.

1) Save and compact.  Quit Flash.  Restart my computer.

2) If that doesn't fix it, I try deleting the component from the library,
save and compact, quit Flash, relaunch, put the component back in.

3) If that doesn't fix it, I make a copy of the file and take other
components out one at a time until I find the conflict.

4) If that still doesn't fix it, and I've exhausted every other reasonable
debugging technique, I take drastic action.  Sometimes, Flash files simply
get corrupted and there's nothing you can do about it except make a brand
new Flash file and copy everything from the old movie into it.  It sucks,
but sometimes that is the only solution.  Hopefully, your movie isn't too
complicated and you can do this without too much more than some copying and
pasting.  Yes, this solution actually works.

HTH,
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


RE: [Flashcoders] Accepting 1 parameter with 2 possible types in amethod?

2006-06-15 Thread Steven Sacks
You could also leave off the typecasting on the argument.  You don't have to
type your arguments in AS2, and the compiler won't complain.

If the methods inside the argument check what type of argument it is, then
it's pretty apparent to anybody reading the code why there is no type on the
argument.

Typing has no effect except for the debugging and readability.  Flash gets
no speed benefit from strict typing like other languages do.



 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Adrian Park
 Sent: Thursday, June 15, 2006 9:33 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Accepting 1 parameter with 2 
 possible types in amethod?
 
 Hi all. Thanks for the responses.
 
 I think my favoured route would be by Typing the parameter as 
 generic Object
 as it means it's still one parameter which seems neater.
 
 Ian, I'm intrigued if your suggestion works - I had considered it but
 assumed it wouldn't work because the result of the typeOf 
 operation would
 just be 'object' (since that is what the parameter is typed as).
 
 I'm going to try it as that is exactly the kind of solution I 
 was after.
 
 Thanks
 Adrian P
 
 
 On 6/15/06, Ian Thomas [EMAIL PROTECTED] wrote:
 
  Hi Adrian,
I'd do it like this:
 
  private function myMethod(i:Object):Void
  {
if (i instanceof String) {
  // do this
}
else if (i instanceof Number) {
  // do this
}
else
{
  // report an error
}
  }
 
  And, as you see, stick in an error condition - because by 
 changing the
  input type to Object you throw away all type-safety and can't
  guarantee that someone won't try passing in a completely different
  type of object...
 
  As to whether it's dirty or not - that's your call, really. :-) It
  really depends on the purpose of the function. I've used it
  occasionally to fake overloading of functions just to make 
 APIs easier
  to understand.
 
  Sorry to be blurry about it, but without knowing a bit more 
 about the
  circumstances, it's kind of hard to say...
 
  HTH,
Ian
 
  On 6/15/06, Adrian Park [EMAIL PROTECTED] wrote:
   Hi List,
  
   What's the neatest way of accepting a single parameter 
 with 2 possible
  types
   into a method and then working out what type of parameter has been
  passed?
  
   e.g. in pseudo code
  
   private function myMethod( i:Number/String ):Void {
  
  if ( i is a String ) {
 // do this
  } else if ( i is a Number ) {
 // do this
  }
   }
  
   I can think of several alternatives :
   - passing a generic object which contains the property 
 and then using
  typeof
   on that property
   - calling 2 different methods but, in this case, it just 
 makes sense to
  be
   one since it's doing the same thing with either parameter 
 (retrieving a
  bit
   of data from an Array which may be identified using a 
 numerical id or a
   String ID)
   - limiting my method to accepting a String only and then 
 defining a
  second
   method that returns the correspoding String identifier 
 given a numerical
   identifier
  
   All of the ways I can think of seem dirty. Is there a 
 nice clean way or
  is
   it wrong to expect the method to accept one parameter of different
  types?
  
   Thanks in advance,
   Adrian P.
  ___
  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] ComboBox and Other Flash Components

2006-06-15 Thread Steven Sacks
 I've created a ComboBox. Strangely when I open the combobox, the field
 with selections goes under the other components...???

Is it on a lower layer in the timeline?
 

___
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] FileReference and Getting File Path

2006-06-15 Thread azsl1326-email
Thanks for the reply.

I can get the name, however it doesn't provide the path (i.e. 
c:\images\image001.jpg)

Mike Boutin  mikeb at juicystudios.com
 Thu Jun 15 13:03:32 EDT 2006   Is it possible for you to just 
grab the name after it is selected from 
the FileReference object?


var listener:Object = new Object();
listener.onSelect = function(file:FileReference):Void  {
trace(file.name);
};


Boots
___
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] Accepting 1 parameter with 2 possible types in amethod?

2006-06-15 Thread Ian Thomas

Yes - but - why bother omitting it?

It's only a few characters you're saving - the word :Object. If later
down the line you decide to change compilers and go with MTASC (or
perhaps port your code to AS3) you'll have to trawl back through all
the code putting those missing type definitions back in...

Ian

On 6/15/06, Steven Sacks [EMAIL PROTECTED] wrote:

You could also leave off the typecasting on the argument.  You don't have to
type your arguments in AS2, and the compiler won't complain.

If the methods inside the argument check what type of argument it is, then
it's pretty apparent to anybody reading the code why there is no type on the
argument.

Typing has no effect except for the debugging and readability.  Flash gets
no speed benefit from strict typing like other languages do.

___
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] FileReference and Getting File Path

2006-06-15 Thread Mike Boutin
Not sure if this will help, but maybe you can copy the image to the 
users cache to display it.


// make a working copy of a file on the user's disk
var fileRef = new FileReference();
if (fileRef.browse([Text Files, *.txt]) {
   fileRef.copyIntoCache(backup-data.txt);
   var newFile = new FileReference();
   newFile.open(backup-data.txt);

   // operate on new file
   // ...

}

[EMAIL PROTECTED] wrote:

Thanks for the reply.

I can get the name, however it doesn't provide the path (i.e. 
c:\images\image001.jpg)

Mike Boutin  mikeb at juicystudios.com
 Thu Jun 15 13:03:32 EDT 2006   Is it possible for you to just grab the name after it is selected from 
the FileReference object?



var listener:Object = new Object();
listener.onSelect = function(file:FileReference):Void  {
trace(file.name);
};


Boots
___
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] Accepting 1 parameter with 2 possible types in a method?

2006-06-15 Thread Nicolas Cannasse
 Hi List,
 
 What's the neatest way of accepting a single parameter with 2 possible types
 into a method and then working out what type of parameter has been passed?
 
 e.g. in pseudo code
 
 private function myMethod( i:Number/String ):Void {
 
if ( i is a String ) {
   // do this
} else if ( i is a Number ) {
   // do this
}
 }
 

Funny, I just added the optional arguments to haXe and you could do the
following :

function myMethod( ?i : Int, ?s : String ) : Void {
   if( i != null ) {
   // Int argument
   } else if( s != null ) {
   // String argument
   }
}

myMethod(12345); // same as myMethod(12345,null);
myMethod(hello); // same as myMethod(null,hello);

Nicolas
___
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] ComboBox and Other Flash Components

2006-06-15 Thread Joey Rivera
Are you loading the ComboBox from an external swf (loadMovie) into a movie
clip?  If so, try putting a copy of the ComboBox component in the library of
the root fla or the fla that is doing the loadMovie.

Joey Rivera

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven Sacks
Sent: Thursday, June 15, 2006 1:29 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] ComboBox and Other Flash Components

 I've created a ComboBox. Strangely when I open the combobox, the field
 with selections goes under the other components...???

Is it on a lower layer in the timeline?
 

___
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] ComboBox Halo

2006-06-15 Thread Matthew Simpson
Steven,

The problem went away with a save and compact.

Thanks for the assistance!

Matthew 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Sacks
Sent: Thursday, June 15, 2006 1:12 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] ComboBox Halo

When I experience crazy behavior like this in Flash that absolutely
shouldn't happen, I take a few steps.

1) Save and compact.  Quit Flash.  Restart my computer.

2) If that doesn't fix it, I try deleting the component from the
library, save and compact, quit Flash, relaunch, put the component back
in.

3) If that doesn't fix it, I make a copy of the file and take other
components out one at a time until I find the conflict.

4) If that still doesn't fix it, and I've exhausted every other
reasonable debugging technique, I take drastic action.  Sometimes, Flash
files simply get corrupted and there's nothing you can do about it
except make a brand new Flash file and copy everything from the old
movie into it.  It sucks, but sometimes that is the only solution.
Hopefully, your movie isn't too complicated and you can do this without
too much more than some copying and pasting.  Yes, this solution
actually works.

HTH,
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] Accepting 1 parameter with 2 possible types inamethod?

2006-06-15 Thread Derek Vadneau
It depends on how you are using it.

Object is NOT the same as untyped.

Try this code:

var a:Array = new Array();
a.push('blah');
var s:String = a.shift();

Output panel displays:
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 3: Type mismatch in 
assignment statement: found Object where String is required.
 var s:String = a.shift();

The Array.shift method returns type Object (according to the intrinsic 
definition), so you have to leave s untyped, make it type Object, or cast 
the value as String, otherwise you can't compile.

Array.shift should be untyped, imho.

In AS3 you actually have * to indicate that the parameter/return is 
untyped.


Derek Vadneau

- Original Message - 
From: Ian Thomas [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, June 15, 2006 1:49 PM
Subject: Re: [Flashcoders] Accepting 1 parameter with 2 possible types 
inamethod?


Yes - but - why bother omitting it?

It's only a few characters you're saving - the word :Object. If later
down the line you decide to change compilers and go with MTASC (or
perhaps port your code to AS3) you'll have to trawl back through all
the code putting those missing type definitions back in...

Ian


___
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] Eolas fix and backspace key flash bug

2006-06-15 Thread Kevin Newman

Tom Lee wrote:

If you're referring to the issue I'm reporting, I'm afraid your solution is
not immune either.  Two out of 3 of my PCs will show the click to activate
message if you have cleared your cache and then visited your example pages
without restarting your browser first.


  
If that's the case, I'm not sure there's anything we can do about it. 
SwfObject should be 100% immune to the click to activate feature. If 
it's not, I'd say its a bug in IE, and we may have no choice but to wait 
for a fix from MS (it's ok, you can laugh now).


After taking a look at that link, it does sound plausible that that 
could be the issue. In any case, it sounds like this bug would affect 
few people, since they both have to have their system configured to see 
it (by installing some combination of updates), and meet a condition 
requirement (having cleared their cache, and reloaded your page without 
restarting the browser).


BTW (a bit of brainstorming to follow), I wonder if there is some way to 
see if the user has been to your site, and then cleared their cache and 
returned without re-starting their browser - maybe by setting a session 
cookie on the first visit, then checking it on subsequent visits as well 
as checking the speed or download state of the Flash movie or other 
Object on the page (using Object.onload, or Object.onreadystate). If 
there is some way to figure out if the cache has been cleared, and this 
is a detected revisit, and the object hasn't been downloaded, then 
perhaps a simple refresh of the whole page after the defer or 
document.onload could fix it - setting another cookie of course to 
prevent endless refreshes. Of course this will not work if they delete 
their cookies at the same time they empty their cache. I don't know.


Also, I apologize if what I'm saying doesn't make much sense in the face 
of any evidence, I'm struggling to finish a project that has been a real 
time killer, and simply haven't had the time to read all the posted 
materials as thoroughly as I would have liked or conduct full tests of 
suggested solutions on my own (or even set up a reliable reproduction 
machine).


Kevin N.



___
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] FileReference and Getting File Path

2006-06-15 Thread Mike Boutin

Oops :)

Maybe im just dont undestand the problem because how can you show a 
preview of the users image without first uploading it to your server?



Boots

Geoffrey Williams wrote:

That's a Macromedia Central only feature. I doubt they're using Central, but
maybe ;)

If you're working in a web page you can use a hidden file field and
communicate with it via ExternalInterface / getURL and javascript.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike Boutin
Sent: Thursday, June 15, 2006 1:56 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] FileReference and Getting File Path

Not sure if this will help, but maybe you can copy the image to the 
users cache to display it.


// make a working copy of a file on the user's disk
var fileRef = new FileReference();
if (fileRef.browse([Text Files, *.txt]) {
fileRef.copyIntoCache(backup-data.txt);
var newFile = new FileReference();
newFile.open(backup-data.txt);

// operate on new file
// ...

}

[EMAIL PROTECTED] wrote:

Thanks for the reply.

I can get the name, however it doesn't provide the path (i.e.

c:\images\image001.jpg)
Mike Boutin  mikeb at juicystudios.com
 Thu Jun 15 13:03:32 EDT 2006   Is it possible for you to
just grab the name after it is selected from 

the FileReference object?


var listener:Object = new Object();
listener.onSelect = function(file:FileReference):Void  {
trace(file.name);
};


Boots





___
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] xAL and xNAL

2006-06-15 Thread Kevin Newman

Hello all,

Has anyone done any work with these new address formats (xNAL, xAL, xNL) 
that have been standardized by OASIS in flash? I was so happy to hear 
about a standard way to deal with international address information, now 
all we need are some standardized form layouts, and some solid Libraries 
for dealing with this format. Does anyone know of any?


http://www.oasis-open.org/committees/ciq/ciq.html#6

I am mostly interested in the address standard myself, which if I 
understand it correctly is xAL (eXtensible Address Language 
http://www.oasis-open.org/committees/ciq/ciq.html#6), which is a 
subset of xNAL. I learned of this new standard because Google is using 
it in their geocoding API.


http://googlemapsapi.blogspot.com/2006/06/geocoding-at-last.html

Thanks,

Kevin N.



___
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] xAL and xNAL

2006-06-15 Thread Steven Sacks
All xNAL Action.  Hawt.  ;)


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Kevin Newman
 Sent: Thursday, June 15, 2006 11:44 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] xAL and xNAL
 
 Hello all,
 
 Has anyone done any work with these new address formats 
 (xNAL, xAL, xNL) 
 that have been standardized by OASIS in flash? I was so happy to hear 
 about a standard way to deal with international address 
 information, now 
 all we need are some standardized form layouts, and some 
 solid Libraries 
 for dealing with this format. Does anyone know of any?
 
 http://www.oasis-open.org/committees/ciq/ciq.html#6
 
 I am mostly interested in the address standard myself, which if I 
 understand it correctly is xAL (eXtensible Address Language 
 http://www.oasis-open.org/committees/ciq/ciq.html#6), which is a 
 subset of xNAL. I learned of this new standard because Google 
 is using 
 it in their geocoding API.
 
 http://googlemapsapi.blogspot.com/2006/06/geocoding-at-last.html
 
 Thanks,
 
 Kevin N.
 
 
 
 ___
 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] Sharing fla over network

2006-06-15 Thread Ron Wheeler
Add Eclipse as an IDE and move to MTASC (FAME ). That is still the best 
way to go.


Ron

jim wrote:

If you can use some source control like SVN that might be what you are
looking for. Its pretty easy to set up and will stop you writing over each
others changes.

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: 15 June 2006 15:02
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Sharing fla over network

Isn't is a better idea to have different people writing classes and then
sharing those? You can use interfaces to make sure they are complying
with the specs you establish for the project.  Then just have one person
compile the .fla.  The people writing classes can compile their own
.flas to test their classes, but the classes should be abstract enough
that only the lead Flash person needs to compile the .fla importing the
other classes the other developers wrote.  


Jason Merrill
Bank of America 
Learning Technology Solutions
 
 
 
 
 
 

  

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Kurt Dommermuth
Sent: Thursday, June 15, 2006 9:57 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Sharing fla over network

Makes sense.  Thanks Zeh.

Maybe you can tell me if there if there is any way to ensure that
  

accessing
  

fla files over the network is stable.  I know in the past that flas
  

have
  

disappeared on me when working off a network drive.  I'm guessing
  

you'd say
  

that I should duplicate whatever it is and put in on my own local
  

drive and
  

not even risk it, but I thought I'd ask.  It's just a mess to have
  

client
  

work all over the place.

thanks again!
Kurt

\At 09:49 AM 6/15/2006, you wrote:

  

I recently hired an assistant and we need to share and
  

simultaneously
  

work on .fla files over a local network.
There must be tools for this, but a search on google didn't yield
anything (must not be using the right terminology).
  

There isn't. Only one people can work on a .FLA at a time.

You can have separate symbols that are loaded (shared) from other


.FLA
  

files at design time, so then can be worked on and the reloaded. But
usually it's not worth the hassle.

Usually, you shouldn't have the need for two people to work on the


same
  

.FLA file at the same time simply because changing two different


aspects
  

of a source file would make compiling and debugging impossible. If


they
  

want to work on two different things, you'd better split the .FLA


file
  

into different files, then the website would have different SWF files
which are loaded on demand on the website.


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


  

___
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] xAL and xNAL

2006-06-15 Thread Mark Lapasa
ha! That joke made my day

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Steven
Sacks
Sent: Thursday, June 15, 2006 2:52 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] xAL and xNAL


All xNAL Action.  Hawt.  ;)


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Kevin Newman
 Sent: Thursday, June 15, 2006 11:44 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] xAL and xNAL
 
 Hello all,
 
 Has anyone done any work with these new address formats 
 (xNAL, xAL, xNL) 
 that have been standardized by OASIS in flash? I was so happy to hear 
 about a standard way to deal with international address 
 information, now 
 all we need are some standardized form layouts, and some 
 solid Libraries 
 for dealing with this format. Does anyone know of any?
 
 http://www.oasis-open.org/committees/ciq/ciq.html#6
 
 I am mostly interested in the address standard myself, which if I 
 understand it correctly is xAL (eXtensible Address Language 
 http://www.oasis-open.org/committees/ciq/ciq.html#6), which is a 
 subset of xNAL. I learned of this new standard because Google 
 is using 
 it in their geocoding API.
 
 http://googlemapsapi.blogspot.com/2006/06/geocoding-at-last.html
 
 Thanks,
 
 Kevin N.
 
 
 
 ___
 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] Eolas fix and backspace key flash bug

2006-06-15 Thread Tom Lee
Kevin,

Thanks for the fresh thinking!  Like you, I'm kind of leaning toward the
idea that this is maybe not worth too much further effort, considering the
limited scope of the problem.  If nothing else, at least the issue is now
documented in more places than before. :)

-tom

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kevin Newman
Sent: Thursday, June 15, 2006 2:35 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Eolas fix and backspace key flash bug

Tom Lee wrote:
 If you're referring to the issue I'm reporting, I'm afraid your solution
is
 not immune either.  Two out of 3 of my PCs will show the click to
activate
 message if you have cleared your cache and then visited your example pages
 without restarting your browser first.


   
If that's the case, I'm not sure there's anything we can do about it. 
SwfObject should be 100% immune to the click to activate feature. If 
it's not, I'd say its a bug in IE, and we may have no choice but to wait 
for a fix from MS (it's ok, you can laugh now).

After taking a look at that link, it does sound plausible that that 
could be the issue. In any case, it sounds like this bug would affect 
few people, since they both have to have their system configured to see 
it (by installing some combination of updates), and meet a condition 
requirement (having cleared their cache, and reloaded your page without 
restarting the browser).

BTW (a bit of brainstorming to follow), I wonder if there is some way to 
see if the user has been to your site, and then cleared their cache and 
returned without re-starting their browser - maybe by setting a session 
cookie on the first visit, then checking it on subsequent visits as well 
as checking the speed or download state of the Flash movie or other 
Object on the page (using Object.onload, or Object.onreadystate). If 
there is some way to figure out if the cache has been cleared, and this 
is a detected revisit, and the object hasn't been downloaded, then 
perhaps a simple refresh of the whole page after the defer or 
document.onload could fix it - setting another cookie of course to 
prevent endless refreshes. Of course this will not work if they delete 
their cookies at the same time they empty their cache. I don't know.

Also, I apologize if what I'm saying doesn't make much sense in the face 
of any evidence, I'm struggling to finish a project that has been a real 
time killer, and simply haven't had the time to read all the posted 
materials as thoroughly as I would have liked or conduct full tests of 
suggested solutions on my own (or even set up a reliable reproduction 
machine).

Kevin N.



___
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] Java's wait(timeout) and notify() in ActionScript

2006-06-15 Thread Scott Hyndman

Yeah, sure.

Use setInterval. If the user interacts before the time expires, call
clearInterval.

Scott

On 15/06/06, Alexander Farber [EMAIL PROTECTED] wrote:

Hello,

I'm trying to rewrite a web chat client written in Java,
which is performing the following in its main loop:

I have a variable called url and if after waiting TIMEOUT
seconds it is still unset, then I just retrieve the URL
http://myserver/mychat?event=keepalive, so that the
chat server knows, that the client is still connected.

BUT if during that waiting period the url-variable gets set
(for example, when the user types smth. into a textfield)
I want to interrupt the waiting IMMEDIATELY and retrieve
the URL http://myserver/mychat?event=chatargs=blah+blah.

In the Java client I do this by using the wait() and notifyAll().

Is there a way to do this in ActionScript? I.e. some MovieClip
with LoadVars should sleep for TIMEOUT seconds (so that
it doesn't poll and waste the CPU) and wake up when needed?

Thank you
Alex

--
http://preferans.de/
___
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] googletalk/xmpp/flash

2006-06-15 Thread Bieniasz, Myles
I know it's possible to build a flash client for XMPP based IM clients
and I had at one point seen the now defunct gtalkr.com  interface for
googletalk.  Does anyone have any experience creating a googletalk
client in flash or any useful resources regarding this?  Thanks in
advance for any help provided.

 

Myles Bieniasz
[EMAIL PROTECTED]

 

 



MLB.com: Where Baseball is Always On

___
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] question SO class

2006-06-15 Thread Caruso Canepari

Hi.

I made up this little class to manage Shared Objects.
But there is something (or more than simply something) in AS I don't 
perfectly understand.

The problem (I imagine there can be many more, but...) is that I can't add more 
than one data property. I post the code with some comment:



---
class
---

class com.FlashCookie extends SharedObject {
var _name:String;
var _data:Object;
var _so:SharedObject;
var _propName:Object;
//
function FlashCookie(name:String) {
if (name == undefined) {
trace(you must pass me something);
return;
}
this._name = name;
this._so = SharedObject.getLocal(this._name);
this._data = this._so.data;
}
// one problem could live here:
public function setData(_propName:Object, _value:Object):Void {
this._propName = _propName;
if (this._data[this._propName] == undefined) {
this._data[this._propName] = _value;
}
}
//
function deleteCookie():Void {
this._so.clear();
}
//
function writeCookie():Object {
var res = this._so.flush();
return res;
}
//
function getCookieSize():Number {
var num = this._so.getSize();
return num;
}
// I only get the array (A):
function getContent() {
trace(!);
//trace(this._data);
var i;
for (i in this._data) {
trace([i]+--+this._data[i]);
}
}
}

---
FLA code:

//
import com.*;
//
var coo:FlashCookie = new FlashCookie(foo_bar_baz);
//
var A:Array = [1, 2, 4];
var B:String = string_;
var C:Number = 6;
//
coo.setData(_propA, A);
coo.setData(_propB, B);
coo.setData(_propC, C);

---


I hope you can help me understand.   :-)
Thanks in advance.
CC




 Chiacchiera con i tuoi amici in tempo reale! 
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.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


Re: [Flashcoders] googletalk/xmpp/flash

2006-06-15 Thread Jim Cheng

Bieniasz, Myles wrote:


I know it's possible to build a flash client for XMPP based IM clients
and I had at one point seen the now defunct gtalkr.com  interface for
googletalk.  Does anyone have any experience creating a googletalk
client in flash or any useful resources regarding this?  Thanks in
advance for any help provided.


Sean Voisen wrote an open-source XMPP architecture for Flash a while 
back named XIFF. Jive Software's since picked it up and is currently 
hosting at:


http://www.jivesoftware.org/xiff/

That'd probably be a good place to start looking.

Jim

___
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] question SO class

2006-06-15 Thread Scott Hyndman

Just out of interest, what benefit exactly does this class provide?
You seem to offer the same methods that the shared object does with
different names (although the names are clearer, I'll give you that).

Scott

On 15/06/06, Caruso Canepari [EMAIL PROTECTED] wrote:


Hi.

I made up this little class to manage Shared Objects.
But there is something (or more than simply something) in AS I don't 
perfectly understand.

The problem (I imagine there can be many more, but...) is that I can't add more 
than one data property. I post the code with some comment:



---
class
---

class com.FlashCookie extends SharedObject {
var _name:String;
var _data:Object;
var _so:SharedObject;
var _propName:Object;
//
function FlashCookie(name:String) {
if (name == undefined) {
trace(you must pass me something);
return;
}
this._name = name;
this._so = SharedObject.getLocal(this._name);
this._data = this._so.data;
}
// one problem could live here:
public function setData(_propName:Object, _value:Object):Void {
this._propName = _propName;
if (this._data[this._propName] == undefined) {
this._data[this._propName] = _value;
}
}
//
function deleteCookie():Void {
this._so.clear();
}
//
function writeCookie():Object {
var res = this._so.flush();
return res;
}
//
function getCookieSize():Number {
var num = this._so.getSize();
return num;
}
// I only get the array (A):
function getContent() {
trace(!);
//trace(this._data);
var i;
for (i in this._data) {
trace([i]+--+this._data[i]);
}
}
}

---
FLA code:

//
import com.*;
//
var coo:FlashCookie = new FlashCookie(foo_bar_baz);
//
var A:Array = [1, 2, 4];
var B:String = string_;
var C:Number = 6;
//
coo.setData(_propA, A);
coo.setData(_propB, B);
coo.setData(_propC, C);

---


I hope you can help me understand.   :-)
Thanks in advance.
CC




 Chiacchiera con i tuoi amici in tempo reale!
 http://it.yahoo.com/mail_it/foot/*http://it.messenger.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