Re: [Flashcoders] FDT weirdness

2006-05-05 Thread Michael Klishin

Seb L wrote:

FDT has suddenly stopped doing its code parsing for new classes...
anyone else had this? It's still parsing and checking on the
pre-existing classes. Weird!
Check if your classes name starts with uppercase letter. FDT parser 
ignores it otherwise.


--
Michael "Antares" Klishin,

Blog: http://www.novemberain.com/blog/
Email: [EMAIL PROTECTED]

Non progredi est regredi

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

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


Re: [Flashcoders] loading an external image into a BitmapData

2006-04-30 Thread Michael Klishin

grimmwerks wrote:

What would be the quickest way of flipping images into a bitmap data?


1. Load it
2. Take a snapshot
3. Unload it or whatever...

--
Michael "Antares" Klishin,

(Flash + Flex + Java + Ruby)*Eclipse weblog : http://www.novemberain.com/
Email : [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] Implementing GroupName for my own component

2006-04-21 Thread Michael Klishin

Julian 'Julik' Tarkhanov wrote:

That is, if I have 5 instances of RadioCompnent inside a specific 
timeline, can I programmatically retrieve all of them?


What I would do is to create a class with static methods only as groups 
manager so you just need to register RadioButton components within that 
manager. It's quite obviously should be done in constructor.


--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] C# DLL to extend Flash IDE

2006-04-19 Thread Michael Klishin

Lee McColl-Sylvester wrote:

My guess is no.  The interface into a Win32 C dll is far different from
a compiled C# dll, which is in effect merely in an intermediate code.
Your best bet is to look to other Win32 dll compiling options if you
feel C or C++ are a little over your head.  You could try PureBasic or
Delphi which I am sure would be a suitable alternative.


Thanks Lee. It was my guess as well.
Going to realize it all in C now :)

--
Michael "Antares" Klishin,

Blog: http://www.novemberain.com/blog/
Email: [EMAIL PROTECTED]

Non progredi est regredi
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] C# DLL to extend Flash IDE

2006-04-19 Thread Michael Klishin

Hi guys,

Could someone tell me if it's possible to use DLL written in C# to 
extend Flash IDE?


Documentation says it should be C-written. Is it possible at all to use 
Cpp / C# DLL ?


Thanks in advance.

--
Michael "Antares" Klishin,

Blog: http://www.novemberain.com/blog/
Email: [EMAIL PROTECTED]

Non progredi est regredi
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Active X and Microsoft IE ...

2006-04-09 Thread Michael Klishin

Stephen Ford wrote:

Can anyone answer this:
 
What happens if a user doesn't have javascript enabled in their browser for the recommended Macromedia solution (see link: http://www.macromedia.com/devnet/activecontent/articles/devletter.html) to this whole Active X debacle ?
 
???
  
You just have to write your object / embed tags code with JavaScript. 
Use FlashObject and relax.


Cheers,

--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Newbiew question AS3

2006-03-07 Thread Michael Klishin

stefan burt wrote:

I've heard a lot about flex are there any sites/app's on the net which
offer a good impression of what the platform is capable of?


Take a look at adobe labs showcase, the most interesting Flex 2 Apps at 
the moment can be found there


--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Game Develop in Flash 8

2006-03-03 Thread Michael Klishin

Samuel Santos wrote:


I have a certain knowledge in 3D Game Development using C++ and OpenGL.

But I like Flash to much and I think it's less complicated to do game in it
(please, confirm that?)


Actually it heavy depends on coders skills. If you lack of OOD 
experience Flash game development may take even more time, believe me.



I would like tips for where I should begin to study to using flash to
develop games and if it possible to do 3D with it.


Forget about 3D at the moment, you CPU will lay down and die because of 
calculations volume. For 2D game dev there is an old good book by Jobe 
Makar, "Flash Game Design Demystified". You'd better kick off with it I 
guess.


--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Clone Array of Type Object

2006-03-02 Thread Michael Klishin

Wade Arnold wrote:

Is it possible to clone and array in AS 2.0?  I have copied the array but
that just places a pointer at the existing array. I am looking to
clone/duplicate the array to separate the two data elements without having
to do a for loop. This of course stops working once you use objects or
multi-dimensional arrays.


Isn't it a job for mx.utils.ObjectCopy class and it's static copy method?

--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

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

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


Re: [Flashcoders] UML tool for AS2

2006-02-17 Thread Michael Klishin

Hi,

Enterprise Architect 6 supports AS as a native language and has reverse 
engineering feature for it. Give it a try.


Regards.

--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Track key up event for simultaneously pressed keys

2006-01-12 Thread Michael Klishin

Hi,

I wonder what is the best way to capture a "key-is-up" event if several 
keys are pressed at once. For example if I press and hold left then 
press spacebar and release it onKeyUp won't fire till I release left key


