Re: [Flashcoders] Drawing a continuous curved line through n points in AS1 or AS2 (Catmull-Rom splines?)

2008-11-16 Thread Janis Radins
This also might be ready made solution to use:
http://www.mediaverk.lv/asd/#polygon

2008/11/15 Ivan Dembicki <[EMAIL PROTECTED]>

> Hello matt,
>
> look at
> http://bezier.googlecode.com/files/ru.bezier.zip
>
>
> --
> iv
> http://www.bezier.ru
> http://bezier.googlecode.com
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Extending buttons interface

2007-03-12 Thread Janis Radins

also you should know that using prototypes is bad practice
better create seperate class for button that needs that extra functionality

2007/3/10, strk <[EMAIL PROTECTED]>:


On Fri, Mar 09, 2007 at 11:16:46AM -0500, elibol wrote:
> instanceof matches an objects primitive type in as1 and as2.
>
> I believe you can do this by adding a method to the Button.prototypeobject.
>
> Button.prototype.somefunc = function(){
> trace("hi");
> }
>
> and from a button instance, you make invoke
>
> buttonInstance.somefunc(); //hi

It works with SWF7, but not in SWF6, where ! myButton instanceof Button.

--strk;

> On 3/9/07, strk <[EMAIL PROTECTED]> wrote:
> >
> >Is there a way to attach a method to all existing button instances ?
> >It seems that button instances are NOT instaceof Button ...
> >At least NOT for SWF6 .
> >
> >--strk;
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] sharing a class with several movieclips, in AS3

2007-03-12 Thread Janis Radins

Create simgle clas definition which holds functionality of your "selection
state" and add several instances of same class to stage

2007/3/11, Andrei Thomaz <[EMAIL PROTECTED]>:


hello list,

With AS2, I could associate the same class with several movieclips. This
was
useful, for example, to create buttons for a menu, when all the buttons
were
associated with the same class (some kind of button, that implemented the
'selected' state, rollout and rollover animations, and so on).

Now, I am trying to migrate the code to AS3, and I am having problems to
share the same class with more than one movieclip. When I try to do this,
I
get this error: "You must specify a unique classname to export this
symbol".

Can I make this, in some way? The only thing i can think is not very
elegant; it would be to create empty classes for each button, like that:

class MyButton extends MovieClip
{
// code here
}

class MyButton01 extends MyButton
{
// nothing
}

class MyButton02 extends MyButton
{
// nothing
}


thank you,
andrei
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Some AS3 components troubles

2007-01-10 Thread Janis Radins

Thankyou all for replies.
Just tried to change source to ../icon.gif and no luck, shouldnt it output
an error message?
And btw, mx.controls.Image is extending SWFLoader, so there shouldnt be
issue with that.
And once again I'm clueless :)
Anyone have any idea what should I do?

07.10.1 Merrill, Jason <[EMAIL PROTECTED]> rakstīja:


ok - good info - I was having some problems with the image tag, so I
assumed the problem was I wasn't using SWFLoader. When I switched to
SWFloader for my dynamic images, it worked great.

Jason Merrill
Bank of America
Learning & Organizational Effectiveness







>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf
>>Of Jim Robson
>>Sent: Wednesday, January 10, 2007 1:57 PM
>>To: 'Flashcoders mailing list'
>>Subject: RE: [Flashcoders] Some AS3 components troubles
>>
>>Jason,
>>
>>I use mx:Image all the time to load JPG's, GIF's, and PNG's.
>>Have been using it for a year now. I use it for loading both
>>at compile time and at runtime.
>>Works great.
>>
>>I think perhaps you are misinterpreting that section of the
>>documentation a little. It's contrasting images with Flex
>>apps, not "static images" with "dynamic images".
>>
>>HTH
>>-Jim
>>
>>
>>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf
>>Of Merrill, Jason
>>Sent: Wednesday, January 10, 2007 1:47 PM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] Some AS3 components troubles
>>
>>Try mx.controls.SWFLloader (or in MXML,  )
>>instead of mx.controls.image. My understanding of image (at
>>least in a Flex context) is that it's only for static images,
>>not dynamic images. Swfloader can do .swfs, .jpegs,.pngs,
>>etc.  Not sure if that is it, but that's what my experience
>>has been.  Also, the help docs on mx.controls.image say:
>>
>>"Flex also includes the SWFLoader control for loading Flex
>>applications. You typically use the Image control for loading
>>static graphic files and SWF files, and use the SWFLoader
>>control for loading Flex applications. The Image control is
>>also designed to be used in custom item renderers and item editors. "
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organizational Effectiveness
>>
>>
>>
>>
>>
>>
>>
>>>>-Original Message-
>>>>From: [EMAIL PROTECTED]
>>>>[mailto:[EMAIL PROTECTED] On
>>Behalf Of Janis
>>>>Radins
>>>>Sent: Wednesday, January 10, 2007 12:37 PM
>>>>To: flashcoders@chattyfig.figleaf.com
>>>>Subject: [Flashcoders] Some AS3 components troubles
>>>>
>>>>Hey people!
>>>>
>>>>I'm trying to make some pretty simple UI component in Flex and it
>>>>seems like I'm missing something.
>>>>I think I've read everything I could but I cannt find what
>>is it I'm
>>>>missing, maybe someone on this list knows wheres the problem.
>>>>So what I am doing is:
>>>>1. I create some pretty simple MXML project just for test with this
>>>>content  >>>xmlns:mx="http://www.adobe.com/2006/mxml";
>>>>xmlns:myComp="components.*" layout="absolute">
>>>>
>>>>
>>>>
>>>>Pretty simple.
>>>>xmlns:myComp="components.*" defines that components can be found in
>>>>folder named components in root of project, where I have this file
>>>>TestComponent.aswith following content package components {
>>>>import mx.core.UIComponent;
>>>>import mx.controls.Image;
>>>>import flash.display.Shape;
>>>>public class TestComponent extends UIComponent {
>>>>private var imageInstance:Image = null;
>>>>public function TestComponent() {
>>>> super();
>>>>imageInstance = new Image();
>>>>imageInstance.source = "icon.gif";
>>>>addChild(imageInstance);
>>>>trace("TestComponent initialized!");
>>>>var shape:Shape = new Shape();
>>>>shape.graphics.beginFill(0xFF);
>>>>shape.graphics.drawCircle(50,50,25);
>>>>addChild(shape);
>>>>}
>>>>}
>>>>}

[Flashcoders] Some AS3 components troubles

2007-01-10 Thread Janis Radins

Hey people!

I'm trying to make some pretty simple UI component in Flex and it seems like
I'm missing something.
I think I've read everything I could but I cannt find what is it I'm
missing, maybe someone on this list knows wheres the problem.
So what I am doing is:
1. I create some pretty simple MXML project just for test with this content

http://www.adobe.com/2006/mxml";
xmlns:myComp="components.*" layout="absolute">
   


Pretty simple.
xmlns:myComp="components.*" defines that components can be found in folder
named components in root of project, where I have this file
TestComponent.aswith following content
package components {
   import mx.core.UIComponent;
   import mx.controls.Image;
   import flash.display.Shape;
   public class TestComponent extends UIComponent {
   private var imageInstance:Image = null;
   public function TestComponent() {
super();
   imageInstance = new Image();
   imageInstance.source = "icon.gif";
   addChild(imageInstance);
   trace("TestComponent initialized!");
   var shape:Shape = new Shape();
   shape.graphics.beginFill(0xFF);
   shape.graphics.drawCircle(50,50,25);
   addChild(shape);
   }
   }
}

"icon.gif" is bitmap stored in root folder of project.
Seems like pretty stright forward and theres nothing to break, but it isnt
so. Shape appears, which make me think that component instance is
initialized and placed in display list.
But I really have bad luck with creating mx.controls.Image i think I tried
everything with no luck.
There must be something I'm missing, but I have no idea what is it :)

Oh, and when I tried to extend some component directly it works, seems like
thers no blank components for me!
Any help will be apreciated!

Jānis
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

[Flashcoders] amfphp and postgres

2007-01-03 Thread Janis Radins

Hey ppl!

I know this is a little of offtopic but still my problem is connected with
Flash and AS.
I'm trying to connect flash to data from postgres with amfphp and somehow it
just doesnt work.
Amfphp is returning results as expected but as soon as I try to pass data
from postgres it just dies silently. Everything works fine from browser and
I think I've checked everything and no luck.
Anyone had this problem before?

Jānis
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Re: [Flashcoders] Point inside Rectangle ?

2006-12-21 Thread Janis Radins

Check whteher your point is iniside boundries by something like this:
if(point.x > rect.minX && point.x < rect.maxX && point.y > rect.minY &&
point.Y < rect.maxY)

guess something like that should work.

2006/12/21, Oliver Müller <[EMAIL PROTECTED]>:


Hi all,

I'm looking for a mathematic way to check if a point resides within a
rectangle.
The rectangle is not parallel to the axes, instead its rotating all the
time.
It's not a movieclip so hitTest is out of the question.
Any suggestions how I could solve this problem ?

cheers,
olli
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Mark Anders source files from FOTB

2006-12-20 Thread Janis Radins

Hey ppl!

I was wondering if anyone managed to find Mark Anders source files from
FOTB.
I've been googlin quite a lot and no result.
During hes session about Flex components Mark did promised that he will make
them avilable online. Hopefully he didnt lie! :)

regards
Jānis
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Re: [Flashcoders] How to send Audio objects as MP3 via XML-RPC?

2006-11-29 Thread Janis Radins

btw, not long time ago i heard some person on efnet #actionscript complaning
that FMS and red5 are saving FLV's encoded with sorensen which he claimed is
unconvertable to any alternative format.

2006/11/29, Robert r. Sanders <[EMAIL PROTECTED]>:


Ah, ok, that makes things clearer.

First, look at RED5 - http://osflash.org/red5  You'd have to record to
FLV and then run a second program to parse out the audio, but it could
be done.

Second, the blog entry I was thinking of is
http://www.flashcodersbrighton.org/wordpress/?p=9  it might contain
useful code if you wanted to try and convert the audio inside of flash.


Leo Burd wrote:
> Hello Robert,
>
> Thanks so much for your message!
>
> My problem is creating an MP3 file out of a Sound object, not the
> other way around... do you have any suggestions on how to do that?
>
> Best,
>
> Leo
>
> - Original Message - From: "Robert r. Sanders"
> <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" 
> Sent: Tuesday, November 28, 2006 9:36 PM
> Subject: Re: [Flashcoders] How to send Audio objects as MP3 via XML-RPC?
>
>
>> My understanding is that there is no way to "create" a Sound object
>> other than by embedding it or using a streaming server (see Red5).
>>
>> However, some enterprising individuals have realized that in AS3 you
>> can dynamically create objects (e.g. reflection) and thus if you
>> really want to you could programmatically 'generate' sound.
>> Depending on your use case it is probably much easier to use a
>> streaming server.
>> As an aside the use case I had for programmatic generation of a Sound
>> object was the idea that the Speex algorithm (an open codec for human
>> voice encoding) might be a possibility in AS3, alas it looks like it
>> would be a major undertaking.
>>
>>
>> Leo Burd wrote:
>>> Hello there,
>>>
>>> I am new to Flash and I am wondering what is the best way to send
>>> Audio objects via XML-RPC.  More specifically, I wonder if anyone
>>> could send me suggestions on:
>>>
>>> a) How to convert a Sound object to MP3 programatically?
>>> b) How to convert the resulting MP3 into a base64 string
>>> c) How to send the base64 string to my server via XML-RPC
>>>
>>> BTW, shall I use AS2 or AS3 for this?
>>>
>>> Thanks in advance,
>>>
>>> Leo
>>>
>>> ___
>>> Flashcoders@chattyfig.figleaf.com
>>> To change your subscription options or search the archive:
>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>>
>>> Brought to you by Fig Leaf Software
>>> Premier Authorized Adobe Consulting and Training
>>> http://www.figleaf.com
>>> http://training.figleaf.com

--
Robert r. Sanders
Chief Technologist
iPOV
(334) 821-5412
www.ipov.net

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] How to send Audio objects as MP3 via XML-RPC?

2006-11-29 Thread Janis Radins

in that case you got everything wrong, microphone attached to sound object
provides only playback of current sound.
no recording or anything like that.
only way imo is to use FMS or Red5 to send stream serverside and only then
encode it as you need.
thats the only alternative as far as i know.
though i'm not sure about AS3 maybe there are some new features that might
help to do this.
but still sending sound stream sounds a lot more efficient to me than
encoding sound into stream client side, then send string to serverside and
encode it back to sound there.

2006/11/29, Leo Burd <[EMAIL PROTECTED]>:


- From a microphone input...

.L.

- Original Message -----
From: "Janis Radins" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Wednesday, November 29, 2006 10:34 AM
Subject: Re: [Flashcoders] How to send Audio objects as MP3 via XML-RPC?


> Where are you getting your sound object from?
>
> 2006/11/29, Leo Burd <[EMAIL PROTECTED]>:
>>
>> Hello Robert,
>>
>> Thanks so much for your message!
>>
>> My problem is creating an MP3 file out of a Sound object, not the other
>> way
>> around... do you have any suggestions on how to do that?
>>
>> Best,
>>
>> Leo
>>
>> - Original Message -
>> From: "Robert r. Sanders" <[EMAIL PROTECTED]>
>> To: "Flashcoders mailing list" 
>> Sent: Tuesday, November 28, 2006 9:36 PM
>> Subject: Re: [Flashcoders] How to send Audio objects as MP3 via
XML-RPC?
>>
>>
>> > My understanding is that there is no way to "create" a Sound object
>> other
>> > than by embedding it or using a streaming server (see Red5).
>> >
>> > However, some enterprising individuals have realized that in AS3 you
>> > can
>> > dynamically create objects (e.g. reflection) and thus if you really
>> > want
>> > to you could programmatically 'generate' sound.
>> > Depending on your use case it is probably much easier to use a
>> > streaming
>> > server.
>> > As an aside the use case I had for programmatic generation of a Sound
>> > object was the idea that the Speex algorithm (an open codec for human
>> > voice encoding) might be a possibility in AS3, alas it looks like it
>> would
>> > be a major undertaking.
>> >
>> >
>> > Leo Burd wrote:
>> >> Hello there,
>> >>
>> >> I am new to Flash and I am wondering what is the best way to send
>> >> Audio
>> >> objects via XML-RPC.  More specifically, I wonder if anyone could
send
>> me
>> >> suggestions on:
>> >>
>> >> a) How to convert a Sound object to MP3 programatically?
>> >> b) How to convert the resulting MP3 into a base64 string
>> >> c) How to send the base64 string to my server via XML-RPC
>> >>
>> >> BTW, shall I use AS2 or AS3 for this?
>> >>
>> >> Thanks in advance,
>> >>
>> >> Leo
>> >>
>> >> ___
>> >> Flashcoders@chattyfig.figleaf.com
>> >> To change your subscription options or search the archive:
>> >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>> >>
>> >> Brought to you by Fig Leaf Software
>> >> Premier Authorized Adobe Consulting and Training
>> >> http://www.figleaf.com
>> >> http://training.figleaf.com
>> > ___
>> > Flashcoders@chattyfig.figleaf.com
>> > To change your subscription options or search the archive:
>> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>> >
>> > Brought to you by Fig Leaf Software
>> > Premier Authorized Adobe Consulting and Training
>> > http://www.figleaf.com
>> > http://training.figleaf.com
>> >
>>
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Brought to you by Fig Leaf Software
>> Premier Authorized Adobe Consulting and Training
>> http://www.figleaf.com
>> http://training.figleaf.com
>>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] How to send Audio objects as MP3 via XML-RPC?

2006-11-29 Thread Janis Radins

Where are you getting your sound object from?

2006/11/29, Leo Burd <[EMAIL PROTECTED]>:


Hello Robert,

Thanks so much for your message!

My problem is creating an MP3 file out of a Sound object, not the other
way
around... do you have any suggestions on how to do that?

Best,

Leo

- Original Message -
From: "Robert r. Sanders" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Tuesday, November 28, 2006 9:36 PM
Subject: Re: [Flashcoders] How to send Audio objects as MP3 via XML-RPC?


> My understanding is that there is no way to "create" a Sound object
other
> than by embedding it or using a streaming server (see Red5).
>
> However, some enterprising individuals have realized that in AS3 you can
> dynamically create objects (e.g. reflection) and thus if you really want
> to you could programmatically 'generate' sound.
> Depending on your use case it is probably much easier to use a streaming
> server.
> As an aside the use case I had for programmatic generation of a Sound
> object was the idea that the Speex algorithm (an open codec for human
> voice encoding) might be a possibility in AS3, alas it looks like it
would
> be a major undertaking.
>
>
> Leo Burd wrote:
>> Hello there,
>>
>> I am new to Flash and I am wondering what is the best way to send Audio
>> objects via XML-RPC.  More specifically, I wonder if anyone could send
me
>> suggestions on:
>>
>> a) How to convert a Sound object to MP3 programatically?
>> b) How to convert the resulting MP3 into a base64 string
>> c) How to send the base64 string to my server via XML-RPC
>>
>> BTW, shall I use AS2 or AS3 for this?
>>
>> Thanks in advance,
>>
>> Leo
>>
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Brought to you by Fig Leaf Software
>> Premier Authorized Adobe Consulting and Training
>> http://www.figleaf.com
>> http://training.figleaf.com
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash8: Duplicate Movie problem

2006-11-27 Thread Janis Radins

That code is so retard, get moving away from flash 4 syntax, it's 2006 out
there!

Try this:
line._y += 4;
line.duplicateMovieClip("tope"+t, t);
t++;
if(line._y > 75) {
stop();
}

And frame loops are bad fasion btw. Use SomeMovieClip.onEnterFrame or
setInterval() for timed loop.
One more thing is that duplicateMovieClip("line", "tope", t); will produce
many MovieClips with same name, wich will cause tageting issues.


2006/11/27, Ricardo Portilho <[EMAIL PROTECTED]>:


Hello,

I am trying to use a simple duplicate movie in Flash8 AS2,
it works fine in FlashMX, but I can´t to "translate it" into AS2, Flah8:

movie clip Duplicate Line

Frame 1:
//obs: line is the mc instance name

setProperty("line", _y, getProperty("line", _y)+4);
duplicateMovieClip("line", "tope", t);
t = t+1;
if (getProperty("line", _y)>75) {
stop();
}

Frame 2 :

gotoAndPlay(1);

//end

thank you in advance,
Ricardo
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Dynamic Pie Chart

2006-11-22 Thread Janis Radins

seee www.mediaverk.lv/asd thats not ready made solution but it sure provides
all API needed to implement it

2006/11/22, eric dolecki <[EMAIL PROTECTED]>:


Q: Has anyone seen a dynamic pie chart component that allows one to add
slices with code, remove them with code, and also allows one to click and
drag edges of slices around to allow a user to manually change the % data
for slices?

- e.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Tween color of dynamic text

2006-11-22 Thread Janis Radins

color value is number even if it accepts 0xXXX string, hence you can use
simple toWhite[nWhiteCount] without "0x" and toString().
flash works with decimal numbers anyways
as soon as it receives 0xFF it's automacaly converted to 16777215
anyways

2006/11/22, eric dolecki <[EMAIL PROTECTED]>:


I'm using setRGB, so I did this:

var decToHex = "0x" + toWhite[nWhiteCount].toString(16).toUpperCase();

which is basically working instead of tweaking and setting text formats



On 11/22/06, Janis Radins <[EMAIL PROTECTED]> wrote:
>
> those  values are decimal representation of hex color values
> you can use them as they are for lets say TextFormat.color value
>
> 2006/11/22, eric dolecki <[EMAIL PROTECTED]>:
> >
> > Thats cool - i hooked the class up, but i get an array with values
like
> > this:
> >
> >
> >
>
4951245,6133970,7316439,8499164,9681633,10864358,12046827,13229552,14412021,15594746
> >
> > from going from a blue to white:
> >
> > [0x4B8CCD,0xFF]
> >
> > ??
> >
> > On 11/22/06, Janis Radins <[EMAIL PROTECTED]> wrote:
> > >
> > > or you could use something like this class of myne
> > > http://www.mediaverk.lv/asd/com/jR/Math/ColorTween.as to get all
color
> > > steps
> > > and afterwards apply that color in timed loop.
> > > Like var colors:Array = com.jR.Math.ColorTween.getColorArray
> > ([StartColor,
> > > endColor], numberOfSteps);
> > > and applying that color change within setInterval calls.
> > >
> > > 2006/11/21, Cedric Muller <[EMAIL PROTECTED]>:
> > > >
> > > > I meant 'movieclip tween coloring' (code)
> > > >
> > > > > the low profile way:
> > > > > I put my textfield in a movieclip (text_mc) and set my
textfield's
> > > > > color to '0xFF' (text_mc.text_txt.textColor)
> > > > > then I simply use movieclips tweens , you know the old ones
:)...
> > > > >
> > > > >> I am looking for a small routine to tween the color of some
> > > > >> dynamic text.
> > > > >> I've found lots of large packages, but really only need to
affect
> a
> > > > >> textfield, and to be able to do 2 things:
> > > > >>
> > > > >> 1. tween a field to a specified 0x color
> > > > >> 2. tween a field back to its original set color (un-tween so to
> > > > >> speak)
> > > > >>
> > > > >> does anyone have anything handy? Is going into a class
> > > > >>
> > > > >> - e.
> > > > >> ___
> > > > >> Flashcoders@chattyfig.figleaf.com
> > > > >> To change your subscription options or search the archive:
> > > > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > > >>
> > > > >> Brought to you by Fig Leaf Software
> > > > >> Premier Authorized Adobe Consulting and Training
> > > > >> http://www.figleaf.com
> > > > >> http://training.figleaf.com
> > > > >
> > > > > ___
> > > > > Flashcoders@chattyfig.figleaf.com
> > > > > To change your subscription options or search the archive:
> > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > > >
> > > > > Brought to you by Fig Leaf Software
> > > > > Premier Authorized Adobe Consulting and Training
> > > > > http://www.figleaf.com
> > > > > http://training.figleaf.com
> > > >
> > > > ___
> > > > Flashcoders@chattyfig.figleaf.com
> > > > To change your subscription options or search the archive:
> > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > >
> > > > Brought to you by Fig Leaf Software
> > > > Premier Authorized Adobe Consulting and Training
> > > > http://www.figleaf.com
> > > > http://training.figleaf.com
> > > >
> > > ___
> > > Flashcoders@chattyfig.figleaf.com
> > > To change your subscription options or search the archive:
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > > Brought to you by Fig Leaf Software
> > >

Re: [Flashcoders] Tween color of dynamic text

2006-11-22 Thread Janis Radins

last value of output is the one before final value hence 0xFF isnt
included
wrote this calss for quite a while ago and really dont even remember was
this something intentional or I just forghot about final value
anyways thats bug only if you're not aware of it

2006/11/22, Martin Wood-Mitrovski <[EMAIL PROTECTED]>:




eric dolecki wrote:
> Thats cool - i hooked the class up, but i get an array with values like
> this:
>
>
4951245,6133970,7316439,8499164,9681633,10864358,12046827,13229552,14412021,15594746
>
>
> from going from a blue to white:
>
> [0x4B8CCD,0xFF]
>
> ??

looks right to me

0x4B8CCD = 4951245

im guessing you missed of some of the end values as

0xFF = 16777215

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Tween color of dynamic text

2006-11-22 Thread Janis Radins

those  values are decimal representation of hex color values
you can use them as they are for lets say TextFormat.color value

2006/11/22, eric dolecki <[EMAIL PROTECTED]>:


Thats cool - i hooked the class up, but i get an array with values like
this:


4951245,6133970,7316439,8499164,9681633,10864358,12046827,13229552,14412021,15594746

from going from a blue to white:

[0x4B8CCD,0xFF]

??

On 11/22/06, Janis Radins <[EMAIL PROTECTED]> wrote:
>
> or you could use something like this class of myne
> http://www.mediaverk.lv/asd/com/jR/Math/ColorTween.as to get all color
> steps
> and afterwards apply that color in timed loop.
> Like var colors:Array = com.jR.Math.ColorTween.getColorArray
([StartColor,
> endColor], numberOfSteps);
> and applying that color change within setInterval calls.
>
> 2006/11/21, Cedric Muller <[EMAIL PROTECTED]>:
> >
> > I meant 'movieclip tween coloring' (code)
> >
> > > the low profile way:
> > > I put my textfield in a movieclip (text_mc) and set my textfield's
> > > color to '0xFF' (text_mc.text_txt.textColor)
> > > then I simply use movieclips tweens , you know the old ones :)...
> > >
> > >> I am looking for a small routine to tween the color of some
> > >> dynamic text.
> > >> I've found lots of large packages, but really only need to affect a
> > >> textfield, and to be able to do 2 things:
> > >>
> > >> 1. tween a field to a specified 0x color
> > >> 2. tween a field back to its original set color (un-tween so to
> > >> speak)
> > >>
> > >> does anyone have anything handy? Is going into a class
> > >>
> > >> - e.
> > >> ___
> > >> Flashcoders@chattyfig.figleaf.com
> > >> To change your subscription options or search the archive:
> > >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >>
> > >> Brought to you by Fig Leaf Software
> > >> Premier Authorized Adobe Consulting and Training
> > >> http://www.figleaf.com
> > >> http://training.figleaf.com
> > >
> > > ___
> > > Flashcoders@chattyfig.figleaf.com
> > > To change your subscription options or search the archive:
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > > Brought to you by Fig Leaf Software
> > > Premier Authorized Adobe Consulting and Training
> > > http://www.figleaf.com
> > > http://training.figleaf.com
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Tween color of dynamic text

2006-11-22 Thread Janis Radins

or you could use something like this class of myne
http://www.mediaverk.lv/asd/com/jR/Math/ColorTween.as to get all color steps
and afterwards apply that color in timed loop.
Like var colors:Array = com.jR.Math.ColorTween.getColorArray([StartColor,
endColor], numberOfSteps);
and applying that color change within setInterval calls.

2006/11/21, Cedric Muller <[EMAIL PROTECTED]>:


I meant 'movieclip tween coloring' (code)

> the low profile way:
> I put my textfield in a movieclip (text_mc) and set my textfield's
> color to '0xFF' (text_mc.text_txt.textColor)
> then I simply use movieclips tweens , you know the old ones :)...
>
>> I am looking for a small routine to tween the color of some
>> dynamic text.
>> I've found lots of large packages, but really only need to affect a
>> textfield, and to be able to do 2 things:
>>
>> 1. tween a field to a specified 0x color
>> 2. tween a field back to its original set color (un-tween so to
>> speak)
>>
>> does anyone have anything handy? Is going into a class
>>
>> - e.
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>> Brought to you by Fig Leaf Software
>> Premier Authorized Adobe Consulting and Training
>> http://www.figleaf.com
>> http://training.figleaf.com
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Remoting bytesLoaded/bytesTotal

2006-11-15 Thread Janis Radins

yeah I know that i can show "L O A D I N G" and remove it as I receive data
but that's not the case
question was whether there is any possibility to get accurate loaded/total
bytes

06.15.11 l u c h y x <[EMAIL PROTECTED]> rakstīja:


How big can be a resulset if you didn't do the query, or open a file or
wherever you do on the server side?
You can show a indeterminate progress bar. When result come back remove
It.



On 11/13/06, Yehia Shouman <[EMAIL PROTECTED]> wrote:
>
> If there's a way for the server people to add a content header with
> content
> length, it might work
>
> On 11/13/06, Janis Radins <[EMAIL PROTECTED]> wrote:
> >
> > hye ppl!
> >
> > I'm in a situation that remoting calls get slow at some point for
users
> > with
> > slow connection, hence client asked for loading progress display.
> > As far as i know there is no sutch thing as bytesLoaded /total for
> > remoting
> > calls, I just serched help docs and that only confirmed that.
> >
> > I just would like to know if anyone have hacked/found the way to do
that
> > for
> > AS2 and remoting calls or confirmation that it is impossible.
> >
> > tnx in advance
> >
> > jānis
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> >
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>


--
l   u   c   h   y   x
r i a e v o l u t i o n (r)
[EMAIL PROTECTED]
http://www.riaevolution.com
Phone: +54 (11) 4931-7006

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Re: [Flashcoders] Remoting blank requests

2006-11-14 Thread Janis Radins

i have sutch suspiction as well, but in that case how come theres nothing
like that on IE ?

doesnt make sence

2006/11/14, Muzak <[EMAIL PROTECTED]>:


If I'm not mistaken, blank/empty calls are made to either create a
connection or check if the service exists.
I'm not 100% sure about that though.

regards,
Muzak


- Original Message -----
From: "Janis Radins" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Tuesday, November 14, 2006 12:29 PM
Subject: [Flashcoders] Remoting blank requests


> Hey!
>
> I'm in a process of exploring why my remoting data feeds get slow
somtimes.
> Therefore i installed Service Capture and started to look what it does
and
> found out that there are blank requests before real request with proper
> data.
> I believe this might confuse my app, since any data request migh fire
> response routines or anything like that.
> I did checked all places I am calling any remoting services and I am
> absolutely sure there are no multiply calls from me.
>
> Empty call looks exactly as proper one with single difference - it pass
null
> null null instead of real request data.
> I am using amfphp and FF.
>
> Could be that this is normal behavior of Remoting or thats bug in
somewhere,
> ideas?
>
> tnx in advance
>
> jnis
>



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Remoting blank requests

2006-11-14 Thread Janis Radins

Hey!

I'm in a process of exploring why my remoting data feeds get slow somtimes.
Therefore i installed Service Capture and started to look what it does and
found out that there are blank requests before real request with proper
data.
I believe this might confuse my app, since any data request migh fire
response routines or anything like that.
I did checked all places I am calling any remoting services and I am
absolutely sure there are no multiply calls from me.

Empty call looks exactly as proper one with single difference - it pass null
null null instead of real request data.
I am using amfphp and FF.

Could be that this is normal behavior of Remoting or thats bug in somewhere,
ideas?

tnx in advance

jānis
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Re: [Flashcoders] frustrated with textFields: getting height while textisn't fully 'there'

2006-11-13 Thread Janis Radins

this is old bug of flash
in flash8 it's not that present tho i guess I've seen it few times
anyways, simple touching that property before actual use helps. as simpel as
trace(txt._height) make textfield report correct value

2006/11/13, Muzak <[EMAIL PROTECTED]>:


Create a second textfield (hidden) that is as wide as the original, is
only one line high and does not autosize, dump the text in it
and grab its maxscroll value.

regards,
Muzak

- Original Message -
From: "grimmwerks" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" 
Sent: Sunday, November 12, 2006 8:09 AM
Subject: [Flashcoders] frustrated with textFields: getting height while
textisn't fully 'there'


> This is totally driving me crazy.
>
> I'm creating a textfield as a sub to another clip, setting it's width,
> making it autosized, giving it a stylesheet. I then toss in it's
> htmlText.
>
> I just want to know if the darn thing is one or more lines. Trouble is
> it's not reporting back properly...it seems as if it's just in the
> middle of adjusting itself or something, as if I trace out a lot of
> stuff, it works out fine. But I shut off tracing, and it stops
> working.
>
> For example:
>
> var mTitle:TextField = mcTxt.createTextField("mc_title", 6, tR.x+20,
> tR.y-14, 230, 0);
> mTitle.autoSize = "right";
> mTitle.wordWrap=true;
> mTitle.selectable=false;
> mTitle.html = true;
> mTitle.border=true;
> mTitle.multiline = true;
> mTitle.styleSheet =_global.gPrefs.CSS;
> mTitle.htmlText = title;
>
> fontsize = 30; // i know this
> lCnt = (mTitle.textHeight/fontSize);
>
> Sometimes lCnt works and sometimes it doesn't -- and I'm tracing out
> all elements.
>
> I've even tried to do something like
> while(mTitle.htmlText!=title){
>  trace("not there");
> }
>
> But that doesn't work either.
> ___


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Remoting bytesLoaded/bytesTotal

2006-11-13 Thread Janis Radins

hye ppl!

I'm in a situation that remoting calls get slow at some point for users with
slow connection, hence client asked for loading progress display.
As far as i know there is no sutch thing as bytesLoaded /total for remoting
calls, I just serched help docs and that only confirmed that.

I just would like to know if anyone have hacked/found the way to do that for
AS2 and remoting calls or confirmation that it is impossible.

tnx in advance

jānis
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Re: [Flashcoders] Writing code for big teams

2006-11-08 Thread Janis Radins

just force them to execute some registration code on first frame of theyr
movie and pass instance which will accept all those calls according to
predefined communication interface

2006/11/8, Ricardo Sánchez <[EMAIL PROTECTED]>:


Hi!

Where I work we are about to begin a pretty big project collaborating with
some other agencies.

The thing is we are going to develop the main movie with the menus and
other
stuff where every other movie any agency develops is going to be loaded.

I was thinking about writing an interface class and give it to our
collaborators so their main class would have to implement some specific
methods (like start, finish, resize...)

But then I thought that doing it this way will probably force us to
compile
their fla ourselves, and that's something we want to avoid. Every movie
has
to be independent and compile on itself, and then the swf should fit in
our
proyect.

Does this make any sense? Can anyone help?

Thanks.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] access to drawing API information via ActionScript

2006-11-07 Thread Janis Radins

No you cannt access curve data throught AS.
Only thing thats possible would be to save all drawing activity in memory
for later reproduction.
That wouldnt be that hard actually.

2006/11/7, Ben <[EMAIL PROTECTED]>:


Hi Flashcoders

is it possible to write ActionScript code to gain access to
lines/fills/shapes drawn on the stage using the standard Flash API?

eg
open a new document
draw a line on the stage
draw another line
add some more lines, curves, add some filled shapes, rectangles, circles
etc

now is it possible to write ActionScript that will translate the drawing
you
created above into AS-style:

moveTo(x1,y1);
lineTo(x2,y2);
curveTo(cx,cy, x3,y3);
beginFill();
lineTo(x4,y4);
etc etc

I want to be able to trace out a fairly complex drawing using all the
Flash
tools, but then control how it gets drawn entirely from ActionScript.

Thanks! Ben.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] wmode=transparent and buttons behavior woes

2006-11-01 Thread Janis Radins

My problems appear only on FireFox IE does just fine.
I'll send you link of how my problems looks offlist.

2006/10/31, Lyndon Headley <[EMAIL PROTECTED]>:


Here's an interesting article I just came across concerning Flash 8 (if
that
is the version you are using) and wmode settings.

http://justin.everett-church.com/index.php/2006/02/23/wmode-woes/

Here's a relevant snippet concerning Events:

"*Inconsistent Performance*
SWFs using wmode actually perform slightly different from SWFs that have a
default wmode. The difference is that when you are running as transparent
or
opaque, events are delayed until an onEnterFrame. If you are running at a
slow frame rate and drive your movie with setInterval or use any number of
other events, you are back to your slow frame rate. If you would like to
see
an example of the difference in the way it runs, take a look
here<http://justin.everett-church.com/wmode>(must use IE). The real
kicker is that SWFs in IE have this bug. SWFs in
Firefox are just fine.

While this does irk me just because one of the best things about Flash is
its cross-everything consistency, It has caused a problem for a specific
application I've worked on. At one point I needed to instantiate a lot of
SWFs in HTML. Each instance running at its own framerate starts to bog
down
the machine at some point just from the processing power it takes to idle
a
lot of transparent 12 FPS SWFs. My proposed work around was to make the
SWFs
run at 1FPS or less, and then drive the file with setInterval. This would
allow me animate the files at the appropriate frame rate when needed, but
otherwise idle at a super low framerate. This works fantastically with a
default wmode. With a transparent SWF, the Interval only fired once per
second right along with the onEnterFrame. "

Hope that helps,

Lyndon
On 10/31/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>
> Off the top of my head (not exactly sure what you mean by "on wrong
> moments" and "behave in some strange way"), but it could be one of these
> two problems:
>
> http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19435
>
> or:
>
> http://www.gskinner.com/blog/archives/54.html
>
>
> Jason Merrill
> Bank of America
> Learning & Organization Effectiveness - Technology Solutions
>
>
>
>
>
> >>-Original Message-
> >>From: [EMAIL PROTECTED] [mailto:flashcoders-
> >>[EMAIL PROTECTED] On Behalf Of Janis Radins
> >>Sent: Tuesday, October 31, 2006 5:12 AM
> >>To: flashcoders@chattyfig.figleaf.com
> >>Subject: [Flashcoders] wmode=transparent and buttons behavior woes
> >>
> >>Somehow when i set wmode=transparent to flash object all buttons start
> to
> >>behave in some strange way, calling onRollOver/onRollOut on wrong
> moments.
> >>Anyone knows what exactly is going on and why, or how to prevent this?
> >>I've noticed this long time ago.
> >>
> >>Janis
> >>___
> >>Flashcoders@chattyfig.figleaf.com
> >>To change your subscription options or search the archive:
> >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>
> >>Brought to you by Fig Leaf Software
> >>Premier Authorized Adobe Consulting and Training
> >>http://www.figleaf.com
> >>http://training.figleaf.com
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



--
Lyndon

"If you woke up breathing, congratulations! You get another chance."
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] wmode=transparent and buttons behavior woes

2006-10-31 Thread Janis Radins

Somehow when i set wmode=transparent to flash object all buttons start to
behave in some strange way, calling onRollOver/onRollOut on wrong moments.
Anyone knows what exactly is going on and why, or how to prevent this?
I've noticed this long time ago.

Janis
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Some whining about AS2 interfaces

2006-10-23 Thread Janis Radins

Oh comon Andreas I was'nt angry nor I was yelling. I'd never do something
like that to you :)


2006/10/23, Jim Kremens <[EMAIL PROTECTED]>:


Re: Simgletons... you can have all other public methods in that class
subscribe to interface methods, except 'getInstance()' or 'create()' or
whatever.  So singletons can definitely make use of interfaces.

I agree that static methods would be useful, as would intrinsic getters
and
setters.

Jim Kremens
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Inheritance and contructor issue

2006-10-23 Thread Janis Radins

that is not what is happening here.
try this:
class TestClass1 {
   public function TestClass1() {
   trace("TestClass1 TestClass1 TestClass1 ");
   }
}
class TestClass2 extends TestClass1 {
   private static var instance:TestClass2 = null;
   public static function get smething():TestClass2 {
   if(instance == null) {
   instance = new TestClass2();
   }
   return instance;
   }
}

and in movie:
var aa = TestClass2.smething;

Constructor trace is executed well

2006/10/23, Hans Wichman <[EMAIL PROTECTED]>:


Hi,
what is the output?
greetz
JC


On 10/23/06, Andreas R <[EMAIL PROTECTED]> wrote:
>
> //parent class:
>
> class no.rayon.aronning.StateMachine.prototypes.BaseState implements
> no.rayon.aronning.StateMachine.interfaces.IState
> {
>public var stateName:String;
>public var addListener:Function;
>public var removeListener:Function;
>private var broadcastMessage:Function;
>public function enter(m:BaseGameEntity){
>}
>public function execute(m:BaseGameEntity){
>}
>public function exit(m:BaseGameEntity){
>}
>private function BaseState(stateName:String)
>{
>AsBroadcaster.initialize(this);
>this.stateName = stateName;
>trace("new state: "+stateName);
>}
> }
>
> //child class (condensed)
>
> class states.GoHomeAndSleepTilRested extends BaseState implements IState
> {
>private static var _instance:BaseState;
>function enter(m:Character){
>if(m.location!="home"){
>trace("Tired, going home to sleep");
>m.changeLocation("home");
>}
>}
>function execute(m:Character){
>trace("Zzz..");
>}
>function exit(m:Character){
>trace("Yawn... Sleep time is over");
>}
>private function GoHomeAndSleepTilRested(){
>super("Go home and sleep til rested");
>}
>public static function get():BaseState{
>if(!_instance){
>_instance = new GoHomeAndSleepTilRested();
>}
>trace(_instance.stateName);
>return _instance;
>}
> }
>
> Basic singleton for the child. When get() is called on the child,
> superconstructor is *not* called.
> Not even when called explicitly with super().
> Class members of superclass can still be accessed, but no constructor.
Say
> what?
>
> Am i missing something obvious?
>
> - A
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Some whining about AS2 interfaces

2006-10-23 Thread Janis Radins

Interfce main purpose is to define communication methods for some kind of
object.
Pls be so kind and tell me what in a hell private properties have to do with
external objects which what to communicate with instance implementing
particular interface?
Static mighe be usefull, but then again, creating instance level proxy
method for static function access, or even getters setters are so easy that
I dont see here any problem 404.

2006/10/23, Andreas R <[EMAIL PROTECTED]>:


So i'm trying to build a framework around interfaces. To create an
application within this framework, ideally all you'd have to do is
implement the interfaces and satisfy their conditions.

However:

No static methods in interfaces means no static methods means no
singletons. Bummer.
No way to specify private constructors (also for singletons). Bummer.

How would you smart people work around this? Documentation?

It seems like a major disadvantage to interfaces, but i may just be
missing the point entirely. Some tell me interfaces are "only for
polymorphism", and while that's nice and all it doesn't make sense to me.

- Andreas R
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] newbie question - drawing a ring

2006-10-20 Thread Janis Radins

check out www.mediaverk.lv/asd it might give you just what you need


2006/10/20, Guntur N. Sarwohadi <[EMAIL PROTECTED]>:


Hello David,

You can use flash drawing API. You might use just 2 drawing methods:

moveTo(x,y) moves a pointer from where you want to start drawing from

and

curveTo(cpx, cpy, x, y) draws a curve with cpx is the location of the
curve
control point by x, cpx is the curve control point by y, and x & y is the
final point / destination to draw

you might as well define the line style using lineStyle or filling it with
a
color using beginFill and then endFill.

it's all in the help / manual located at the IDE..

Hope this helps,

Guntur N. Sarwohadi

On 10/20/06, David Cake <[EMAIL PROTECTED]> wrote:
>
> New to the list, new to Flash/flex, experienced java/C/web
> etc coder. Please excuse me if my question is in a FAQ that I should
> have read somewhere (and feel free to direct me to such resources)
>
> I want to create a vector ring shape, a circle with an
> excised inner circle, in code. I don't want to use tricks like
> gradient fills that make it look like a ring - I want sharp borders
> (and there are a lot of additional graphic elements that I want to
> look like part of the same object within the ring). I haven't been
> able to find any examples that create vectors with internal holes to
> them.
> Regards
> David
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] hello, and interval management question

2006-10-15 Thread Janis Radins

yes you can pass that interval ID
you can do something like this:
var intContainer:Object = new Object();
intContainer.interval = setInterval(someFun, 50, intContainer);

in this case intContainer will be to first argument of that functon and
you'll be able to refference it anytime as arguments[0].interval

2006/10/15, Giles Bowkett <[EMAIL PROTECTED]>:


Hi, I'm mainly a coder, with some experience on the arts side as well.
I've got a site where I need to be able to set and clear a bunch of
intervals dynamically. It's a visualization application which involves
node-link graphs with a potentially large number of nodes, and in
which you can generate new graphs by exploring particular nodes.
Various animations and things will have to happen, and one use of the
application could conceivably involve hundreds of intervals being set
and cleared. I need to be able to manage fade-outs, fade-ins, and
movement for all these different nodes without any of the interval
clearing or setting obliterating pre-existing intervals used in
different functions.

I've been reading various books and googling for a while and I really
just haven't found any sophisticated technique for doing what I want
to do.

There are limitations, too. The system is a prototype and has to be
finished very quickly. It's not object-oriented, it's in AS 2, and
I've probably made a number of hideous mistakes as my prior experience
is generally limited to bit101 tutorials and Jared Tarbell style art
experiments.

My question is, is there a way to pass an interval to the function
you're calling within setInterval? Should I create a NodeFader class
and pass it the interval?

nodefader = new NodeFader() ;
nodefader.interval = setInterval(nodefader, 50, node_to_fade) ;

Something like that?

My second question is, did I just answer my first question in the
process of asking it?

--
Giles Bowkett
http://www.gilesgoatboy.org
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Javascript Zoom To Location

2006-10-15 Thread Janis Radins

I'm not realy sure I understand what exactly you are up to, but if youre
interesting in zooming specifics maybe one of my lil experiments migth help
you.
I made this just for fun a while ago, take a look and maybe it can help you:
http://www.mediaverk.lv/trash/zoom.html
http://www.mediaverk.lv/trash/zoom.as
This is designed to zoom in/out/move image with mouse, keyboard and
contextMenu.

Jānis

2006/10/14, Tyson Tune <[EMAIL PROTECTED]>:


Hey Guys,
I'm working on duplicating the zoom function for the Flash Player via
fscommand calls.  Using an fscommand call to flashplayerobject.Zoom
(50) works as expected, it zooms in.  However, it always zooms to the
center of the swf.  If you use the contextual right click menu to
Zoom, it zooms to an area surrounding your cursor.  I'd like to be
able to do this with fscommand.  Any ideas?  Using ZoomRect seems to
disable the panning ability of the flash player, essentially locking
your view to the rectangle.

Tyson
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Re: [Flashcoders] reseting ASSetPropFlags back to default

2006-10-12 Thread Janis Radins

That would only indicate one isHiden value of property. "can overwrite" and
"can delete" would still stay unprocessed.
I am looking at table of ASSetPropFlags right now and it seems like theres
no bloody way to do that. If only it would be possible to change only
visibility leaving canOverwrite and canDelete alone, but guess thats not
possible.
Thanx for your reply anyways.

06.12.10 Hans Wichman <[EMAIL PROTECTED]> rakstīja:


Hi,
you can record all the public fields for an object, prior to unhiding all
the hidden fields.
Now afterwards, hide everything and unhide the fields you recorded
earlier.

greetz
JC


On 10/11/06, Janis Radins <[EMAIL PROTECTED]> wrote:
>
> Hey ppl!
>
> I have made some pretty nice printR function (
> www.mediaverk.lv/asd/com/jR/Utils.as) it's working pretty well and i'm
> thinking of new features.
> One good feature would be to use ASSetPropFlags in order to show private
> properties and that could be done relatively easy.
> Thought the problem IMO is that property visibility isnt there just for
> nothing so making everything visible should be followed by seting object
> visibility back to default state.
>
> I'm pretty sure this is almost impossible but i'd just would like to
make
> it
> 100% sure that someone havent found a way.
>
> Jānis
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

[Flashcoders] reseting ASSetPropFlags back to default

2006-10-11 Thread Janis Radins

Hey ppl!

I have made some pretty nice printR function (
www.mediaverk.lv/asd/com/jR/Utils.as) it's working pretty well and i'm
thinking of new features.
One good feature would be to use ASSetPropFlags in order to show private
properties and that could be done relatively easy.
Thought the problem IMO is that property visibility isnt there just for
nothing so making everything visible should be followed by seting object
visibility back to default state.

I'm pretty sure this is almost impossible but i'd just would like to make it
100% sure that someone havent found a way.

Jānis
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Re: [Flashcoders] masking a clip which uses the drawing api

2006-09-18 Thread Janis Radins

Masking with elements made up by drawing API works 100%, ive done it many
times.
What is it that doesnt work for you?

2006/9/15, Merrill, Jason <[EMAIL PROTECTED]>:


>>Is it not possible to mask a clip into which you draw things using
>>the drawing API?

I'm not totally sure about masking, but in general, I think there are
some bugs or conflicts with a movie clip drawn upon with the draw API
and other elements of the movie.  I'm not sure this is as related as you
would like, but for example, I had an issue with one of those drawn-on
movie clips which had another movie clip as a child, which had a
textfield on it.  It worked fine until the textfield was updated with
new data - then the old text still showed, and the new text was also
drawn over the top - so it looked like there were two overlapping
textfields.  If I separated the textfield from the clip being drawn on,
it worked fine.  I never could figure out the behavior, but I assumed it
had to do with the clips and children of clips drawn on by the draw API
and the way the player renders them/redraws them.  In another case,
portions of v2 components always displayed below clips which were drawn
upon - the drawn on clips were always on top.

Post again if you figure it out.

Jason Merrill
Bank of America
Learning & Organization Effectiveness - Technology Solutions






>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Josh Santangelo
>>Sent: Wednesday, September 13, 2006 6:22 PM
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] masking a clip which uses the drawing api
>>
>>I'm having the same problem as this fellow:
>>
>>http://chattyfig.figleaf.com/pipermail/flashcoders/2003-January/
>>058866.html
>>
>>Is it not possible to mask a clip into which you draw things using
>>the drawing API?
>>
>>-josh
>>___
>>Flashcoders@chattyfig.figleaf.com
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training
>>http://www.figleaf.com
>>http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] need help in drawing arrow

2006-08-11 Thread Janis Radins

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
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 mailing list
Subject: RE: [Flashcoders] need help in drawing arrow

The following code worked for me perfectly:





onClipEvent (load) {
speed = 5;
radius = 100;
xcenter = 250;
ycenter = 200;
ellipticalOrbitX = 2;
ellipticalOrbitY = 1;
angle =120;
_root.lineStyle (2);
}
onClipEvent (enterFrame) {
_x = Math.cos (angle * Math.PI / 180) * radius *
ellipticalOrbitX + xcenter;
_y = Math.sin (angle * Math.PI / 180) * radius *
ellipticalOrbitY + ycenter;
_root.lineTo (_x, _y);
angle += speed;
if (angle > 359)
{
angle -= 360;
}
}






u can write the same code on the 1st[onClipEvent (load)] and 2nd frames
[onClipEvent (enterFrame)] and write



gotoandplay(2)



on 3rd frame...


if u 10 objects then all u hav to do is



angle=0;
angleShift=360/10;



and in each object,


angle=angle+angleShift;



this will keep the objects at a perfect distance in the orbit...

hope it'll be helpful 4 u...

best regards
RaviKiran Marella






-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rutul
Patel
Sent: Thursday, August 10, 2006 9:01 PM
To: Flashcoders mailing list
Subject: [Flashcoders] need help in drawing arrow

Hi people,
anybody know how to write AS of drawing arrow.
if anybody has can anybody tell me how?.
thanks
Rutul Patel
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] strong typing, attachMovie

2006-08-01 Thread Janis Radins

that is because attachMovie returns MovieClip.
First of all dont forghet to extend MovieClip in those classes.

A simple workaround would be:
var myPlayer:player = player (myWorld.attachMovie("playerID", "playerMC",
10,{_y:220}));


2006/8/1, Martin Weiser <[EMAIL PROTECTED]>:


Hello,

i got little hasel, when attaching movie from library linked to some
class,
into movieclip attached line above, the typing shows error:

var myWorld:world = this.attachMovie("worldID", "worldMC", 100);
var myPlayer:player = myWorld.attachMovie("playerID", "playerMC",
10,{_y:220});

not possible with myPlayer:player ,  why

thanks in advance

Martin

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: RE: [Flashcoders] Problems getting the brightness of a colorreturnedfrom getPixel

2006-07-31 Thread Janis Radins

Brightness of color can be found in quite easy way.
If we have decimal representation of RGB brightness in percents will be
100*(((R+G+B)/3)/255)
Color brightness represents position of particular color in color tween from
0xFF at 0 position The base color at position 127.5 and 0x0 at 255.


2006/7/30, Bernard Poulin <[EMAIL PROTECTED]>:


hum, I guess you missed my last post(?)
Here's the code again:

function computeBrightness(pixelvalue)
{
   var r = pixelvalue >> 16 & 0xFF;
   var g = pixelvalue  >> 8 & 0xFF;
   var b = pixelvalue & 0xFF;
   var bright = Math.max(Math.max(r,g),b);
   return Math.round((bright/255)*100);
}

And for an "optimized/faster" version, you could try something like:

function computeBrightness(pixelvalue)
{
   // returns the larger value of r, g or b -- and scale it down to a
0..100
range.
   var r = pixelvalue >> 16 & 0xFF;
   var g = pixelvalue >> 8 & 0xFF;
   var b = pixelvalue & 0xFF;
   var bright = (r>g)?((r>b)?r:b):((g>b)?g:b);
   return (bright/255)*100;  // no rounding.
}

(Again, this is untested code -- but it looks like it should work).

Bernard
2006/7/30, James Deakin <[EMAIL PROTECTED]>:
>
> HI Guys, Thanks very much to you all for your help and explanations. I
> understood that the number represented a colour value but I now have a
> much better understanding of how it does so.
>
> In your opinion what is the most efficient way to retrieve the
> relative brightness of that colour.
>
> What I need is a value between 0 and 100 where 0 is black and 100 is
> white and the numbers in-between represent the shades in-between.
>
> What I am going to try is this.
>
> Split the number into its components RGB
>
> use this code which came from the Flash API project
>
> //colorModel converter RGB->HSB
> //returns a hsb object
> RGBtoHSB  = function(rgb){
> var r = rgb.r
> var g = rgb.g
> var b = rgb.b
> var hsb = new Object();
> hsb.b = Math.max(Math.max(r,g),b);
> var min = Math.min(Math.min(r,g),b);
> hsb.s = (hsb.b <= 0) ? 0 : Math.round (100*(hsb.b - min)/hsb.b);
> hsb.b = Math.round((hsb.b /255)*100);
> hsb.h = 0;
> if((r == g) && (g == b)){
> hsb.h = 0;
> } else if(r >= g && g >= b){
> hsb.h = 60*(g-b)/(r-b);
> } else if(g >= r && r >= b){
> hsb.h = 60 + 60*(g-r)/(g-b);
> } else if(g >= b && b >= r){
> hsb.h = 120 + 60*(b-r)/(g-r);
> } else if(b >= g && g >= r){
> hsb.h = 180 + 60*(b-g)/(b-r);
> } else if(b >= r && r >= g){
> hsb.h = 240 + 60*(r-g)/(b-g);
> } else if(r >= b && b >= g){
> hsb.h = 300 + 60*(r-b)/(r-g);
> } else{
> hsb.h = 0;
> }
> hsb.h = Math.round(hsb.h);
> return hsb;
> }
>
> to turn it into an object with three values hue saturation and
> brightness and then just make use of the brightness.
>
> If there is a better way especially a more efficient way I would
> really like to know.
>
> On 7/29/06, Mike <[EMAIL PROTECTED]> wrote:
> > Small correction.
> >
> > This:
> > "This compares each bit in the first number to each bit in the
> > second
> > number. If both bits are 1 (on), that bit is 1 (on) in the result. If
> > both bits are 0 (off), both bits are 0 (off) in the result. So the
> > result is:"
> >
> > ...should be:
> > "This compares each bit in the first number to each bit in the
> > second
> > number. If both bits are 1 (on), that bit is 1 (on) in the result. If
> > *either bit is* 0 (off), *that bit is* 0 (off) in the result. So the
> > result is:"
> > (emphasis added)
> > --
> > T. Michael Keesey
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Mike
> > Sent: Saturday, July 29, 2006 3:25 PM
> > To: 'Flashcoders mailing list'
> > Subject: RE: [Flashcoders] Problems getting the brightness of a
> > colorreturnedfrom getPixel
> >
> > You seem to be thinking of numbers as if they are stored like strings.
> > They aren't.
> >
> > RGB colors are stored as 3-byte (24-bit) numbers.
> >
> > For example, red looks like this in binary:
> >
> > b
> >
> > ...which is the same thing as this in hexadecimal:
> >
> > 0xFF
> >
> > ... which is the same thing as this in decimal:
> >
> > 16711680
> >
> > To isolate, for example the red portion, you can use SHIFT RIGHT (>>)
to
> > shift all bits to the "right" by 16 bits. Binary:
> >
> > b >> 16 = b
> >
> > Hexadecimal:
> >
> > 0xFF >> 16 = 0xFF
> >
> > Decimal:
> >
> > 16711680 >> 16 = 255
> >
> > Generally it's a good idea not to presume that there may not be more
> > bits to the left, so you can filter them out using a bitwise AND (&).
To
> > explain, this better, here's how to extract the green value from
bright
> > cyan (0x7F):
> >
> > The binary value of the color:
> >
> > 0111
> >
> > Split into colors:
> >
> >   0111
> >
> > Shift right 8 bits:
> >
> > 10111b >> 8 = 
> >
> > In hexadecimal, this result is:
> >
> > 0x
> >
> > In decimal, it is:
> >
> >   

[Flashcoders] Getting FLV file size server-side

2006-06-28 Thread Janis Radins

Hello people!

I'm trying ot get size of FLV file server-side using php, searched list
archive and web but found no results.
I know that this data should be somewhere in first bytes of file does anyone
know where exactly?



tnx in advance
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Conditional Import Statements

2006-06-05 Thread Janis Radins

no there is no way
improts are executed at compile time all you can do is to define which class
to use depending on player version

2006/6/5, Christian <[EMAIL PROTECTED]>:


Hey Guys,

So i'm in the process of writing a class that does a lot of JavaScript
handling.  The tricky part is, I want to use External Interface for
those files published in 8 and simple getURL calls for those published
in 7 or below.

For all intents and purposes, this is a private class that won't be
exposed to the public, so I can't simply require the user to import
version 8 of class or version 7 of class.

Is there a way to do a conditional import based on published version,
instead of runtime version?  I often use $version to detect major
version of play to handle other functionality, but as you all know
External Interface breaks if not published in 8.

OR better yet, could I simply just copy the file to the FP7 folder and
fake it?

Does this make sense or am I smoking crack here?

Christian
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Q: creating oval mask with 4 bezier points

2006-06-01 Thread Janis Radins

Meybe this http://www.mediaverk.lv/asd/#ellipse can help you.

2006/6/1, mike cann <[EMAIL PROTECTED]>:


Hi,

There are probably better examples if you googled around a while but I
found
these usefull:

http://www.nuran.org/  (Click closed spline on the right hand side)

http://recycle.andre-michelle.com/geometry/bezier/ (
bezier3_circle_approximation<
http://recycle.andre-michelle.com/geometry/bezier/bezier3_circle_approximation.zip
>
)

Mike

On 31/05/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi
> I want to use the drawing api to create an oval mask whose shape is
> controlled by 4 bezier points.
>
> To start I need to look into simulating bezier control points in flash.
>
> Can anyone point me in the right direction?
>
> Thanks in advance
>
> Jim Bachalo
>
> [e] jbach at bitstream.ca
> [c] 416.668.0034
> [w] www.bitstream.ca
> 
> "...all improvisation is life in search of a style."
>  - Bruce Mau,'LifeStyle'
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] static variable in class to keep an array of members

2006-04-07 Thread Janis Radins
that is exacly how I am doing this
and i dont see any reason why you shouldnt be doing same ;)
comeClass {
private static var instances:Array = null;
public function comeClass(){
if(instances == null){
instances = new Array();
}
instances.push(this)
}
}

2006/4/6, Manuel Saint-Victor <[EMAIL PROTECTED]>:
>
> Is there any reason not to create a static array in a class that is inited
> when the first instance is created and then keeps an array of all of the
> class members?  I am currently using a helper class to manage that but was
> looking for a convenient way to serialize the stack of members after  some
> had been removed .  I figured that I could have a static
> saveAllInstances()
> method that would run through the array and tell each one to save itself.
> Any best practice on this?
>
> Mani
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Variable containing a String instance crash Flash 8 on [List Variables]

2006-04-04 Thread Janis Radins
new String instance is created by simple var myString:String = new String()
with no arguments.
though this might be quite a bug, once i tried new Object("a") that leaded
to total crash of flash ide  that finished not only with restrating flash
but i had to reinstall it.

2006/4/4, Fumio Nonaka <[EMAIL PROTECTED]>:
>
> If a variable containing a String instance exists, [List Variables]
> causes to crash Flash 8.
>
> [1] Write the following frame action:
> _str = new String("");
> [2] [Test Movie]
> [3] From the [Debug] menu, chose [List Variables]
> [Result] Flash 8 will crash.
>
> The crash is reproduced in Flash 8.0/Mac OS X.4.5 and Windows XP (SP1).
>
> Regards,
>
> Fumio Nonaka
> mailto:[EMAIL PROTECTED]
> http://www.FumioNonaka.com/
> My books
> Flash community
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Steps of colors

2006-04-03 Thread Janis Radins
You can use this class I wrote a while ago:
http://www.mediaverk.lv/asd/com/jR/Math/ColorTween.as
var colorPalete:Array = new ColorTween([0x0,
0xFF]).getArray(countOfSteps);


2006/4/4, GregoryN <[EMAIL PROTECTED]>:
>
> Hello Juan,
>
> Your task seems rather simple:
> 1) Create or attach a number of clips (10 in your case)
> 2) Assign a color to each of them
>
> My Dynamic Blend component does exactly this:
> http://www.gousable.com/flash/dynBlend.html
>
> There is also old version (Flash MX) available for free - in case
> you'd like to see the source code ;-).
>
>
> --
> Best regards,
> GregoryN
> 
> http://GOusable.com
> Flash components development.
> Usability services.
>
> On 4/3/06, Juan Anzaldo <[EMAIL PROTECTED]> wrote:
> >
> > I'm doing a class that manages a colors palette
> > I want to select a color and know 10 steps from the
> > color to White to the color
> >
> > I have this code that make a gradient from white to
> > the color that I want and from this color to black
> > ---
> > createEmptyMovieClip("gradiente_mc", 10);
> > var xi:Number = 301;
> > var yi:Number = 0;
> > var ancho:Number = 30;
> > var alto:Number = 150;
> > var fillType:String = "linear";
> > var alphas:Array = [100, 100, 100];
> > var ratios:Array = [1, 100, 254];
> > var matrix:Object =
> > {matrixType:"box",x:xi,y:yi,w:ancho,h:alto,r:90/180*Math.PI};
> > var spreadMethod:String = "pad";
> > var interpolationMethod:String = "linearRGB";
> > var focalPointRatio:Number = 0.9;
> >
> > dibuja = function(sColor)
> >{
> >var colores:Array = [0xFF,sColor, 0x00];
> > with (gradiente_mc)
> >   {
> > lineStyle(1, 0x00)
> > beginGradientFill(fillType, colores, alphas,
> > ratios, matrix);
> > moveTo(xi, yi);
> > lineTo(xi+ancho, yi);
> > lineTo(xi+ancho, yi+alto);
> > lineTo(xi, yi+alto);
> > lineTo(xi, yi);
> > endFill();
> >   }
> >}
> > dibuja(0x2B0A9E);
> >
> > --
> > It functions very good but I need just 10 steps from
> > the color to white and each color stay in a movie clip
> >
> > like shows the figure because I need to use the colors
> > for apply in others _mc's
> >
> > figure URL :
> >
> > http://201.131.19.21/administracion2/colores.gif
> >
> > tnx for your help
> >
> >
> > Ing. Juan Anzaldo
> > Tel Cel. 614 427-6523
> > Blog : http://janzaldo.blogspot.com
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] draw a graph

2006-03-24 Thread Janis Radins
Guess my drawing classes are capable of doing this in easyest way.
try this:
import com.jR.Drawing.Polygon;
var poly:Polygon = new Polygon(_root, 1);
poly.join = false;
for(var i:Number=0; i:
>
> Hi,
> i need to draw a graph made of a series of points .
> I Know the x and y values of every point only at run-time because i take
> them from a cgi script.
>
> I tryed creating a movieclip at run-time in a for statement .but at the
> end
> i view only oone point...
>
> the code is this one:
>
>
> for(i=0;i {
> //create a new movie clip;
> //draw a square
> }
>
> can be because in my code the movie_clip has always the same name?
>
> Thanks,Riccardo
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] How soon do Flashvars become available ?

2006-03-22 Thread Janis Radins
flashVars are loaded before first frame, get vars start to in first frame


2006/3/22, Robert Chyko <[EMAIL PROTECTED]>:
>
> You can use them right away.
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Manuel
> Saint-Victor
> Sent: Wednesday, March 22, 2006 9:49 AM
> To: Flashcoders mailing list
> Subject: [Flashcoders] How soon do Flashvars become available ?
>
>
> When FlashVars are passed into a swf- how soon after the swf starts
> playing
> are they available?  I am wondering if I can immediately grab my
> Flashvars
> and use them as init params or if there is the posibility of a delay?
>
> Mani
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] >> While and Var

2006-03-21 Thread Janis Radins
createTextField() returns refference to textfield object only since flash 8

2006/3/21, Arul Prasad <[EMAIL PROTECTED]>:
>
> var dtd;
> var spa;
> var spa1;
> var dt = 0;
> while (dt<=99) {
>dtd = "var"+dt;
>spa = dt*5;
>spa1 = (dt*15)+45;
>_root.createTextField(dtd, dt, 0, spa1, 100, 15);
>_root[dtd].text=spa1;
>_root[dtd].border=true;
>_root[dtd].selectable=false;
>dt++;
> }
>
> note: var dtd;
> var spa;
> var spa1;
> var dt = 0;
> while (dt<=99) {
>dtd = "var"+dt;
>spa = dt*5;
>spa1 = (dt*15)+45;
>_root.createTextField(dtd, dt, 0, spa1, 100, 15);
>_root[dtd].text=spa1;
>_root[dtd].border=true;
>_root[dtd].selectable=false;
>dt++;
> }
>
> ~Arul Prasad
>
>
> On 3/21/06, Laurent CUCHET <[EMAIL PROTECTED]> wrote:
> >
> > Good morning,
> >
> > 1) I  create dynamic textfield with while option
> > I try to create dynamic border and content without success
> >
> > Have you got a tips to done it
> >
> > Thank you
> >
> > /
> > var dtd;
> > var spa;
> > var spa1;
> > var dt = 0;
> > while (dt<=99) {
> > dtd = "var"+dt;
> > spa = dt*5;
> > spa1 = (dt*15)+45;
> > _root.createTextField(dtd, dt, 0, spa1, 100, 15);
> > dtd.text=spa1;
> > dtd.border=true;
> > dtd.selectable=false;
> > dt++;
> > }
> >
> >
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] CSS with input text

2006-03-20 Thread Janis Radins
use textField.setNewTextFormat()

2006/3/20, Danny Kodicek <[EMAIL PROTECTED]>:
>
> I've got a textField I'm trying to use for input text and I'd like to be
> able to style it. Unfortunately, the htmlText is being automatically set
> to
> this:
>  COLOR="#00" LETTERSPACING="0" KERNING="0">a
> This isn't much help, because the FONT tag is appearing inside the P tag,
> with the result that any styling Iattach to P is being overridden (at
> least,
> I assume this is the source of the problem).
>
> Any idea how I can avoid this? Really, my ideal would be for Flash not to
> keep 'helping' me by adding its own HTML or changing mine: I'd like to be
> able to tell it exactly what HTML I want displayed. This is particularly
> important because I need to be able to extract the HTML at the end and
> return it.
>
> Danny
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Advice on how to make a copy of an object

2006-03-15 Thread Janis Radins
Guess this should do:
public static function cloneObject(object:Object):Object {
var __return:Object = new Object();
for(var i:String in object){
__return[i] = object[i];
}
return __return;
}

