[Flashcoders] Capped MovieClip._rotation, what can be done?

2006-08-21 Thread Bart Wttewaall
with this in their application and what you did about it, either to mask it up or actually solve this problem. With regards, Bart Wttewaall ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://cha

Re: [Flashcoders] Capped MovieClip._rotation, what can be done?

2006-08-21 Thread Bart Wttewaall
ryones creative input on this subject! Thanks, Bart Wttewaall 2006/8/21, Mike Cobb <[EMAIL PROTECTED]>: - As I understand it, flash is limited to rotating objects in steps of 0.1 degrees. Bart Wttewaall wrote: > Hi Flashcoders, > > I've been busy recreating the famous Page

Re: [Flashcoders] Re: Flashcoders Digest, Vol 19, Issue 63

2006-08-21 Thread Bart Wttewaall
Wouter, wil je flashcoders uit je auto-respond lijst halen? 2000+ mensen zitten daar niet op te wachten ;) Groeten, Bart 2006/8/21, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: Geachte heer/mevrouw, Ik ben t/m 25 augustus afwezig. Ik zal uw mail daarna zo snel mogelijk in behandeling nemen. Voor dr

Re: [Flashcoders] OS style command prompt

2006-08-29 Thread Bart Wttewaall
I've created a light version of DOS in flash a few months ago :P It works with a commandline pretty much as how you described your application. In my case the first word of the command typed in was a method, optional attributes were the arguments. It was first filtered, then sent to the class's __

Re: [Flashcoders] Weak bounce easing equation

2006-10-05 Thread Bart Wttewaall
You can control the quantity of the bounce to some extend by using the last two optional arguments in Elastic. I played with them for a bit, but couldn't tweak it to the point where it behaves as the animation you described. Hope it helps.. Godd luck! -- code -- import mx.transitions.Tween; imp

Re: [Flashcoders] which Symbol?

2006-12-04 Thread Bart Wttewaall
Hi Karim, When building components, the first three (static) variables usually define the symbolName, symbolOwner and className. If you add them to your own class, then you're done. Get the linkageID by calling Classname.symbolName; Of course you should use the same identifier that you set in you

[Flashcoders] FocusManager

2007-08-21 Thread Bart Wttewaall
nyone have an example or a good source about the FocusManager? Thanks in advance. Bart Wttewaall ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] FocusManager

2007-08-21 Thread Bart Wttewaall
e function onRelease() { getFocusManager().setFocus(this); } } 2007/8/21, John laPlante <[EMAIL PROTECTED]>: > Are you using calling this relative to _root or _level0? > _root.focusManager.setFocus > > Bart Wttewaall wrote: > > Hi list, > > > > I'm having

Re: [Flashcoders] FocusManager

2007-08-22 Thread Bart Wttewaall
Well, I'd be truly surprised if that would work, but I'l try tomorrow when I'm at work again :) Thanks for the tip. Bart 2007/8/21, John laPlante <[EMAIL PROTECTED]>: > Go ahead and try that and I bet it will work. > > Bart Wttewaall wrote: > > Thanks for re

Re: [Flashcoders] FocusManager

2007-08-24 Thread Bart Wttewaall
e element. Man that was a tough problem with almost no information about it anywhere. If anyone is looking for more info on the subject, see UIComponent's methods: . setFocus() . getFocus() . pressFocus() . releaseFocus() . onSetFocus(oldFocus) . onKillFocus(newFocus) 2007/8/22, Bart Wttewaa

Re: [Flashcoders] Integrating Flex 2 swfs into custom built 8.5 sfws

2005-10-19 Thread Bart Wttewaall
I foresee a problem though.. Flash uses the first class(name) it encounters in multiple swf's. When loading an swf that uses newer classes then present in the first swf, the player will use the older ones. So when exporting a swf that makes use of Flex's classes, that may be upgraded versions of cl

Re: [Flashcoders] text warp in flash

2005-12-20 Thread Bart Wttewaall
http://www.storyabout.net/typedrawing This is an application that uses bulging text in a static manner. It might give you an idea.. 2005/12/20, rishi <[EMAIL PROTECTED]>: > Hi > > > > I have been trying to achieve text warp , with all the technologies and > the skillset I possess, but to no succes

Re: [Flashcoders] reverse play FLV?