Thanks in advance!

16:31, 12.01.2006
--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Publish profiles in Flash 8 : tags FireFox and AS3... WTH?

2006-01-09 Thread Michael Klishin

Hi,

Guys could someone tell me what the hell is  FireFox and AS3... tags in 
Publish Profiles (open XMLs itself) in Flash 8?


Thanks a lot.

Regards.
--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Classes being cached - deleting ASO does help (flash8)

2006-01-08 Thread Michael Klishin

blists wrote:
I should have been more clear sorry. Clearing the ASO files does not 
help in this case.




I met smth like that several times during component development. Solved 
it when cleared ASO cache and then updated component definition (just 
opn and then close the dialog).


--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] String object utf-8?

2006-01-06 Thread Michael Klishin

Alan Queen wrote:

Does anyone know this?

When creating a new String object is the encoding alwasy utf-8 by default?


If System.useCodepage is set to false then, yes, Flash uses Unicode.

--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] standalone+amfphp doesn't work

2006-01-04 Thread Michael Klishin

Gabriel wrote:

Hi all,
I have a standalone movie connecting to amfphp.
It doesn't connect or have response from it, but it does if I open the 
swf with the browser...


any idea?


If my memory serves me right AMF protocol uses HHTP headers that are 
available only on browser.


--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] >> link + php

2006-01-04 Thread Michael Klishin

Jim Tann wrote:

Use flashvars & Actionscript to select the movie. If I understand what
you want the buttons are on the webpage & not in the flash movie. If
this is so you will have to reload the page each time a button is
pressed passing a new value to the movie through flashvars to select
which movie to play.


And if you want to avoid reloading use JavaScript instead.

--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Components development: collection item class problems

2006-01-03 Thread Michael Klishin

Michael Klishin wrote:


It's in, thanks Jesse. Other ideas?



Never mind guys, I just misspelled the class file name :)

Thanks for your time spent on it.

--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Components development: collection item class problems

2006-01-03 Thread Michael Klishin

JesterXL wrote:

Ensure it's getting compiled in.  Import is not enough.

import mx.something.TheCollectionClass;

private var dependCollection:TheCollectionClass;


It's in, thanks Jesse. Other ideas?

--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Components development: collection item class problems

2006-01-03 Thread Michael Klishin

Hi,

I'm developing a component and running into troubles with Collections. 
I'm consistently getting error that says collection items class is not 
found.


If I just create an instance of that class in code in the same .FLA I 
see no errors.


Furthermore if I start it all over compiler see no changes in Components 
definition dialog and if there were errors in component's class compiler 
throws error messages as if class wasn't changed. ASO files were killed 
several times with no result.


What am I doing wrong? Thanks in advance.

Regards,
--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] CSS question

2006-01-01 Thread Michael Klishin

coker todd wrote:


Question, is there a method to put a background color
on specific words, not an entire textBox but
individual words?


Hi,

For static text selected with TextSnapshot only. Check out 
TextSnapshot.setSelectColor in AS language reference.


Regards,

--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] To Adobe Team guys: AS3 feature request, custom metadata tags

2005-12-29 Thread Michael Klishin

Hi,

I'm sorry but I don't know what is the best place to post a feature 
request so I'll post it here because Adobe team guys are subscribed to 
this list :)


Here we go...

In AS3 it's possible to get info about instance of a class at runtime 
with help of describeType. Futhermore we can use metadata tags like 
[Binding] or [Event] and so forth. But metadata as it exists now is just 
a compiler directives, not a "real connectivity" right? What do you 
think of adding a feature to give AS3 programmers an opportunity to 
create own metadata types like annotations Java or C#.


Say, programmer declare metadata format somehow (for example, have a 
look at @interface in Java) and then adds data... Say, like this: 
[MetadataType(param="", param2="")]. During compilation this data is 
stored in class description so coder can get it as XML with one 
declateType call.


A couple of use case examples... With this feature we can describe 
serizlization / deserialization parameters in XML or binary format; 
custom metadata would be a great thing for Unit testing frameworks 
developers.


So what do you guys think of it?

Best wishes!
--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Determine FLV file bit rate

2005-12-04 Thread Michael Klishin

Hi guys,

How can I determine the bit rate of FLV file in AS (okay, at server side 
at least), is there a meta data tag for it or any other way to determine 
position in file by time offset?


Thanks in advance!
--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flash -> css tooltip

2005-12-01 Thread Michael Klishin

eric dolecki wrote:

What I am doing so far... I have some javascript that calls up a css tooltip
& removes them. using wmode="transparent" I can ensure the DHTML will appear
above Flash. Now I guess I'm just looking to hook the flash and css together
using externalInterface

as I slog thorugh this, I guess I am making progress


