Re: [Flashcoders] 'trace' executes function

2011-02-02 Thread Jens Struwe
trace() is a normal function. If you pass arguments to trace(), they will be evaluated first. 1. trace (name == Jens); Wouldn't you here expect a true or false depending on your name? 2. Write a custom function to which you pass setMovieClipX(movieClip,286). What parameter type you would use?

[Flashcoders] Fun with focus, tabbing and IE

2011-02-04 Thread Jens Struwe
Hello, I was about to create a focus handling for an application when I discovered the SWF parameter seamlessTabbing which is true by default for Active-X players. The property includes Flash objects in the usual browser's tab loop. I don't know, if this is a good thing or not. Anyway, I was

[Flashcoders] Events for setChildIndex, swapChildren, swapChildrenAt

2011-02-06 Thread Jens Struwe
Does anybody know a way to catch z-index modifications? I would like to detect if a sprite becomes the first/last child of its parent at runtime. :-? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] Events for setChildIndex, swapChildren, swapChildrenAt

2011-02-06 Thread Jens Struwe
What a quick response! Isn't it sunday in France? Well, I know of both methods. Unfortunately, I don't define the particular container that I wish to track. ... When I could route all setChildIndex calls globally to a custom method, I would be able to identify the affected parent and all

Re: [Flashcoders] Calling an element in an Array as an Class

2011-02-11 Thread Jens Struwe
Version 1: public class EmbedTest extends Sprite { [Embed(source=clear.png)] private static const PRO_CAR : Class; public static const ALL_CARS:Array = [PRO_CAR]; public static function getAsset( index:uint ) : Bitmap { return new

Re: [Flashcoders] checking for properties AS3

2011-02-16 Thread Jens Struwe
Having an example XML could be pretty useful. And, actually, I don't understand the problem. What should be the output? Please hand over all necessary info required to be able to help you. Am 16.02.2011 12:43, schrieb Geografiek: Hi list, I posted this question a week ago on flash tiger, but

Re: [Flashcoders] checking for properties AS3

2011-02-16 Thread Jens Struwe
Goorbergh On 16 feb 2011, at 13:10, Jens Struwe wrote: Having an example XML could be pretty useful. And, actually, I don't understand the problem. What should be the output? Please hand over all necessary info required to be able to help you. Am 16.02.2011 12:43, schrieb Geografiek: Hi list

Re: [Flashcoders] Problem with XML.childIndex()

2011-02-17 Thread Jens Struwe
Try: var res : XMLList = _assets.child(number).(text() == prop); var res:XMLList = _assets.*.(attribute(icon) == String(prop)); Jens Am 17.02.2011 11:08, schrieb Glen Pike: Hi, I am having a problem with getting the childIndex value from an e4x result: Both these functions work - e.g. they

Re: [Flashcoders] Problem with XML.childIndex()

2011-02-17 Thread Jens Struwe
??? On 17/02/2011 11:24, Jens Struwe wrote: Try: var res : XMLList = _assets.child(number).(text() == prop); var res:XMLList = _assets.*.(attribute(icon) == String(prop)); Jens Am 17.02.2011 11:08, schrieb Glen Pike: Hi, I am having a problem with getting the childIndex value from an e4x result

Re: [Flashcoders] Problem with XML.childIndex()

2011-02-17 Thread Jens Struwe
events_count1/events_count length2.63/length outputs /outputs /entity entity id530/id number2007/number name![CDATA[Sob]]/name description![CDATA[Compose Audio]]/description type1/type events_count1/events_count length2.02/length outputs /outputs /entity On 17/02/2011 12:30, Jens Struwe wrote

Re: [Flashcoders] Wait for several things to be loaded

2011-03-17 Thread Jens Struwe
It does not look that bad. Since you know how many items have to be load, you may engage a counter: private function handleComplete(e:Event) { _loadCount++; if (_loadCount == 2) { dispatchEvent(new Event(Event.COMPLETE)); } } :-) Am 18.03.2011 02:09, schrieb Mattheis, Erik

Re: [Flashcoders] Problem embedding and using a font variant

2011-04-12 Thread Jens Struwe
Don't ask me for details, but just a week ago I got this running. [Embed(source=myfont.otf, fontFamily=myfont, mimeType=application/x-font-opentype)] public var MyFont : Class; To support otf, it is necessary to tell the compiler the a certain font manager is to use. I put it into my

Re: [Flashcoders] using this in AS3 classes?

2011-06-08 Thread Jens Struwe
You need the this in any case the scope of the variable or method is not clear. In all other cases the this is not necessary. I don't use it. Tools such as FDT highlight instance properties differently to local or argument variables. This makes it easy to visually detect the scope of a

[Flashcoders] AS3Commons UI - Layouts, LifeCycle, Popups, Tooltips

2011-06-10 Thread Jens Struwe
Hi @coders, hope you will like the project and hence push a message here: AS3Commons UI is a collection of independent non-visual components, managers and algorithms to solve common user interface related tasks such as as layouting, focus and keyboard management, popup handling, drag and

Re: [Flashcoders] swf 2 pdf on the fly

2011-10-28 Thread Jens Struwe
I have recently tested these two libs: - alivepdf - purepdf I ended up using alivepdf. Smaller lib size, better documented and it worked with the first set up. The code to provide the download link: import flash.events.IOErrorEvent; import flash.net.FileReference; ... var fileName

Re: [Flashcoders] Re: unsubscribe

2014-09-24 Thread Jens Struwe
haha!! :five On 24.09.2014 18:10, Kurt Griffin wrote: Thanks man, that was the funniest thing I’ve seen all day. - Kurt Griffin Software Development and Consulting 617.347.7681 http://www.squidfight.com On Sep 24, 2014, at 12:00 PM,