2006/3/15, Merrill, Jason <[EMAIL PROTECTED]>:
>
> If done it with just:
>
> myObject2 = new Object();
> myObject2 = myObject1
>
> Or are you looking for something else?
>
> Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
>
>
>
>
>
>
>
>
>
> >>-Original Message-
> >>From: [EMAIL PROTECTED] [mailto:flashcoders-
> >>[EMAIL PROTECTED] On Behalf Of Manuel Saint-Victor
> >>Sent: Wednesday, March 15, 2006 10:21 AM
> >>To: Flashcoders mailing list
> >>Subject: [Flashcoders] Advice on how to make a copy of an object
> >>
> >>I need to make a local copy of an object- basically I have a model
> with some
> >>default values and would like each view to create a local model with
> >>customizations to some parameters.  I've seen some ActionScript 3 ways
> to do
> >>this but am looking for the way it was done in AS2.
> >>
> >>Thanks,
> >>Mani
> >>___
> >>Flashcoders@chattyfig.figleaf.com
> >>To change your subscription options or search the archive:
> >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>
> >>Brought to you by Fig Leaf Software
> >>Premier Authorized Adobe Consulting and Training
> >>http://www.figleaf.com
> >>http://training.figleaf.com
> NOTICE:
> This message is for the designated recipient only and may contain
> privileged or confidential information. If you have received it in error,
> please notify the sender immediately and delete the original. Any other use
> of this e-mail by you is prohibited.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Windows IE Cache Problem

2006-03-15 Thread Janis Radins
guess the very default routine to deal with cache should do
smthn.loadImage("webCamImg.jpg?dummy="+new Date()*1)


2006/3/15, Bo Parker <[EMAIL PROTECTED]>:
>
> I have a client that has webcams that are sending images via ftp to a
> folder every 15 seconds to a static link and overwriting the previous
> image of the same name. I am bringing those images into a flash
> interface and am refreshing those images every 15 seconds with a
> setInterval loop. Everything works fine on all browsers except IE on
> windows. It is caching the image and not updating at all. Is there
> anyway, that I can force IE to dump the reference it has in the cache
> and pull in the newer image? Thanks,
> (for reference, go to www.thegrandpet.com and click on the webcams.
> The first four are not password protected.)
> --
> Bo Parker, AIGA
> RMC
> 215 S Jennings Avenue
> Fort Worth, Texas  76104
>
> 817.332.4700 phone
> 817.332.4710 facsimile
>
> www.rmcfw.com
>
>
> On Mar 15, 2006, at 7:11 AM, Chris Velevitch wrote:
>
> > On Monday 20th March is the next meeting of the study group we will be
> > studying FlexUnit 2, the unit testing framework for Flex 2. Please
> > read the articles prior to the meeting (see
> > http://www.flashdev.org.au/program). At the meeting, the moderator
> > will lead discussion and with questions about the topic. The meeting
> > is on at 6:30pm for 7pm start and finishes around 8:30pm.
> >
> > Details about the group, venue and program are available from
> > http://www.flashdev.org.au. Please note, whilst the meetings and the
> > use of the club are free, the club does require us to purchase
> > beverages and/or snacks in exchange.
> >
> > Please RSVP at http://www.flashdev.org.au/rsvp.
> >
> >
> > Chris
> > --
> > Chris Velevitch
> > Manager - Sydney Flash Platform Developers Group
> > www.flashdev.org.au
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Loading several images with one progressbar?

2006-03-14 Thread Janis Radins
just read  file size  on server-side and pass it along image urls

2006/3/12, Sascha Balkau <[EMAIL PROTECTED]>:
>
> Hi Adrian,
>
> thanks for the idea but this approach will not work in my case because the
> images are loaded sequencially. If one image is finished loading, my class
> starts loading the next and so on, one after one. And the amount of images
> varies (the image filenames are fetched from a XML file).
> I'm now defining a segmentWidth by dividing the full progressbar width by
> the amount of images that are going to be loaded. That gives me the 100%
> for
> one image on the whol bar. I just haven't figured out yet how to make it
> work so that the bar doesn't start from 0 at every image. Any other idea?
>
> Sascha
>
>
>
>
>
> - Original Message -
> From: "Adrian Park" <[EMAIL PROTECTED]>
> To: "Flashcoders mailing list" 
> Sent: Sunday, March 12, 2006 3:24 AM
> Subject: Re: [Flashcoders] Loading several images with one progressbar?
>
>
> Say you have 3 images loading, use something like this:
>
> var bytesLoaded:Number = 0;
> var bytesTotal:Number = 0;
>
> bytesLoaded += image1.getBytesLoaded();
> bytesTotal += image1.getBytesTotal();
> bytesLoaded += image2.getBytesLoaded();
> bytesTotal += image2.getBytesTotal();
> bytesLoaded += image3.getBytesLoaded();
> bytesTotal += image3.getBytesTotal();
>
> var percentageLoaded:Number = (bytesLoaded/bytesTotal) * 100;
>
> There may be ways to optimise this code depending on your circumstances
> (e.g.
> just calculate bytesTotal once and reuse it) but this shows the basic
> idea.
>
> Adrian P.
>
>
> On 3/11/06, Sascha Balkau <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> > this is probably an old hat but I can't get it right. I want to display
> > the
> > load progress of several images with one progress bar. How do I
> calculate
> > the percentage of the bar?
> >
> > Thanks alot,
> > Sascha
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] storing embedded font data in local shared objects(LSOs)?

2006-03-14 Thread Janis Radins
I'm  a fraid that is impossible

2006/3/12, Ken Fine <[EMAIL PROTECTED]>:
>
> Hi all,
>
>
>
> Can anyone tell me if there's a manageable way to embed font data in an
> LSO
> (Flash local shared object) such that it can be stored on the user's
> machine
> and used by a movie?
>
>
>
> Or, perhaps someone can propose an alternate scheme so that embedded font
> data can be externalized and cached on the user's machine so that it
> doesn't
> need to be re-sent with every visit?
>
>
>
> I'm noticing that F8 embedded fonts are quite a bit more "heavy" than
> their
> F7 counterparts, and I'm trying to come up with ways to shave down the
> download. The other thing that would be very helpful to know is how to
> embed
> a subset of a font instance just once in the library, and have my movie
> draw
> from this common "pool" of font information. In reviewing my F8 size
> report,
> I notice that Flash is embedding the same characters of my Myriad Pro in
> the
> same font weight multiple times. This sucks up bandwidth unnecessarily.
>
>
>
> Thanks in advance for any pointers.
>
>
>
> -KF
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Get the average of 2 colors

2006-03-10 Thread Janis Radins
you're wellcome

2006/3/10, Joakim Carlgren <[EMAIL PROTECTED]>:
>
> Thanks Janis...works great. Will take a closer look later.
>
> Kindly
> Joakim Carlgren
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Janis
> Radins
> Sent: den 10 mars 2006 15:17
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Get the average of 2 colors
>
> Get my ColorTween class at
> www.mediaverk.lv/asd/com/jR/Math/ColorTween.as
> Then do the simple thing:
> import com.jR.Math.ColorTween;
> var midColor:Number = new ColorTween([0xFF,
> 0xFF]).getPoint(255/2);
> trace("0x"+midColor.toString(16))
>
> 2006/3/10, Joakim Carlgren <[EMAIL PROTECTED]>:
> >
> > Whats the easiest way to calculate the average of two colors?
> >
> >
> >
> >
> >
> > varcolor1:Number = 0xFF
> >
> > varcolor2:Number = 0xFF
> >
> >
> >
> > varmyColor:Color = new Color(my_mc)
> >
> > myColor.setRGB((color1 + color2) / 2)
> >
> > I know its not this simple and probably I need to play with bitwise
> > operators..
> >
> > Any easy way to solve this?
> >
> >
> >
> > Joakim Carlgren
> >
> >
> >
> >
> >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] edit multiple colors in txtField

2006-03-10 Thread Janis Radins
just use setTextFormat(startIndex, endIndex, _fmt), it will produce html
code that can be extracted from htmlText

2006/3/10, Flash guru <[EMAIL PROTECTED]>:
>
> Have you thought of using css to do your formatting.
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Get the average of 2 colors

2006-03-10 Thread Janis Radins
Get my ColorTween class at www.mediaverk.lv/asd/com/jR/Math/ColorTween.as
Then do the simple thing:
import com.jR.Math.ColorTween;
var midColor:Number = new ColorTween([0xFF, 0xFF]).getPoint(255/2);
trace("0x"+midColor.toString(16))

2006/3/10, Joakim Carlgren <[EMAIL PROTECTED]>:
>
> Whats the easiest way to calculate the average of two colors?
>
>
>
>
>
> varcolor1:Number = 0xFF
>
> varcolor2:Number = 0xFF
>
>
>
> varmyColor:Color = new Color(my_mc)
>
> myColor.setRGB((color1 + color2) / 2)
>
> I know its not this simple and probably I need to play with bitwise
> operators..
>
> Any easy way to solve this?
>
>
>
> Joakim Carlgren
>
>
>
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Robust Drawing Classes?

2006-03-09 Thread Janis Radins
Finally I have my drawing classes ready.
They might need some minor modifications but in general they are doing what
I was planning.
You can get em at www.mediaverk.lv/asd

Everyone is wellcome to share ideas on what could be improved.

2006/2/22, Peter O'Brien <[EMAIL PROTECTED]>:
>
> I can't testify to their quality but Senocular has some pretty
> interesting looking drawing classes you might want to check out:
> http://www.senocular.com/flash/actionscript.php?file=ActionScript_2.0/
> com/senocular/ProgressiveDrawing.as
>
>
> On 22 Feb 2006, at 11:51, Luca Candela wrote:
>
> > Hi, does anyone knows if there are nice a well built drawing
> > classes (for
> > free) to use in Flash 8?
> >
> > The drawing api in flash is a pain the ass, too much work to do
> > anything...
> > I would be happy with boxes, cirlces, n-gons... the more, the better!
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash Web Browser Component

2006-03-09 Thread Janis Radins
get real, Flash HTML tag support is way too weak to display any even most
simple one web page

2006/3/8, Johannes Boyne <[EMAIL PROTECTED]>:
>
> But do you really want ActiveX in your Flash?! I think, it isn't in a
> SandBox like Flash or Java, so it is dangerous, right? And there, from
> my point of view, is the rub.
> And maybe some users don't like this security hole.
> And then they ask: "Hey man why I must use ActiveX...?" And that is a
> legitimate question.
>
> But JesterXL is right, Zinc lets you embed this control, and if you ask
> me 80% of the usere have not the faintest idea what a SandBox is. ;-)
> So I would do it like JesterXL has said it. =)
>
> Regards
> Johannes
>
>
>
> 
> 
> 
> 
> JesterXL schrieb:
> > Yeah, Zinc lets you embed an IE ActiveX control; it basically positions
> it
> > over top of your Flash.  However, that's EXE only.
> >
> > - Original Message -
> > From: "Merrill, Jason" <[EMAIL PROTECTED]>
> > To: "Flashcoders mailing list" 
> > Sent: Wednesday, March 08, 2006 1:27 PM
> > Subject: RE: [Flashcoders] Flash Web Browser Component
> >
> >
> > I actually have seen some components you buy or maybe it was third party
> > tools that will help you create a browser/HTML viewer inside of Flash -
> > can't find the links right now though.  Maybe it was just a dream I
> > had...  Does Zinc do this?  Can't recall...
> >
> > Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com
> >
> >
> >
> >
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Strange var assignment issues

2006-03-03 Thread Janis Radins
there are 2 duplicateMovieClip functions
first one is global function second one is prototype of MovieClip class

2006/3/3, Danny Kodicek <[EMAIL PROTECTED]>:
>
> >you should better use
> var word_mc:MovieClip = clip_to_copy.duplicateMovieClip("clipid" + i, i)
>
> Does that work now? Last time I checked, duplicateMovieClip didn't return
> the object, annoyingly.
>
> Danny
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Clone Array of Type Object

2006-03-03 Thread Janis Radins
sorry for duplicating, didnt noticed Ryan allready told same thing for other
Array prototype that does the same


2006/3/3, eric dolecki <[EMAIL PROTECTED]>:
>
> Here is the trace for your code BTW:
>
> 1,2,3,4 : 2,3,4
>
>
>
> On 3/3/06, Janis Radins <[EMAIL PROTECTED]> wrote:
> >
> > array clone is done quite easy.
> > see this:
> > var old_array:Array = new Array(1, 2, 3, 4);
> > var new_array:Array = old_array.concat();
> > new_array.shift();
> > trace(old_array+" : "+new_array);
> >
> > 2006/3/3, eric dolecki <[EMAIL PROTECTED]>:
> > >
> > > I agree with Michael...
> > >
> > > import mx.utils.ObjectCopy;
> > >
> > > obj = new Object();
> > > obj.color = "red";
> > >
> > > obj2 = ObjectCopy.copy( obj );
> > > obj2.color = "blue";
> > >
> > > trace( obj.color );
> > > trace( obj2.color );
> > >
> > >
> > > This should work with an Array Object as well I assume
> > >
> > >
> > > On 3/2/06, Michael Klishin <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Wade Arnold wrote:
> > > > > Is it possible to clone and array in AS 2.0?  I have copied the
> > array
> > > > but
> > > > > that just places a pointer at the existing array. I am looking to
> > > > > clone/duplicate the array to separate the two data elements
> without
> > > > having
> > > > > to do a for loop. This of course stops working once you use
> objects
> > or
> > > > > multi-dimensional arrays.
> > > >
> > > > Isn't it a job for mx.utils.ObjectCopy class and it's static copy
> > > method?
> > > >
> > > > --
> > > > Michael "Antares" Klishin,
> > > >
> > > > Email: [EMAIL PROTECTED]
> > > > Web: www.novemberain.com
> > > >
> > > > Non progredi est regredi
> > > > ___
> > > > Flashcoders@chattyfig.figleaf.com
> > > > To change your subscription options or search the archive:
> > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > >
> > > > Brought to you by Fig Leaf Software
> > > > Premier Authorized Adobe Consulting and Training
> > > > http://www.figleaf.com
> > > > http://training.figleaf.com
> > > >
> > > ___
> > > Flashcoders@chattyfig.figleaf.com
> > > To change your subscription options or search the archive:
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > > Brought to you by Fig Leaf Software
> > > Premier Authorized Adobe Consulting and Training
> > > http://www.figleaf.com
> > > http://training.figleaf.com
> > >
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Clone Array of Type Object

2006-03-03 Thread Janis Radins
array clone is done quite easy.
see this:
var old_array:Array = new Array(1, 2, 3, 4);
var new_array:Array = old_array.concat();
new_array.shift();
trace(old_array+" : "+new_array);

2006/3/3, eric dolecki <[EMAIL PROTECTED]>:
>
> I agree with Michael...
>
> import mx.utils.ObjectCopy;
>
> obj = new Object();
> obj.color = "red";
>
> obj2 = ObjectCopy.copy( obj );
> obj2.color = "blue";
>
> trace( obj.color );
> trace( obj2.color );
>
>
> This should work with an Array Object as well I assume
>
>
> On 3/2/06, Michael Klishin <[EMAIL PROTECTED]> wrote:
> >
> > Wade Arnold wrote:
> > > Is it possible to clone and array in AS 2.0?  I have copied the array
> > but
> > > that just places a pointer at the existing array. I am looking to
> > > clone/duplicate the array to separate the two data elements without
> > having
> > > to do a for loop. This of course stops working once you use objects or
> > > multi-dimensional arrays.
> >
> > Isn't it a job for mx.utils.ObjectCopy class and it's static copy
> method?
> >
> > --
> > Michael "Antares" Klishin,
> >
> > Email: [EMAIL PROTECTED]
> > Web: www.novemberain.com
> >
> > Non progredi est regredi
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Strange var assignment issues

2006-03-03 Thread Janis Radins
you should better use
 var word_mc:MovieClip = clip_to_copy.duplicateMovieClip("clipid" + i, i)

tho that shouldnt

