[Flashcoders] Get html source code of mx.controls.HTML control (AIR)

2009-01-10 Thread Jeroen Beckers
/Apollo:Articles:Using_HTML_in_Flex-based_Apollo_Applications And it's talking about a JavaScriptObject class located in flash.html. I am however unable to find this class... The examples in this tutorial would be perfect, if only I would have suck a JavaScriptObject class... Any suggestions ? Greetings, Jeroen Beckers

[Flashcoders] Re: Get html source code of mx.controls.HTML control (AIR)

2009-01-10 Thread Jeroen Beckers
Sorry, wrote to the wrong list. I'm resending this to FlexCoders On Sat, Jan 10, 2009 at 4:39 PM, Jeroen Beckers thedauntl...@gmail.comwrote: Hi, Situation: I've loaded a webpage into the mx:HTML / control and it displays just fine. What I want now, is the sourcecode of the loaded document

Re: [Flashcoders] Design pattern for conditional Interfaces ?

2008-03-23 Thread Jeroen Beckers
, defined at IItem interface. interface IAnalyzer { getAnalyzedProperty():String; } interface IItem { hasProperty( strProperty:String ):Boolean; getProperty( strProperty:String ):Object; } just a guess, andrei On Sat, Mar 22, 2008 at 11:39 AM, Jeroen Beckers [EMAIL PROTECTED] wrote

[Flashcoders] Design pattern for conditional Interfaces ?

2008-03-22 Thread Jeroen Beckers
Hi list! Situation: I have a class that analyzes stuff. There are different analyzing classes, such as HeightAnalyzer, WeightAnalyzer, LevelAnalyzer, etc. You can add an analyzer to the class by using 'myClass.addAnalyzer(newAnalyzer:IAnalyzer)'. As you can see, there is an IAnalyzer interface

Re: [Flashcoders] Tweening Engines for AS3

2008-03-22 Thread Jeroen Beckers
I heard a lot of people used http://blog.greensock.com/tweenliteas3/ . Not sure if it's dependent on Flex / Flash, but I don't really think so. On Sat, Mar 22, 2008 at 9:57 PM, Jesse Warden [EMAIL PROTECTED] wrote: What are people using nowadays besides Flash CS3's built-in ones and Flex 3's

[Flashcoders] Coding strategic enemy behavior in a shooter game

2006-12-20 Thread Jeroen Beckers
Hi! I'm creating a little shooter game and I want the enemies to have some sort of followable pattern. I can create the patterns and such (that's not the problem) but I'm having difficulties as to how to implement it... I have been looking at the Strategy / State pattern but I can't really

Re: [Flashcoders] UML Diagram generator

2006-12-20 Thread Jeroen Beckers
Take a look at Enterprise Architect :). Ned Perry wrote: Hi Does anyone know of any software that can autogenerate UML style diagrams describing AS2 classes/relationships? Cheers ned This e-mail (and any attachments)

Re: [Flashcoders] this.onEnterFrame fails to alter this

2006-12-20 Thread Jeroen Beckers
the onEnterFrame, you can use 'this' to refer to the tooltip movieclip. Are you certain it is removed (trace(this)) or is it just out of sight ? Greets, Jeroen Beckers Mendelsohn, Michael wrote: Hi list... I can't figure out why the onEnterFrame attached to _root.tooltip in my displayTip function removes

Re: [Flashcoders] Preloader or not

2006-09-17 Thread Jeroen Beckers
Normally, it already checks for 'getBytesLoaded() == getBytsTotal()' (or a variation). Could you post your ActionScript? Benjamin van Gogh wrote: Hi there, I used a tutorial on Adobe.com to create a preloader from some tutorial files. Works great, but the preloader displays the animation

Re: [Flashcoders] BitmapData.getPixel() - negative value ?

2006-09-15 Thread Jeroen Beckers
var n:Number = -16777216 trace(n.toString(16)); Gives me: -100 ? Claus Wahlers wrote: pixel = -16777216 -16777216 is 0xff00 (solid black) Try to trace pixel.toString(16) Cheers, Claus. ___ Flashcoders@chattyfig.figleaf.com To change

Re: [Flashcoders] BitmapData.getPixel() - negative value ?

2006-09-15 Thread Jeroen Beckers
by 0 gives 'Infinity'). Cheers! Claus Wahlers wrote: Number.toString() is a little borked. Meister Skinner explains it here: http://www.gskinner.com/blog/archives/2005/12/source_code_tra.html Cheers, Claus. Jeroen Beckers wrote: var n:Number = -16777216 trace(n.toString(16)); Gives me

[Flashcoders] BitmapData.getPixel() - negative value ?

2006-09-14 Thread Jeroen Beckers
yp:Number = percentage * (max - min) + min; myPoint.setPosition(xp, yp, zp); } } } The trace(pixel=...); traces a negative value, which I find very strange... Any suggestions ? Greets, Jeroen Beckers [EMAIL PROTECTED] http

[Flashcoders] [MTASC] Crashes on Point.add method ?

2006-09-12 Thread Jeroen Beckers
operator that's not supported anymore in FP8 or something... (I hope this sentence makes sense to you guys). The question is: Why am I getting this error? Greets, Jeroen Beckers http://www.dauntless.be ___ Flashcoders@chattyfig.figleaf.com To change your

Re: [Flashcoders] [MTASC] Crashes on Point.add method ?

2006-09-12 Thread Jeroen Beckers
to build to FP7 by default (even if you're not using MTASC). Project - Properties - Movie tab - Target version - Flash player 8 Should do it! Scott On 9/12/06, Jeroen Beckers [EMAIL PROTECTED] wrote: Hi List! I use FlashDevelop to write my classes, and I use MTASC as bug-checker

Re: [Flashcoders] Help needed on Loader Component

2006-09-04 Thread Jeroen Beckers
You should use the MovieClipLoader class. You could set an interval to about 50ms, which should be enough time for the MCL class to throw the onLoadError event. In the onLoadError event, you delete the interval which will stop the loading. Muhammad Sheraz Iqbal wrote: Hi all, I am trying

Re: [Flashcoders] Creating a scrollable list: adding components to the scrollpane contents

2006-09-02 Thread Jeroen Beckers
Couldn't you put the list component in a movieclip and add attach the movieclip to the scrollPane (which is a lot easier). Also, what is your 'createUniqueInstanceName()' function ? Matt Bennett wrote: Hello Flashcoders, I'm building a scrollable list, and I keep track of the list items with

Re: [Flashcoders] OOP methodology and flash. I'm loosing my faith...

2006-08-30 Thread Jeroen Beckers
You can't 'choose' the definition of polymorphism :p. In simple terms, *polymorphism* lets you treat derived class members just like their parent class's members. Source: http://en.wikipedia.org/wiki/Polymorphism_in_object-oriented_programming (+ all my java AS books) class Foo extends Bar

Re: [Flashcoders] File upload : getting Flash to know the new name

2006-08-25 Thread Jeroen Beckers
Hi Serge, Maybe store the new name into the $_SESSION and request it when the onComplete event is dispatched? Or am I mis-understanding the situation? Greets, Jeroen Serge Jespers wrote: Hey guys, I'm doing a fileUpload in this project and in my PHP script, I rename the file (make an MD5

[Flashcoders] [AMFPHP] return; - feature / bug ?

2006-08-16 Thread Jeroen Beckers
Hi, This is the situation: Flash uses AMFPHP to call a php function 'test1()' . In my php file, the function is defined as followed: function test1() { test2(); return Hello; } function test2() { return World; } Now, AMFPHP returns World (when I call test1() ), but I would expect him to

[Flashcoders] [AMFPHP] return; - Feature / bug ?

2006-08-16 Thread Jeroen Beckers
Hi, This is the situation: Flash uses AMFPHP to call a php function 'test1()' . In my php file, the function is defined as followed: function test1() { test2(); return Hello; } function test2() { return World; } Now, AMFPHP returns World (when I call test1() ), but I would expect him to

Re: [Flashcoders] [AMFPHP] return; - Feature / bug ?

2006-08-16 Thread Jeroen Beckers
or anything (amasing that is does not give an error that way. hth, Folkert Jeroen Beckers wrote: Hi, This is the situation: Flash uses AMFPHP to call a php function 'test1()' . In my php file, the function is defined as followed: function test1() { test2(); return Hello; } function

Re: [Flashcoders] [AMFPHP] return; - Feature / bug ?

2006-08-16 Thread Jeroen Beckers
Sorry, forgot that while copying... But it doesn't work either... Mike Britton wrote: $this-test2(); hth, Mike ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] [AMFPHP] return; - Feature / bug ?

2006-08-16 Thread Jeroen Beckers
Yes, that works... So why won't my class work? //class ?php class Quadri { /* * Constructor */ function Quadri() { include(Quadri.methodTable.php); } /** * This function adds the score name to the database * @access remote */

Re: [Flashcoders] [AMFPHP] return; - Feature / bug ?

2006-08-16 Thread Jeroen Beckers
I did that :). Mike Britton wrote: You need to create a methodTable array in the constructor of every class you're using with AMFPHP. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] [AMFPHP] return; - Feature / bug ?

2006-08-16 Thread Jeroen Beckers
It's really handy if you include it. In the service browser, you can select [mt] and 'save to XXX.methodtable.php' . Every time you edit your class, you just press the save to method table button and it's automaticly updated. And uhm... The problem is solved... I kept calling the wrong function

Re: [Flashcoders] delegate and proxy

2006-08-14 Thread Jeroen Beckers
That should be correct Julien, but there's no point in importing, if you are going to use the fully qualified classname anyway... julien castelain wrote: hi ilteris, maybe this could do it : import ascb.util.Proxy; function finishAnimation(_mc:MovieClip) { var scope = this; var

Re: [Flashcoders] |:::| can you write dynamic meathods in a class?

2006-08-13 Thread Jeroen Beckers
Give us the code of the dispatching of the event ... dnk wrote: Ramon Miguel M. Tayag wrote: http://board.flashkit.com/board/showthread.php?t=662329highlight=delegate How do you call this class? I tried import com.includingatree.utils.Delegate; //use the delegate

Re: [Flashcoders] Problems with setInterval

2006-08-12 Thread Jeroen Beckers
I also created one which has a little more features: http://dauntless.be/blog/?p=11 Jim Kremens wrote: http://www.kennybunch.com/index.php?p=16 Jim Kremens On 8/12/06, Paul Steven [EMAIL PROTECTED] wrote: I am trying to scope my setInterval timeout handler however it is not calling the

Re: [Flashcoders] Flash Extension Package

2006-08-11 Thread Jeroen Beckers
/ As u can see in the bottom frame I've used the same component which is working perfectly...please gimme some advice over this.. best regards RaviKiran Marella -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jeroen Beckers Sent: Friday

Re: [Flashcoders] |:::| can you write dynamic meathods in a class?

2006-08-11 Thread Jeroen Beckers
Just to be complete: Yes, it is possible! Example: var myFoo = new Foo(); myFoo[test+5] = function() { trace(hello world!); } myFoo.test5(); //Foo.as dynamic class Foo { } And to your second question: Delegate returns a function. Setting the onRelease to 'Delegate.create()' is

Re: [Flashcoders] Reporting load success from a delegate

2006-08-10 Thread Jeroen Beckers
You can use the EventDispatcher. import mx.utils.Delegate; //import the EventDispatcher class import mx.events.EventDispatcher; class myClass { private var myxml:XML; //declare the functions private var dispatchEvent:Function; public var addEventListener:Function; public

Re: [Flashcoders] Reporting load success from a delegate

2006-08-10 Thread Jeroen Beckers
Oh, sorry, i switched 2 lines, the explanation is about the .target property, not the .success property. Jeroen Beckers wrote: You can use the EventDispatcher. import mx.utils.Delegate; //import the EventDispatcher class import mx.events.EventDispatcher; class myClass { private var

Re: [Flashcoders] Flash Extension Package

2006-08-10 Thread Jeroen Beckers
The .zip isn't working... Ravi Marella wrote: Hi list, I've got a problem while packaging a component I've developed..it's a rotating menu component which will display any number of menu item around a circle, the fla is working properly but when I package it to .mxp the menu is not rotating