If I want to change the behavior of an object dynamically I rather
create a new class to encapsulate the functionality. I might have to
write more code but I think it this is a very clean approach.
class CustomClickBehavior implements Clickable
{
public function click():Void
Bjorn Schultheiss wrote:
Hey Guys, check this out
Var clickHandler:Function = MyClass.staticMethod;
var args:Array = ['Can', 'pass', 'in', 'any', 'amount'];
newBtn.addEventListener("click", Delegate.create(this, function(evt:Object,
meth:Function, args:Array) { meth.apply(null, args) }, clickHa
or perhaps some desktop app which does the same on a local file
XMLPad , it's free, easy to use, and it does error checking in realtime.
--
Anggie Bratadinata
Web|Graphic|Flash
Jl. Raya Langsep 21
Malang - East Java
I N D O N E S I A
http://design.ibshastautama.com
Josh Santangelo wrote:
I of
Hey Guys, check this out
Var clickHandler:Function = MyClass.staticMethod;
var args:Array = ['Can', 'pass', 'in', 'any', 'amount'];
newBtn.addEventListener("click", Delegate.create(this, function(evt:Object,
meth:Function, args:Array) { meth.apply(null, args) }, clickHandler, args )
);
Regard
I remember someone made a cool XML tool for Macromedia Central - I had some
people use it and they loved it. Was it Ted Patrick? I have looked around
and don't see it anywhere, but he probably still has it tucked away
someplace. I might even have it installed on one of my copies of Central.
On 8/
I often develop projects in which the assets are changeable via
properties in an external XML file. Usually my clients are savvy
enough to open up a text editor and work with these files, but
occasionally they're not and would rather have a more user-friendly
CMS. In most of those cases tho
Hi there - I have been battling with a bunch of "odd" behaviors with a
few movies I have been working on. It is in fact driving me mad.
inconsistencies include:
1) text field (dynamic) will not populate when viewed in a browser from
a web sever vs working fine when testing out of the IDE.
2) h
Hmm.
V2 components are meant to have empty constructors, with initialisation
being performed in an init() method, which will be called by the
component architecture when the time is right.
Try moving your code in your constructer to init();
Costello, Rob R wrote:
Dear all
I have a strange pr
Good day - I have a dynamic text field that fulls data from a class. Now
when viewing local on my desktop - all is good. But once I upload the
swf to the server - it disappears.
Any ideas?
I have been googling, and found many references to issues similar - and
most said it had to do with stat
Thanks Mark!
Didn't know that :)
> -Oorspronkelijk bericht-
> Van: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Namens
> Mark Winterhalder
> Verzonden: maandag 14 augustus 2006 0:03
> Aan: Flashcoders mailing list
> Onderwerp: Re: [Flashcoders] Weird?? increment behavior..
>
> > test(
test('name' + depth, depth++); //traces name2 : 1
Yes, arguments of functions are pushed on the VM's stack in reverse
order, right-to-left. It's counterintuitive, something you just have
to come across once to notice, a nice bit of ActionScript trivia :)
Mark
On 8/13/06, Bernard Visscher <[EM
Hi all,
Just tested a simple function to check if the increments are done correctly.
I found the following a bit od.
Maybe some can shed a light on this..
base code:
//code
function test(myName:String,myNumber:Number):Void
{
trace(myName + " : " + myNumber);
}
var depth:Number = 1;
test(
im sorry to dig this up again, but i am currently dealing with exactly the
same problem, building an html editor, and i read this whole thread just
today.
jason:
i wrote a function that does about what giles suggested and always cuts out
all the html part of the htmltext, and finds you the e
Ramon Miguel M. Tayag wrote:
Sometimes some events pass their own args and you dont even see them..
Try changing your function to this:
function onHit1(o:Object, n:Number) //the o object is passed by the
listener
{
trace("it was hit with the number: " + n);
}
That worked perfect!!!
many thanks, Richard!
richard carr wrote:
Here ya go
Richard
Kevin Aebig <[EMAIL PROTECTED]> to Flashcoders
More options Jul 31With a pretty good fight, you can really customize
the
yahoo maps component.
http://www.oceancityguide.com/hotels/more.cfm?guideID=321
Here ya go
Richard
Kevin Aebig <[EMAIL PROTECTED]> to Flashcoders
More options Jul 31With a pretty good fight, you can really customize the
yahoo maps component.
http://www.oceancityguide.com/hotels/more.cfm?guideID=321
!k
On 8/13/06, Helen Triolo <[EMAIL PROTECTED]> wrote:
Some time durin
Some time during the past couple months, someone posted a link here to a
nice-looking site that used the Yahoo map api with Ocean City
properties. Anyone have that link? (I can't find it in the archives)
thanks,
Helen
--
Helen Triolo
http://flash-creations.com
http://i-technica.com
Helen,
you just saved my day! I wish you were here and I bought you a brunch!!
best,
ilteris.
On Aug 13, at 8:15 AM, Helen Triolo wrote:
ilteris,
You can't assign a function to the onMotionFinished property (in
the constructor) before the Tween instance has been created (in
openCanvas).
ilteris,
You can't assign a function to the onMotionFinished property (in the
constructor) before the Tween instance has been created (in
openCanvas). Those should be more like:
public function Canvas(timeline:MovieClip, level:Number, y_:Number) {
mc = timeline.attachMovie("canvas",
Dear List,
I am trying to use tween's onMotionFinished method in order to make
use of this, only when I try to call it normally (see closeCanvas
method below) and trace(mc) it traces undefined. So when I tried to
delegate onMotionFinished, I stumbled accross another problem. This
time sinc
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
Why yes, that is possible too:
dynamic class Foo
{
function Foo()
{
this["test"+5] = function()
{
trace("Hello World");
}
}
}
//fla file
var myFoo = new Foo();
myFoo.test5();
But I really wouldn't do it like that... I would rather store a
ref
22 matches
Mail list logo