2006/3/3, Danny Kodicek <[EMAIL PROTECTED]>:
>
> >BUT if I change the line 'var word_mc:MovieClip' to just 'var word_mc',
> ie remove the type definition
> >It works, so why if I define the type definition for my variable does
> the assignment break?
>
> I'd imagine that the compiler fails to realise that the eval statement
> could
> create a MovieClip object. What if instead of using eval you used
> var word_mc:MovieClip = this["clipid" + i]?
>
> Best
> Danny
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] rotate gradient fill

2006-02-24 Thread Janis Radins
it seems that matrix of form {a, b, c, d, e, f, g, h, i} is capable of doing
this job
i found matrix implementation that allows this kindof manipulations at
http://www.flashadvisor.com/forum/viewtopic.php?t=380&start=0 and seems that
after transfering ti to AS2 and slight modifications it might help
anyways, that just isnt logical that one kind of matrix does something that
other kind doesnt while they shsould be equal
shame on you Adobe :)

2006/2/24, Josh McDonald <[EMAIL PROTECTED]>:
>
> Yeah my bad, I didn't think flash could do a skewed radial gradient. Now
> it makes sense :)
>
> --
>
> "His comrades fought beside him, Van Owen and the rest...
>But of all the thompson gunners- Roland was the best."
>
> Josh McDonald
> Analyst Programmer
> Information Technology
> Ph: 61 7 3006 6460
> Email: [EMAIL PROTECTED]
>
>
> >>> [EMAIL PROTECTED] 24/02/2006 9:40:41 am >>>
>
> :)
>
> it's probably not a joke.
>
> if the height and width values are non-identical, then rotating would
> have
> an effect (the fill is not radially symetrical).
>
> anyway, I don't know the answer to the question, but maybe the rotation
> is
> being performed before the scaling (this would probably not have any
> visible
> effect)
>
>
> glenn
>
>
> - Original Message -
> From: "Josh McDonald" <[EMAIL PROTECTED]>
> To: 
> Sent: Friday, February 24, 2006 9:22 AM
> Subject: Re: [Flashcoders] rotate gradient fill
>
>
> Dude is this a joke? What do you get when you rotate a circle? Or are
> you just trying to say something else? If it's not, what are you
> expecting to happen when you change r for a radial gradient?
>
> -Josh
>
> --
>
> "His comrades fought beside him, Van Owen and the rest...
>But of all the thompson gunners- Roland was the best."
>
> Josh McDonald
> Analyst Programmer
> Information Technology
> Ph: 61 7 3006 6460
> Email: [EMAIL PROTECTED]
>
>
> >>> [EMAIL PROTECTED] 23/02/2006 11:58:42 pm >>>
>
> Hello people!
>
> Just noticed that beginGradientFill matrix r property doesn't have any
> effect on radial fills.
> That might be my mistake as well, though i tested it with MM sample
> code and
> still no luck.
> this.createEmptyMovieClip("gradient_mc", this.getNextHighestDepth());
> with (gradient_mc) {
> colors = [0xFF, 0xFF];
> fillType = "radial";
> alphas = [100, 100];
> ratios = [0, 0xFF];
> matrix = {matrixType:"box", x:100, y:125, w:200, h:150,
> r:(90/180)*
> Math.PI};
> beginGradientFill(fillType, colors, alphas, ratios, matrix);
> moveTo(100, 100);
> lineTo(100, 300);
> lineTo(300, 300);
> lineTo(300, 100);
> lineTo(100, 100);
> endFill();
> }
>
> In this code changing 90 degrees to anything else has no effect at
> all.
> Anyone noticed this one before, maybe somebody have ideas how to make
> workaround?
> I know about Matrix object in flash player 8 that might help me with
> this
> problem but I'd like to avoid it and stay flash player 7 compatible as
> long
> as possible.
>
> Janis
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
>
>
>
>
>
>
> ***
> Messages included in this e-mail and any of its attachments are those
> of the author unless specifically stated to represent WorkCover
> Queensland.
> The contents of this message are to be used for the intended purpose
> only
> and are to be kept confidential at all times.
> This message may contain privileged information directed only to the
> intended addressee/s. Accidental receipt of this information should be
> deleted promptly and the sender notified.
> This e-mail has been scanned by Sophos for known viruses.
> However, no warranty nor liability is implied in this respect.
>
> 
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
>
>
>
>
>
>
> ***
> Messages included in this e-mail and any of its attachments are tho

[Flashcoders] rotate gradient fill

2006-02-23 Thread Janis Radins
Hello people!

Just noticed that beginGradientFill matrix r property doesn't have any
effect on radial fills.
That might be my mistake as well, though i tested it with MM sample code and
still no luck.
this.createEmptyMovieClip("gradient_mc", this.getNextHighestDepth());
with (gradient_mc) {
colors = [0xFF, 0xFF];
fillType = "radial";
alphas = [100, 100];
ratios = [0, 0xFF];
matrix = {matrixType:"box", x:100, y:125, w:200, h:150, r:(90/180)*
Math.PI};
beginGradientFill(fillType, colors, alphas, ratios, matrix);
moveTo(100, 100);
lineTo(100, 300);
lineTo(300, 300);
lineTo(300, 100);
lineTo(100, 100);
endFill();
}

In this code changing 90 degrees to anything else has no effect at all.
Anyone noticed this one before, maybe somebody have ideas how to make
workaround?
I know about Matrix object in flash player 8 that might help me with this
problem but I'd like to avoid it and stay flash player 7 compatible as long
as possible.

Janis
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] How can I display a tall document?

2006-02-23 Thread Janis Radins
I've done JS resize for www.pastkartes.lv and i thnk it works good and looks
good too

2006/2/23, Josh McDonald <[EMAIL PROTECTED]>:
>
> I've got to say that the first link is much nicer than the "resize the
> flash" solution they've got here, so perhaps it's not so bad an idea.
> And the second link, that's a cool idea done fairly badly. They're not
> proper scroll areas, since the mouse wheel doesn't work. Just some sort
> of dodgey home-made look-alike.
>
> -Josh
>
> --
>
> "His comrades fought beside him, Van Owen and the rest...
>But of all the thompson gunners- Roland was the best."
>
> Josh McDonald
> Analyst Programmer
> Information Technology
> Ph: 61 7 3006 6460
> Email: [EMAIL PROTECTED]
>
>
> >>> [EMAIL PROTECTED] 23/02/2006 9:21:34 am >>>
>
> I don't think it sucks that bad
>
> Take a look for yourself.  You have two choices that I can see:
>
> Container Resize:
> http://www.salttown.com/vrutah/
> (click on the left side links to load different length text)
>
> Flash Scrollbars:
> http://www.jasonkimura.com/
> (click anywhere on the screen)
> (not for slow computers)
>
> Change the size of the flash window (doesn't allow multiple regions to
> scroll, can be a bit, flickery)
> or
> Use a scroll bar in flash (less usable)
>
> They both have their tradeoffs.
>
> Phil: I would be glad to send you the source if you want it.
>
> Further reading:
> http://www.hossgifford.com/downloads.htm
>
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Josh
> McDonald
> Sent: Wednesday, February 22, 2006 3:41 PM
> To: flashcoders@chattyfig.figleaf.com
> Subject: Re: [Flashcoders] How can I display a tall document?
>
> I've seen the JS thing done, and it's terrible. It's jerky and
> annoying
> to use, and just doesn't feel "right". It definitely breaks the
> flash-as-an-app feel, and it all just goes instantly back to being a
> shiny webpage from the 90s.
>
> -Josh
>
> --
>
> "His comrades fought beside him, Van Owen and the rest...
>But of all the thompson gunners- Roland was the best."
>
> Josh McDonald
> Analyst Programmer
> Information Technology
> Ph: 61 7 3006 6460
> Email: [EMAIL PROTECTED]
>
>
> >>> [EMAIL PROTECTED] 23/02/2006 6:23:18 am >>>
>
> Make a ScrollPane width and height equal to Stage.width and
> Stage.height of a fullscreen app and load a clip containing your text
> field into the ScrollPane.
>
> You could also send the new textfield height to JavaScript and
> dynamically resize the object and embed (I think, though I'd probably
> never do it this way).
>
> Mike
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
>
>
>
>
>
> 
> ***
> Messages included in this e-mail and any of its attachments are those
> of the author unless specifically stated to represent WorkCover
> Queensland. The contents of this message are to be used for the
> intended
> purpose only and are to be kept confidential at all times.
> This message may contain privileged information directed only to the
> intended addressee/s. Accidental receipt of this information should be
> deleted promptly and the sender notified.
> This e-mail has been scanned by Sophos for known viruses.
> However, no warranty nor liability is implied in this respect.
> 
> 
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
>
>
>
>
>
>
>
> ***
> Messages included in this e-mail and any of its attachments are those
> of the author unless specifically stated to represent WorkCover
> Queensland. The contents of this message are to be used for the intended
> purpose only and are to be kept confidential at all times.
> This message may contain privileged information directed only to the
> intended addressee/s. Accidental receipt of this information should be
> deleted promptly and the sender notified.
> This e-mail has been 

Re: [Flashcoders] Robust Drawing Classes?

2006-02-22 Thread Janis Radins
I'm pretty close to make it to version 1.0 of my drawing classes atm, untill
that happens you can contact me offlist if youre interested in earlyer
versions

2006/2/22, Luca Candela <[EMAIL PROTECTED]>:
>
> Hi, does anyone knows if there are nice a well built drawing classes (for
> free) to use in Flash 8?
>
> The drawing api in flash is a pain the ass, too much work to do
> anything...
> I would be happy with boxes, cirlces, n-gons... the more, the better!
>
> --
> MATTEO 25:11 Più tardi arrivarono anche le altre vergini e incominciarono
> a
> dire: Signore, signore, aprici!
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] UML tool for AS2

2006-02-17 Thread Janis Radins
it claims that it can.
tho i didnt found how :)

2006/2/17, Jim Kremens <[EMAIL PROTECTED]>:
>
> "actionscript support straight of the box"
>
> Can it do reverse engineering with Actionscript?
>
> Jim Kremens
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] UML tool for AS2

2006-02-17 Thread Janis Radins
Tnx Scott!

Looks very mutch like what I've been looking for.


2006/2/17, Scott Mathieson <[EMAIL PROTECTED]>:
>
> enterprise architect > http://www.sparxsystems.com.au/products/ea.html
>
> actionscript support straight of the box
>
> On Friday 17 February 2006 06:54, Janis Radins wrote:
> > Hye ppl!
> >
> > I've been searching for decent AS2 UML tool but had no luck.
> > Could anyone share theyr good expieriences of some UML tools well suited
> > for AS2 ?
> >
> > PS
> > Yes I've seen Grant Skinner Gmodeler, idea is good but it's still way
> too
> > raw.
> > ___
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] UML tool for AS2

2006-02-16 Thread Janis Radins
Hye ppl!

I've been searching for decent AS2 UML tool but had no luck.
Could anyone share theyr good expieriences of some UML tools well suited for
AS2 ?

PS
Yes I've seen Grant Skinner Gmodeler, idea is good but it's still way too
raw.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] suddenly v2 Button not drawing any border or bg

2006-02-07 Thread Janis Radins
I've had sutch issue with movies embeded in html with wmode=transparent
property but those were self made ones.
hope this will help, anyways worth to try


2006/2/7, Michael Stuhr <[EMAIL PROTECTED]>:
>
> i just tested a fairly large project which i compiled nice yesterday, but
> today,
> all v2 Buttons lost their complete background and border. only the label
> and the
> icon are still visible.
>
> has anybody seen such a strange behaviour before ?
>
> micha
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Q:Creating a full spectrum 'rainbow' Gradient

2006-01-23 Thread Janis Radins
I've made sutch class long time ago.
MovieClip.beginGradientFill() does that.

2006/1/20, Andrew Widdowson <[EMAIL PROTECTED]>:
>
> Hi there,
>
> If you want a "real" rainbow gradient, consider translating the
> fortran code found at the following page, which contains a routine for
> approximating R/G/B values for a given wavelength of visible light.
> Then just do a for loop over approximately 380nm and 780nm.
>
> http://www.efg2.com/Lab/ScienceAndEngineering/Spectra.htm
>
> I knew that minor in physics would be useful at some point..
>
> -Andrew Widdowson
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] amfphp 1.0 slow?

2006-01-09 Thread Janis Radins
Hey ppl!


I just lounched first project which runs on amfphp 1.0 and I've encountered
a problem - when flash app is accessed on web it is getting extremely slow
on data transfers.
Simple call for few kb data takes 5-10 seconds.
Otherwise everything is allright, and its very fast when lounched from ide.
Anyone expierienced that?

tnx in advance
Janis
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] ****************** Unicode Input ***************************

2005-12-15 Thread Janis Radins
I guess it's as simple as using unicode font. Best of all use device fonts.

2005/12/16, Devendran I <[EMAIL PROTECTED]>:
>
> Any how
>   Thank you guys..
>   I'll do it. If u Know any other Simple way to get Unicode input please
> let me know.
>
>   Thanks,
>
>   Regards,
>   Devendran.I
>
> 8ball Developer <[EMAIL PROTECTED]> wrote:
>   All you have to do is to do a key board mapping depending on the
> language
> the user selects. The mapping is something like this:
>
> This is Russian key mapping.
> There is much more to this and I don't want to make it sound simple but it
> is doable and I've done it. I just can't share the code. Sorry.
>
> Good luck.
>
>
> On 12/15/05, Mike Lyda wrote:
> >
> >
> > umm.. it kind of sounds like you want Flash to automatically map the
> > characters to the keypress? i.e. if someone with an English
> > keyboard/system,
> > types into your input field the characters will show up as Chinese?
> >
> > ... it might be possible to have them actually typing into an
> > offscreen/hidden
> > input box, capture keypresses, do key mapping based on a table, and then
> > insert
> > the corresponding Chinese character into the (visible) input box... that
> > might
> > work as long as they're using an English keyboard..
> >
> > --- Devendran I wrote:
> >
> > > Hi all,
> > >
> > > We can Display Unicode Characters in dynamic and Input text field. Is
> > it
> > > possible to get unicodeInput in a input text?
> > >
> > > Consider this. You are having One input text box. By selecting a
> > language,
> > > your Key press should be displayed as choosen language(in input text).
> > >
> > > If u select Chinese Langugae. When you type it should be chinese
> > > If u select Hindi Language. when you type it should be Hindi .
> > >
> > > All these should happen in single text field.(And have to controll
> > with
> > > script)
> > >
> > >
> > > Thanks & regards
> > > Devendran.I
> >
> >
> > __
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
>
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flash -> css tooltip