2005-12-21 Thread Bart Wttewaall
You can't play an flv backwards because of the way it is encoded. A video consists of sequencial compressed images. If you jump to a frame, the decoder has to collect an I-frame (a complete image) and walk through B-frames (partial images containing only changed eareas) to accumulate frames until i

Re: [Flashcoders] looking for combobox w/ autocomplete

2006-01-11 Thread Bart Wttewaall
I have exactly what you're looking for. I made some methods that responded to the change-event and such and created a "intellisense"-combobox. Mail me offlist if you're insterested in the code. 2006/1/6, Nick Appelmans <[EMAIL PROTECTED]>: > Can anyone point me in the direction of a combobox with

Re: [Flashcoders] easy to implement a* flash classes?

2006-01-14 Thread Bart Wttewaall
http://www.flashfocus.nl/forum/showthread.php?t=1547 It's a dutch forum, but the code is quite readable. 2006/1/13, franto <[EMAIL PROTECTED]>: > http://www.franto.com/blog2/as3-pathfinder-in-big-mazes > > examples and sources for as2 and as3 :) > Enjoy > > > On 1/12/06, Jim Armstrong <[EMAIL PRO

Re: OT THANK YOU: Re: [Flashcoders] How to call functions in sequence

2006-01-31 Thread Bart Wttewaall
Fuse, the animation engine from mosessupposes.com has a build-in Sequence class. I't easy to add commands to this sequence like method calls. You might want to look into it. Bart 2006/1/30, Kevin Cannon <[EMAIL PROTECTED]>: > On Sun, Jan 29, 2006 at 10:04:22AM +0100, Sander wrote: > > If your fun

Re: [Flashcoders] Dynamic class creation

2006-01-31 Thread Bart Wttewaall
Or just use mx.utils.ClassFinder. var classname:String = "com.mosesSupposes.fuse.Fuse"; var FuseClass:Function = mx.utils.ClassFinder.findClass(classname); fuse = new FuseClass(); 2006/1/30, franto <[EMAIL PROTECTED]>: > thank you all, i've already made it! > > var str:String = 'test1.test2.Class

Re: [Flashcoders] extending collectionimpl

2006-01-31 Thread Bart Wttewaall
I don't seem to have a problem with it. Succes, Bart // -- class Col extends mx.utils.CollectionImpl { function Col() { super(); _items = new Array(); } } // -- import Col; var col = new Col(); col.addItem("hello"); col.addItem

Re: [Flashcoders] Right Mouse Click Event?

2006-01-31 Thread Bart Wttewaall
You can fake it though.. Here's a class I wrote a while ago. And here you find a demo: http://www.mediamonkey.nl/flashfiles/MouseDetection.html /** MouseDetection.as * @Author: Bart "Mediamonkey" Wttewaall * @Date: 31-10-2005 * @Description: * A class that tests throug an interval if the left,

Re: [Flashcoders] can I know if I class/package has been imported in a swf?