If you have a toolbox for creation of CSS tooltip you need no more 
advices. I don't know your task exactly but sometimes it's necessary to 
 "hitTest" a page element before performing further actions.


If you need a solution for this I have two JS functions, just let me know.

In general you're on a right way. On the only right way actually :)

--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] as like php?

2005-11-27 Thread Michael Klishin

MetaArt wrote:

I'm developing a standalone Flash appl, to apply some format to text. The
appl will work on user's desktop, so I can't use php or any other
server-side language.
In php, to allow users insert a break row just typing the Enter key, I use
this code:

where $message is the text to which apply the conversion between Enter key
action and html  tag.
How can I achieve this in AS, so the same result come within Flash appl?


I hope I got it right and you want to replace line breaks with  tag?

If so use something like

str = "a\nb\nc\n";
trace(str);
str = str.split("\n").join("");
trace(str);

--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] as like php?

2005-11-27 Thread Michael Klishin

MetaArt wrote:

I'm developing a standalone Flash appl, to apply some format to text. The
appl will work on user's desktop, so I can't use php or any other
server-side language.
In php, to allow users insert a break row just typing the Enter key, I use
this code:

where $message is the text to which apply the conversion between Enter key
action and html  tag.
How can I achieve this in AS, so the same result come within Flash appl?


I hope I got it right and you want to replace line breaks with  tag?

--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Printing of HTML page and movie scaling

2005-11-23 Thread Michael Klishin

Hi,

I try to print HTML page with movie sized like 550 x 300 on it but get 
movie resized (grew).


What's wrong and how to fix this?

Thanks in advance.

Best wishes!
--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] MXML2UI

2005-11-15 Thread Michael Klishin

Igor Ageyev wrote:

Hello flashcoders.

The first release of MXML2UI has left;)

This is Action Script 2.0 class library for generating user
interfaces of flash application (on client side). As language for describing UI 
it uses MXML.
This class package simplifies and accelerates development of flash UI.

More detailed information: http://ageyev.ru/mxml2ui 
Summary on sourceforge: https://sourceforge.net/projects/mxml2ui/


Realized features:

ContainersBox, VBox, HBox.
Controls  All UI components (possible to use not only components from 
MM).
Data modeling Data model (while without treelike hierarchy).
  Simple data validation
  (Validator, StringValidator, NumberValidator).
Event model   Almost all.
Managers  ToolTipManager.



That's pretty cool man. For sure :)

--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Video convertation @ server side

2005-11-14 Thread Michael Klishin

Hi,

Have anyone ever had an experience of converting video to .flv at server 
side? Could you tell me about key points?


Thanks in advance!

P.S. FCS solutions are not right for me in this case

--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Singleton in AS3

2005-11-14 Thread Michael Klishin

zwetan wrote:

Have anyone got ideas how to implement Singleton pattern in AS3 best?
Constructor in AS3 can only be public or internal, which is not private
anyway. ..



Well, internal should be enough to implement a Singleton


Just have a public const in the package initialized with an internal class
of the package


Something like that

myTest/MySingleton.as
-
package myTest
  {
  public const MySingleton:Singleton = new Singleton();
  }
-

myTest/Singleton.as
-
Package myTest
  {

  //default to internal, can only be accessed inside the package
  class Singleton
 {

 //be sure to let the constructor internal
 function Singleton()
{
//...
}

 //be sure to have your methods/properties/etc. public
 //so it can be accessed outside of the package
 public function someMethod():String
{
//...
}
 }
  }
-

And after well

import myTest.MySingleton;

MySingleton.someMethod()
etc.


I don't see the need of a private constructors at all

And furthermore private constructors imho would cause
more problems than solutions

What people oversee is that we are in ECMAScript,
A Singleton in this context should just be an object
That you can not copy and/or inherit in another prototype
So a public read-only object.

Here having an internal class inside a package prevent
to instanciate this class outside of the package
the public const force to have only one global access point to the
instancied object
So where is the problem ?

Not having private constructors is not a bug,
It's using a private constructor to implement singleton
which is imho a bug/hack from AS2 times.

http://www.mozilla.org/js/language/es4/core/definitions.html

private - Makes the definition visible only in the enclosing class's private
namespace

so following the standard if you got a private constructor
you just CAN NOT instanciate at all the class anywhere else
than inside the class !

private constructors just does not make sens.

zwetan


They do. With internal access modifier you're still able to create an 
instance of class directly.


--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Flipbook in AS2

2005-11-12 Thread Michael Klishin

Stephen Hueners wrote:

Back in the days of player 6 there was a sample floating around that
demonstrated a book whose pages could be 'flipped' - dragged open from one
to the next. The author (the copy I have attributes pixelwit.com but if I
recall there was some issues with the original source of the idea) did a
great job with masking, gradients, and rotation to simulate the act of page
turning.

