[Flashcoders] Flash Print Function and Callbacks ?

2006-11-01 Thread Stephen Ford
Does anyone know if Flash's built in Print command has anyway of providing a 
callback once a print job has been executed ??
 
I need to set a clips visibility to false while the printing takes place, then 
set it back to visible once the print executes ??
 
Is this possible ??
 
Thanks,
Stephen.
 
 ___
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 Reomoting Service not connecting

2006-11-01 Thread Ray Chuan

Hi,
- how are you opening the SWF? Is your swf loading any swfs/files?
This won't work (without work):

http://domain.com/
flash.HTML

http://domain.com/assets/
flash.SWF

On 11/1/06, Liam Mincy <[EMAIL PROTECTED]> wrote:

This is a new one for me...

I have a Flash application that uses Flash Remoting to pass along test 
information.
I should first mention that I am using the same Service on a live server in both
testing on local machine and when I deploy to the web.

The thing is that when I test all of this from my local machine it all wowrks 
well.
The test information is passed along the Service, all the data appears in the
database, and I get feedback inside of Flash. It is only when I upload Flash to 
the
server that I have no connection at all to the service. The Flash and the 
Service
both sit on the same domain when uploaded.

Here is what i have tried:
  - Made sure that the link to the Service is correct
  - Installed a crossdomain.xml at the root of the domain with very generous
settings
  - Tried dumping result and fault into onscreen text field but since there is 
some
communication/security issue nothing comes back

What I am seeing is that the Flash essentially just runs and runs with no 
connection
or indication that it is getting a fault back. It just keeps trying and nothing 
is
coming back.

What has me stumped is why this would happen.

Does anyone have any experience with this scenario using Services?

Thanks,
liam m-




Low, Low, Low Rates! Check out Yahoo! Messenger's cheap PC-to-Phone call rates
(http://voice.yahoo.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




--
Cheers,
Ray Chuan
___
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] FLVPlayback class documentation

2006-11-01 Thread Reuben Stanton

Lucky - I happened to have it open at the time :)

On 02/11/2006, at 12:41 PM, Dave Wood wrote:


F1 - Help

- Components Language Reference > FLVPlayback Component >  
FLVPlayback Class



Thank you thank you:)

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


RE: [Flashcoders] Scaling problem while loadingexternaljpeg'sin theMovie Clip

2006-11-01 Thread Steven Sacks | BLITZ
I did not write out the entire solution because I was focusing on the
specific functionality.

When you use a holder clip, you're going to be creating it and removing
it on the fly.

this.holder.removeMovieClip();
this.createEmptyMovieClip("holder", 10);
this.holder.loadMovie("some.jpg");

Easy peasy.
___
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] FLVPlayback class documentation

2006-11-01 Thread Dave Wood

F1 - Help

- Components Language Reference > FLVPlayback Component >  
FLVPlayback Class



Thank you thank you:)

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


RE: [Flashcoders] Scaling problem while loading externaljpeg'sin theMovie Clip

2006-11-01 Thread Marc Hoffman
Perhaps I'm wrong, but I thought I did a valid test to see what 
_width was returned right after a holder clip, which already had an 
image loaded, was instructed to load another image. The width that 
was returned was for the prior image, even though the loadMovie 
command for a new image had already been issued:


holder.loadMovie("image01.jpg");
// then after a few seconds, call this:
holder.loadMovie("image02.jpg");
trace (holder._width) // returns the width of image01.jpg, NOT zero 
or the width of image02.jpg


Thus I don't believe that this code, which you proposed, will detect 
if the new image has loaded:


this.holder.loadMovie("some.jpg");
this.onEnterFrame = function() {
if (this.holder._width > 4) {
resizeHolder();
delete this.onEnterFrame;
}
};

That's why I think onLoadInit is required. How else would you know 
when to rescale the new image?


By the way, I do like your code to determine the scale factor and do 
the scaling. Nice and efficient.


-Marc

At 04:44 PM 11/1/2006, you wrote:


You don't NEED to use MovieClipLoader and onLoadInit, but feel free to
if you WANT.  :)



___
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] FLVPlayback class documentation

2006-11-01 Thread Reuben Stanton

F1 - Help

- Components Language Reference > FLVPlayback Component > FLVPlayback  
Class


Reuben

On 02/11/2006, at 12:02 PM, Dave Wood wrote:

Can someone tell me where to find the full documentation for the  
FLVPlayback class?


Thanks

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] FLVPlayback class documentation

2006-11-01 Thread Dave Wood
Can someone tell me where to find the full documentation for the  
FLVPlayback class?


Thanks

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


RE: [Flashcoders] Scaling problem while loading externaljpeg'sin theMovie Clip

2006-11-01 Thread Steven Sacks | BLITZ
You don't NEED to use MovieClipLoader and onLoadInit, but feel free to
if you WANT.  :)
___
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] playing audio filetypes other than mp3?

2006-11-01 Thread Austin Kottke
Hey guys,

   check out: http://www.flashcodersbrighton.org/wordpress/?p=9

PCM playing in actionscript 3.

- Austin

  

-- Original Message ---
From: "Mike Keesey" <[EMAIL PROTECTED]> 
To: "'Flashcoders mailing list'"  
Sent: Wed, 1 Nov 2006 16:16:11 -0800 
Subject: RE: [Flashcoders] playing audio filetypes other than mp3?

> You can use ByteArray in Flash 9 to load any kind of binary data. While 
> you could use this to create image-rendering plugins using BitmapData 
> (or even video-rendering, although I question performance), there's no 
> corresponding "SoundData" class, is there? So I think, at least as far 
> as sound goes, you're kind of stuck with MP3. 
> ¯ 
> Mike Keesey 
> 
> > -Original Message- 
> > From: [EMAIL PROTECTED] [mailto:flashcoders- 
> > [EMAIL PROTECTED] On Behalf Of Josh Santangelo 
> > Sent: Wednesday, November 01, 2006 3:54 PM 
> > To: flashcoders@chattyfig.figleaf.com 
> > Subject: [Flashcoders] playing audio filetypes other than mp3? 
> > 
> > I'm wondering if anyone's managed to play filetypes other than MP3 in 
> > Flash. Obviously you can't just load them up, but I'm envisioning 
> > loading them into a hidden instance of the QuickTime plugin, and then 
> > using JavaScript to bridge the two so that you can control the 
> playback 
> > from Flash. 
> > 
> > Anyone seen/done anything similar? 
> > 
> > -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 
--- End of Original Message ---
 
___
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] Scaling problem while loading externaljpeg's in theMovie Clip

2006-11-01 Thread Marc Hoffman
You also need to use MovieClipLoader and onLoadInit before measuring 
the size of the clip. Just testing it for _width>4 (per your earlier 
example) will return an immediate positive if there was an image 
already loaded prior to calling loadMovie.

-Marc

At 11:50 AM 11/1/2006, you wrote:


It addresses half the problem.   I missed the other requirement.

It's pretty easy to accomplish that, though.

You find the largest dimension delta and determine its percentage delta
and then adjust based on that.

var perc:Number;
if (actualW - targetW > actualH - targetH) {
perc = targetW / actualW;
} else {
perc = targetH / actualH;
}
clip._xscale = clip._yscale = perc * 100;



___
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] playing audio filetypes other than mp3?

2006-11-01 Thread Mike Keesey
You can use ByteArray in Flash 9 to load any kind of binary data. While
you could use this to create image-rendering plugins using BitmapData
(or even video-rendering, although I question performance), there's no
corresponding "SoundData" class, is there? So I think, at least as far
as sound goes, you're kind of stuck with MP3.
―
Mike Keesey

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Josh Santangelo
> Sent: Wednesday, November 01, 2006 3:54 PM
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] playing audio filetypes other than mp3?
> 
> I'm wondering if anyone's managed to play filetypes other than MP3 in
> Flash. Obviously you can't just load them up, but I'm envisioning
> loading them into a hidden instance of the QuickTime plugin, and then
> using JavaScript to bridge the two so that you can control the
playback
> from Flash.
> 
> Anyone seen/done anything similar?
> 
> -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] playing audio filetypes other than mp3?

2006-11-01 Thread Josh Santangelo
I'm wondering if anyone's managed to play filetypes other than MP3 in 
Flash. Obviously you can't just load them up, but I'm envisioning 
loading them into a hidden instance of the QuickTime plugin, and then 
using JavaScript to bridge the two so that you can control the playback 
from Flash.


Anyone seen/done anything similar?

-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


RE: [Flashcoders] AS 3 -> event args

2006-11-01 Thread Mike Keesey
Yeah, the simplest way is to create an index field on the buttons
themselves, and then access that in the listener with
event.target.index.

―
Mike Keesey

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of dnk
> Sent: Tuesday, October 31, 2006 6:59 PM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] AS 3 -> event args
> 
> Mike Chambers wrote:
> > 2 other options:
> >
> > Just have one event handler per button.
> >
> > or use an anonymous function
> >
> > myButton.addEventListener(MouseEvent.CLICK,
> function(){doSomething(1);});
> >
> > private function doSomething(index:int):void
> > {
> > trace(index);
> > }
> >
> > (I havent tested the code above, so there might be some syntax
errors).
> >
> > Personally, I would always have one event listener per button as I
> > feel it make it a little easier to read the code.
> >
> > mike chambers
> >
> > [EMAIL PROTECTED]
> Hey - the anon function seems to be the way that resembles what I used
> to do. The only reason I do not have a unique one per button is say
for
> example I have 25 buttons and I loop through to create the instances
and
> the event listeners - then have a function that performs the same
> actions (with a different index number). Then I only have to write out
1
> function for the 25 button instances. Unless there is a way to do it
> with a loop, I would then have to write out 25 unique functions to
> handle the button events - correct? That is if I was going to do it
your
> preferred way with unique button functions
> 
> Dustin
> ___
> 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] Maths: scale one mc, whilst keeping an mc within it the same size

2006-11-01 Thread Jon Bennett

yeah my example was downscaling, while you are upscaling:).
var intMapScale:Number = mcMap._width / 744; // width = 2710 // 364% (3,64)
so btnScale is 100/intMapScale.

Imagine mcMap._width had been 1000 and original was 500, you'd have 1000/500
= 200%
so btnScale 100/200% is 50.

Note about the percentages, they make for easy errors. Multiplying/dividing
by one hundred too many, tends to give awesome, though wrong, results:).


thanks Hans, have totally sussed it now!

wicked.

jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
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] Maths: scale one mc, whilst keeping an mc within it the same size

2006-11-01 Thread Hans Wichman

Hi,
yeah my example was downscaling, while you are upscaling:).
var intMapScale:Number = mcMap._width / 744; // width = 2710 // 364% (3,64)
so btnScale is 100/intMapScale.

Imagine mcMap._width had been 1000 and original was 500, you'd have 1000/500
= 200%
so btnScale 100/200% is 50.

Note about the percentages, they make for easy errors. Multiplying/dividing
by one hundred too many, tends to give awesome, though wrong, results:).

greetz
JC




On 11/1/06, Jon Bennett <[EMAIL PROTECTED]> wrote:


> > So in general to keep a child scaled at 100% independents of its
parents,
> > you need to divide 100% by the result of multiplying all its parent's
scale
> > factors.
> >
> > Eg, to keep e at 100%, you'd scale e to : 1/ (
> > a.scale*b.scale*c.scale*d.scale/100^4)
>
> so My original MC is 744 px wide, and I scale it so it's width is
> 2710, which is a scale of 364%, which means I need to scale my links
> to, umm...

I've tried:

var intMapScale:Number = mcMap._width / 744; // width = 2710
var btnScale:Number = intMapScale / 100;

that can;t be right though, as it gives me a tiny number, any pointers
as to where I've gone wrong?

Thanks,

jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
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] Maths: scale one mc, whilst keeping an mc within it the same size

2006-11-01 Thread Jon Bennett

> So in general to keep a child scaled at 100% independents of its parents,
> you need to divide 100% by the result of multiplying all its parent's scale
> factors.
>
> Eg, to keep e at 100%, you'd scale e to : 1/ (
> a.scale*b.scale*c.scale*d.scale/100^4)

so My original MC is 744 px wide, and I scale it so it's width is
2710, which is a scale of 364%, which means I need to scale my links
to, umm...


I've tried:

var intMapScale:Number = mcMap._width / 744; // width = 2710
var btnScale:Number = intMapScale / 100;

that can;t be right though, as it gives me a tiny number, any pointers
as to where I've gone wrong?

Thanks,

jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
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:Coding : from Procedural to Class based code?

2006-11-01 Thread Mike Keesey
Well, as an initial stab, you could do something like this:

package radialnav

class RadialManager extends MovieClip
center:Point [read-only]
createItem(symbolName:String,
tweenSettings:TweenSettings):RadialItem
tweenIn():Void
tweenOut():Void

class RadialItem extends MovieClip
manager:RadialManager [read/write]
tweenSetting:TweenSettings [read-only]
tweenIn():Void
tweenOut():Void

class TweenSettings extends Object
durationIn:Number [read/write]
durationOut:Number [read/write]
easeType:String [read/write]
nodes:Array [read/write]
radius:Number [read/write]
copy(source:TweenSettings):Void

―
Mike Keesey

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> Sent: Wednesday, November 01, 2006 12:10 PM
> To: flashcoders@chattyfig.figleaf.com
> Subject: [Flashcoders] Q:Coding : from Procedural to Class based code?
> 
> Hi
> I have a project that I'd like to convert to class based code but
would
> appreciate some advice on the best approach.
> 
> Basically I have a routine which attaches a number of library items to
the
> stage and, on either a rollover or press event, tweens these
items(images)
> out in a radial fashion.
> They optionally return to their initial (overlapping) state.
> 
> 
> Pretty simple stuff.
> All of the tweening properties (number nodes, circle radius, duration
out,
> duration in, ease type, etc)  are predefined and passed in as a single
> object.
> 
> 
> My question is:
> What is the best way to convert this into a Class?
> 
> 
> Should I simply have a 'create' method in my class that takes the
place of
> my original method?
> When attaching large numbers of library items, isn't there a 'speed
hit'?
> Should the tweening objects(basically containers for tween properties)
> have their own class as well?
> 
> 
> What's should the getters/setters return/set?
> 
> 
> Any feedback greatly appreciated!
> 
> 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


Re: [Flashcoders] Useful Ascii codes:

2006-11-01 Thread eric dolecki

Oh man... i wish i had seen that... thanks for the link!

On 11/1/06, Michael Stuhr <[EMAIL PROTECTED]> wrote:


eric dolecki schrieb:
> I never wanna do this again, and you probably don't either, so here are
some
> constants to make using ascii values of character codes more legible...
>
> - e.
>
> 
> // Constants (to make logic more readible)
> var KEY_EXCLAMATION:Number = 33;
> var KEY_DOUBLE_QUOTE:Number = 34;
> var KEY_POUND:Number = 35;
> var KEY_DOLLAR:Number = 36;
> var KEY_PERCENTAGE:Number = 37;
> var KEY_AND:Number = 38;
> var KEY_SINGLE_QUOTE:Number = 39;
> var KEY_LEFT_PAREN:Number = 40;
> var KEY_RIGHT_PAREN:Number = 41;
> var KEY_STAR:Number = 42;
> var KEY_PLUS:Number = 43;
> var KEY_COMMA:Number = 44;
> var KEY_MINUS:Number = 45;
> var KEY_PERIOD:Number = 46;
> var KEY_SLASH:Number = 47;
>
> var KEY_0:Number = 48;
> var KEY_1:Number = 49;
> var KEY_2:Number = 50;
> var KEY_3:Number = 51;
> var KEY_4:Number = 52;
> var KEY_5:Number = 53;
> var KEY_6:Number = 54;
> var KEY_7:Number = 55;
> var KEY_8:Number = 56;
> var KEY_9:Number = 57;
>
> var KEY_COLON:Number = 58;
> var KEY_SEMI_COLON:Number = 59;
> var KEY_LESS_THAN:Number = 60;
> var KEY_EQUAL:Number = 61;
> var KEY_GREATER_THAN:Number = 62;
> var KEY_QUESTION_MARK:Number = 63;
> var KEY_AT_SYMBOL:Number = 64;
>
> var KEY_A:Number = 65;var KEY_a:Number = 97;
> var KEY_B:Number = 66;var KEY_b:Number = 98;
> var KEY_C:Number = 67;var KEY_c:Number = 99;
> var KEY_D:Number = 68;var KEY_d:Number = 100;
> var KEY_E:Number = 69;var KEY_e:Number = 101;
> var KEY_F:Number = 70;var KEY_f:Number = 102;
> var KEY_G:Number = 71;var KEY_g:Number = 103;
> var KEY_H:Number = 72;var KEY_h:Number = 104;
> var KEY_I:Number = 73;var KEY_i:Number = 105;
> var KEY_J:Number = 74;var KEY_j:Number = 106;
> var KEY_K:Number = 75;var KEY_k:Number = 107;
> var KEY_L:Number = 76;var KEY_l:Number = 108;
> var KEY_M:Number = 77;var KEY_m:Number = 109;
> var KEY_N:Number = 78;var KEY_n:Number = 110;
> var KEY_O:Number = 79;var KEY_o:Number = 111;
> var KEY_P:Number = 80;var KEY_p:Number = 112;
> var KEY_Q:Number = 81;var KEY_q:Number = 113;
> var KEY_R:Number = 82;var KEY_r:Number = 114;
> var KEY_S:Number = 83;var KEY_s:Number = 115;
> var KEY_T:Number = 84;var KEY_t:Number = 116;
> var KEY_U:Number = 85;var KEY_u:Number = 117;
> var KEY_V:Number = 86; var KEY_v:Number = 118;
> var KEY_W:Number = 87;var KEY_w:Number = 119;
> var KEY_X:Number = 88;var KEY_x:Number = 120;
> var KEY_Y:Number = 89;var KEY_y:Number = 121;
> var KEY_Z:Number = 90;var KEY_z:Number = 122;
>
> var KEY_LEFT_BRACKET:Number = 91;
> var KEY_BACKSLASH:Number = 92;
> var KEY_RIGHT_BRACKET:Number = 93;
> var KEY_CARRET:Number = 94;
> var KEY_UNDERSCORE:Number = 95;
> var KEY_APOS:Number = 96;
> 
> ___
> 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
>
ahh, reminds me of:
http://proto.layer51.com/d.aspx?f=500

micha
___
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] Maths: scale one mc, whilst keeping an mc within it the same size

2006-11-01 Thread Jon Bennett

So in general to keep a child scaled at 100% independents of its parents,
you need to divide 100% by the result of multiplying all its parent's scale
factors.

Eg, to keep e at 100%, you'd scale e to : 1/ (
a.scale*b.scale*c.scale*d.scale/100^4)


so My original MC is 744 px wide, and I scale it so it's width is
2710, which is a scale of 364%, which means I need to scale my links
to, umm...

also long day, brain's super fuzzy, sorry for being a dullard!

Thanks!

jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
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] Maths: scale one mc, whilst keeping an mc within it the same size

2006-11-01 Thread Hans Wichman

Hi Jon,
imagine you have a lot of nested clips, structure a-b-c-d-e for example (a
is parent of b, b is parent of c etc).
Imagine a is scaled 50% and the rest hundred. Then you can be sure, b/c/d/e
will be 50% as well.
If b is scaled 50% as well, c/d/e will be at 25% (a's 50 times b's 50).
Damn we could do this all night long... anywayz to make a long story even
longer, if you wanted c/d/e etc still to show up at a hundred percent, you
need to turn 25% into a 100%, in other words, you need to scale them up 4
times (400%).
This is ofcourse 100/25.

So in general to keep a child scaled at 100% independents of its parents,
you need to divide 100% by the result of multiplying all its parent's scale
factors.

Eg, to keep e at 100%, you'd scale e to : 1/ (
a.scale*b.scale*c.scale*d.scale/100^4)

Sorry for the fuzzy explanation.. its been a long day :)

greetz
JC




On 11/1/06, Jon Bennett <[EMAIL PROTECTED]> wrote:


hi,

I'm scaling a large-ish MovieClip to specific width/height
combinations. Within this MovieClip I have numerous link MCs, which I
want to keep at 100%, regardless of their containing MovieClip's
width/height, and the maths involved has me a little stumped!

some example code:

// attach map symbol from the stage (_width: 744 _height: 445)
var mcMap:MovieClip = this.attachMovie ('map', 'map', 20);

// attach link within mcMap (_width: 140 _height: 21)
var mcLink:MovieClip = mcMap.attachMovie ('link', 'link'+1, 200);

// example function
_root.onPress = function ()
{
  mcMap._width = 2710;
  mcMap._height = 1620;

  mcLink._xscale = mcLink._yscale = ARRGGHH!
}

I need a formular to obtain the scale to set to the the link MC so it
stays it's original size, but I'm stumped as to what it is, anyone got
any ideas?

Thanks!

Jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
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:Coding : from Procedural to Class based code?

2006-11-01 Thread Mark Lapasa
The primary motivation for 'converting to class based code' should be to
establish a seperation of concerns. If your one routine does many things or
better said 'has many responsibilities', then you need to identify those
areas that do very distinct things and decouple them from the routine.

Over time as you break it up, not only will get closer to establishing
low-coupling, you will soon have each of your objects/classes be very
efficient in their respective responsibilities (this is called
'high-cohesion').

A well designed object oriented design will always be slower than tightly
coupled, low-cohesive procecdural design. However the trade off is an OO
design will promote change, code-reuse, easier to maintain because of
organization rather inhibit it.

One guideline to follow (and these are all guidelines) which would answer
your getter/setter question is to strive to have your objects designed in
such a manner that it is responsibile for changing it's own state. The
opposite of this would be to have other objects managing the state of the
object in some cases it is unavoidable. The reason why objects should be
responsibile for changing their own state is to prevent high coupling
between objects. The higher the coupling an object has, the more complexity
there is to it, the more spagahetti code it may become in the future.

Best of luck


-mL
http://knowledge.lapasa.net

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, November 01, 2006 3:10 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Q:Coding : from Procedural to Class based code?


Hi
I have a project that I'd like to convert to class based code but would
appreciate some advice on the best approach.

Basically I have a routine which attaches a number of library items to the
stage and, on either a rollover or press event, tweens these items(images)
out in a radial fashion.
They optionally return to their initial (overlapping) state.


Pretty simple stuff.
All of the tweening properties (number nodes, circle radius, duration out,
duration in, ease type, etc)  are predefined and passed in as a single
object.


My question is:
What is the best way to convert this into a Class?


Should I simply have a 'create' method in my class that takes the place of
my original method?
When attaching large numbers of library items, isn't there a 'speed hit'?
Should the tweening objects(basically containers for tween properties) have
their own class as well?


What's should the getters/setters return/set?


Any feedback greatly appreciated!

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


Re: [Flashcoders] Useful Ascii codes:

2006-11-01 Thread Michael Stuhr

eric dolecki schrieb:

I never wanna do this again, and you probably don't either, so here are some
constants to make using ascii values of character codes more legible...

- e.


// Constants (to make logic more readible)
var KEY_EXCLAMATION:Number = 33;
var KEY_DOUBLE_QUOTE:Number = 34;
var KEY_POUND:Number = 35;
var KEY_DOLLAR:Number = 36;
var KEY_PERCENTAGE:Number = 37;
var KEY_AND:Number = 38;
var KEY_SINGLE_QUOTE:Number = 39;
var KEY_LEFT_PAREN:Number = 40;
var KEY_RIGHT_PAREN:Number = 41;
var KEY_STAR:Number = 42;
var KEY_PLUS:Number = 43;
var KEY_COMMA:Number = 44;
var KEY_MINUS:Number = 45;
var KEY_PERIOD:Number = 46;
var KEY_SLASH:Number = 47;

var KEY_0:Number = 48;
var KEY_1:Number = 49;
var KEY_2:Number = 50;
var KEY_3:Number = 51;
var KEY_4:Number = 52;
var KEY_5:Number = 53;
var KEY_6:Number = 54;
var KEY_7:Number = 55;
var KEY_8:Number = 56;
var KEY_9:Number = 57;

var KEY_COLON:Number = 58;
var KEY_SEMI_COLON:Number = 59;
var KEY_LESS_THAN:Number = 60;
var KEY_EQUAL:Number = 61;
var KEY_GREATER_THAN:Number = 62;
var KEY_QUESTION_MARK:Number = 63;
var KEY_AT_SYMBOL:Number = 64;

var KEY_A:Number = 65;var KEY_a:Number = 97;
var KEY_B:Number = 66;var KEY_b:Number = 98;
var KEY_C:Number = 67;var KEY_c:Number = 99;
var KEY_D:Number = 68;var KEY_d:Number = 100;
var KEY_E:Number = 69;var KEY_e:Number = 101;
var KEY_F:Number = 70;var KEY_f:Number = 102;
var KEY_G:Number = 71;var KEY_g:Number = 103;
var KEY_H:Number = 72;var KEY_h:Number = 104;
var KEY_I:Number = 73;var KEY_i:Number = 105;
var KEY_J:Number = 74;var KEY_j:Number = 106;
var KEY_K:Number = 75;var KEY_k:Number = 107;
var KEY_L:Number = 76;var KEY_l:Number = 108;
var KEY_M:Number = 77;var KEY_m:Number = 109;
var KEY_N:Number = 78;var KEY_n:Number = 110;
var KEY_O:Number = 79;var KEY_o:Number = 111;
var KEY_P:Number = 80;var KEY_p:Number = 112;
var KEY_Q:Number = 81;var KEY_q:Number = 113;
var KEY_R:Number = 82;var KEY_r:Number = 114;
var KEY_S:Number = 83;var KEY_s:Number = 115;
var KEY_T:Number = 84;var KEY_t:Number = 116;
var KEY_U:Number = 85;var KEY_u:Number = 117;
var KEY_V:Number = 86; var KEY_v:Number = 118;
var KEY_W:Number = 87;var KEY_w:Number = 119;
var KEY_X:Number = 88;var KEY_x:Number = 120;
var KEY_Y:Number = 89;var KEY_y:Number = 121;
var KEY_Z:Number = 90;var KEY_z:Number = 122;

var KEY_LEFT_BRACKET:Number = 91;
var KEY_BACKSLASH:Number = 92;
var KEY_RIGHT_BRACKET:Number = 93;
var KEY_CARRET:Number = 94;
var KEY_UNDERSCORE:Number = 95;
var KEY_APOS:Number = 96;

___
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


ahh, reminds me of:
http://proto.layer51.com/d.aspx?f=500

micha
___
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] Maths: scale one mc, whilst keeping an mc within it the same size

2006-11-01 Thread Jon Bennett

hi,

I'm scaling a large-ish MovieClip to specific width/height
combinations. Within this MovieClip I have numerous link MCs, which I
want to keep at 100%, regardless of their containing MovieClip's
width/height, and the maths involved has me a little stumped!

some example code:

// attach map symbol from the stage (_width: 744 _height: 445)
var mcMap:MovieClip = this.attachMovie ('map', 'map', 20);

// attach link within mcMap (_width: 140 _height: 21)
var mcLink:MovieClip = mcMap.attachMovie ('link', 'link'+1, 200);

// example function
_root.onPress = function ()
{
  mcMap._width = 2710;
  mcMap._height = 1620;

  mcLink._xscale = mcLink._yscale = ARRGGHH!
}

I need a formular to obtain the scale to set to the the link MC so it
stays it's original size, but I'm stumped as to what it is, anyone got
any ideas?

Thanks!

Jon

--


jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
___
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] Useful Ascii codes:

2006-11-01 Thread eric dolecki

I never wanna do this again, and you probably don't either, so here are some
constants to make using ascii values of character codes more legible...

- e.


// Constants (to make logic more readible)
var KEY_EXCLAMATION:Number = 33;
var KEY_DOUBLE_QUOTE:Number = 34;
var KEY_POUND:Number = 35;
var KEY_DOLLAR:Number = 36;
var KEY_PERCENTAGE:Number = 37;
var KEY_AND:Number = 38;
var KEY_SINGLE_QUOTE:Number = 39;
var KEY_LEFT_PAREN:Number = 40;
var KEY_RIGHT_PAREN:Number = 41;
var KEY_STAR:Number = 42;
var KEY_PLUS:Number = 43;
var KEY_COMMA:Number = 44;
var KEY_MINUS:Number = 45;
var KEY_PERIOD:Number = 46;
var KEY_SLASH:Number = 47;

var KEY_0:Number = 48;
var KEY_1:Number = 49;
var KEY_2:Number = 50;
var KEY_3:Number = 51;
var KEY_4:Number = 52;
var KEY_5:Number = 53;
var KEY_6:Number = 54;
var KEY_7:Number = 55;
var KEY_8:Number = 56;
var KEY_9:Number = 57;

var KEY_COLON:Number = 58;
var KEY_SEMI_COLON:Number = 59;
var KEY_LESS_THAN:Number = 60;
var KEY_EQUAL:Number = 61;
var KEY_GREATER_THAN:Number = 62;
var KEY_QUESTION_MARK:Number = 63;
var KEY_AT_SYMBOL:Number = 64;

var KEY_A:Number = 65;var KEY_a:Number = 97;
var KEY_B:Number = 66;var KEY_b:Number = 98;
var KEY_C:Number = 67;var KEY_c:Number = 99;
var KEY_D:Number = 68;var KEY_d:Number = 100;
var KEY_E:Number = 69;var KEY_e:Number = 101;
var KEY_F:Number = 70;var KEY_f:Number = 102;
var KEY_G:Number = 71;var KEY_g:Number = 103;
var KEY_H:Number = 72;var KEY_h:Number = 104;
var KEY_I:Number = 73;var KEY_i:Number = 105;
var KEY_J:Number = 74;var KEY_j:Number = 106;
var KEY_K:Number = 75;var KEY_k:Number = 107;
var KEY_L:Number = 76;var KEY_l:Number = 108;
var KEY_M:Number = 77;var KEY_m:Number = 109;
var KEY_N:Number = 78;var KEY_n:Number = 110;
var KEY_O:Number = 79;var KEY_o:Number = 111;
var KEY_P:Number = 80;var KEY_p:Number = 112;
var KEY_Q:Number = 81;var KEY_q:Number = 113;
var KEY_R:Number = 82;var KEY_r:Number = 114;
var KEY_S:Number = 83;var KEY_s:Number = 115;
var KEY_T:Number = 84;var KEY_t:Number = 116;
var KEY_U:Number = 85;var KEY_u:Number = 117;
var KEY_V:Number = 86; var KEY_v:Number = 118;
var KEY_W:Number = 87;var KEY_w:Number = 119;
var KEY_X:Number = 88;var KEY_x:Number = 120;
var KEY_Y:Number = 89;var KEY_y:Number = 121;
var KEY_Z:Number = 90;var KEY_z:Number = 122;

var KEY_LEFT_BRACKET:Number = 91;
var KEY_BACKSLASH:Number = 92;
var KEY_RIGHT_BRACKET:Number = 93;
var KEY_CARRET:Number = 94;
var KEY_UNDERSCORE:Number = 95;
var KEY_APOS:Number = 96;

___
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] Q:Coding : from Procedural to Class based code?

2006-11-01 Thread moveup
Hi
I have a project that I'd like to convert to class based code but would 
appreciate some advice on the best approach.

Basically I have a routine which attaches a number of library items to the 
stage and, on either a rollover or press event, tweens these items(images) out 
in a radial fashion.
They optionally return to their initial (overlapping) state.


Pretty simple stuff.
All of the tweening properties (number nodes, circle radius, duration out, 
duration in, ease type, etc)  are predefined and passed in as a single object.


My question is:
What is the best way to convert this into a Class?


Should I simply have a 'create' method in my class that takes the place of my 
original method?
When attaching large numbers of library items, isn't there a 'speed hit'?
Should the tweening objects(basically containers for tween properties) have 
their own class as well?


What's should the getters/setters return/set?


Any feedback greatly appreciated!

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


RE: [Flashcoders] Scaling problem while loading externaljpeg's in theMovie Clip

2006-11-01 Thread Steven Sacks | BLITZ
It addresses half the problem.   I missed the other requirement.

It's pretty easy to accomplish that, though.

You find the largest dimension delta and determine its percentage delta
and then adjust based on that.

var perc:Number;
if (actualW - targetW > actualH - targetH) {
perc = targetW / actualW;
} else {
perc = targetH / actualH;
}
clip._xscale = clip._yscale = perc * 100;


___
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] Scaling problem while loading external jpeg's in theMovie Clip

2006-11-01 Thread Marc Hoffman
doesn't address the problem -- resizing the image to a fixed ratio 
that may not be the ratio of the loaded image, so it becomes distorted.


-Marc Hoffman

At 10:43 AM 11/1/2006, you wrote:


this.holder.loadMovie("some.jpg");
this.onEnterFrame = function() {
if (this.holder._width > 4) {
resizeHolder();
delete this.onEnterFrame;
}
};
function resizeHolder() {
holder._width = w;
holder._height = h;
}
__



___
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:Justifying Flash 8 Content

2006-11-01 Thread Steven Sacks | BLITZ
> You can still make banner ads and cartoons with Flash 4.
> That's what Flash is used for right?

WINK!  ;)  *SARCASM*  J/K

___
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:Justifying Flash 8 Content

2006-11-01 Thread Steven Sacks | BLITZ
You can still make banner ads and cartoons with Flash 4.  
That's what Flash is used for right?

___
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 get a string in a date object ?

2006-11-01 Thread Steven Sacks | BLITZ
The compiler only catches strict typing issues at compile-time, not
run-time.  It doesn't know what this.jaar is (because it's being loaded
in at run-time) so it doesn't catch that you're loading a string into
it.  Since AS2 isn't actually strict (just for the compiler's sake), you
can put strings into variables you type cast as Number.  You need to
type cast the strings as numbers when they load in.

var jarr:Number = Number(this.jaar);

etc.

HTH,
Steven

___
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] Scaling problem while loading external jpeg's in theMovie Clip

2006-11-01 Thread Steven Sacks | BLITZ
this.holder.loadMovie("some.jpg");
this.onEnterFrame = function() {
if (this.holder._width > 4) {
resizeHolder();
delete this.onEnterFrame;
}
};
function resizeHolder() {
holder._width = w;
holder._height = h;
}
___
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] Create zip file through flash

2006-11-01 Thread Mike Keesey
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of Claus Wahlers
> Sent: Wednesday, November 01, 2006 6:49 AM
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] Create zip file through flash
> 
> 
> > He's talking about zipping up files on the local filesystem.  Flash
9
> can do that?  Flash 9 has native filesystem access which would allow
> compressing files on your hard drive?
> 
> Flash Player 9 can zip up files pretty easily, but of course can't
> access the local filesystem. Sorry for the noise.

Don't apologize--I found the unzip class interesting!
―
Mike Keesey

___
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:Justifying Flash 8 Content

2006-11-01 Thread Perdue, Blake
The major reason we are moving to Flash 8 is the enhanced text rendering. The 
custom anti-aliasing makes text much easier to read -- a major problem with 
many fonts in Flash 6,7.



From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED]
Sent: Tue 10/31/2006 3:43 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Q:Justifying Flash 8 Content




I'm working on a large commercial site that uses FP7 based content.

What are some of the arguments and/or approaches that Flash developers have and 
are using to push the transition to FP8 content?

The bottom line is really about providing the best user experience possible 

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] Keys...

2006-11-01 Thread eric dolecki

I have a simulation where I am communicating to hardware - no problem.

I need to know press & holds from the hardware, so I thought using something
like:

"#A" might mean press & hold
"A" would be a release

However what is the best approach to capture 2 keys in an argument?

Should I use a different combination?
___
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] Hi all

2006-11-01 Thread Chris Benjaminsen

Hi all

Some of you people might know me from the OSFlash mailing list. But so 
fare I have not participated on this email list.
Anyway I just wanted to tell the world that I released my flash 8 webcam 
barcode scanner as a 100% free component.


A bit more boring info + a download link can be found here:
http://parentnode.org/uncategorized/free-webcam-based-barcode-scanner-component/

Regards,
Chris Benjaminsen
___
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:Justifying Flash 8 Content

2006-11-01 Thread Andrew Kirkpatrick

> > What about accessability/use-ability/SEO-friendly aspects?

We just released skins for Flash 8 that support captioning and that are
accessible to disabled users.  I've got them on our accessibility blog
for now, but will move them to the Flash exchange soon.
http://blogs.adobe.com/accessibility

AWK
___
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] AS 3 - lockroot

2006-11-01 Thread Dave Geurts
Does anybody know anything about implementing something similar as lockroot for 
as3.  The only thing I have found in my searches is in the migration guide it 
says lockroot has been removed.

   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] (no subject)

2006-11-01 Thread baji ajmal
hi
i am baji
i want how criating world clock?

 
-
Want to start your own business? Learn how on  Yahoo! Small Business. 
___
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] Flash MX Support for Localization

2006-11-01 Thread Suhas Kotkar
Hi All,

 

Can anyone let me know if Flash MX supports the following languages
using the XML structure? The purpose is to achieve the localization. 

 

Japanese, 

Thai, 

Korean and 

Mandarin (Chinese) 

 

 

Regards,

Suhas

___
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:Justifying Flash 8 Content

2006-11-01 Thread Andy Herrman

also the fact most people have it now is another.


I'd debate this.  It really depends on what your audience is.
Individual home users probably have newer versions, or can easily
upgrade them.  Corporate users are a different matter though.

We're using Flash for part of our product where I work and we've
collected stats on who's using what version of Flash, to try and
figure out if we can change versions we develop for.  About 1/3 of
them still have 7 installed, and that's a fairly significant number.
Most of our clients are other companies, many of which have fairly
strict IT departments which don't like to upgrade, so there's a good
chance that if we switched to 8 we could break things for a lot of
people.

I'd say that what you should really do is figure out what your
audience is and then try and figure out what version they're likely to
have, and how difficult it would be for them to upgrade if they don't
have the version you're trying to support.  That goes not just for
Flash but any other software you might depend on (Java, .Net, etc).

  -Andy

On 10/31/06, Merrill, Jason <[EMAIL PROTECTED]> wrote:

Video capabilities can be a big seller - also the fact most people have
it now is another.  The much enhanced security of the 8 player could be
your Ace of Spades though.  Might be hard to convince them that the
blur, dropshadow, glow etc. effects you can do dynamically would be
worth it, but its' a shot.  I would just look at the Adobe Flash
homepage at all the new features and use that as argument.

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






>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
>>Sent: Tuesday, October 31, 2006 3:44 PM
>>To: flashcoders@chattyfig.figleaf.com
>>Subject: [Flashcoders] Q:Justifying Flash 8 Content
>>
>>
>>I'm working on a large commercial site that uses FP7 based content.
>>
>>What are some of the arguments and/or approaches that Flash developers
have
>>and are using to push the transition to FP8 content?
>>
>>The bottom line is really about providing the best user experience
possible 
>>
>>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] Scaling problem while loading external jpeg's in the Movie Clip

2006-11-01 Thread Marc Hoffman
First, use MovieClipLoader to load the image. This will allow you to 
determine when it has initialized (onLoadInit). Then determine the 
ratio of the image width to the actual width you want it to be. Do 
the same for the height. Determine which ratio is larger, and use 
that to rescale both the height and width of the image.


- Marc Hoffman

At 05:10 AM 11/1/2006, you wrote:


Hi,



I am using loadMovie function to load the external jpeg files in the Movie
Clip.

The Movie Clip (in which I am loading the external jpeg files) varies in
size depending on the users screen resolution.

The problem I am facing while scaling the images in the Movie Clip. When I
scale the images to fit it properly in Movie Clip, it gets distorted, as the
image's height and width is greater than the Movie Clip's height and width.



Is there any solution to overcome this problem?



Thanks for any help!

Abhijit



___
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 Reomoting Service not connecting

2006-11-01 Thread Miles, Mathew
I had this problem about 6 months ago and I don't remember how I solved
it.  However, here is the code that I currently use to make the
connection and return results.  Hope it helps.


# 

import mx.remoting.Service;
import mx.services.Log;
import mx.rpc.RelayResponder;
import mx.rpc.FaultEvent;
import mx.rpc.ResultEvent;
import mx.remoting.PendingCall;
import mx.remoting.RecordSet;


//###SETUP CONNECTION###
var contactService:Service = new Service(
   "http://abish.byui.edu/flashservices/gateway?";,
   //"http://localhost:8500/flashservices/gateway?";, 
   null,
   "wsmri.WsmriDate1",
   null,
   null);
//#


//##GET RECORDS#
function fgetMarriageRecords(fName, lname, strID, searchType,
state_Svar, county_Svar, dateLimit, bDate, eDate){
var pc:PendingCall = contactService.getRecordsWDate({FirstName:
fName, LastName: lname, strID: strID, searchType: searchType, mState:
state_Svar, county: county_Svar, dateLimit: dateLimit, bDate: bDate,
eDate: eDate});
var oResult:Object = new Object();
oResult.onResult = function(re:ResultEvent){
var rs:RecordSet = RecordSet(re.result);
var nCount:Number = rs.length;
recNum_label.text = rs.length;
//trace("length is : " + rs.length);
//if no results returned show message screen
if (rs.length == 0) {
noResults1_mc._visible = true;;
this.noResults1_mc.ok_btn.setFocus();
}
results_dg.dataProvider = rs;
results_dg.selectedIndex = 0;
searchInProgress1_mc._visible = false;
// marker for mouse pointer

};
oResult.onFault = function(re:ResultEvent){
//trace("> fault >");
for(var i in re){
//trace(i + " = " + re[i]);
for(var j in re[i]){
//trace(j + " = " + re[i][j]);
}
}
};
pc.responder = new RelayResponder(oResult, "onResult", "onFault"
);  
}
###END GET RECORDS###
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Liam
Mincy
Sent: Wednesday, November 01, 2006 3:57 AM
To: Flashcoders mailing list
Subject: [Flashcoders] Flash Reomoting Service not connecting

This is a new one for me...

I have a Flash application that uses Flash Remoting to pass along test
information.
I should first mention that I am using the same Service on a live server
in both testing on local machine and when I deploy to the web.

The thing is that when I test all of this from my local machine it all
wowrks well.
The test information is passed along the Service, all the data appears
in the database, and I get feedback inside of Flash. It is only when I
upload Flash to the server that I have no connection at all to the
service. The Flash and the Service both sit on the same domain when
uploaded.

Here is what i have tried:
  - Made sure that the link to the Service is correct
  - Installed a crossdomain.xml at the root of the domain with very
generous settings
  - Tried dumping result and fault into onscreen text field but since
there is some communication/security issue nothing comes back

What I am seeing is that the Flash essentially just runs and runs with
no connection or indication that it is getting a fault back. It just
keeps trying and nothing is coming back. 

What has me stumped is why this would happen. 

Does anyone have any experience with this scenario using Services?

Thanks,
liam m-


 


Low, Low, Low Rates! Check out Yahoo! Messenger's cheap PC-to-Phone call
rates
(http://voice.yahoo.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] Create zip file through flash

2006-11-01 Thread Claus Wahlers



He's talking about zipping up files on the local filesystem.  Flash 9 can do 
that?  Flash 9 has native filesystem access which would allow compressing files 
on your hard drive?


Flash Player 9 can zip up files pretty easily, but of course can't 
access the local filesystem. Sorry for the noise.


Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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] Create zip file through flash

2006-11-01 Thread Merrill, Jason
>>Flash Player 9 can do it.
>>We wrote an unzip class in AS3 some time back:

He's talking about zipping up files on the local filesystem.  Flash 9 can do 
that?  Flash 9 has native filesystem access which would allow compressing files 
on your hard drive?

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

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Claus Wahlers
>>Sent: Wednesday, November 01, 2006 8:38 AM
>>To: Flashcoders mailing list
>>Subject: Re: [Flashcoders] Create zip file through flash
>>
>>
>>> Flash alone can't do that?
>>
>>Flash Player 9 can do it.
>>We wrote an unzip class in AS3 some time back:
>>http://codeazur.com.br/lab/fzip/
>>
>>Cheers,
>>Claus.
>>
>>--
>>claus wahlers
>>côdeazur brasil
>>http://codeazur.com.br
>>___
>>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] Create zip file through flash

2006-11-01 Thread Claus Wahlers



Flash alone can't do that?


Flash Player 9 can do it.
We wrote an unzip class in AS3 some time back:
http://codeazur.com.br/lab/fzip/

Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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] Create zip file through flash

2006-11-01 Thread Merrill, Jason
>>Flash alone can't do that?

Flash alone can't do that, no.  Flash has no native filesystem access on
the web or locally - other than the FileReference class which is used
for uploading/downloading files.  You could call another .exe that does
it though locally.

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

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Abhijit Malpani
>>Sent: Wednesday, November 01, 2006 8:29 AM
>>To: 'Flashcoders mailing list'
>>Subject: RE: [Flashcoders] Create zip file through flash
>>
>>Hey Jason,
>>
>>I am talking about the desktop application, and I don't want to use
any
>>wrapper for flash. I am already having a .net wrapper which does it
for me
>>right now, but I want to get rid of it.
>>
>>Flash alone can't do that?
>>
>>Thanks!
>>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of
Merrill,
>>Jason
>>Sent: Wednesday, November 01, 2006 6:48 PM
>>To: Flashcoders mailing list
>>Subject: RE: [Flashcoders] Create zip file through flash
>>
In my application I am having a button, which when pressed should
>>compress
some chunk of files to zip file.

I am jus wondering whether this can be done through Flash or not?
>>
>>Depends on what you mean by "through Flash".  Not natively in Flash
>>because Flash is a client-side application.  You're talking about a
>>server (or local drive) application functionality.  We've done this
with
>>a third party .NET component and Flash.  We have a button in Flash
which
>>calls a SOAP webservice which runs the .NET component which compresses
a
>>directory of files into .zip. When the webservice returns that the
.zip
>>compression is complete, I do a getURL() in Flash to the new .zip file
>>for the user to download.
>>
>>Jason Merrill
>>Bank of America
>>Learning & Organization Effectiveness - Technology Solutions
>>
>>
>>
>>
>>
>>___
>>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
>>
>>
>>DISCLAIMER
>>==
>>This e-mail may contain privileged and confidential information which
is the
>>property of Persistent Systems Pvt. Ltd. It is intended only for the
use of the
>>individual or entity to which it is addressed. If you are not the
intended recipient,
>>you are not authorized to read, retain, copy, print, distribute or use
this
>>message. If you have received this communication in error, please
notify the
>>sender and delete all copies of this message. Persistent Systems Pvt.
Ltd. does
>>not accept any liability for virus infected mails.
>>___
>>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] Create zip file through flash

2006-11-01 Thread Abhijit Malpani
Hey Jason,

I am talking about the desktop application, and I don't want to use any
wrapper for flash. I am already having a .net wrapper which does it for me
right now, but I want to get rid of it.

Flash alone can't do that?

Thanks!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill,
Jason
Sent: Wednesday, November 01, 2006 6:48 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Create zip file through flash

>>In my application I am having a button, which when pressed should
compress
>>some chunk of files to zip file.
>>
>>I am jus wondering whether this can be done through Flash or not?

Depends on what you mean by "through Flash".  Not natively in Flash
because Flash is a client-side application.  You're talking about a
server (or local drive) application functionality.  We've done this with
a third party .NET component and Flash.  We have a button in Flash which
calls a SOAP webservice which runs the .NET component which compresses a
directory of files into .zip. When the webservice returns that the .zip
compression is complete, I do a getURL() in Flash to the new .zip file
for the user to download.  

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 
___
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


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Pvt. Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Pvt. Ltd. does not accept any liability for virus infected mails.
___
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] Create zip file through flash

2006-11-01 Thread Merrill, Jason
>>In my application I am having a button, which when pressed should
compress
>>some chunk of files to zip file.
>>
>>I am jus wondering whether this can be done through Flash or not?

Depends on what you mean by "through Flash".  Not natively in Flash
because Flash is a client-side application.  You're talking about a
server (or local drive) application functionality.  We've done this with
a third party .NET component and Flash.  We have a button in Flash which
calls a SOAP webservice which runs the .NET component which compresses a
directory of files into .zip. When the webservice returns that the .zip
compression is complete, I do a getURL() in Flash to the new .zip file
for the user to download.  

Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 
___
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] Scaling problem while loading external jpeg's in the Movie Clip

2006-11-01 Thread Abhijit Malpani
Hi,

 

I am using loadMovie function to load the external jpeg files in the Movie
Clip. 

The Movie Clip (in which I am loading the external jpeg files) varies in
size depending on the users screen resolution. 

The problem I am facing while scaling the images in the Movie Clip. When I
scale the images to fit it properly in Movie Clip, it gets distorted, as the
image's height and width is greater than the Movie Clip's height and width.

 

Is there any solution to overcome this problem?

 

Thanks for any help!

Abhijit


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Pvt. Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Pvt. Ltd. does not accept any liability for virus infected mails.
___
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] Create zip file through flash

2006-11-01 Thread Abhijit Malpani
Hi,

 

In my application I am having a button, which when pressed should compress
some chunk of files to zip file.

I am jus wondering whether this can be done through Flash or not? 

Most of the web services now days support gZip compression, just want to
know whether we can achieve this through flash too?

 

Any one worked on this kind of thing before?

 

Thanks for any help!


DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Pvt. Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Pvt. Ltd. does not accept any liability for virus infected mails.
___
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] Flash Reomoting Service not connecting

2006-11-01 Thread Liam Mincy
This is a new one for me...

I have a Flash application that uses Flash Remoting to pass along test 
information.
I should first mention that I am using the same Service on a live server in both
testing on local machine and when I deploy to the web.

The thing is that when I test all of this from my local machine it all wowrks 
well.
The test information is passed along the Service, all the data appears in the
database, and I get feedback inside of Flash. It is only when I upload Flash to 
the
server that I have no connection at all to the service. The Flash and the 
Service
both sit on the same domain when uploaded.

Here is what i have tried:
  - Made sure that the link to the Service is correct
  - Installed a crossdomain.xml at the root of the domain with very generous
settings
  - Tried dumping result and fault into onscreen text field but since there is 
some
communication/security issue nothing comes back

What I am seeing is that the Flash essentially just runs and runs with no 
connection
or indication that it is getting a fault back. It just keeps trying and nothing 
is
coming back. 

What has me stumped is why this would happen. 

Does anyone have any experience with this scenario using Services?

Thanks,
liam m-


 

Low, Low, Low Rates! Check out Yahoo! Messenger's cheap PC-to-Phone call rates 
(http://voice.yahoo.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] How can I get a string in a date object ?

2006-11-01 Thread Sander van Surksum
How can I get a string in a date object ?
 
var datum:LoadVars  = new LoadVars();
datum.onLoad = checkTime;
datum.load("http://localhost/time.php?cacheKiller="; + new
Date().getTime());
 
function checkTime(){
 var jaar:Number = this.jaar;
 var maand:Number = this.maand;
 var dag:Number = this.dag;
 var uren:Number = this.uren;
 var minu:Number = this.minu;
 var sec:Number = this.sec;
 
trace(jaar +maand +dag +uren +minu +sec);
 
//now I whanna get the date in the date object but this doesn't work

 
 var tijdnu:Date = new Date((jaar), (maand), (dag), (uren), (minu),
(sec));
 tijdnu_txt.text = "Tijdnu =" +tijdnu;
 
 trace('jaar: '+ typeof(jaar));
 
Regards,
 
Sander
 
___
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] slightly OT - browser position

2006-11-01 Thread Eskil Janson

Hi,

I need to track the browser postion when the user drags it around over 
the desktop.

I can't find a JavaScript variable for this. Have I missed something basic ?
If not, anyone who know how to do this?

The problem is not communication
Flash -JavaScript, i know the tricks.

Regards

/Eskil
--

---eskilStina 
--

Eskil Janson  Mobil: +46 0735 31 68 52
Slupskjulsvägen 38   	  E-post: [EMAIL PROTECTED] 


111 49 Stockholm  Webb: www.eskilstina.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(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