The following code worked for me perfectly:
onClipEvent (load) {
speed = 5;
radius = 100;
xcenter = 250;
The following code worked for me perfectly:
onClipEvent (load) {
speed = 5;
radius = 100;
xcenter = 250;
Really sorry:(
The code is intended for drawing elliptical orbits not arrows...sorry
again :( :(
best regards
RaviKiran Marella
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ravi
Marella
Sent: Friday, August 11, 2006 11:36 AM
To: Flashcoders
This may be a simple question, but I just came across it and found it
strange...
Is there a reason to wrap this in parentheses?
(this).foo
vs.
this.foo
Thanks,
-Danro
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or
This may be a simple question, but I just came across it and found it
strange...
Is there a reason to wrap this in parentheses?
(this).foo
vs.
this.foo
Thanks,
-Danro
It makes only sense if you're a Lisp fan :)
Nicolas
___
Right now there's several things that could be done with this that
I can think of. Like Claus said, a tool could be created that
takes regular zip files and adds checksum info without damaging
compatibility.
I already have a class ready that correctly parses a ZIP archive..
Stay tuned!
hi list -
I have extracted some pixels from a bitmapData object... can someone
tip me off how to convert this into a PNG file, or some other simple
high quality format? Ideally i dont want a complex JPG encoder in AS,
just a way to get data out that can be read by photoshop etc.
It still can't find your zip file
Ravi Marella wrote:
Sorry guys the last URL..i donno wat the problem is..yahoo has closed my
site...please check this link...
In that on the top frame, therez a link called RotatingMenu...its the
zip file...
http://www.geocities.com/flywithoutwings_4350/
Hello list,
my tooltip class uses code like this mc.onRollOver = function() {}
to add its tooltip functionality to a movieclip mc. But this way it
overwrites the onRollOver method of mc and disables the functionality
like highlighting.
So now my question (probably a really simple one): How is
Matthias Dittgen wrote:
Hello list,
my tooltip class uses code like this mc.onRollOver = function() {}
to add its tooltip functionality to a movieclip mc. But this way it
overwrites the onRollOver method of mc and disables the functionality
like highlighting.
So now my question (probably a
You could do that witht those classe www.mediaverk.lv/asd
Arrow would be a laine or thin rectangle with triangle on begining or end
2006/8/11, Ravi Marella [EMAIL PROTECTED]:
Really sorry:(
The code is intended for drawing elliptical orbits not arrows...sorry
again :( :(
best regards
But it's present at the link I've given :( ...i've sent it to my other
friends too and they don have any problem in seeing it...
I'm sending the same path again please check it ...
http://www.geocities.com/flywithoutwings_4350/rotatingmenu.zip
it opens the zip file directly...
Thanks Ravi and others - that is very helpful indeed.
Cheers
Paul
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ravi Marella
Sent: 11 August 2006 07:08
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Movement in an oval shape
The following
but it doesn't work for me, because I don't want to get onRollOver
from the superclass ( I don't do an extend). I just want to add some
functionality to the onRollOver of the same instance of a movieclip.
it's like that:
var mc:MovieClip = this.attachMovie(MyClipClass.SymbolName,mc,
Do you mean you want to do something like...
var oldRollOver:Function = this.onRollOver;
this.onRollOver = function () {
trace(new onRollOver functionality);
oldRollOver(); //call pre-existing functionality
}
Matthias Dittgen wrote:
but it doesn't work for me, because I don't want
var f:Function = mc.onRollOver
mx.onRollOver = function ()
{
f();
}
you might want to look at function.apply to get it too call in the right
context.
On 8/11/06, Matthias Dittgen [EMAIL PROTECTED] wrote:
but it doesn't work for me, because I don't want to get onRollOver
from the superclass
in MyTooltip you can re-assign the onRollOver to another name and call that from
the new onRollOver, like this :
in MyTooltip
mc.onRollOver2 = mc.onRollOver;
mc.onRollOver = function()
{
// some stuff here
// call the original
this.onRollOver2();
}
thats one way of doing it
martin
On 8/11/06, Matthias Dittgen [EMAIL PROTECTED] wrote:
but it doesn't work for me, because I don't want to get onRollOver
from the superclass ( I don't do an extend). I just want to add some
functionality to the onRollOver of the same instance of a movieclip.
You have two options (or more, but
hi,
maybe using mx.events.EventDispatcher could help
i'm probably wrong, but have you tried ?
class A {
function onRollOver() {
doTheRollOver();
dispatchEvent({type:onRollOver, target:this});
}
function doTheRollOver() {
// do somtehing here
}
}
whoooaaa!
Thank to all who answered!!!
I have to read through your answers and some testing before I can make
further comments.
Matthias
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
I agree with Julien - EventDispatcher is ideal for this purpose. It's
one of the reasons it exists - to allow more than one object to be
notified when an event occurs.
Ian
On 8/11/06, julien castelain [EMAIL PROTECTED] wrote:
hi,
maybe using mx.events.EventDispatcher could help
i'm probably
Here's an AS1 way to do it, from the deep archives...
MovieClip.prototype.drawArrow = function(sp, ep, th, headL, headW, c) {
// sp, ep = startPoint, endPoint; (point objects, objects with xand y)
// th = line thickness
// headL = headLength, headW = headWidth
// c = color
this.lineStyle(th, c,
Hi,
Here is how I draw vector arrow (it's an extract of a more complete vector
renderer class):
/*/
import flash.geom.Point;
//Parameters
var p0:Point = new Point(100, 100);
var p1:Point = new Point(200, 200);
var arrowWidth:Number = 4;
var
ohh come on guys, why google something when i can get the right answer from
here.
On 8/10/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:
Especially a Flash guru ;)
BLITZ | Steven Sacks - 310-551-0200 x209
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL
Thank you guys for replying me soon..
it really help me.
thanks
On 8/11/06, Florent JEAN [EMAIL PROTECTED] wrote:
Hi,
Here is how I draw vector arrow (it's an extract of a more complete vector
renderer class):
/*/
import flash.geom.Point;
hi guru, did you have a look at the PrintJob class?
On 8/11/06, Flash guru [EMAIL PROTECTED] wrote:
ohh come on guys, why google something when i can get the right answer from
here.
On 8/10/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:
Especially a Flash guru ;)
BLITZ | Steven
I have a datagrid populated with a dataprovider. I add items to the
dataprovider with the following type of statement:
dataprovider.addItem({u:{label:clearUser, role:clearRole},
uState:clearState, sel:false, data:l});
I can sort according to uState no problem with the following:
ohh come on guys, why google something when i can get the
right answer from
here.
http://www.slash7.com/pages/vampires
Peter
This email may contain confidential material. If you were not an
intended recipient, please notify the sender and delete all copies.
We may monitor email to and
Sorry guys that was a very stupid mistake that I've not initialized a
variable which caused the error, which I've fixed now :)
best regards
RaviKiran Marella
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jeroen
Beckers
Sent: Friday, August 11,
Hello,
some time ago i postet at flashforum.de how this can be done, without
drawbacks to the rest of the application:
http://www.flashforum.de/forum/showthread.php?t=207998
Its in german but the code is more or less internation :)
Janosch
Matthias Dittgen schrieb:
Hello list,
my
I was told this is where the experts are...I'm trying to mount a flash document
I didn't write.
http://www.libraries.uc.edu/instruction/Module1/Module_1.html
All files are here in this folder:
http://www.libraries.uc.edu/instruction/Module1/
The problem is, when I test the
Have you thought of perhaps loading the swf into an MC offstage and
using the printjob class to print that. And googling first is just plain
courtesy man. Otherwise the quality of the forums decline and all the
people who would've had the answer to your problem move on elsewhere.
M
LOL :) good luck then
On 8/11/06, Flash guru [EMAIL PROTECTED] wrote:
Alright apparentlymy question was stupid, but no one has yet to answer it,
and yes i have read the pringjob class and nothing i read would lead me to
believe i can print an external swf with it.
Many times this can be caused by case differences - locally MySwf.swf and
myswf.swf are the same, but on the server, they are not. Maybe check the case
of all the links?
jimbo
*** REPLY SEPARATOR ***
On 8/11/2006 at 6:24 AM Lisa Haitz wrote:
I was told this is where the
Wow, I was just thinking about that, will test.
Jim Berkey [EMAIL PROTECTED] wrote: Many times this can be caused by case
differences - locally MySwf.swf and myswf.swf are the same, but on the server,
they are not. Maybe check the case of all the links?
jimbo
*** REPLY SEPARATOR
Hi list...
I'm trying to access a mc within a mc in my class as follows:
class linker extends MovieClip {
function linker() {
trace(theClip);
}
}
The linker clip is on the stage, and there's a mc within it called
theClip. I get the error There is no property
declare theClip as a member of the class linker.
like,
private var theClip:MovieClip;
Also, try to keep ur code out of the constructor. Write a onLoad function
and put ur code in there.
private function onLoad()
{
trace(theClip);
}
On 8/11/06, Mendelsohn, Michael [EMAIL PROTECTED] wrote:
Hi
I think it's because Flash thinks your trying to refer to a member variable
of your class (which hasnt been declared)
If you put like:
class linker extends MovieClip {
var theClip:MovieClip;
function linker() {
trace(theClip);
}
}
It shouldn't give you an
hi micheal,
you have to declare that property inside your class before you can access it
class linker extends MovieClip {
var theClip:MovieClip;
function linker() {
trace(theClip);
}
}
cheers
On 8/11/06, Mendelsohn, Michael [EMAIL PROTECTED]
Classes are unaware of the timeline they are imported into. So you need
to pass a reference. Also, wouldn't make sense to me to do an extends
on MovieClip if you are going to refer to another clip altogether. So
instead of that, pass a reference to the timeline through your
constructor
Class 'linker' is not dynamic. This means that unless you add something like
private var theClip:MovieClip;
(or:
dynamic class linker extends MovieClip)
to your class definition, you can't reference it within the class.
From: Mendelsohn, Michael [EMAIL PROTECTED]
Date: 2006/08/11 Fri AM
All the solutions worked perfectly, thanks everyone. But, Arul, what is
the advantage of putting it in an onLoad function instead of the
constructor?
declare theClip as a member of the class linker.
like,
private var theClip:MovieClip;
Also, try to keep ur code out of the constructor.
But, Arul, what is the advantage of putting it in an onLoad function
instead of the constructor?
Just to be on the safer side, thats all :)
Try this:
add a trace each in the constructor and the onLoad. And test your movie.
You'll see that the constructor gets called even before onLoad.
Now,
Placing that code instead in the onLoad method makes sure that it will
work.
Great explanation, thanks Arul.
- MM
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Hey Mike,
Thanks for the suggestion, it looks like I might have to do it that way.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to
Are there any new ways to invert text in a text box with html tags or
otherwise? (such as white text on a black background for THAT text only
among other text in the same box).. as we can do in browser html/css
with:
span style=FILTER: Invert; background:#ff;Inverted
black/spannot
the only way to do this that I know of is to use libraries like GD (for PHP)
to convert that information into a physical file. If there are other
solutions I would be interested in finding out.
On 8/11/06, keitai guy [EMAIL PROTECTED] wrote:
hi list -
I have extracted some pixels from a
Hey list,
Has anyone had a problem with textField._height being reported incorrectly
when the text wraps to a second line? I tried to get around this by using
the ._height variable of the MovieClip in question, but it is reporting it's
height incorrectly as well. I am using the latest version
Anthony Lee wrote:
At any rate - when i create my thumbnails, all works fine the first
time, but after they have been wiped out, and I recall my method to
re-draw the thumbnails, for some reason my buttons are not working.
Now I did a bunch of tracing tests to see if:
Hi dnk,
This may not
My runs fine. I didn't try it with MTASC though. Have you tried
using the IDE? It should be the same either case though...
On 8/12/06, Kjel Anderson [EMAIL PROTECTED] wrote:
Hey list,
Has anyone had a problem with textField._height being reported incorrectly
when the text wraps to a second
Crazy talk my arse! ;-)
I've used XML with HTML and CSS to drive several commercial products I've
developed. So long as all tags are correctly terminated it makes sense to
use XML; where do you think XHTML came from?
XML is, by nature, a portable document that can be used and interpreted by
No IDE for Linux yet :( Can't find any coding errors. Single line text fields
are lining up just fine. When I ask flash for the size of the double line
text field, it adds thirteen to the _height. I am using embedded fonts. Maybe
I'll try it without the embedded fonts.
Kjel
On Friday 11
Hi there
Can you write dynamic methods in a class?
for example
for (var i:Number = 0; i 11; i++)
{
function onBtnPress + i()
{
trace(Button number: + i + was pressed);
}
}
So then that would essentially create 10 methods (onBtnPress0 to
onBtnPress9) to be used by
I've just downloaded the Adobe Flash 9 Public alpha and used it to
compile one of my old kiosk
projects. As far as I can see it has none of memory leak issues
which affected Flash 8 and stopped
it being suitable for kiosks. This is great
This is very interesting. Is it just a matter of
I don't think you can create dynamic functions.. even if you could, I
don't see the need to.
use your arguments to make your functions all-purpose.
Ex.
function onBtnPress(n:Number):Void
{
trace(n + was pressed.);
}
button0.onRelease = Delegate.create(this, onBtnPress, 0);
button1.onRelease
this happens to me only sometimes and when I use negative leadings.
Try to encapsulate your textfield with a movieclip and grab the height
of the movieclip instead of the textfield height. That's the common
workaround, I think.
Have fun,
Matthias
2006/8/11, Kjel Anderson [EMAIL PROTECTED]:
No
Ramon Miguel M. Tayag wrote:
I don't think you can create dynamic functions.. even if you could, I
don't see the need to.
use your arguments to make your functions all-purpose.
Ex.
function onBtnPress(n:Number):Void
{
trace(n + was pressed.);
}
button0.onRelease = Delegate.create(this,
Sorry, I'm using a custom delegate class.. I completely forgot. Let
me dig up that post that has what you need...
On 8/12/06, Bbt Lists [EMAIL PROTECTED] wrote:
Ramon Miguel M. Tayag wrote:
I don't think you can create dynamic functions.. even if you could, I
don't see the need to.
use
http://board.flashkit.com/board/showthread.php?t=662329highlight=delegate
On 8/12/06, Ramon Miguel M. Tayag [EMAIL PROTECTED] wrote:
Sorry, I'm using a custom delegate class.. I completely forgot. Let
me dig up that post that has what you need...
--
Ramon Miguel M. Tayag
Ramon Miguel M. Tayag wrote:
Sorry, I'm using a custom delegate class.. I completely forgot. Let
me dig up that post that has what you need...
I was just reading a reference to a proxy class that does similar to
delegate, but allows args to the functions. So I was not entirely insane
(as in
Greetings. If anybody have experience with web services and flash, I have a
question.
I can communicate with the web service no problems, but in my case, I need
to pass some xml attributes to the service and I couldn't find any proper
example.
thanks for your time
com.dynamicflash.utils.Delegate is the other Delegate class that allows
argument passing.
http://dynamicflash.com/2005/02/delegate-class-refined/
-mark
From: Bbt Lists [EMAIL PROTECTED]
Date: 2006/08/11 Fri PM 12:54:04 CDT
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
hi -
I am trying to display results of a web service app that is returning
data in the XML-RPC format as per below.
This seems very hard to parse in any of the tools I've found...
XPath seems useless against it since the only thing different is the
_contents_ (value?) of each name node. The
http://sourceforge.net/projects/xmlrpcflash/
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of keitai
guy
Sent: Friday, August 11, 2006 2:08 PM
To: Flashcoders mailing list
Subject: [Flashcoders] parsing XML RPC responses in AS...
hi -
I am trying to
Last night I learned about how cool scrollRect is. It made things a lot
simpler, and faster, for basic rectangular masking. I was pretty stoked.
So stoked that I decided to replace my mask within my BaseComponent
class with a scrollRect. This worked ok for a bit, until I used a class
that drew
http://www.adobe.com/devnet/flash/articles/flashpro_asp.html
2006/8/11, Patrick Jean [EMAIL PROTECTED]:
Greetings. If anybody have experience with web services and flash, I have
a
question.
I can communicate with the web service no problems, but in my case, I need
to pass some xml
Does anyone knows of a technique to play a sound backwards or in Slow Motion
with AS?
So far this task seems imposible, bt I was wondering if some one would have
some pointers.
Thanks!
...helmut
___
Flashcoders@chattyfig.figleaf.com
To change your
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
Is there a reason to wrap this in parentheses?
(no)
BLITZ | Steven Sacks - 310-551-0200 x209
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Ok, so it's very specific to BitmapData objects, and even in Grant's
example, it's because he's using a temporary variable which isn't
getting cleaned up, and he has the solution (which IS the solution) to
hold on to the reference to dispose of it later.
The person who posted on the second link
(wow thats exactly what i was going to say steven)
On 8/11/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:
Is there a reason to wrap this in parentheses?
(no)
BLITZ | Steven Sacks - 310-551-0200 x209
___
Flashcoders@chattyfig.figleaf.com
To
I would expect you'd pack the variables into a properly formatted
object and pass the object...
-radley
On Aug 11, 2006, at 11:02 AM, Patrick Jean wrote:
Greetings. If anybody have experience with web services and flash,
I have a
question.
I can communicate with the web service
he was able to publish as 7, so he's having some other issue and I'm
willing to bank that he is experiencing memory waste (a leak is
different) ...
No: the flash player is able to correctly delete the memory when I
minimize then maximize the window. If I was still somehow holding on to
a
I will be out of the office beginning Friday Aug. 10 until Monday Aug. 19.
== Original Message Headers Follow ==
From [EMAIL PROTECTED] Fri Aug 11 22:32:23 2006
Received: from chattyfig.figleaf.com (wammo.org [146.145.88.77])
by s1.mail-in.isp.wdc.eggn.net (Postfix)
Dear all
I have a strange problem getting a V2 component to initialize
I can copy code works that fine in one class, compiled into another
class (and another swf), and it no longer works - just fails silently
This is the essence of it :
import mx.controls.Button;
class Mysterious {
Right now there's several things that could be done with this that I
can think of. Like Claus said, a tool could be created that takes
regular zip files and adds checksum info without damaging
compatibility.
A quick progress report, just in case somebody is interested:
We kinda got it
Also, look into __resolve.
The Flash docs have excellent examples.
Jim Kremens
On 8/11/06, Jeroen Beckers [EMAIL PROTECTED] wrote:
Just to be complete: Yes, it is possible!
Example:
var myFoo = new Foo();
myFoo[test+5] = function()
{
trace(hello world!);
}
myFoo.test5();
//Foo.as
77 matches
Mail list logo