Respond to a mouseMoved event, track the last mouse position, draw a stroke
from that point to the new point (using the MovieClip drawing API), save the
old point in an array, update lastX and lastY to this point, repeat. When
done, you have an array of the points use to make the drawing. Capture
It's in the docs though:
Using Components > Creating Components > Creating a component movie clip
http://livedocs.macromedia.com/flash/8/main/3024.html
point 6 under "Editing the movieclip"
regards,
Muzak
- Original Message -
From: "David Ham" <[EMAIL PROTECTED]>
To: "Flashcoders ma
Bryan,
You're awesome! In 100 years that would not have occurred to me.
What a bizarre program Flash is!
Thanks very much for the tip,
OK
DAH
On Feb 9, 2007, at 6:25 PM, Bryan Thompson wrote:
Try adding the UIObject MovieClip to your library. You'll find it
(Win XP,
Flash8) in Program Fi
Try adding the UIObject MovieClip to your library. You'll find it (Win XP,
Flash8) in Program Files\Macromedia\Flash
8\en\Configuration\ComonentFLA\StandardComponents.fla
I use that when creating custom V2 components by putting it on stage in
frame 2 after a stop() action. Works fine.
Bryan
Sorry if this has hit this list already, but it is important!
-Scott
-- Forwarded message --
From: ...
Date: Feb 9, 2007 4:09 PM
Subject: [flexcoders] Flex 2 API for Yahoo! Maps
To: flexcoders@yahoogroups.com
There's a suggestion on the Yahoo Developer Network for a Flex 2 API
>From testing it would appear no. =(
-erik
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Erik Bianchi
Sent: Friday, February 09, 2007 2:07 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] finding domain
Does anyone know if _url is the same thin
Does anyone know if _url is the same thing Flash Player uses to check
sandbox?
-erik
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to
Hi,
I am working on an app that has many view classes that extend
mx.core.UIObject. Until recently I was using Macromedia components as
placeholders, but the production app will use a different library,
the FlashLoaded BJC components, which are incompatible with the
Macromedia components.
Thanks everyone for the responses. This thread has been really helpful.
- MM
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fi
var data:Object=new Object();
data.a=new Object();
data.a.t1=0;
data.a.'t2=0;
Whoops - a stupid stray quote in the last line. Should of course have been:
data.a.t2=0;
Ian
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or sea
It's nothing to do with the 'a', it's the 't1' and such in quotes
that's the issue.
>>MJ> function createData():Void {
>>MJ> this._data = new Object();
>>MJ> this._data["a"] = new Object();
>>MJ> this._data["a"] = {"t1":0, "t2":0}; } // The quotes in this line are
wrong
Won't com
I didn't even notice that in the script before - should have been obvious.
Sorry for the noise.
Jason Merrill
Bank of America
Learning & Organizational Effectiveness
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf
>>Of Rákos Attila
>>Se
Hi, I'm a newbie to this community and was hoping if anyone can help me with
something. I've been trying to find out how sites like Queeky.com are able
to remember drawings made through a flash movie and replay what was done to
the user?
thanks in advance
-JR
MJ> OK, I see, so then curious why this script returns compiler errors:
MJ>
MJ> function createData():Void {
MJ> this._data = new Object();
MJ> this._data["a"] = new Object();
MJ> this._data["a"] = {"t1":0, "t2":0};
MJ> }
Because when using the object initializer operator, you cannot
Stop using new Object() and use {};
:)
I'm not experiencing the same issue you're having Jason. Not sure why.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listin
Wow, a lot of misinformation here gents.
this._data["a"] = {"1":new Number(0), "2":new Number(0), "3":new
Number(0)};
When creating a new object using this syntax the property names are
considered strings. Adding the quotes is what is causing the issue. If you
remove the quotes the compiler wil
>>You are not right, it is totally acceptable and correct, I
>>think you are mixing something up :)
I understand what you're saying, but in context of what he's trying to do
(inline object declaration), explain the compiler error on this code:
function createData():Void {
this._data = n
>>There's nothing wrong with saying:
>>
>>var data:Object=new Object();
>>data['a']="something";
>>
>>Try it.
OK, I see, so then curious why this script returns compiler errors:
function createData():Void {
this._data = new Object();
this._data["a"] = new Object();
this._d
Right, But "a" is not an object. If you follow the thread, you will
see that's' what he's trying to do. There IS something wrong with:
private function createData():Void {
this._data = new Object();
this._data["a"] = new Object();
this._data["a"] = {"t1":0, "t2":0};
}
c
Uh, Jason.
There's nothing wrong with saying:
var data:Object=new Object();
data['a']="something";
Try it.
Ian
On 2/9/07, Merrill, Jason <[EMAIL PROTECTED]> wrote:
That's because you're still not refrencing an object that exists:
>>this._data["a"] = new Object();
You're saying, Hey, _data,
MJ> That's because you're still not refrencing an object that exists:
MJ>
>>>this._data["a"] = new Object();
MJ>
MJ> You're saying, Hey, _data, make your "a" property an object. But Flash
MJ> is saying, hold on cowboy, I don't see any property of _data called "a".
You are not right, it is tota
That's because you're still not refrencing an object that exists:
>>this._data["a"] = new Object();
You're saying, Hey, _data, make your "a" property an object. But Flash
is saying, hold on cowboy, I don't see any property of _data called "a".
So instead:
private function createData():Void {
private function createData():Void
{
this._data = {a:{t1:0, t2:0}};
}
One line. :)
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Mendelsohn, Michael
> Sent: Friday, February 09, 2007 11:02 AM
> To: Flashcoders mailing list
> Subject
Thanks Jason. I see what you're saying. So I inited an object and then
define it, but the below still errors. I was just hoping to be able to
define my object with only one line of code.
private function createData():Void {
this._data = new Object();
this._data["a"] = new Object
*can't use* {:}
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Erik Bianchi
Sent: Friday, February 09, 2007 10:25 AM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Identifier expected
2 issues:
1) identifiers are an expression not a string ie
The second line does not work because you are evaluating a string to try
to resolve it to a property of the object, (which you are hoping is a
sub-object) that does not exist yet. In other words,
this._data.a
the .a in the above statement has not been declared or identified as an
object, and th
> As you have discovered you are not able to use numbers as
> keys in line objects.
That's not true.
Just wrote this and it works fine.
a = {};
a["a"] = {};
a["a"][1] = new Number(5);
trace(a["a"][1]);
-- 5
Works for me. You must be doing something else wrong.
I'm not sure why you're using n
2 issues:
1) identifiers are an expression not a string ie a:"hey" vs "a":"hey". The
later will not work
2) You can not use a number as identifier in this case. The compiler catches
it and throws an error. However, you can hack it using this[1] = "hello
world"; trace(this[1]); but then you can us
As you have discovered you are not able to use numbers as keys in line
objects.
Trying to do what you do will however not change this. Only way to do
what you want would be to insert the indexes manually:
function createObj():Void {
this._data = new Object();
this._data["a"] = n
I think he is referring to the following class from another thread. One
problem pertaining to your issue is that it doesn't take into consideration
depth. It is still more process intensive then just firing a callback on
rollOver but could be useful for you and give you some ideas:
class com.doma
Oops. I responded to the wrong thread, I'm sorry. :(
That being said, perhaps rethinking your approach would help. There's a
tutorial on Kirupa about managing z-order stacking of movieclips which
might contribute to a solution.
http://www.kirupa.com/developer/actionscript/3dexplore.htm
___
Hi list...
Simple question -- why doesn't the 2nd line work? The identifier
expected error is traced at compile time.
Thanks,
- Michael M.
function createObj():Void {
this._data = new Object();
this._data["a"] = {"1":new Number(0), "2":new Number(0), "3":new
Number(0)};
}
Thanks for letting us know!
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jessica
Hensley
Sent: Friday, February 09, 2007 12:06 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] automated response
I will be out of the office from 02/09-
I will be out of the office from 02/09-02/15, however I will be checking email
on a regular basis. If this an urgent matter I will respond to you shortly.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
ht
I use FileReference in Flash player 9 with ASP.NET (C#) and it works fine,
never had any issues.
Jason Merrill
Bank of America
Learning & Organizational Effectiveness
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf
>>Of Evan Bond
>>Sent
Do you have an upload script that works even with the newest player?
I built a flash uploader and was using regular ASP...it all worked fine in
player 8 but when player 9 came it crapped out on meso I built one in
.NET and that worked great but now it seems Adobe has come out with another
upd
Although myself never experienced such (I mainly used PHP with file
uploads), I heard about similar issue with PHP. I guess that it is
caused by a kind of disk write cache or something similar, and more
depends on OS and its settings, than on PHP or ASP.NET. May be
flushing that buffer can help.
Hey everyone,
I have done flash upload with php, and that worked fine,
and now I have an asp.net script -which ALMOST does the job just as good.
The only problem is that when the upload is finished, it does takes a
few hundreds or tenths
of a second before asp.net really has the file where it
It's more a way to protect swf's with a bit of security..
and the reason the thought came up was because of the fact no one works like
that anymore since the 1940ies :-D
If you publish a fla with 1 var _root.test and open the swf in notepad you
will see the var in between the code..
When you
Can you not just read it in when the program starts?
affiliate=acme
affiliate_logo = acme.jpg
Modifying code to change the values of variables is a pretty roundabout
way to write code.
A jump back to the 1940s'. Not often seen in these days.
Ron
Dennis - I Sioux wrote:
Hey,
Thanks this soun
Hey,
Thanks this sounds interesting.. although i wanted to do it realtime :)
I'll check it out..
Best regards,
Dennis
- Original Message -
From: "Mark Winterhalder" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list"
Sent: Thursday, February 08, 2007 6:38 PM
Subject: Re: [Flashcoders
var lines:Number = txt.bottomScroll+(txt.maxscroll-txt.scroll);
- Original Message -
From: "Flascoders maillijst" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list"
Sent: Friday, February 09, 2007 10:38 AM
Subject: [Flashcoders] get number of line in dynamic textfield
> Hi there,
>
>
Hi there,
I'm trying to do something really simple ( or at least it should be simple)
but I can't get it to work right. I have a textfield that gets filled with
text and I want to know how many lines are inside the textfield when it gets
filled. Some longer lines will wrap, so I just can't use a
I would say, the best practice is to do the rendering on a unix/linux
machine with command line syntax etc. We use ffmepg with the Sorenson
library from Flash MX 2004, so you'll be able to script down things with
PHP, Perl or whatever you want. Squeeze is a bad idea if you ask me,
it's to compl
44 matches
Mail list logo