But it doesn't translate to AS2. Anyone seen anything similar? Skewing
pre-existing bitmaps won't work for me...I'm generating page content at
runtime.


I have my own AS2 version but it does only dragging (you cannot turn the 
page over, just turn it up). Everything is done via code, without 
attaching movies and complicated movie clip structure.


It's not really well commented but if you would like to see it write to 
me personally, I don't mind to share...


--
Michael Klishin

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


Re: [Flashcoders] Singleton in AS3

2005-11-11 Thread Michael Klishin

Chris Wilson wrote:

Agreed on all points, but when the deadline is approaching and the code
needs to be done...


That said, I'm a pragmatist when it comes to finishing a project.  :-]



For sure. But as long as AS3 is going to become one of "senior 
programming languages"... ;)


--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Singleton in AS3

2005-11-11 Thread Michael Klishin

Hi guys,

Have anyone got ideas how to implement Singleton pattern in AS3 best? 
Constructor in AS3 can only be public or internal, which is not private 
anyway. ..


--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Ajax and Flash

2005-11-09 Thread Michael Klishin

Jaye Morris wrote:

http://casario.blogs.com/mmworld/2005/11/aflax_a_javascr.html



I can't understand why AFLAX library authors put such unindicative demos 
to their site. These demos look like good old Flash sources and show no 
advantage of using AJAX with Flash. Just no client-server iteraction at 
all...


--
Michael "Antares" Klishin,

Email: [EMAIL PROTECTED]
Web: www.novemberain.com

Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] dispatching events through a chain of objects

2005-11-08 Thread Michael Klishin

Jan Schluenzen wrote:

How do you guys handle the following situation:

I have a class, let's say Dog that holds an instance of the class Leg.
Outside of Dog I have another class called Street that holds the dog.
Anyway, now I want street to find out whenever the dog's leg has
moved. The only way I can figure out how to do that is to send the
"move" event of the Leg class first to the holder of the Leg object
(in this case Dog) and then on to the holder of Dog, in this case
Street. I've ran into more complex cases when I've had to hand down
events through several classes...


What about creation of "event forwarder" method? Something like

function forwardEvent(event:String, target:Object)
{
target[event]();
}

when you pass chain of objects to target. In this case you have to keep 
object references chain but to my mind it's impossible to avoid using of 
 such a chains, method or references.


And then use accessors:

// Dog instance

move("move", 
this.getStreet().getCity().getState().getCountry().getPlanet().getSolarSystem());


--
Michael Klishin

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


[Flashcoders] Passing parameters to nested JSFL function from AS

2005-11-06 Thread Michael Klishin

Hi guys,

I've got a problem with passing parameters t JSFL script function from AS.

Say, we have a JSFL script with a function inside. For example, it's
document.optimizeCurves. How to pass parameters to it with help of
MMExcute if I also need to excute lots of JSFL code before? I could do
smth like

MMExcute("document.optimizeCurves(" + foo + ", " + bar + ");");

but what if I need to do it in loop with calculations but some
parameters have to be passed from AS?

I think solution is somewhere at top but I can't find it by myself anyway.

Thanks in advance!
--
Michael Klishin,
[EMAIL PROTECTED]


Non progredi est regredi

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


Re: [Flashcoders] Measuring the height of a dynamically created text field.

2005-10-24 Thread Michael Klishin

David Lochhead wrote:


This outputs 16 for the height and 300 for the width. The actual
height of the textfield, via the debugger, is 160.


And what does object returned by getTextExtent() method say if you use 
wrap margin parameter? For me this way always works fine. But if you use 
HTML-rendering text fields...


--
Michael Klishin,
[EMAIL PROTECTED]


Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Problem with .as files

2005-10-24 Thread Michael Klishin

I. Franklin wrote:

Hi list,

I have encountered a bizarre problem with the .as files in one of my
projects.
The problem is that when I make any updations to the class file and
compile, it is not getting reflected in the project and moreover even
when I comment all the scripts in that class file, it compiles perfectly
and publishes and all the commented script works!!!. 
Any idea why this could happen?


Use this extension to clear ASO cache:

http://www.macromedia.com/cfusion/exchange/index.cfm?extid=1016963&view=sn111

--
Michael Klishin,
[EMAIL PROTECTED]


Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


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

2005-10-24 Thread Michael Klishin

Benjamin Dobler wrote:

I`m wondering if anyone suceeded in making an as 3.0 only project in flex
builder with the flex framework.

Something as simple as addChild(new mx.controls.Button); would make my day!


I did. You wanna see result or what?
Actually you can use examples from help to check what next generation of 
 RIA will be...


--
Michael Klishin,
[EMAIL PROTECTED]


Non progredi est regredi
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders