[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 wrote: > Hi, > > Situation: I've loaded a webpage into the control and it > displays just fine. What I want now, is the sourcecode of the loaded > docu

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

2009-01-10 Thread Jeroen Beckers
_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, Jero

Re: [Flashcoders] Design pattern for conditional Interfaces ?

2008-03-23 Thread Jeroen Beckers
> also have some getProperty( strProperty:String ):Object function, defined > at > IItem interface. > > interface IAnalyzer > { > getAnalyzedProperty():String; > } > > interface IItem > { > hasProperty( strProperty:String ):Boolean; > getProperty( strProperty:St

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'

[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 interfa

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

2006-12-20 Thread Jeroen Beckers
inside 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 di

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) is

[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 fi

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 ALWA

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

2006-09-15 Thread Jeroen Beckers
7; and dividing 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

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 y

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

2006-09-14 Thread Jeroen Beckers
l=..."); traces a negative value, which I find very strange... Any suggestions ? Greets, Jeroen Beckers [EMAIL PROTECTED] http://www.dauntless.be ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: h

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

2006-09-12 Thread Jeroen Beckers
set 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 u

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

2006-09-12 Thread Jeroen Beckers
pported) add-logical 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.f

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 t

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 B

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

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] [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: > http://chat

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

2006-08-16 Thread Jeroen Beckers
Yes, that works... So why won't my class work? //class insertIntoDatabase("test", "test"); return "HelloWorld!"; } } ?> //method table methodTable = array( "insertIntoDatabase" => array( "description" => "This function adds the score & name to the

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: > http://chattyfig.figleaf.c

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

2006-08-16 Thread Jeroen Beckers
ned world makes no sence since it's not > printed or put in a variable or anything (amasing that is does not > give an error that way. > > hth, > > Folkert > Jeroen Beckers wrote: >> Hi, >> >> This is the situation: >> >> Flash uses AMFP

[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] 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; >

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=662329&highlight=delegate >> >> > How do you call this class? > > I tried > > > import com.includingatree.utils.Delegate; > //use the delegate > th

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

2006-08-13 Thread Jeroen Beckers
Cat].getNextHighestDepth()); this_targetMc["menuMc"+i].menuBtn.lScope = this; this._targetMc["menuMc" + i].menuBtn.onPress = function() { trace("The button was hit!"); trace("A reference to the class: "+this.lScope); //this will trace [object Object], which is corre

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 >>

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 >>

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()'

Re: [Flashcoders] Flash Extension Package

2006-08-11 Thread Jeroen Beckers
> http://www.geocities.com/flywithoutwings_4350/ > > 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-

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 rotat

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;

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 v