[Flashcoders] test - please ignore

2007-05-30 Thread Nils Millahn

Having some trouble getting messages through - please ignore.

thx - Nils.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] actionscript bitmap text (no anti-alias)

2007-05-30 Thread Nils Millahn

Hiya,

I'm trying to use the Bitmap text (no anti-alias) rendering method with a
dynamically created text field but whatever I try, anti-aliasing is applied.

Does anybody know how to do it?

Thanks in advance,

Nils
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] AS2 compiler error extravaganza

2005-11-09 Thread Nils Millahn
if you are editing AS files on a file server, this is more probably due 
to the Flash timestamp issue. You can only really fix this by copying 
class files to your local machine and working on them from there.


- Nils.


Andreas Rønning wrote:


two classes. First lines of the problem class:

import flash.geom.*;
import as.maps.model.GroupReference;
class as.maps.model.Topic{
...
}

first lines of the GroupReference class

import as.memomaps.model.Topic;
class as.memomaps.model.GroupReference{
...
}


Topic.as: Line 3: The name of this class, 'as.memomaps.model.Topic', 
conflicts with the name of another class that was loaded, 
'as.memomaps.model.Topic'.

class as.memomaps.model.Topic{

This makes sense. Topic imports groupreference which imports topic. 
Bad Andreas.


So how to work around this? I make a completely empty class called 
DataSource, and have Topic extend that.
Then in GroupReference, i import as.memomaps.model.DataSource instead, 
and have whatever variables were expecting a Topic datatype to expect 
a DataSource type.

Whammy. no more errors.

The thing is, it's hard to simplify the Topic class down further: it's 
got a very specialized purpose. So is my method acceptable? To me it 
just looks terribly dirty.


Any suggestions as to how i can solve this kind of cross-import issue 
in a more elegant manner?


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





--


---
Nils Millahn
Internet Solutions - Design and Development - Flash Specialist

T: +44 (0) 7909 528 617
E: [EMAIL PROTECTED]
W: www.hub124.co.uk

===
Notice of Confidentiality.

This transmission is intended for the named recipient only. It contains 
information which may be confidential and which may also be privileged. Unless 
you are the named addressee (or authorised to receive it for the addressee) you 
may not copy or use it, or disclose it to anyone else.

It is the responsibility of the recipient to ensure that the forwarding, 
opening or use of the e-mail (and any attachment) will not adversely
affect their system or data. Please carry out appropriate virus checks.
===


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


Re: [Flashcoders] removing a entry from an associative array?

2005-11-09 Thread Nils Millahn


well - if it's an associative array, then the name of the element is its 
index, so that answers your second question. And if you set the element 
to undefined, you will get the same result as the loop you are doing...


startArray[entryName] = undefined;

(also, perhaps your code works but I'm not aware that  is a valid 
operator in Flash - generally you'd use != instead)


- Nils.


David Skoglund wrote:


The only solution I see is to create a new array by looping through the array 
like this:

function removeAssociativeEntry (startArray, entryName) {
   newarray=[];
   for (var i in StartArray) {
   if (entryNamei) {
   newarray [i]=startArray[i];
   }
   }
   return (newarray);
}

This seems a bit silly, especially since I don't know how long these arrays are 
gonna be. Is thery any inbuilt function for getting the index of a associative 
entry?

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



 



--


---
Nils Millahn
Internet Solutions - Design and Development - Flash Specialist

T: +44 (0) 7909 528 617
E: [EMAIL PROTECTED]
W: www.hub124.co.uk

===
Notice of Confidentiality.

This transmission is intended for the named recipient only. It contains 
information which may be confidential and which may also be privileged. Unless 
you are the named addressee (or authorised to receive it for the addressee) you 
may not copy or use it, or disclose it to anyone else.

It is the responsibility of the recipient to ensure that the forwarding, 
opening or use of the e-mail (and any attachment) will not adversely
affect their system or data. Please carry out appropriate virus checks.
===


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


Re: [Flashcoders] Referer

2005-11-09 Thread Nils Millahn

nope - you'd have to pass it in from HTML via flashvars.

- Nils.


John N. Brahy wrote:


I know I can get my current URL for the swf by this._url but is there a
way to find the url of the page the swf was called from?
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



 



--


---
Nils Millahn
Internet Solutions - Design and Development - Flash Specialist

T: +44 (0) 7909 528 617
E: [EMAIL PROTECTED]
W: www.hub124.co.uk

===
Notice of Confidentiality.

This transmission is intended for the named recipient only. It contains 
information which may be confidential and which may also be privileged. Unless 
you are the named addressee (or authorised to receive it for the addressee) you 
may not copy or use it, or disclose it to anyone else.

It is the responsibility of the recipient to ensure that the forwarding, 
opening or use of the e-mail (and any attachment) will not adversely
affect their system or data. Please carry out appropriate virus checks.
===


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


[Flashcoders] using Array.sortOn with getter/setters

2005-10-30 Thread Nils Millahn

Hi,

I've been storing a few very simple Value Objects in an array and wanted 
to use Array.sortOn to sort them. However the value objects use 
getter/setters for member access - and the sorting simply didn't seem to 
take place.


I've now converted the ValueObjects to use public members instead of 
getter/setters - and everything is working nicely.


I don't see how this should make any difference to the way Flash 
accesses the values in the VO - does anybody have any idea?


Here's an example of the VO with getter/setters that I couldn't get 
Flash to sort:


class SimpleVO
{
   private var __year:Number;
   private var __clip:MovieClip;

   public function SimpleVO(n:Number, mc:MovieClip)
   {
  __year = n;
  __clip = mc;
   }

   // and normal set of getter/setters in here
   public function get year():Number
   {
  return __year;
   }
   // etc.
}

Thanks - Nils.

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


Re: [Flashcoders] Singleton and Listeners is a bad combination

2005-10-28 Thread Nils Millahn

Hiya,

I reckon that it would be a good idea not to make it a singleton but 
create new instances every time. The fact that you are running into the 
problem with listeners is a pretty clear indication that you require new 
instances to be created for every use of the class - not really the 
right scenario for a singleton.


The FontLoader class could hold a static list of fonts that are already 
loaded for internal reference - but the SWFs that are loading the fonts 
don't need to know about that kind of logic - they simply need to know 
that they can use the FontLoader class to load a font that they require.


Hope that helps,

Nils.



Martin Klasson wrote:




Hi Coders.



I got a class which I thought would be improved by using the Singleton pattern. 
And it does, until I am adding in the EventDispatcher.

The problem is that my application will using the FontLoader.getInstance() at 
several places in different classes and files.

The problem arises since you can set addEventListeners to the instance.



If you in class A has:

fntController = FontLoader.getInstance()

fntController.addEventListener('onFinished', fontsLoaded)



And in Class B you have the same as class A, just to state an example of the 
problem...



The problem is that since FontLoader.getInstance() returns exactly the same 
instance everytime. So when class B fontsLoaded is called, the fontsLoaded is 
also called in class A.

The problem is that even though you can use removeEventListener, you might not 
want do that since you might still want the fontsLoaded to be working in class 
A another time.

One solution is that you in class A and class B doesnt have the same name for 
the function that is given in the addEventListener -but that doesnt seem like a 
neat solution to depend on that when several developers might write the same.

As well as boring for the EventDispatcher used in the FontLoader to call 
listener-function which might not exist in the different scopes/classes where 
the FontLoader istance is.



So I thought the best way would be to do the class ALL static, but the problem 
would still be the same with the listeners.

I can only come up with one solution, and that is to do the usual, that you 
will have to instanciate the class.



class A

private var fntController:FontLoader = new FontLoader(); // now I can have 
listeners which just would listen to this instance.

class B

private var fntController:FontLoader = new FontLoader(); // now I can have 
listeners which just would listen to this instance.



This will make them able to have listeners that wont interfere with each other. 
Is this the best solution, or do you know of any other solution that you think 
would suit this scenario?

Listeners are incredibly great, and I am thinking on the Key-class, that has 
addListener, which is a static class and should suffer just as well as my 
FontLoader-listeners does.  But somehow it doesnt fit the FontLoader.

What do you think, any general advices?



Singleton and EventDispatcher doesnt come in handy when you are having the 
getInstance() at several places in an application, or am I wrong?

Thanks.

/ martin

 




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



--


---
Nils Millahn
Internet Solutions - Design and Development - Flash Specialist

T: +44 (0) 7909 528 617
E: [EMAIL PROTECTED]
W: www.hub124.co.uk

===
Notice of Confidentiality.

This transmission is intended for the named recipient only. It contains 
information which may be confidential and which may also be privileged. Unless 
you are the named addressee (or authorised to receive it for the addressee) you 
may not copy or use it, or disclose it to anyone else.

It is the responsibility of the recipient to ensure that the forwarding, 
opening or use of the e-mail (and any attachment) will not adversely
affect their system or data. Please carry out appropriate virus checks.
===


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


Re: [Flashcoders] Job Offer :: employee search

2005-10-26 Thread Nils Millahn

http://www.chinwag.com/flasher/jobs_index.shtml


Wade Arnold wrote:

I am wondering if their is a better place to post full time positions. 
We have six positions that we need to fill for development of client 
projects and the component development. Please let me know if you have 
any URL's. I have wasted money on all the job sites and am not finding 
the type of people that would use this list. If you are an HR person 
that knows how to find these types of people please contact me!


Thanks for any insight!

Wade

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





--


---
Nils Millahn
Internet Solutions - Design and Development - Flash Specialist

T: +44 (0) 7909 528 617
E: [EMAIL PROTECTED]
W: www.hub124.co.uk

===
Notice of Confidentiality.

This transmission is intended for the named recipient only. It contains 
information which may be confidential and which may also be privileged. Unless 
you are the named addressee (or authorised to receive it for the addressee) you 
may not copy or use it, or disclose it to anyone else.

It is the responsibility of the recipient to ensure that the forwarding, 
opening or use of the e-mail (and any attachment) will not adversely
affect their system or data. Please carry out appropriate virus checks.
===


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