2006-02-01 Thread Bart Wttewaall
or how about: var exists:Boolean = classExists("your.class.path"); trace(exists); function classExists(path):Boolean { return (mx.utils.ClassFinder.findClass(path)); } 2006/2/1, Scott Hyndman <[EMAIL PROTECTED]>: > if (_global.path.to.class.Class != null > && typeof(_global.path.to.

Re: [Flashcoders] Component instantiation- How does dragging affect the constructor

2006-02-01 Thread Bart Wttewaall
If you create your first Singleton-instance, and from that class you build up your application, the instance is not yet stored in the variable. Therefore when other elements call its getInstance(), the classvar hasn't been set yet. That's why your Singleton's constructor gets called twice. My solut

Re: [Flashcoders] Flash 8 ActionScript additions?

2006-02-01 Thread Bart Wttewaall
New in ActionScript 2.0 and Flash 8 http://livedocs.macromedia.com/flash/8/main/1132.html 2006/2/2, thotskee <[EMAIL PROTECTED]>: > Can anyone supply a list of additions made to ActionScript 2.0 for Flash 8 > (not AS3[?])? > > thanks for your time. > __

[Flashcoders] Flash 8 CPU test script

2006-02-02 Thread Bart Wttewaall
Hi list, I'd like to be able to tell if the user's cpu is up for a heavy load of animations, filters and flv's with alphachannel. I remember a post about how the Flash 8 VM had been drastically rewritten so that cpu-usage and garbage collection acted in a whole new manner. In Flash 7 I'd write a

Re: [Flashcoders] Flash 8 CPU test script

2006-02-02 Thread Bart Wttewaall
t; > M. > > On 2/2/06, Alias <[EMAIL PROTECTED]> wrote: > > > > Flash 8 does not contain the new VM. Only flash 8.5 contains it, and > > if you are running flash 8.0 content, it will use the 8.0 VM. Carry on > > as you were, you should be fine. > > > &

Re: [Flashcoders] How do you code your Flash applications?

2006-02-03 Thread Bart Wttewaall
And certainly not when you work within the _root. It will give depths at which you can't remove movieclips. 2006/2/3, Scott Hyndman <[EMAIL PROTECTED]>: > It's not when you don't want the movieclip to be on the highest depth. > > Scott > > -Original Message- > From: [EMAIL PROTECTED] on

[Flashcoders] Rotating a mc around a custom pivotpoint

2006-02-13 Thread Bart Wttewaall
Hi list, I'm looking for a piece of math to rotate a mc around a pivotpoint, other then its original. I've seen the math before in a demo, on some blog perhaps, but can't seem to find it again. I made some attempts to write it myself, but my math is as rusty as a german submarine. Much obliged, B

Re: [Flashcoders] Rotating a mc around a custom pivotpoint

2006-02-13 Thread Bart Wttewaall
you were after? > > Adrian > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Bart > Wttewaall > Sent: 13 February 2006 17:31 > To: Flashcoders mailing list > Subject: [Flashcoders] Rotating a mc around a custom pivotpoint > >

Re: [Flashcoders] Rotating a mc around a custom pivotpoint

2006-02-14 Thread Bart Wttewaall
function cosD(angle) { return Math.cos (angle * (Math.PI / 180)); } 2006/2/13, Bart Wttewaall <[EMAIL PROTECTED]>: > exactly! thanks a lot! > I mustn't have used the right keywords in my search ;) > > > 2006/2/13, Adrian Lynch <[EMAIL PROTECTED]>: > > It was

[Flashcoders] sorting a collection of points clockwise

2006-02-26 Thread Bart Wttewaall
tter which point the returning array begins with, but I'd like the method to be as fast as possible since it will be called every frame. I'm not asking for a complete solution (although appreciated) but for a few tips how to tackle thi

Re: [Flashcoders] Re: sorting a collection of points clockwise

2006-02-27 Thread Bart Wttewaall
return sortedArray; } 2006/2/27, A.Cicak <[EMAIL PROTECTED]>: > atan2 should do the trick > > "Bart Wttewaall" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > Hi List, > > I'm looking for an algorithm that sorts a collection of po

Re: [Flashcoders] Re: sorting a collection of points clockwise

2006-02-27 Thread Bart Wttewaall
Thanks Morten, that actually made it 23% faster :-) 2006/2/27, Morten Barklund TBWAPlay <[EMAIL PROTECTED]>: > Bart Wttewaall wrote: > > Thanks, > > > > I guess I needed a little nudge to actually get working on the method. > > If anyone sees a quicker method tha

Re: [Flashcoders] Flash on PSP!

2006-03-01 Thread Bart Wttewaall
Don't bother, I've tested it and it's crap. It seems all this "flashplayer" does is convert the flashfile to some form of video (and taking its sweet time at that) and play it/crash on it. No actionscript interaction whatsoever. You're better off exporting your animation to avi and convert it to mp

Re: [Flashcoders] Flash on PSP!

2006-03-01 Thread Bart Wttewaall
Oops! Sorry, I didn't test properly. I'll have to eat my own words: it really does work with AS2 on version 7. I've tested it a bit better now and found out there's no transparency with imported gif or png. That and it crashed my PSP on a 500KB swf file. Still a mighty fine achievement. I'm really

Re: [Flashcoders] way to get window.location from flash?

2006-03-01 Thread Bart Wttewaall
trace(_root.url) 2006/3/1, Alan Queen <[EMAIL PROTECTED]>: > Is there a way get the window's location ( url ) from flash without embedded > a javascript helper function on the page? > > -- > - Alan Queen > ___ > Flashcoders@chattyfig.figleaf.com > To cha

Re: [Flashcoders] way to get window.location from flash?

2006-03-01 Thread Bart Wttewaall
crap.. I meant: trace(_root._url) 2006/3/1, Bart Wttewaall <[EMAIL PROTECTED]>: > trace(_root.url) > > 2006/3/1, Alan Queen <[EMAIL PROTECTED]>: > > Is there a way get the window's location ( url ) from flash without embedded > > a javascript helper funct

Re: [Flashcoders] File Exists - a better way?

2006-03-17 Thread Bart Wttewaall
Ian: "There's no Flash native hack as far as I know." You can check (and cache while you're at it) any file by using LoadVars: var file:String = "anyFileType.exe"; var fileExists:LoadVars = new LoadVars(); fileExists.onLoad = mx.utils.Delegate.create(this, doCheck); fileExists.load(file); funct

Re: [Flashcoders] File Exists - a better way?

2006-03-18 Thread Bart Wttewaall
f time as loading it normally. My solution is a quick call to > a webserver and a few bytes worth of response - much quicker than > (say) loading a 250Kb file... > > Ian > > On 3/18/06, Bart Wttewaall <[EMAIL PROTECTED]> wrote: > > Ian: "There's no Flash nativ

Re: [Flashcoders] Good Math script for sheet movement when draged on table

2006-04-01 Thread Bart Wttewaall
What's your question? If you're looking for a way to script animation, use the Tween class. 2006/3/31, INK. <[EMAIL PROTECTED]>: > Hi, List? > Anyone seen subj? Something real-life and natural motion? > > Thanks. > > ___ > Flashcoders@chattyfig.figleaf.c

Re: [Flashcoders] testing

2006-04-01 Thread Bart Wttewaall
loud and clear 2006/3/31, Christian <[EMAIL PROTECTED]>: > testing... coming through? > > ___ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > >

Re: [Flashcoders] XPath hangs

2006-04-03 Thread Bart Wttewaall
I've tested it and it just works like a charm. No hangup or anything. I'm using Flash 8 & AS2 by the way and the latest release of xfactorstudio's XPath import DepthManagerTest; import nl.mediamonkey.xml.XMLLoader; import mx.utils.Delegate; import com.xfactorstudio.xml.xpath.XPath; var test = new

[Flashcoders] Trouble with dynamic binding dataset to datagrid & cellrenderer

2006-04-12 Thread Bart Wttewaall
taGrid and DataSet are in conflict. Philippe is out of office until the 17th, so I'm trying the list. Could you please help me out? I've uploaded the code in a zipfile to the following url: http://download.mediamonkey.nl/MyCart.zip Than

Re: [Flashcoders] XPath Problem

2006-04-30 Thread Bart Wttewaall
That's because you're searching from the country-node, that's the structure you're searching in. Forget about all its parentnodes, we're talking about a new xml-document here. var countriesList:Array = XPath.selectNodes(xmlData, "/map/country"); for (var i=0; i: On Sun, Apr 30, 2006 at 10:39:23

Re: [Flashcoders] Date Object Problem

2006-05-02 Thread Bart Wttewaall
I'm not sure if it'll solve your problem, but you might want to check out Date.UTC var maryBirthday_date:Date = new Date(Date.UTC(1974, 7, 12)); trace(maryBirthday_date); I'm not sure what it does (something with universal time), since the documentation is quite cryptic, but perhaps it's related

Re: [Flashcoders] destructors...

2006-05-03 Thread Bart Wttewaall
When using classes that extend from MovieClip, you can use onUnload(). I use it primairaly for removing EventListeners so I won't get stuck with duplicate eventcalls. When you want to delete a class all you really have to do is remove all instances and references from that class. I don't think th

Re: [Flashcoders] obfuscation swf !

2006-05-07 Thread Bart Wttewaall
http://www.amayeta.com/software/swfencrypt/ This doesn't obfuscate, but really encrypt your swf's. I've tried every swf decoder I could find to check if it works, and it does. All you get is rubbish when decompiling. 2006/5/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: Is there any good way or metho

Re: [Flashcoders] Optimization techniques

2006-05-18 Thread Bart Wttewaall
Hi, I've seen Aral Balkan present his product Ariaware Optimizer a year ago. It optimizes your RIA by removing compiled classes from multiple swf's and adding them to a dll-swf. You might want to check it out: http://ariaware.com/products/optimizer.php Bart Wttewaall 2006/5/18,

Re: [Flashcoders] Getting the selection

2006-05-29 Thread Bart Wttewaall
It's because the button you click will have the focus. So you should return the focus on the textfield before you can get the Selection of the text. [as] underline_btn.addEventListener("click", mx.utils.Delegate.create(this, underline_check)); function underline_check(evt:Object):Void {

Re: [Flashcoders] setting the centerpoint of a movieclip?

2006-06-04 Thread Bart Wttewaall
I took a rotateZ method from Robert Penner's Vector3D class and added a pivotpoint to the formula. It works pretty well as a dynamic registrationpoint :) var mc:MovieClip; var position:Object = {x:mc._x, y:mc._y}; var pivot:Object = {x:position.x+mc._width/2, y:position.y+mc._height/2}; var angle

Re: [Flashcoders] unsubcribe, please

2006-06-04 Thread Bart Wttewaall
rtff (read the freakin' footer) ;-) 2006/6/4, kathrin hunger <[EMAIL PROTECTED]>: >too many email ta kat -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

Re: [Flashcoders] How do real developers do key handling?

2006-06-06 Thread Bart Wttewaall
The open-source Vegas framework at osflash.org makes use of a hashmap. Since every Object extends of CoreObject, a hashcode is added to every object. A nice solution, I think. static private var _initHashCode:Boolean = HashCode.initialize(CoreObject.prototype) ; 2006/6/7, Kevin Aebig <[EMAIL PRO

Re: [Flashcoders] XML object error handling

2006-06-14 Thread Bart Wttewaall
check XML.status http://livedocs.macromedia.com/flash/8/main/2880.html 2006/6/13, Howard Nager <[EMAIL PROTECTED]>: Will the XML object's onLoad function recognize an http 500 error message? Is that the argument passed to the onLoad function? ___

Re: [Flashcoders] Unable to create button greater than stage size

2006-06-19 Thread Bart Wttewaall
I read somewhere that assets on the stage can't be larger then 2880 pixels in either direction. Maybe you should split up that button of yours. (I don't wanna know why you'd need such a big button) 2006/6/19, Dhiraj Girdhar <[EMAIL PROTECTED]>: Hi All, Please check following code... I a

Re: [Flashcoders] Programmatically build a crossword puzzle board

2006-06-19 Thread Bart Wttewaall
Hi Charles, I don't know how others would take a swing at this, but this is what I would do: First, define your boundaries. You're making a crossword puzzle, so that would be a matrix with a specified width and height. Next up you'll want to add words. Grab your nearest dictionairy and pounce in

Re: [Flashcoders] Panning and Sliding, using Tweens possible?

2006-06-27 Thread Bart Wttewaall
Here's an old testclass of mine. It uses those custom easing equations from mx.transitions.easing.*; import mx.transitions.easing.*; import mx.utils.Delegate; class TweenTest { public static var fps:Number = 31; private var intervalID:Number; private var

Re: [Flashcoders] Repulsion effect

2006-07-07 Thread Bart Wttewaall
Take a look around at http://www.bit-101.com You'll find a lot of examples (with source) in the old lab. 2006/7/7, Martin Weiser <[EMAIL PROTECTED]>: Hello, once i found script with balls repulsed by mouse movement, when mouse was over them they made space around the cursor, and then retrieved

Re: [Flashcoders] > I want new Flash 8!

2006-07-16 Thread Bart Wttewaall
Don't get me started on FlexBuilder... There is no auto-format and I've experienced some weird error-reporting on totally valid code. The trick seems to be to comment the problematic code, wait 10 minutes for the builder to pass through the code (saving doesn't work), then uncomment the code, and

Re: [Flashcoders] Saving a swf with all the assets

2006-07-18 Thread Bart Wttewaall
Nope. Just load all your assets in the library and rewrite your code so it doesn't load, but uses attachMovie to get to the assets. Good luck, Bart 2006/7/18, mahesh kokadwar <[EMAIL PROTECTED]>: Hi All, Is there a way by which I can save a swf file with all the assets loaded into it at runtim

Re: [Flashcoders] Techniques to disable/enable "debug mode"

2006-07-18 Thread Bart Wttewaall
When using XRay for debugging, I usually make use of a debug-boolean, like so: var debug:Boolean = true; function something() { if (debug) _global.tt("Error"); } Sure, it costs an extra statement to be examined, even when debug is set to false, but the usability weighs higher then that littl

Re: [Flashcoders] HTML Parser with Flash

2006-07-21 Thread Bart Wttewaall
http://www.osflash.org/deng Here you go ;) 2006/7/19, Mike <[EMAIL PROTECTED]>: XHTML or HTML 4.0? If the former, you can just use the XML object. If the latter ... have fun -- T. Michael Keesey -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sara