2005-11-30 Thread Janis Radins
youre talking about "CSS" tooltip using browser propertys or tooltip
created in flash envoirment?
2005/11/30, eric dolecki <[EMAIL PROTECTED]>:
> Im working on something where I would like to generate css tooltips out of &
> above a flash container... does anyone have a working example or code of
> some like that?
>
> edolecki
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] lil OOP question

2005-11-30 Thread Janis Radins
I made it quite simplyer.
I named all class variables that could be possibly set from outside
class with leading "_", so if I have
private var _property:whatEverDataType = null;
it's setter is named same name just without "_" so a little check for
if(this["_"+i] != undefined){
this[i] = iniObject[i];
}
All variables must have initial value and thats it, it's working

2005/11/30, Ian Thomas <[EMAIL PROTECTED]>:
> You could do it backwards... iterate through 'this' rather than through
> initObject (but it's almost certainly not as fast, and doesn't let you check
> for 'unused'/wrong keys in initObject):
>
>  for(var i:String in this){
> if(initObject[i]!=undefined)
> {
>     this[i] = initObject[i];
> }
> }
>
> On 11/30/05, Janis Radins <[EMAIL PROTECTED]> wrote:
> >
> > Explination to why I need this is very simple.
> > The actual class I have looks like this:
> >
> > class foo {
> > function foo(initObject:Object){
> > for(var i:String in initObject){
> > if(setter named same as i exists){
> > this[i] = initObject[i];
> > } else {
> > trace("error, invalid value in
> > initObject")
> > }
> > }
> > }
> > }
> >
> > As I allready said I have alternative solution so this is what I
> > expected and doesnt make any problem.
> >
> > Thankyou for response.
> >
> > 2005/11/30, Dimitrios Bendilas <[EMAIL PROTECTED]>:
> > > Hi Janis,
> > >
> > > As far as I can see from the class declaration,
> > > this is not a dynamic class.
> > >
> > > So, why would you want to check if a property is "declared"?
> > > You are the one who sets the declared variables inside the class.
> > >
> > > Is there something I'm not getting?
> > >
> > > Dimitrios
> > >
> > > - Original Message -
> > > From: "Janis Radins" <[EMAIL PROTECTED]>
> > > To: 
> > > Sent: Wednesday, November 30, 2005 3:24 PM
> > > Subject: [Flashcoders] lil OOP question
> > >
> > >
> > > hey ppl
> > >
> > > I'm wondering is there a way to chech wether some class function
> > > exists from constructor?
> > > smthn like:
> > > class foo {
> > > function foo(){
> > > if(this class has property named fooProperty) dothis()
> > > else doThat()
> > > }
> > > public function set fooProperty (smthn):Void {
> > > someFooProperty = smth;
> > > }
> > > }
> > >
> > > As far as I've tried it this["fooProperty"] returns only undefined.
> > >
> > > I know more than one possible workaround, just this way seems to me
> > > more elegant.
> > >
> > > Tnx in advance.
> > >
> > > Janis
> > > ___
> > > Flashcoders mailing list
> > > Flashcoders@chattyfig.figleaf.com
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > >
> > >
> > > ___
> > > Flashcoders mailing list
> > > Flashcoders@chattyfig.figleaf.com
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] lil OOP question

2005-11-30 Thread Janis Radins
Explination to why I need this is very simple.
The actual class I have looks like this:

class foo {
function foo(initObject:Object){
for(var i:String in initObject){
if(setter named same as i exists){
this[i] = initObject[i];
} else {
trace("error, invalid value in initObject")
}
}
}
}

As I allready said I have alternative solution so this is what I
expected and doesnt make any problem.

Thankyou for response.

2005/11/30, Dimitrios Bendilas <[EMAIL PROTECTED]>:
> Hi Janis,
>
> As far as I can see from the class declaration,
> this is not a dynamic class.
>
> So, why would you want to check if a property is "declared"?
> You are the one who sets the declared variables inside the class.
>
> Is there something I'm not getting?
>
> Dimitrios
>
> - Original Message -
> From: "Janis Radins" <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, November 30, 2005 3:24 PM
> Subject: [Flashcoders] lil OOP question
>
>
> hey ppl
>
> I'm wondering is there a way to chech wether some class function
> exists from constructor?
> smthn like:
> class foo {
> function foo(){
> if(this class has property named fooProperty) dothis()
> else doThat()
> }
> public function set fooProperty (smthn):Void {
> someFooProperty = smth;
> }
> }
>
> As far as I've tried it this["fooProperty"] returns only undefined.
>
> I know more than one possible workaround, just this way seems to me
> more elegant.
>
> Tnx in advance.
>
> Janis
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] lil OOP question

2005-11-30 Thread Janis Radins
hey ppl

I'm wondering is there a way to chech wether some class function
exists from constructor?
smthn like:
class foo {
function foo(){
if(this class has property named fooProperty) dothis()
else doThat()
}
public function set fooProperty (smthn):Void {
someFooProperty = smth;
}
}

As far as I've tried it this["fooProperty"] returns only undefined.

I know more than one possible workaround, just this way seems to me
more elegant.

Tnx in advance.

Janis
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Creating a button class entirely in 2.0 with no symbol association, possible?

2005-11-24 Thread Janis Radins
No thats no a problem, you can do like this:

public function set _x(value:Number):Void {
mc._x = value;
}

2005/11/24, Boon Chew <[EMAIL PROTECTED]>:
> Thanks Janis.  The problem with doing it  below is that you cannot change _x, 
> _y directly on the mc like you can  with a regular movieclip.
>
>   var b = new myButton();
>   b._x = 200; <-- won't work
>
>
> Janis Radins <[EMAIL PROTECTED]> wrote:  I'm doing this all the time I've 
> made tonns of different inputs fro
> diferent projects and finally I am planing to code some fullscale AS2
> only UI collection.
>
> Thats done like this:
> class myButton {
> private var mc:MovieClip;
> function myButton(host:MovieClip, level:Number){
> mc= host.createEmptyMovieClip("myButton"+level, level);
> }
> }
> In this case all drawing is done by variable mc.
>
> 2005/11/23, Ian Thomas :
> > Oops, last line should be:
> >
> > var button:MyButton=MyButton(myTimeline.attachMovie(MyButton.symbolName,
> > "somRandomButton",
> > myTimeline.getNextHighestDepth()));
> >
> > Assuming myTimeline is whatever you're trying to attach the button to...
> >
> > Ian
> >
> > On 11/23/05, Ian Thomas  wrote:
> > >
> > > Hi Boon,
> > >   Can't remember where I got this solution - definitely not mine - but
> > > here's how to create a MovieClip-derived class that doesn't need an
> > > associated library symbol:
> > > --
> > > class net.something.MyButton extends MovieClip
> > > {
> > > static var symbolName:String = "__Packages.net.something.MyButton ";
> > > static var symbolOwner:Function = MyButton;
> > >
> > > public function MyButton()
> > > {
> > > }
> > >
> > > static var symbolLinked=Object.registerClass(symbolName, symbolOwner);
> > >
> > > }
> > > --
> > > To create it, use attachMovie:
> > >
> > > import net.something.MyButton;
> > >
> > > var button:MyButton=MyButton(myTimeline.attachMovie(MyButton.symbolName,
> > >
> > > "somRandomButton",getNextHighestDepth()));
> > >
> > > HTH,
> > >   Ian
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
>
>
>
> -
>  Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Creating a button class entirely in 2.0 with no symbol association, possible?

2005-11-23 Thread Janis Radins
I'm doing this all the time I've made tonns of different inputs fro
diferent projects and finally I am planing to code some fullscale AS2
only UI collection.

Thats done like this:
class myButton {
private var mc:MovieClip;
function myButton(host:MovieClip, level:Number){
mc= host.createEmptyMovieClip("myButton"+level, level);
}
}
In this case all drawing is done by variable mc.

2005/11/23, Ian Thomas <[EMAIL PROTECTED]>:
> Oops, last line should be:
>
> var button:MyButton=MyButton(myTimeline.attachMovie(MyButton.symbolName,
> "somRandomButton",
> myTimeline.getNextHighestDepth()));
>
> Assuming myTimeline is whatever you're trying to attach the button to...
>
> Ian
>
> On 11/23/05, Ian Thomas <[EMAIL PROTECTED]> wrote:
> >
> > Hi Boon,
> >   Can't remember where I got this solution - definitely not mine - but
> > here's how to create a MovieClip-derived class that doesn't need an
> > associated library symbol:
> > --
> > class net.something.MyButton extends MovieClip
> > {
> > static var symbolName:String = "__Packages.net.something.MyButton ";
> > static var symbolOwner:Function = MyButton;
> >
> > public function MyButton()
> > {
> > }
> >
> > static var symbolLinked=Object.registerClass(symbolName, symbolOwner);
> >
> > }
> > --
> > To create it, use attachMovie:
> >
> > import net.something.MyButton;
> >
> > var button:MyButton=MyButton(myTimeline.attachMovie(MyButton.symbolName,
> >
> > "somRandomButton",getNextHighestDepth()));
> >
> > HTH,
> >   Ian
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] [Web usability - Fullscreen - CSS?] I know ... but customer wants it Mac/PC

2005-11-20 Thread Janis Radins
CSS works only inside browser window, you cannt have to fullscreen
without resizing window to that size.
So only option is to use JS window.open(... fullscreen=1 ...)
Popup blockers can be tricked, btw

2005/11/20, af a <[EMAIL PROTECTED]>:
>Hello,
>
>
> First of all, thanks to Matthew, Mike, Chad, ErixTekila, Pixelassembly, 
> MetaArt for their previous
> answers. (I hope not forgetting anyone ;-)
>
>
> I have to do a cross-browser Mac/PC full-screen (chromeless exactly) project
> (YES, i told the client the drawbacks  with proofs and statistic-based 
> arguments)
> in Flash MX 2004 :
>
> * javascript popup   ->  NO,  for they are blocked OR because javascript 
> is disabled (too reliant on browser)
> * chromeless  ->  works only for IE 5 on PC
>
>how to do something which works on MAC/PC (above all Mac) Safari, Opera, 
> IE and Netscape, Mozilla ?
>
>
> Use something which is not DOM compliant, but W3C compliant like html and CSS 
> (or CSS-P ?)
> Use dreamweaver MX 2004 to do this fullscreen thing ... Argh 
>
> Any good tutorials, links ?
>
>
> Thanks again
> Tony
>
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Ho to hide flash layer in Mozilla?

2005-11-15 Thread Janis Radins
document.all doesnt exist in w3c specifications there for FF doesnt
know about it
use document.getElementById instead, and it will work in both browsers

2005/11/15, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> i guess you could try moving it to -1000px or something like that. might
> be a work around at least..
>
> Gregory_GOusable wrote:
> > Hello Flashcoders,
> >
> >   I have a DIV layer (named 'my_layer') which is over HTML page.
> >Then I want to hide it using Js call as
> >getURL("javascript:hideLayer();");
> >
> >   Javascript:
> >   =
> > function hideLayer() {
> > document.all('my_layer').style.visibility='hidden';
> > }
> > =
> >
> > It works nice in IE and Opera, but for some reason (?) doesn't work in
> > Mozilla (I tested with Mozilla 1.7.3)
> > Mean while it hides the swf, the links at HTML page are still not
> > clickable.
> >
> > Any idea?
> >
> >
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Dynamic resizing of flash object throught JS calls

2005-11-14 Thread Janis Radins
I tried to resize DIV instead of OBJECT but still no luck

2005/11/14, John Giotta <[EMAIL PROTECTED]>:
> I've done this with a DIV tag wrapping the Flash Embed code.
> Simply change the css constraints on the DIV tag and make the width
> and height of the embed 100%.
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: 网易邮箱自动回复: [Flashcoders] Dynamic res izing of flash object throught JS calls

2005-11-11 Thread Janis Radins
Does everyone received my post as bunch of '?" ?

2005/11/10, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> 您发给我的信件已经收到。
>
>
>
>
> 
> 网易163邮箱--专业电子邮局,2000M超大空间,支持超大附件,全国唯一24小时客户服务。
> 欢迎您来注册使用。网易126邮箱:http://www.126.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Dynamic resizing of flash object throught JS calls

2005-11-11 Thread Janis Radins
Hey folks!

I have here flash page which is ment to change it's size dynamcally
through JS calls but somehow I cannt manage to get it bug free on
anything else than FireFox.
The idea is that I have flash movie with:
[AS]
Stage.scaleMode = "noScale";
Stage.align = "TL";
[/AS]
initaly set to width and height 100% of page, when flash content
expands I call fscommand that gets throught to JS located in page that
does the very simple thing like:
[JS]
var element = document.all ? document.all[objectID] : document[objectID];
if(document.body.clientHeight > __height){
element.height = document.body.clientHeight;
} else {
element.height = __height;
}
[/JS]

Movie handles Stage.onResize events and keep itself centered horizontally.
As i allready mentioned everything is beautifull in FF while IE shows
strange behavior, flash object is resized only in case __height (which
is fscommand param for ner height) is larger than current size of
flash object, so calls that should make flash object smaller doesnt
seem to be applyed. Even thought IE do receive new values, as I
tested.

Just tested that in Opera 9 and it gets even worse somehow Opera
thinks that flash has made infinte loop, think that might be something
with way Opera flash plugin deals with flash loadMovie calls.

One thing I thought about as possible cause for those errors might be
flash javascript communication kit, which i am using togeather with
fscommand to have flash <> js communications though it would be kindof
strange if it would affect sutch things.


At this point I'm with no clue how to make it right, any help will be
appreciated.

Regards
Jānis
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders