RE: [Flashcoders] Flash Player 9.0.16 and Huge SWFs

2006-07-20 Thread The Helmsman
Actually you can use images greater then 2880 pixels in width.
I've made some scroller once that used image more then 3600 pixels in width.
And it worked good, but later for some optimization reason and to be on the
safe side it was re-written and divided to parts :)
Besides this Matthew wrote it worked well in the old players. I think it's a
bug :) If something works in old version of application and stops working in
new version, its definitely bug not a feature :)

Igor V. aka The Helmsman
www.mixtv.tv

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Muzak
Sent: Thursday, July 20, 2006 8:23 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Flash Player 9.0.16 and Huge SWFs

The magic number (limit) is 2880 pixels in both directions (width, height)

Muzak

- Original Message -
From: Matthew Donadio [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Wednesday, July 19, 2006 11:54 PM
Subject: [Flashcoders] Flash Player 9.0.16 and Huge SWFs


 Hi all,

 I looked around for any chatter about this, but didn't find anything...

 Is anyone having problems loading large swfs (dimension wise) from a movie
 running in Flash Player 9?

 I have an application that loads a few large swfs (7000x500 and 9975x500)
at
 runtime.  The application is published for FP6/AS2 and works fine in Flash
 Player 6.0.47 through Flash Player 8.0.24.

 I am still investigating this, but when I load the 9975x500 swf into the
app
 in FP 9.0.16 in IE6/Win the player crashes and exits (right click gives me
 browser menu instead of Flash player menu) immediately after the
 MovieClip.loadMovie().  FP 9.0.16 under FF1.5/Win just hangs at the same
 point.  The 7000x500 SWF seems to be fine.

 The SWF is exported from Illustrator CS2.  If I export the swf at a
smaller
 size and scale it up after I load it, then it works fine.  I will probably
 use this workaround, but I like to know why things are happening.  I will
 try to build a simplified test case that demonstrates this.

 Any thoughs would be appreciated.  Thanks.

 ---
 matthew donadio


___
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


__ NOD32 1.1668 (20060719) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.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 embed metadata in SWF files?

2006-07-20 Thread The Helmsman
If you are loading one movie to another use following technique:

Main movie
Main movie variable defined:
Var testVar:String = Hello world;

External movie loaded to level 1:
External movie variable defined:
Var testVar:String = Hello world - external;

Now let's load external movie to level 1:
Trace(_level0.testVar) prints Hello world;
Trace(_root.testVar) prints Hello world - external;
Trace(_level1.testVar) prints Hello world - external;

Then same external movie we'll load to some mc called container_mc which
located on the main movie timeline:
Trace(_level0.testVar) prints Hello world;
Trace(_root.testVar) prints Hello world;
Trace(_root.container_mc.testVar) prints Hello world - external;
Trace(_level0.container_mc.testVar) prints Hello world - external;

Hope it will help you to undestand Flash scope

Igor V. aka The Helmsman

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rifled
Cloaca
Sent: Wednesday, July 19, 2006 5:29 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] How to embed metadata in SWF files?

Are you simply opening the SWF file directly, or loading it into a wrapper
SWF?

If you're loading it directly... it's just

_root.var1
_root.var2
...

If you're loading it into a wrapper, like so:

_root.myClip.loadMovie(path/to/my/movie.swf);

once it loads, you'll be able to access the data with:

_root.myClip.var1
_root.myClip.var2
...

Make sure your movie has loaded.  Use the MovieClipLoader class and assign
an onLoad handler to access the variables.

-rc


On 7/18/06, Jeff Stearns [EMAIL PROTECTED] wrote:

 I don't have any problems getting variable assignments into the SWF 
 file.

 I have problems accessing their values when I'm playing the movie.

 The SWF contains some ActionScript in frame 1 which sets variables 
 like title=My First Movie, year=2006.
 But how can my Flash player access those variables when it loads and 
 plays the movie?  Are they in some oddball namespace like 
 _root.somethingOrOther

 thx, jeff


 On Jul 18, 2006, at 3:11 PM, Rifled Cloaca wrote:

  Or you could create a SWF using MTASC or the Flash IDE, and replace 
  the variables after it is published like this guy does:
 
  http://www.neurofuzzy.net/2005/01/27/swf-recombination/
 
 
  On 7/16/06, Mike Britton [EMAIL PROTECTED] wrote:
 
  I would build a wrapper MovieClip class extension for your 
  compiled SWF, and use LocalConnection to send/receive the values.  
  That is, use LocalConnection in both the compiled swfs and in the 
  wrapper.  The wrapper is the receiver and the compiled clips are 
  the broadcasters.
 
  http://www.osflash.org/localconnection
 
  hth,
 
  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
 
  ___
  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] ActionScript Application Framework

2006-07-20 Thread James Deakin

I started this thread for a simple reason, love or loath Ruby what has been
developed here has enabled several of my clients to deploy excellent web
applications with a significantly reduced investment of time with no aparent
compromise on functionality.

I think thats great. I wish the same could be done for AS. I feel that
making the job of the Flash/Flex developer as easy as posible will enable us
all to concentrate on the parts of our applications which are unique and
require special attention.

It is very easy to make use of Ruby on Rails. it took me just a few hours to
get an application runinng with it with no prior knowledge.

I am looking at ARP and Carngorm at the moment and they are not proving easy
to use and I am a highly experienced AS developer.

I have also started looking at Flex. . .

If there proves to be a way that we as a comunity can make developing
easier we should invest the time. I would contribute for sure.

So what do you think is missing? Is there something we could do or is it as
easy as it gets?

On 7/20/06, Weyert de Boer [EMAIL PROTECTED] wrote:



 As it ends up, his comments were fueled solely by his dislike for Ruby's
 syntax, which has nothing to do with whether or not Ruby on Rails is
 deserving of the attention and praise it is getting.

I don't see why my dislike of Ruby's syntax has anything to do with
this. I won't bother explain my issues with Ruby itself. It looks like
you think I dislike RoR too, I haven't said it, probably I expressed
myself badly.

I will post this to the flashcoders myself, so you won't be bothered to
do so yourself.
___
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] scale9grid how to

2006-07-20 Thread Julien Vignali

Check the Flash docs... It's explained ;-)

mcRoundedRect.scale9Grid = new Rectangle(x1, y1, x2, y2);


Marcos Neves a écrit :
How can I use programaticlly scale9grid to don´t deform a roundRect when 
scaled?

I´know how it works at design time on flash.
___
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] ActionScript Application Framework

2006-07-20 Thread Nicolas Cannasse
 I am looking at ARP and Carngorm at the moment and they are not proving easy
 to use and I am a highly experienced AS developer.
 
 I have also started looking at Flex. . .

Did you have a look at haXe ?
http://haxe.org

It has builtin remoting for communicating with Flash. The idea is that
you can program both your website and your Flash movies in haXe. This is
great since you can share some code between your flash client and server.

A lot of tutorials are available there : http://haxe.org/doc

Nicolas
___
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] ActionScript Application Framework

2006-07-20 Thread James Deakin

Have you ever built anything in haXe? If so how did you find the experience?

On 7/20/06, Nicolas Cannasse [EMAIL PROTECTED] wrote:


 I am looking at ARP and Carngorm at the moment and they are not proving
easy
 to use and I am a highly experienced AS developer.

 I have also started looking at Flex. . .

Did you have a look at haXe ?
http://haxe.org

It has builtin remoting for communicating with Flash. The idea is that
you can program both your website and your Flash movies in haXe. This is
great since you can share some code between your flash client and server.

A lot of tutorials are available there : http://haxe.org/doc

Nicolas
___
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] ActionScript Application Framework

2006-07-20 Thread Nicolas Cannasse
 Have you ever built anything in haXe? If so how did you find the experience?

Disclaimer : I'm the haXe author

I have been building several websites and flash games with haXe and its
predecessor (our in-house language MotionTypes). The less I can say is
that using it has been tremendously boosting our productivity and
increased the quality of our code.

Nicolas
___
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] as3: weird package problem

2006-07-20 Thread Meinte van't Kruis

Thanks for replying, sounds like a pretty good hack to me, thanks!

-Meinte

On 7/19/06, John Giotta [EMAIL PROTECTED] wrote:


Hey Meinte,
What I've just done is set the file and path then just lowercased the
drive letter.
Windows C: drive -
SET ASFILE=%~dp0TestClass.as
SET ASFILE=%ASFILE:C:\=c:\%

Then I just used %ASFILE% in the mxmlc call.

C:\Program Files\Flex SDK\bin\mxmlc.exe -benchmark=true
-creator=John Giotta -debug=true -file-specs %ASFILE%

- John

P.S. this is a hack since I'm dealing with C: drive on my machine. In
the meantime, I hope to find a better solution.
___
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] Memory builds up

2006-07-20 Thread Dimitrios Bendilas
Hello,

I have a few very simple lines of code on _root, frame 1 (it's the only frame 
in the main timeline):

--
var ballID:Number = 0;

_root.onEnterFrame = createBall;

function createBall():Void {
 var mc:MovieClip = _root.attachMovie(ball, ball + ballID, 100 + ballID++);
 mc._x = random(550);
 mc._y = random(400);
}
--

ball is the linkage ID of a simple vector circle in the library.
The ball movieclip has 10 frames (with only 1 keyframe on frame 1)
and at the last frame it says

this.removeMovieClip();

I run the swf and it soon builds up memory, from 6.8M to 10M. It will probably 
go up more
if I leave it open.

Why??

The balls are created and destroyed just fine on the screen. What is happening 
and the memory builds up?

This is a test regarding a big optimization attempt for a big game project I'm 
finishing up, where the game slows down
significantly after 30min of play. I started with the very basics and I see 
that even in this simple example
there is problem with the memory.

Am I missing something here?

Thanks a lot,

Dimitrios
___
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] Memory builds up

2006-07-20 Thread Hans Wichman

Hi,
how about if you leaving it running for longer?
The memory might go up, but should go down once in a while when the garbage
collection kicks in.
Minimizing the window might trigger it.

I tried your example, but i see no alarming memory build up.

greetz
Hans

On 7/20/06, Dimitrios Bendilas [EMAIL PROTECTED] wrote:


Hello,

I have a few very simple lines of code on _root, frame 1 (it's the only
frame in the main timeline):

--
var ballID:Number = 0;

_root.onEnterFrame = createBall;

function createBall():Void {
var mc:MovieClip = _root.attachMovie(ball, ball + ballID, 100 +
ballID++);
mc._x = random(550);
mc._y = random(400);
}
--

ball is the linkage ID of a simple vector circle in the library.
The ball movieclip has 10 frames (with only 1 keyframe on frame 1)
and at the last frame it says

this.removeMovieClip();

I run the swf and it soon builds up memory, from 6.8M to 10M. It will
probably go up more
if I leave it open.

Why??

The balls are created and destroyed just fine on the screen. What is
happening and the memory builds up?

This is a test regarding a big optimization attempt for a big game project
I'm finishing up, where the game slows down
significantly after 30min of play. I started with the very basics and I
see that even in this simple example
there is problem with the memory.

Am I missing something here?

Thanks a lot,

Dimitrios
___
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] Memory builds up

2006-07-20 Thread Bernard Visscher
 I tried your example, but i see no alarming memory build up.
I can confirm this, no speedy memory increase, only 500kb in about 5 min.

Bernard

 On 7/20/06, Dimitrios Bendilas [EMAIL PROTECTED] wrote:
 
  Hello,
 
  I have a few very simple lines of code on _root, frame 1 (it's the 
  only frame in the main timeline):
 
  --
  var ballID:Number = 0;
 
  _root.onEnterFrame = createBall;
 
  function createBall():Void {
  var mc:MovieClip = _root.attachMovie(ball, ball + ballID, 100 +
  ballID++);
  mc._x = random(550);
  mc._y = random(400);
  }
  --
 
  ball is the linkage ID of a simple vector circle in the library.
  The ball movieclip has 10 frames (with only 1 keyframe on 
 frame 1) and 
  at the last frame it says
 
  this.removeMovieClip();
 
  I run the swf and it soon builds up memory, from 6.8M to 
 10M. It will 
  probably go up more if I leave it open.
 
  Why??
 
  The balls are created and destroyed just fine on the 
 screen. What is 
  happening and the memory builds up?
 
  This is a test regarding a big optimization attempt for a big game 
  project I'm finishing up, where the game slows down significantly 
  after 30min of play. I started with the very basics and I see that 
  even in this simple example there is problem with the memory.
 
  Am I missing something here?
 
  Thanks a lot,
 
  Dimitrios
  ___
  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] ActionScript Application Framework

2006-07-20 Thread James Deakin

I see. I will have a good look at haXe as well. I like the idea but am a bit
worried about the amount of time I would have to invest to gain enough
understanding to build an application. How long would you imagin it might
take to for me to get started?

On 7/20/06, Nicolas Cannasse [EMAIL PROTECTED] wrote:


 Have you ever built anything in haXe? If so how did you find the
experience?

Disclaimer : I'm the haXe author

I have been building several websites and flash games with haXe and its
predecessor (our in-house language MotionTypes). The less I can say is
that using it has been tremendously boosting our productivity and
increased the quality of our code.

Nicolas
___
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] slide a movieclip with photo(loaded by xml)

2006-07-20 Thread Jose Maria Barros

Hello. Im doing a test loading from xml information to load into one movie
clip one photo and having a number menu. When i press one of those numbers a
function subAppear makes the movieclip slide from the top.

Wht i dont understand is that he loads the photo, but the function doesnt
work..i tried to test the function without loading the xml and the function
works good..but when i load the xml..it doesnt..any help?

Thanks in advance...and here is the code from the function and the function
that creates the buttons

Jose Maria

function subAppear(mc:MovieClip, val:Number, target:Number):Void {

   mc.onEnterFrame = function() {
   if (target-this._y0.2  this._alpha99) {
   this._y = target;
   delete this.onEnterFrame;
   }
   if (this._alpha101) {
   this._alpha += val;
   }
   if (this._ytarget) {
   this._y -= (this._y-target)/4;
   }
   };
}


function createPhotofolio():Void {
   for (i=0; iphotoMenu.length; i++) {
   newBut = _root.attachMovie(but, but+i, 999+i);
   newBut._x = 33+(newBut._width+5)*i;
   newBut._y = 380;
   newBut.txt.text = [i+1];
   newBut.link = photoMenu[i].firstChild.firstChild;

   newBut.onRelease = function() {
   loadMovie(this.link, imagem_mc);
   subAppear(imagem_mc, (i+3), 95);
   };

   }
}
___
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] ActionScript Application Framework

2006-07-20 Thread Nicolas Cannasse
 I see. I will have a good look at haXe as well. I like the idea but am a bit
 worried about the amount of time I would have to invest to gain enough
 understanding to build an application. How long would you imagin it might
 take to for me to get started?

Very quickly, especially if you have some AS2 or Java knowledge.

haXe offers the same Flash API as AS2, so people having experience in
flash programming are not lost.

You can read a quick introduction to haXe article that was published on
ActionScript.com :

http://www.actionscript.com/Article/tabid/54/ArticleID/haxe/Default.aspx

Nicolas
___
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] slide a movieclip with photo(loaded by xml)

2006-07-20 Thread Adrian Park

When 'this.link' loads into imagem_mc, any existing properties and methods
of imagem_mc are destroyed because 'this.link' replaces imagem_mc.

Immediately after loading the MovieClip, you call subAppear which assigns
the onEnterFrame handler. This handler is destroyed when the MovieClip loads
so you don't see your animation working.

Here are your options:
1) use MovieClipLoader and then use the onLoadInit event to evoke subAppear
when the movie has completely loaded or
2) nest imagem_mc inside a wrapper MovieClip and assign the onEnterFrame
handler to that wrapper.

The first option is the better option as it's just neater and also because I
think it's fair to assume you only want the animation to happen once the
MovieCLip has loaded anyway.

HTH
Adrian


On 7/20/06, Jose Maria Barros [EMAIL PROTECTED] wrote:


Hello. Im doing a test loading from xml information to load into one movie
clip one photo and having a number menu. When i press one of those numbers
a
function subAppear makes the movieclip slide from the top.

Wht i dont understand is that he loads the photo, but the function doesnt
work..i tried to test the function without loading the xml and the
function
works good..but when i load the xml..it doesnt..any help?

Thanks in advance...and here is the code from the function and the
function
that creates the buttons

Jose Maria

function subAppear(mc:MovieClip, val:Number, target:Number):Void {

mc.onEnterFrame = function() {
if (target-this._y0.2  this._alpha99) {
this._y = target;
delete this.onEnterFrame;
}
if (this._alpha101) {
this._alpha += val;
}
if (this._ytarget) {
this._y -= (this._y-target)/4;
}
};
}


function createPhotofolio():Void {
for (i=0; iphotoMenu.length; i++) {
newBut = _root.attachMovie(but, but+i, 999+i);
newBut._x = 33+(newBut._width+5)*i;
newBut._y = 380;
newBut.txt.text = [i+1];
newBut.link = photoMenu[i].firstChild.firstChild;

newBut.onRelease = function() {
loadMovie(this.link, imagem_mc);
subAppear(imagem_mc, (i+3), 95);
};

}
}
___
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] scale9grid how to

2006-07-20 Thread Marcos Neves

No so clearly Julien,
if(I create a rectangle with exact the same size of my sprite, it
throw me that error. I bust make it at least 1 pixel small. It´s not
on the docs :\

On 7/20/06, Julien Vignali [EMAIL PROTECTED] wrote:

Check the Flash docs... It's explained ;-)

mcRoundedRect.scale9Grid = new Rectangle(x1, y1, x2, y2);


Marcos Neves a écrit :
 How can I use programaticlly scale9grid to don´t deform a roundRect when
 scaled?
 I´know how it works at design time on flash.
 ___
 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] flv stops playing after undefined numbers of seconds (through firewall)

2006-07-20 Thread Hans Wichman

Hi list,
i have an flv that plays from behind a firewall.
Tested locally the flv plays great (from a personal edition of the fcs),
however from the external fcs through the firewall, the first few seconds
seem to come through and then i get a (dump from the log):

onStatus called: (191883 ms)
clientid: 146516672
description: Stopped playing
H07-20060215Notitieblok_versie4_audiovideo_282kbps384K.
code: NetStream.Play.Stop
level: status
Scope:[type Function]
onStatus called: (192118 ms)
level: status
code: NetStream.Buffer.Flush
Scope:[type Function]

I'm playing it from flashcomserver 1.5.

The weird thing though is that it only happens with some videos, others play
fine. This would lead to a conclusion that there is something wrong with the
vids, however as said they play from a local version of the fcs and through
standalone flvplayers as well.

Any ideas would be very much appreciated:)

greetz
Hans
___
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] scale9grid how to

2006-07-20 Thread eric dolecki

Marcos,

If you made the rectangle the same size as your sprite - there would
be no scale9 to speak of. It has to be smaller than the mc. You know
how it works from implementing it in the IDE, so you know that there
must be outside area that is left untouched, the interior does the
scaling.

- e.d.


On 7/20/06, Marcos Neves [EMAIL PROTECTED] wrote:

No so clearly Julien,
if(I create a rectangle with exact the same size of my sprite, it
throw me that error. I bust make it at least 1 pixel small. It´s not
on the docs :\

On 7/20/06, Julien Vignali [EMAIL PROTECTED] wrote:
 Check the Flash docs... It's explained ;-)

 mcRoundedRect.scale9Grid = new Rectangle(x1, y1, x2, y2);


 Marcos Neves a écrit :
  How can I use programaticlly scale9grid to don´t deform a roundRect when
  scaled?
  I´know how it works at design time on flash.
  ___
  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] scale9grid how to

2006-07-20 Thread Merrill, Jason
If it gets too messy, you can also roll your own scale 9 function for graphics 
- that's what I did since I'm building for Flash 7.  It's pretty easy actually.

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
 
-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Marcos Neves
Sent: Wednesday, July 19, 2006 4:34 PM
To: Flashcoders mailing list
Subject: [Flashcoders] scale9grid how to

How can I use programaticlly scale9grid to don´t deform a roundRect when
scaled?
I´know how it works at design time on flash.
___
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] scale9grid how to

2006-07-20 Thread Marcos Neves

And how it can be done?

On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:

If it gets too messy, you can also roll your own scale 9 function for graphics 
- that's what I did since I'm building for Flash 7.  It's pretty easy actually.

Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions





-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Marcos Neves
Sent: Wednesday, July 19, 2006 4:34 PM
To: Flashcoders mailing list
Subject: [Flashcoders] scale9grid how to

How can I use programaticlly scale9grid to don´t deform a roundRect when
scaled?
I´know how it works at design time on flash.
___
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: Re: [Flashcoders] scale9grid how to

2006-07-20 Thread Marcos Neves

Does any body can tell me what´s wrong with this code?
The problem is that the scale9grid is not doing his job.
The bt.swf embed has size of 100x22.
But the trace at the end ignores it´s size. Why?
Where scale9grid should be applied to work? I try many sprites but none work.

package
{
import flash.display.Sprite;
import flash.display.StageScaleMode;
import flash.geom.Rectangle;
import mx.core.MovieClipAsset;
import flash.display.MovieClip;

public class BtFlash extends Sprite
{
[Embed(source=bt.swf)]
private var btClass:Class;

public function BtFlash()
{
var bt:MovieClipAsset = new btClass();
addChild(bt);
var mc:Sprite = new Sprite();
mc.graphics.beginFill(0);
var rect:Rectangle = new Rectangle(6, 2, 70, 18);
mc.graphics.drawRect(rect.x - 1, rect.y - 1, rect.width 
+ 2,
rect.height + 2);
mc.graphics.endFill();
bt.addChild(mc);
bt.scale9Grid = rect;
trace(bt.width);
trace(width);
}
}
}

On 7/20/06, eric dolecki [EMAIL PROTECTED] wrote:

Marcos,

If you made the rectangle the same size as your sprite - there would
be no scale9 to speak of. It has to be smaller than the mc. You know
how it works from implementing it in the IDE, so you know that there
must be outside area that is left untouched, the interior does the
scaling.

- e.d.


On 7/20/06, Marcos Neves [EMAIL PROTECTED] wrote:
 No so clearly Julien,
 if(I create a rectangle with exact the same size of my sprite, it
 throw me that error. I bust make it at least 1 pixel small. It´s not
 on the docs :\

 On 7/20/06, Julien Vignali [EMAIL PROTECTED] wrote:
  Check the Flash docs... It's explained ;-)
 
  mcRoundedRect.scale9Grid = new Rectangle(x1, y1, x2, y2);
 
 
  Marcos Neves a écrit :
   How can I use programaticlly scale9grid to don´t deform a roundRect when
   scaled?
   I´know how it works at design time on flash.
   ___
   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: Re: [Flashcoders] scale9grid how to

2006-07-20 Thread Marcos Neves

This is the bt.swf
http://neves.bs2.com.br/as3/bt.swf
As you can imagine, I´m trying to scale only inside the black wire
rectangle using the scale9grid.

On 7/20/06, Marcos Neves [EMAIL PROTECTED] wrote:

Does any body can tell me what´s wrong with this code?
The problem is that the scale9grid is not doing his job.
The bt.swf embed has size of 100x22.
But the trace at the end ignores it´s size. Why?
Where scale9grid should be applied to work? I try many sprites but none work.

package
{
   import flash.display.Sprite;
   import flash.display.StageScaleMode;
   import flash.geom.Rectangle;
   import mx.core.MovieClipAsset;
   import flash.display.MovieClip;

   public class BtFlash extends Sprite
   {
   [Embed(source=bt.swf)]
   private var btClass:Class;

   public function BtFlash()
   {
   var bt:MovieClipAsset = new btClass();
   addChild(bt);
   var mc:Sprite = new Sprite();
   mc.graphics.beginFill(0);
   var rect:Rectangle = new Rectangle(6, 2, 70, 18);
   mc.graphics.drawRect(rect.x - 1, rect.y - 1, rect.width 
+ 2,
rect.height + 2);
   mc.graphics.endFill();
   bt.addChild(mc);
   bt.scale9Grid = rect;
   trace(bt.width);
   trace(width);
   }
   }
}

On 7/20/06, eric dolecki [EMAIL PROTECTED] wrote:
 Marcos,

 If you made the rectangle the same size as your sprite - there would
 be no scale9 to speak of. It has to be smaller than the mc. You know
 how it works from implementing it in the IDE, so you know that there
 must be outside area that is left untouched, the interior does the
 scaling.

 - e.d.


 On 7/20/06, Marcos Neves [EMAIL PROTECTED] wrote:
  No so clearly Julien,
  if(I create a rectangle with exact the same size of my sprite, it
  throw me that error. I bust make it at least 1 pixel small. It´s not
  on the docs :\
 
  On 7/20/06, Julien Vignali [EMAIL PROTECTED] wrote:
   Check the Flash docs... It's explained ;-)
  
   mcRoundedRect.scale9Grid = new Rectangle(x1, y1, x2, y2);
  
  
   Marcos Neves a écrit :
How can I use programaticlly scale9grid to don´t deform a roundRect when
scaled?
I´know how it works at design time on flash.
___
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] scale9grid how to

2006-07-20 Thread Merrill, Jason
Well, what I did is make 9 parts to my graphic, 

topLeft_mc
topCenter_mc
topRight_mc
centerLeft_mc
center_mc
etc.

Then, put those in a movieClip with the respective instance names.  Then pass 
that clip to a scale function, also pass width and height parameters.  Then in 
the function, do some calculations.  Something like this (this example attaches 
the scale 9 clip from the library):

private function scale9():MovieClip {
t = this.target_mc.attachMovie(scale9graphic , scale9graphic_mc, 
theDepth);
t._x = x;
t._y = y;
x1 = 0;
x2 = t.topLeft_mc._width;
x3 = w-(t.topLeft_mc._width);
y1 = 0;
y2 = t.topLeft_mc._height;
y3 = h-t.bottomLeft_mc._height;
w1 = t.topLeft_mc._width;
w2 = w-(t.topLeft_mc._width + t.topRight_mc._width);
w3 = t.topRight_mc._width;
h1 = t.topRight_mc._height;
h2 = h-(t.topRight_mc._height+t.bottomRight_mc._height);
h3 = t.bottomRight_mc._height;

t.topLeft_mc._x = x1;
t.topLeft_mc._y = y1;

t.topCenter_mc._x = x2;
t.topCenter_mc._y = y1;
t.topCenter_mc._width = w2;

t.topRight_mc._x = x3;
t.topRight_mc._y = y1;

t.centerLeft_mc._x = x1;
t.centerLeft_mc._y = y2;
t.centerLeft_mc._height = h2;

t.center_mc._x = x2;
t.center_mc._y = y2;
t.center_mc._width = w2;
t.center_mc._height = h2;

t.centerRight_mc._x = x3;
t.centerRight_mc._y = y2;
t.centerRight_mc._height = h2;

t.bottomLeft_mc._x = x1;
t.bottomLeft_mc._y = y3;

t.bottomCenter_mc._x = x2;
t.bottomCenter_mc._y = y3;  
t.bottomCenter_mc._width = w2;

t.bottomRight_mc._x = x3;
t.bottomRight_mc._y = y3;

return t;
};

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Marcos Neves
Sent: Thursday, July 20, 2006 8:48 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] scale9grid how to

And how it can be done?

On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:
 If it gets too messy, you can also roll your own scale 9 function for 
 graphics -
that's what I did since I'm building for Flash 7.  It's pretty easy actually.

 Jason Merrill
 Bank of America
 Learning  Organization Effectiveness - Technology Solutions





 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Marcos Neves
 Sent: Wednesday, July 19, 2006 4:34 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] scale9grid how to
 
 How can I use programaticlly scale9grid to don´t deform a roundRect when
 scaled?
 I´know how it works at design time on flash.
 ___
 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] flv stops playing after undefined numbers of seconds (through firewall)

2006-07-20 Thread John Giotta

Are you stopping the Video after the NetStream.Play.Stop status code is
fired?
I ask because in most cases NetStream.Play.Stop will actually fire before
actual playback is done.
___
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] Memory builds up

2006-07-20 Thread Dimitrios Bendilas

Hm,

You are right. Well, it went up from 6.8 to 10 to me as I said
but it doesn't go further up. And it decreases from time to time.

Ok thanks guys, I feel much better now. I was like what the heck?!

Thanks :)

Dimitrios

- Original Message - 
From: Bernard Visscher [EMAIL PROTECTED]

To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Thursday, July 20, 2006 12:42 PM
Subject: RE: [FlashCoders] Memory builds up



I tried your example, but i see no alarming memory build up.

I can confirm this, no speedy memory increase, only 500kb in about 5 min.

Bernard


On 7/20/06, Dimitrios Bendilas [EMAIL PROTECTED] wrote:

 Hello,

 I have a few very simple lines of code on _root, frame 1 (it's the 
 only frame in the main timeline):


 --
 var ballID:Number = 0;

 _root.onEnterFrame = createBall;

 function createBall():Void {
 var mc:MovieClip = _root.attachMovie(ball, ball + ballID, 100 +
 ballID++);
 mc._x = random(550);
 mc._y = random(400);
 }
 --

 ball is the linkage ID of a simple vector circle in the library.
 The ball movieclip has 10 frames (with only 1 keyframe on 
frame 1) and 
 at the last frame it says


 this.removeMovieClip();

 I run the swf and it soon builds up memory, from 6.8M to 
10M. It will 
 probably go up more if I leave it open.


 Why??

 The balls are created and destroyed just fine on the 
screen. What is 
 happening and the memory builds up?


 This is a test regarding a big optimization attempt for a big game 
 project I'm finishing up, where the game slows down significantly 
 after 30min of play. I started with the very basics and I see that 
 even in this simple example there is problem with the memory.


 Am I missing something here?

 Thanks a lot,

 Dimitrios
 ___
 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] scale9grid how to

2006-07-20 Thread Marcos Neves

I used that two. You call the scale9 function when? How do you know
when it need to be updated?

On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:

Well, what I did is make 9 parts to my graphic,

topLeft_mc
topCenter_mc
topRight_mc
centerLeft_mc
center_mc
etc.

Then, put those in a movieClip with the respective instance names.  Then pass 
that clip to a scale function, also pass width and height parameters.  Then in 
the function, do some calculations.  Something like this (this example attaches 
the scale 9 clip from the library):

private function scale9():MovieClip {
   t = this.target_mc.attachMovie(scale9graphic , scale9graphic_mc, 
theDepth);
   t._x = x;
   t._y = y;
   x1 = 0;
   x2 = t.topLeft_mc._width;
   x3 = w-(t.topLeft_mc._width);
   y1 = 0;
   y2 = t.topLeft_mc._height;
   y3 = h-t.bottomLeft_mc._height;
   w1 = t.topLeft_mc._width;
   w2 = w-(t.topLeft_mc._width + t.topRight_mc._width);
   w3 = t.topRight_mc._width;
   h1 = t.topRight_mc._height;
   h2 = h-(t.topRight_mc._height+t.bottomRight_mc._height);
   h3 = t.bottomRight_mc._height;

   t.topLeft_mc._x = x1;
   t.topLeft_mc._y = y1;

   t.topCenter_mc._x = x2;
   t.topCenter_mc._y = y1;
   t.topCenter_mc._width = w2;

   t.topRight_mc._x = x3;
   t.topRight_mc._y = y1;

   t.centerLeft_mc._x = x1;
   t.centerLeft_mc._y = y2;
   t.centerLeft_mc._height = h2;

   t.center_mc._x = x2;
   t.center_mc._y = y2;
   t.center_mc._width = w2;
   t.center_mc._height = h2;

   t.centerRight_mc._x = x3;
   t.centerRight_mc._y = y2;
   t.centerRight_mc._height = h2;

   t.bottomLeft_mc._x = x1;
   t.bottomLeft_mc._y = y3;

   t.bottomCenter_mc._x = x2;
   t.bottomCenter_mc._y = y3;
   t.bottomCenter_mc._width = w2;

   t.bottomRight_mc._x = x3;
   t.bottomRight_mc._y = y3;

   return t;
};

Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions






-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Marcos Neves
Sent: Thursday, July 20, 2006 8:48 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] scale9grid how to

And how it can be done?

On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:
 If it gets too messy, you can also roll your own scale 9 function for 
graphics -
that's what I did since I'm building for Flash 7.  It's pretty easy actually.

 Jason Merrill
 Bank of America
 Learning  Organization Effectiveness - Technology Solutions





 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Marcos Neves
 Sent: Wednesday, July 19, 2006 4:34 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] scale9grid how to
 
 How can I use programaticlly scale9grid to don´t deform a roundRect when
 scaled?
 I´know how it works at design time on flash.
 ___
 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] scale9grid how to

2006-07-20 Thread Marcos Neves

Should someone give an example of how to use scale9grid in flash authoring?
I bitmap fill a rectangle with a checker pattern. The corners should
have no deformation, but it´s having.

On 7/20/06, Marcos Neves [EMAIL PROTECTED] wrote:

I used that two. You call the scale9 function when? How do you know
when it need to be updated?

On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:
 Well, what I did is make 9 parts to my graphic,

 topLeft_mc
 topCenter_mc
 topRight_mc
 centerLeft_mc
 center_mc
 etc.

 Then, put those in a movieClip with the respective instance names.  Then pass 
that clip to a scale function, also pass width and height parameters.  Then in the 
function, do some calculations.  Something like this (this example attaches the 
scale 9 clip from the library):

 private function scale9():MovieClip {
t = this.target_mc.attachMovie(scale9graphic , scale9graphic_mc, 
theDepth);
t._x = x;
t._y = y;
x1 = 0;
x2 = t.topLeft_mc._width;
x3 = w-(t.topLeft_mc._width);
y1 = 0;
y2 = t.topLeft_mc._height;
y3 = h-t.bottomLeft_mc._height;
w1 = t.topLeft_mc._width;
w2 = w-(t.topLeft_mc._width + t.topRight_mc._width);
w3 = t.topRight_mc._width;
h1 = t.topRight_mc._height;
h2 = h-(t.topRight_mc._height+t.bottomRight_mc._height);
h3 = t.bottomRight_mc._height;

t.topLeft_mc._x = x1;
t.topLeft_mc._y = y1;

t.topCenter_mc._x = x2;
t.topCenter_mc._y = y1;
t.topCenter_mc._width = w2;

t.topRight_mc._x = x3;
t.topRight_mc._y = y1;

t.centerLeft_mc._x = x1;
t.centerLeft_mc._y = y2;
t.centerLeft_mc._height = h2;

t.center_mc._x = x2;
t.center_mc._y = y2;
t.center_mc._width = w2;
t.center_mc._height = h2;

t.centerRight_mc._x = x3;
t.centerRight_mc._y = y2;
t.centerRight_mc._height = h2;

t.bottomLeft_mc._x = x1;
t.bottomLeft_mc._y = y3;

t.bottomCenter_mc._x = x2;
t.bottomCenter_mc._y = y3;
t.bottomCenter_mc._width = w2;

t.bottomRight_mc._x = x3;
t.bottomRight_mc._y = y3;

return t;
 };

 Jason Merrill
 Bank of America
 Learning  Organization Effectiveness - Technology Solutions






 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Marcos Neves
 Sent: Thursday, July 20, 2006 8:48 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] scale9grid how to
 
 And how it can be done?
 
 On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:
  If it gets too messy, you can also roll your own scale 9 function for 
graphics -
 that's what I did since I'm building for Flash 7.  It's pretty easy 
actually.
 
  Jason Merrill
  Bank of America
  Learning  Organization Effectiveness - Technology Solutions
 
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:flashcoders-
  [EMAIL PROTECTED] On Behalf Of Marcos Neves
  Sent: Wednesday, July 19, 2006 4:34 PM
  To: Flashcoders mailing list
  Subject: [Flashcoders] scale9grid how to
  
  How can I use programaticlly scale9grid to don´t deform a roundRect when
  scaled?
  I´know how it works at design time on flash.
  ___
  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

Re: [Flashcoders] flv stops playing after undefined numbers of seconds (through firewall)

2006-07-20 Thread Hans Wichman

Hi,
no i'm not, i processed the flv's with a metadata injector and inspect the
time and duration flags in the video.
greetz
Hans


On 7/20/06, John Giotta [EMAIL PROTECTED] wrote:


Are you stopping the Video after the NetStream.Play.Stop status code is
fired?
I ask because in most cases NetStream.Play.Stop will actually fire before
actual playback is done.
___
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] scale9grid how to

2006-07-20 Thread eric dolecki

Make your rectangle a mc.
In the Library, right-click on the mc, choose properties
should be a checkbox @ bottom to enable scale9
you should see dashed rules appear in mc preview in Library
2x click into, drag the rules around to set up your scale9

On 7/20/06, Marcos Neves [EMAIL PROTECTED] wrote:

Should someone give an example of how to use scale9grid in flash authoring?
I bitmap fill a rectangle with a checker pattern. The corners should
have no deformation, but it´s having.

On 7/20/06, Marcos Neves [EMAIL PROTECTED] wrote:
 I used that two. You call the scale9 function when? How do you know
 when it need to be updated?

 On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:
  Well, what I did is make 9 parts to my graphic,
 
  topLeft_mc
  topCenter_mc
  topRight_mc
  centerLeft_mc
  center_mc
  etc.
 
  Then, put those in a movieClip with the respective instance names.  Then 
pass that clip to a scale function, also pass width and height parameters.  Then in 
the function, do some calculations.  Something like this (this example attaches the 
scale 9 clip from the library):
 
  private function scale9():MovieClip {
 t = this.target_mc.attachMovie(scale9graphic , scale9graphic_mc, 
theDepth);
 t._x = x;
 t._y = y;
 x1 = 0;
 x2 = t.topLeft_mc._width;
 x3 = w-(t.topLeft_mc._width);
 y1 = 0;
 y2 = t.topLeft_mc._height;
 y3 = h-t.bottomLeft_mc._height;
 w1 = t.topLeft_mc._width;
 w2 = w-(t.topLeft_mc._width + t.topRight_mc._width);
 w3 = t.topRight_mc._width;
 h1 = t.topRight_mc._height;
 h2 = h-(t.topRight_mc._height+t.bottomRight_mc._height);
 h3 = t.bottomRight_mc._height;
 
 t.topLeft_mc._x = x1;
 t.topLeft_mc._y = y1;
 
 t.topCenter_mc._x = x2;
 t.topCenter_mc._y = y1;
 t.topCenter_mc._width = w2;
 
 t.topRight_mc._x = x3;
 t.topRight_mc._y = y1;
 
 t.centerLeft_mc._x = x1;
 t.centerLeft_mc._y = y2;
 t.centerLeft_mc._height = h2;
 
 t.center_mc._x = x2;
 t.center_mc._y = y2;
 t.center_mc._width = w2;
 t.center_mc._height = h2;
 
 t.centerRight_mc._x = x3;
 t.centerRight_mc._y = y2;
 t.centerRight_mc._height = h2;
 
 t.bottomLeft_mc._x = x1;
 t.bottomLeft_mc._y = y3;
 
 t.bottomCenter_mc._x = x2;
 t.bottomCenter_mc._y = y3;
 t.bottomCenter_mc._width = w2;
 
 t.bottomRight_mc._x = x3;
 t.bottomRight_mc._y = y3;
 
 return t;
  };
 
  Jason Merrill
  Bank of America
  Learning  Organization Effectiveness - Technology Solutions
 
 
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:flashcoders-
  [EMAIL PROTECTED] On Behalf Of Marcos Neves
  Sent: Thursday, July 20, 2006 8:48 AM
  To: Flashcoders mailing list
  Subject: Re: [Flashcoders] scale9grid how to
  
  And how it can be done?
  
  On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:
   If it gets too messy, you can also roll your own scale 9 function for 
graphics -
  that's what I did since I'm building for Flash 7.  It's pretty easy 
actually.
  
   Jason Merrill
   Bank of America
   Learning  Organization Effectiveness - Technology Solutions
  
  
  
  
  
   -Original Message-
   From: [EMAIL PROTECTED] [mailto:flashcoders-
   [EMAIL PROTECTED] On Behalf Of Marcos Neves
   Sent: Wednesday, July 19, 2006 4:34 PM
   To: Flashcoders mailing list
   Subject: [Flashcoders] scale9grid how to
   
   How can I use programaticlly scale9grid to don´t deform a roundRect 
when
   scaled?
   I´know how it works at design time on flash.
   ___
   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 

RE: [Flashcoders] scale9grid how to

2006-07-20 Thread Merrill, Jason
I used that two. You call the scale9 function when? 

I call it when I want the graphic to scale - that was just an excerpt from a 
class I wrote, you would want to add paramters like X,Y,height,Width of the 
graphic, and the name of the scale9 movie clip in the library.  

How do you know
when it need to be updated?

I don't understand the nature of that question.  


Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Marcos Neves
Sent: Thursday, July 20, 2006 9:24 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] scale9grid how to

I used that two. You call the scale9 function when? How do you know
when it need to be updated?

On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:
 Well, what I did is make 9 parts to my graphic,

 topLeft_mc
 topCenter_mc
 topRight_mc
 centerLeft_mc
 center_mc
 etc.

 Then, put those in a movieClip with the respective instance names.  Then 
 pass
that clip to a scale function, also pass width and height parameters.  Then 
in the
function, do some calculations.  Something like this (this example attaches 
the
scale 9 clip from the library):

 private function scale9():MovieClip {
t = this.target_mc.attachMovie(scale9graphic , scale9graphic_mc,
theDepth);
t._x = x;
t._y = y;
x1 = 0;
x2 = t.topLeft_mc._width;
x3 = w-(t.topLeft_mc._width);
y1 = 0;
y2 = t.topLeft_mc._height;
y3 = h-t.bottomLeft_mc._height;
w1 = t.topLeft_mc._width;
w2 = w-(t.topLeft_mc._width + t.topRight_mc._width);
w3 = t.topRight_mc._width;
h1 = t.topRight_mc._height;
h2 = h-(t.topRight_mc._height+t.bottomRight_mc._height);
h3 = t.bottomRight_mc._height;

t.topLeft_mc._x = x1;
t.topLeft_mc._y = y1;

t.topCenter_mc._x = x2;
t.topCenter_mc._y = y1;
t.topCenter_mc._width = w2;

t.topRight_mc._x = x3;
t.topRight_mc._y = y1;

t.centerLeft_mc._x = x1;
t.centerLeft_mc._y = y2;
t.centerLeft_mc._height = h2;

t.center_mc._x = x2;
t.center_mc._y = y2;
t.center_mc._width = w2;
t.center_mc._height = h2;

t.centerRight_mc._x = x3;
t.centerRight_mc._y = y2;
t.centerRight_mc._height = h2;

t.bottomLeft_mc._x = x1;
t.bottomLeft_mc._y = y3;

t.bottomCenter_mc._x = x2;
t.bottomCenter_mc._y = y3;
t.bottomCenter_mc._width = w2;

t.bottomRight_mc._x = x3;
t.bottomRight_mc._y = y3;

return t;
 };

 Jason Merrill
 Bank of America
 Learning  Organization Effectiveness - Technology Solutions






 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Marcos Neves
 Sent: Thursday, July 20, 2006 8:48 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] scale9grid how to
 
 And how it can be done?
 
 On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:
  If it gets too messy, you can also roll your own scale 9 function for 
  graphics
-
 that's what I did since I'm building for Flash 7.  It's pretty easy 
 actually.
 
  Jason Merrill
  Bank of America
  Learning  Organization Effectiveness - Technology Solutions
 
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:flashcoders-
  [EMAIL PROTECTED] On Behalf Of Marcos Neves
  Sent: Wednesday, July 19, 2006 4:34 PM
  To: Flashcoders mailing list
  Subject: [Flashcoders] scale9grid how to
  
  How can I use programaticlly scale9grid to don´t deform a roundRect
when
  scaled?
  I´know how it works at design time on flash.
  ___
  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:
 

[Flashcoders] flash color shift

2006-07-20 Thread i_bang

hi!
anyone know how can i keep the quality of a image with a photoshop 
profile in flash? now when i import the jpg file into flash the color 
of the image changes a lot, it´s more lighter than the original,

what can i do??

thanks a lot!!


___
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] scale9grid how to

2006-07-20 Thread Marcos Neves

You call scale inside the X,Y,height,Width assessors, right?

On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:

I used that two. You call the scale9 function when?

I call it when I want the graphic to scale - that was just an excerpt from a 
class I wrote, you would want to add paramters like X,Y,height,Width of the 
graphic, and the name of the scale9 movie clip in the library.

How do you know
when it need to be updated?

I don't understand the nature of that question.


Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions






-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Marcos Neves
Sent: Thursday, July 20, 2006 9:24 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] scale9grid how to

I used that two. You call the scale9 function when? How do you know
when it need to be updated?

On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:
 Well, what I did is make 9 parts to my graphic,

 topLeft_mc
 topCenter_mc
 topRight_mc
 centerLeft_mc
 center_mc
 etc.

 Then, put those in a movieClip with the respective instance names.  Then 
pass
that clip to a scale function, also pass width and height parameters.  Then 
in the
function, do some calculations.  Something like this (this example attaches 
the
scale 9 clip from the library):

 private function scale9():MovieClip {
t = this.target_mc.attachMovie(scale9graphic , scale9graphic_mc,
theDepth);
t._x = x;
t._y = y;
x1 = 0;
x2 = t.topLeft_mc._width;
x3 = w-(t.topLeft_mc._width);
y1 = 0;
y2 = t.topLeft_mc._height;
y3 = h-t.bottomLeft_mc._height;
w1 = t.topLeft_mc._width;
w2 = w-(t.topLeft_mc._width + t.topRight_mc._width);
w3 = t.topRight_mc._width;
h1 = t.topRight_mc._height;
h2 = h-(t.topRight_mc._height+t.bottomRight_mc._height);
h3 = t.bottomRight_mc._height;

t.topLeft_mc._x = x1;
t.topLeft_mc._y = y1;

t.topCenter_mc._x = x2;
t.topCenter_mc._y = y1;
t.topCenter_mc._width = w2;

t.topRight_mc._x = x3;
t.topRight_mc._y = y1;

t.centerLeft_mc._x = x1;
t.centerLeft_mc._y = y2;
t.centerLeft_mc._height = h2;

t.center_mc._x = x2;
t.center_mc._y = y2;
t.center_mc._width = w2;
t.center_mc._height = h2;

t.centerRight_mc._x = x3;
t.centerRight_mc._y = y2;
t.centerRight_mc._height = h2;

t.bottomLeft_mc._x = x1;
t.bottomLeft_mc._y = y3;

t.bottomCenter_mc._x = x2;
t.bottomCenter_mc._y = y3;
t.bottomCenter_mc._width = w2;

t.bottomRight_mc._x = x3;
t.bottomRight_mc._y = y3;

return t;
 };

 Jason Merrill
 Bank of America
 Learning  Organization Effectiveness - Technology Solutions






 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Marcos Neves
 Sent: Thursday, July 20, 2006 8:48 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] scale9grid how to
 
 And how it can be done?
 
 On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:
  If it gets too messy, you can also roll your own scale 9 function for 
graphics
-
 that's what I did since I'm building for Flash 7.  It's pretty easy 
actually.
 
  Jason Merrill
  Bank of America
  Learning  Organization Effectiveness - Technology Solutions
 
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:flashcoders-
  [EMAIL PROTECTED] On Behalf Of Marcos Neves
  Sent: Wednesday, July 19, 2006 4:34 PM
  To: Flashcoders mailing list
  Subject: [Flashcoders] scale9grid how to
  
  How can I use programaticlly scale9grid to don´t deform a roundRect
when
  scaled?
  I´know how it works at design time on flash.
  ___
  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
 

RE: [Flashcoders] flash color shift

2006-07-20 Thread Merrill, Jason
No Actionscript in your question, this should probably be on the Flashnewbie 
list, but

Are you sure there is no compression going on from Photoshop?  If I remember, 
.jpgs exported from Photoshop or Fireworks have about 80% compression by 
default.  Make sure your settings for the .jpg are at 100% (Highest Quality).

Also, in your publish, be sure you have no compression setting on the .jpgs - 
change the quality to 100%.

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of i_bang
Sent: Thursday, July 20, 2006 10:03 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] flash color shift

hi!
anyone know how can i keep the quality of a image with a photoshop
profile in flash? now when i import the jpg file into flash the color
of the image changes a lot, it´s more lighter than the original,
what can i do??

thanks a lot!!

___
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] Form Help Needed, Please

2006-07-20 Thread Loren R. Elks

Hi:

I've got a form that just does not send.  Can someone please look at my
code?

I placed the FLA, SWF, HTML and ASP files in a zip located at:
www.d-mag.org/testform/sent_out.zip

Could you also email reply back to me directly as well?
[EMAIL PROTECTED] 

Thank you,
Loren
___
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] scale9grid how to

2006-07-20 Thread Merrill, Jason
No. All my example was, was a custom function that emulates a scale9 like how 
it works in Flash 8.  It just positions and scales 9 graphics  - that's all.  

Jason Merrill
Bank of America 
Learning  Organization Effectiveness - Technology Solutions 
 
 
 
 
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Marcos Neves
Sent: Thursday, July 20, 2006 10:02 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] scale9grid how to

You call scale inside the X,Y,height,Width assessors, right?

On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:
 I used that two. You call the scale9 function when?

 I call it when I want the graphic to scale - that was just an excerpt from 
 a class
I wrote, you would want to add paramters like X,Y,height,Width of the graphic,
and the name of the scale9 movie clip in the library.

 How do you know
 when it need to be updated?

 I don't understand the nature of that question.


 Jason Merrill
 Bank of America
 Learning  Organization Effectiveness - Technology Solutions






 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Marcos Neves
 Sent: Thursday, July 20, 2006 9:24 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] scale9grid how to
 
 I used that two. You call the scale9 function when? How do you know
 when it need to be updated?
 
 On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:
  Well, what I did is make 9 parts to my graphic,
 
  topLeft_mc
  topCenter_mc
  topRight_mc
  centerLeft_mc
  center_mc
  etc.
 
  Then, put those in a movieClip with the respective instance names.  Then
pass
 that clip to a scale function, also pass width and height parameters.  
 Then in
the
 function, do some calculations.  Something like this (this example 
 attaches
the
 scale 9 clip from the library):
 
  private function scale9():MovieClip {
 t = this.target_mc.attachMovie(scale9graphic , 
  scale9graphic_mc,
 theDepth);
 t._x = x;
 t._y = y;
 x1 = 0;
 x2 = t.topLeft_mc._width;
 x3 = w-(t.topLeft_mc._width);
 y1 = 0;
 y2 = t.topLeft_mc._height;
 y3 = h-t.bottomLeft_mc._height;
 w1 = t.topLeft_mc._width;
 w2 = w-(t.topLeft_mc._width + t.topRight_mc._width);
 w3 = t.topRight_mc._width;
 h1 = t.topRight_mc._height;
 h2 = h-(t.topRight_mc._height+t.bottomRight_mc._height);
 h3 = t.bottomRight_mc._height;
 
 t.topLeft_mc._x = x1;
 t.topLeft_mc._y = y1;
 
 t.topCenter_mc._x = x2;
 t.topCenter_mc._y = y1;
 t.topCenter_mc._width = w2;
 
 t.topRight_mc._x = x3;
 t.topRight_mc._y = y1;
 
 t.centerLeft_mc._x = x1;
 t.centerLeft_mc._y = y2;
 t.centerLeft_mc._height = h2;
 
 t.center_mc._x = x2;
 t.center_mc._y = y2;
 t.center_mc._width = w2;
 t.center_mc._height = h2;
 
 t.centerRight_mc._x = x3;
 t.centerRight_mc._y = y2;
 t.centerRight_mc._height = h2;
 
 t.bottomLeft_mc._x = x1;
 t.bottomLeft_mc._y = y3;
 
 t.bottomCenter_mc._x = x2;
 t.bottomCenter_mc._y = y3;
 t.bottomCenter_mc._width = w2;
 
 t.bottomRight_mc._x = x3;
 t.bottomRight_mc._y = y3;
 
 return t;
  };
 
  Jason Merrill
  Bank of America
  Learning  Organization Effectiveness - Technology Solutions
 
 
 
 
 
 
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:flashcoders-
  [EMAIL PROTECTED] On Behalf Of Marcos Neves
  Sent: Thursday, July 20, 2006 8:48 AM
  To: Flashcoders mailing list
  Subject: Re: [Flashcoders] scale9grid how to
  
  And how it can be done?
  
  On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:
   If it gets too messy, you can also roll your own scale 9 function 
   for
graphics
 -
  that's what I did since I'm building for Flash 7.  It's pretty easy 
  actually.
  
   Jason Merrill
   Bank of America
   Learning  Organization Effectiveness - Technology Solutions
  
  
  
  
  
   -Original Message-
   From: [EMAIL PROTECTED]
[mailto:flashcoders-
   [EMAIL PROTECTED] On Behalf Of Marcos Neves
   Sent: Wednesday, July 19, 2006 4:34 PM
   To: Flashcoders mailing list
   Subject: [Flashcoders] scale9grid how to
   
   How can I use programaticlly scale9grid to don´t deform a 
   roundRect
 when
   scaled?
   I´know how it works at design time on flash.
   ___
   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 

Re: [Flashcoders] How to embed metadata in SWF files?

2006-07-20 Thread Max

I'm pretty sure Flash 9 has built in metadata capabilities, although
I've never used them and I'm not aware of any way to access them from
Actionscript code. Here's some of the arguments you can use with
mxmlc.

-metadata.contributor name
-metadata.creator name
-metadata.date text
-metadata.description text
-metadata.language code
-metadata.localized-description text lang
-metadata.localized-title title lang
-metadata.publisher name
-metadata.title text

Of course, it's probably Flash 9 only.

On 7/20/06, The Helmsman [EMAIL PROTECTED] wrote:

If you are loading one movie to another use following technique:

Main movie
Main movie variable defined:
Var testVar:String = Hello world;

External movie loaded to level 1:
External movie variable defined:
Var testVar:String = Hello world - external;

Now let's load external movie to level 1:
Trace(_level0.testVar) prints Hello world;
Trace(_root.testVar) prints Hello world - external;
Trace(_level1.testVar) prints Hello world - external;

Then same external movie we'll load to some mc called container_mc which
located on the main movie timeline:
Trace(_level0.testVar) prints Hello world;
Trace(_root.testVar) prints Hello world;
Trace(_root.container_mc.testVar) prints Hello world - external;
Trace(_level0.container_mc.testVar) prints Hello world - external;

Hope it will help you to undestand Flash scope

Igor V. aka The Helmsman

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rifled
Cloaca
Sent: Wednesday, July 19, 2006 5:29 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] How to embed metadata in SWF files?

Are you simply opening the SWF file directly, or loading it into a wrapper
SWF?

If you're loading it directly... it's just

_root.var1
_root.var2
...

If you're loading it into a wrapper, like so:

_root.myClip.loadMovie(path/to/my/movie.swf);

once it loads, you'll be able to access the data with:

_root.myClip.var1
_root.myClip.var2
...

Make sure your movie has loaded.  Use the MovieClipLoader class and assign
an onLoad handler to access the variables.

-rc


On 7/18/06, Jeff Stearns [EMAIL PROTECTED] wrote:

 I don't have any problems getting variable assignments into the SWF
 file.

 I have problems accessing their values when I'm playing the movie.

 The SWF contains some ActionScript in frame 1 which sets variables
 like title=My First Movie, year=2006.
 But how can my Flash player access those variables when it loads and
 plays the movie?  Are they in some oddball namespace like
 _root.somethingOrOther

 thx, jeff


 On Jul 18, 2006, at 3:11 PM, Rifled Cloaca wrote:

  Or you could create a SWF using MTASC or the Flash IDE, and replace
  the variables after it is published like this guy does:
 
  http://www.neurofuzzy.net/2005/01/27/swf-recombination/
 
 
  On 7/16/06, Mike Britton [EMAIL PROTECTED] wrote:
 
  I would build a wrapper MovieClip class extension for your
  compiled SWF, and use LocalConnection to send/receive the values.
  That is, use LocalConnection in both the compiled swfs and in the
  wrapper.  The wrapper is the receiver and the compiled clips are
  the broadcasters.
 
  http://www.osflash.org/localconnection
 
  hth,
 
  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
 
  ___
  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

RE: [Flashcoders] flash color shift

2006-07-20 Thread Geoffrey Holland
Probably saving out of photoshop in CMYK, need RGB, CMYK will look right in
ps, but changes colors bringing into the RGB Flash world.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of i_bang
Sent: Thursday, July 20, 2006 9:03 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] flash color shift

hi!
anyone know how can i keep the quality of a image with a photoshop 
profile in flash? now when i import the jpg file into flash the color 
of the image changes a lot, it´s more lighter than the original,
what can i do??

thanks a lot!!


___
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] Accessing Vertices of Geometries

2006-07-20 Thread Matthew Ganz
hi.

i have a component that allows me to draw geometric shapes on it; rectangle, 
polygon, line, etc...

the coordinates of each shape are stored in an array and passed back to 
javascript. i have a new requirement whereby i need to allow the user to select 
the vertices of each shape and move them to change the shape. the exact same 
functionality that you can do with the rectangle tool in the flash IDE.

has anyone done this before or can point me in the right direction on how to 
get started?

thank you. -- matt.
___
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 color shift

2006-07-20 Thread Éric Thibault

Import your psd!  You can keep your layers too.

A+

Geoffrey Holland a écrit :

Probably saving out of photoshop in CMYK, need RGB, CMYK will look right in
ps, but changes colors bringing into the RGB Flash world.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of i_bang
Sent: Thursday, July 20, 2006 9:03 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] flash color shift

hi!
anyone know how can i keep the quality of a image with a photoshop 
profile in flash? now when i import the jpg file into flash the color 
of the image changes a lot, it´s more lighter than the original,

what can i do??

thanks a lot!!


___
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

  



--
===

Éric Thibault
Programmeur analyste
Réseau de valorisation de l'enseignement
Université Laval, pavillon Félix-Antoine Savard
Québec, Canada
Tel.: 656-2131 poste 18015
Courriel : [EMAIL PROTECTED]

===

Avis relatif à la confidentialité / Notice of Confidentiality / Advertencia de 
confidencialidad http://www.rec.ulaval.ca/lce/securite/confidentialite.htm

___
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] scale9grid how to

2006-07-20 Thread Julien Vignali

Marco,

If I remember well, you must publish your fla in order to test your 
scale9 grid. You can't preview the results within the flash editor and 
the scale9 guides (the 4 black dashed lines) are just visual helpers.


But, you can easily apply a scale9 grid to any movieclip at runtime, 
even if you haven't previously enabled scale9 in the movieclip 
properties...


Here is a .fla file to illustrate this:
http://www.vignali.net/julien/scale9.fla


Hope it helps
Julien Vignali


Marcos Neves a écrit :

That I did eric, how can I test to see if works? If I scale at the
scene, It doesn´t works. When I export the swf, neither.

On 7/20/06, eric dolecki [EMAIL PROTECTED] wrote:

Make your rectangle a mc.
In the Library, right-click on the mc, choose properties
should be a checkbox @ bottom to enable scale9
you should see dashed rules appear in mc preview in Library
2x click into, drag the rules around to set up your scale9

On 7/20/06, Marcos Neves [EMAIL PROTECTED] wrote:
 Should someone give an example of how to use scale9grid in flash 
authoring?

 I bitmap fill a rectangle with a checker pattern. The corners should
 have no deformation, but it´s having.

 On 7/20/06, Marcos Neves [EMAIL PROTECTED] wrote:
  I used that two. You call the scale9 function when? How do you know
  when it need to be updated?
 
  On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:
   Well, what I did is make 9 parts to my graphic,
  
   topLeft_mc
   topCenter_mc
   topRight_mc
   centerLeft_mc
   center_mc
   etc.
  
   Then, put those in a movieClip with the respective instance 
names.  Then pass that clip to a scale function, also pass width and 
height parameters.  Then in the function, do some calculations.  
Something like this (this example attaches the scale 9 clip from the 
library):

  
   private function scale9():MovieClip {
  t = this.target_mc.attachMovie(scale9graphic , 
scale9graphic_mc, theDepth);

  t._x = x;
  t._y = y;
  x1 = 0;
  x2 = t.topLeft_mc._width;
  x3 = w-(t.topLeft_mc._width);
  y1 = 0;
  y2 = t.topLeft_mc._height;
  y3 = h-t.bottomLeft_mc._height;
  w1 = t.topLeft_mc._width;
  w2 = w-(t.topLeft_mc._width + t.topRight_mc._width);
  w3 = t.topRight_mc._width;
  h1 = t.topRight_mc._height;
  h2 = h-(t.topRight_mc._height+t.bottomRight_mc._height);
  h3 = t.bottomRight_mc._height;
  
  t.topLeft_mc._x = x1;
  t.topLeft_mc._y = y1;
  
  t.topCenter_mc._x = x2;
  t.topCenter_mc._y = y1;
  t.topCenter_mc._width = w2;
  
  t.topRight_mc._x = x3;
  t.topRight_mc._y = y1;
  
  t.centerLeft_mc._x = x1;
  t.centerLeft_mc._y = y2;
  t.centerLeft_mc._height = h2;
  
  t.center_mc._x = x2;
  t.center_mc._y = y2;
  t.center_mc._width = w2;
  t.center_mc._height = h2;
  
  t.centerRight_mc._x = x3;
  t.centerRight_mc._y = y2;
  t.centerRight_mc._height = h2;
  
  t.bottomLeft_mc._x = x1;
  t.bottomLeft_mc._y = y3;
  
  t.bottomCenter_mc._x = x2;
  t.bottomCenter_mc._y = y3;
  t.bottomCenter_mc._width = w2;
  
  t.bottomRight_mc._x = x3;
  t.bottomRight_mc._y = y3;
  
  return t;
   };
  
   Jason Merrill
   Bank of America
   Learning  Organization Effectiveness - Technology Solutions
  
  
  
  
  
  
   -Original Message-
   From: [EMAIL PROTECTED] 
[mailto:flashcoders-

   [EMAIL PROTECTED] On Behalf Of Marcos Neves
   Sent: Thursday, July 20, 2006 8:48 AM
   To: Flashcoders mailing list
   Subject: Re: [Flashcoders] scale9grid how to
   
   And how it can be done?
   
   On 7/20/06, Merrill, Jason [EMAIL PROTECTED] 
wrote:
If it gets too messy, you can also roll your own scale 9 
function for graphics -
   that's what I did since I'm building for Flash 7.  It's pretty 
easy actually.

   
Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions
   
   
   
   
   
-Original Message-
From: [EMAIL PROTECTED] 
[mailto:flashcoders-

[EMAIL PROTECTED] On Behalf Of Marcos Neves
Sent: Wednesday, July 19, 2006 4:34 PM
To: Flashcoders mailing list
Subject: [Flashcoders] scale9grid how to

How can I use programaticlly scale9grid to don´t deform a 
roundRect when

scaled?
I´know how it works at design time on flash.
___
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 

Re: [Flashcoders] flash color shift

2006-07-20 Thread Adrian Park

Under View  Proof Setup, choose 'Monitor RGB' - this will give you a better
representation fo what the image will look like in browsers and Flash.
Colour correct the image to look as you want then save out your jpg ready
for import into Flash.

Now, back to ActionScript... :)

HTH
Adrian

On 7/20/06, i_bang [EMAIL PROTECTED] wrote:


hi!
anyone know how can i keep the quality of a image with a photoshop
profile in flash? now when i import the jpg file into flash the color
of the image changes a lot, it´s more lighter than the original,
what can i do??

thanks a lot!!


___
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 color shift

2006-07-20 Thread Simon Renshaw
If the PS document is defiantly RGB, check the embedded colour profile,
probably set to adobe 1998, use the convert to profile command to change it
to SRGB before you export to Flash, you may notice some slight changes after
the conversion, if so re-colour as necessary, save out again with the new
profile and import into flash, should be fine.

Hope this helps

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey
Holland
Sent: 20 July 2006 15:28
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] flash color shift

Probably saving out of photoshop in CMYK, need RGB, CMYK will look right in
ps, but changes colors bringing into the RGB Flash world.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of i_bang
Sent: Thursday, July 20, 2006 9:03 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] flash color shift

hi!
anyone know how can i keep the quality of a image with a photoshop 
profile in flash? now when i import the jpg file into flash the color 
of the image changes a lot, it´s more lighter than the original,
what can i do??

thanks a lot!!


___
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






___
All new Yahoo! Mail The new Interface is stunning in its simplicity and ease 
of use. - PC Magazine
http://uk.docs.yahoo.com/nowyoucan.html
___
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] Re: BitmapData.draw() peculiarity

2006-07-20 Thread jim
Im interested, do you have a quick example of this.

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John VanHorn
Sent: 19 July 2006 15:29
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Re: BitmapData.draw() peculiarity

ok, luckily a friend had an answer for me.

if any body is curious, you can offset the negative space by passing a
transformation matrix as a param to the draw() method.

On 7/18/06, John VanHorn [EMAIL PROTECTED] wrote:

 has anyone tried to use the BitmapData.draw() method to draw a movieclip
 that has content in the negative coordinate space? it seems like no matter
 what i do, i can only get the draw() method to start from the point 0,0 in
a
 movie clip, when i need it to start at say -20,-20. even passing the
 clipRect param to the method does not do what you would expect. am i
missing
 something here?

 any solutions or workarounds would be appreciated.

 --
 John Van Horn
 [EMAIL PROTECTED]




-- 
John Van Horn
[EMAIL PROTECTED]
___
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 color shift

2006-07-20 Thread i_bang

thanks a lot Adrian !!! good solution! it works!!


Under View  Proof Setup, choose 'Monitor RGB' - this will give you a 
better

representation fo what the image will look like in browsers and Flash.
Colour correct the image to look as you want then save out your jpg 
ready

for import into Flash.

Now, back to ActionScript... :)

HTH
Adrian

On 7/20/06, i_bang [EMAIL PROTECTED] wrote:


hi!
anyone know how can i keep the quality of a image with a photoshop
profile in flash? now when i import the jpg file into flash the color
of the image changes a lot, it´s more lighter than the original,
what can i do??

thanks a lot!!


___
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] popoulating FLV files with metaData from encoder

2006-07-20 Thread sam rolfe

Hey, anyone knkow how to get the metaData into the flv through the encoder,
seems to be blank ?
___
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] Re: BitmapData.draw() peculiarity

2006-07-20 Thread John VanHorn

sure...
say you have a movie clip named contentMc, with the reg point in the center.
that would mean that the upper left most content within that movie clip
would have a negative _x and _y, say -50,-50. if you use:
bmpObject.draw(contentMc),
it will only draw a bitmap starting at 0,0so you would only get the
content in the bottom right quadrant of contentMc.

one of the params you can pass the draw() method is a transformation matrix.
so if you used:

bmpObject.draw(contentMc, new Matrix(1,0,0,1,50,50));

it would start drawing the bitmap from -50,-50 within contentMc. the last 2
params of the matrix are the amount of offset.

On 7/20/06, jim [EMAIL PROTECTED] wrote:


Im interested, do you have a quick example of this.

Jim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John
VanHorn
Sent: 19 July 2006 15:29
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Re: BitmapData.draw() peculiarity

ok, luckily a friend had an answer for me.

if any body is curious, you can offset the negative space by passing a
transformation matrix as a param to the draw() method.

On 7/18/06, John VanHorn [EMAIL PROTECTED] wrote:

 has anyone tried to use the BitmapData.draw() method to draw a movieclip
 that has content in the negative coordinate space? it seems like no
matter
 what i do, i can only get the draw() method to start from the point 0,0
in
a
 movie clip, when i need it to start at say -20,-20. even passing the
 clipRect param to the method does not do what you would expect. am i
missing
 something here?

 any solutions or workarounds would be appreciated.

 --
 John Van Horn
 [EMAIL PROTECTED]




--
John Van Horn
[EMAIL PROTECTED]
___
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





--
John Van Horn
[EMAIL PROTECTED]
___
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] popoulating FLV files with metaData from encoder

2006-07-20 Thread Hans Wichman

Hi,
yes, type: metaData into the flv in google and its the first hit:)

greetz
Hans


On 7/20/06, sam rolfe [EMAIL PROTECTED] wrote:


Hey, anyone knkow how to get the metaData into the flv through the
encoder,
seems to be blank ?
___
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] popoulating FLV files with metaData from encoder

2006-07-20 Thread Marc Hoffman
I've had no trouble retrieving metaData from flv's that were created 
using the encoder. What are you trying to do?


- Marc

At 09:46 AM 7/20/2006, you wrote:


Hey, anyone knkow how to get the metaData into the flv through the encoder,
seems to be blank ?



___
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] slide a movieclip with photo(loaded by xml)

2006-07-20 Thread Jose Maria Barros

Something like this? because it doesnt work...it remains the problem...

//create an instance of MovieClipLoader
var myMCL = new MovieClipLoader();


myMCL.onLoadInit = function (targetMC)
{
   subAppear(targetMC, (i+3), 95);
}



function createTreeMenu():Void {
   for (i=0; imainMenus.length; i++) {
   newBut = _root.attachMovie(but, but+i, 999+i);
   newBut._x = 33+(newBut._width+5)*i;
   newBut._y = 380;
   newBut.txt.text = [i+1];
   newBut.link = mainMenus[i].firstChild.firstChild;

   subAppearX(imagemp_mc, (i+3), 344);

   newBut.onRelease = function() {
   loadMovie(this.link, imagem_mc);
   myMCL.loadClip(imagem_mc);
   };

   }
}


sorry for my dullness...maybe with a event listener?hummm

On 7/20/06, Adrian Park [EMAIL PROTECTED] wrote:


When 'this.link' loads into imagem_mc, any existing properties and methods
of imagem_mc are destroyed because 'this.link' replaces imagem_mc.

Immediately after loading the MovieClip, you call subAppear which assigns
the onEnterFrame handler. This handler is destroyed when the MovieClip
loads
so you don't see your animation working.

Here are your options:
1) use MovieClipLoader and then use the onLoadInit event to evoke
subAppear
when the movie has completely loaded or
2) nest imagem_mc inside a wrapper MovieClip and assign the onEnterFrame
handler to that wrapper.

The first option is the better option as it's just neater and also because
I
think it's fair to assume you only want the animation to happen once the
MovieCLip has loaded anyway.

HTH
Adrian


On 7/20/06, Jose Maria Barros [EMAIL PROTECTED] wrote:

 Hello. Im doing a test loading from xml information to load into one
movie
 clip one photo and having a number menu. When i press one of those
numbers
 a
 function subAppear makes the movieclip slide from the top.

 Wht i dont understand is that he loads the photo, but the function
doesnt
 work..i tried to test the function without loading the xml and the
 function
 works good..but when i load the xml..it doesnt..any help?

 Thanks in advance...and here is the code from the function and the
 function
 that creates the buttons

 Jose Maria

 function subAppear(mc:MovieClip, val:Number, target:Number):Void {

 mc.onEnterFrame = function() {
 if (target-this._y0.2  this._alpha99) {
 this._y = target;
 delete this.onEnterFrame;
 }
 if (this._alpha101) {
 this._alpha += val;
 }
 if (this._ytarget) {
 this._y -= (this._y-target)/4;
 }
 };
 }


 function createPhotofolio():Void {
 for (i=0; iphotoMenu.length; i++) {
 newBut = _root.attachMovie(but, but+i, 999+i);
 newBut._x = 33+(newBut._width+5)*i;
 newBut._y = 380;
 newBut.txt.text = [i+1];
 newBut.link = photoMenu[i].firstChild.firstChild;

 newBut.onRelease = function() {
 loadMovie(this.link, imagem_mc);
 subAppear(imagem_mc, (i+3), 95);
 };

 }
 }
 ___
 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] scale9grid how to

2006-07-20 Thread Marcos Neves

Thanks Julien,

Your example open my mind. Now I know that scale9grid is not powerfull
as I thought.
Here some conclusions that I found based on some tests:

It doesn´t work with bitmap
You can´t have movieClip inside it, only shapes.
Nested MC with 9grid doesn´t work.
The gradient fill or bitmap fill scale as if 9grid doesn´t exists.
Textfields too. :(

Resuming, there are so restrictions that it became almost useless.
Very sorry. :(

But thanks every one for the hand. :)

On 7/20/06, Julien Vignali [EMAIL PROTECTED] wrote:

Marco,

If I remember well, you must publish your fla in order to test your
scale9 grid. You can't preview the results within the flash editor and
the scale9 guides (the 4 black dashed lines) are just visual helpers.

But, you can easily apply a scale9 grid to any movieclip at runtime,
even if you haven't previously enabled scale9 in the movieclip
properties...

Here is a .fla file to illustrate this:
http://www.vignali.net/julien/scale9.fla


Hope it helps
Julien Vignali


Marcos Neves a écrit :
 That I did eric, how can I test to see if works? If I scale at the
 scene, It doesn´t works. When I export the swf, neither.

 On 7/20/06, eric dolecki [EMAIL PROTECTED] wrote:
 Make your rectangle a mc.
 In the Library, right-click on the mc, choose properties
 should be a checkbox @ bottom to enable scale9
 you should see dashed rules appear in mc preview in Library
 2x click into, drag the rules around to set up your scale9

 On 7/20/06, Marcos Neves [EMAIL PROTECTED] wrote:
  Should someone give an example of how to use scale9grid in flash
 authoring?
  I bitmap fill a rectangle with a checker pattern. The corners should
  have no deformation, but it´s having.
 
  On 7/20/06, Marcos Neves [EMAIL PROTECTED] wrote:
   I used that two. You call the scale9 function when? How do you know
   when it need to be updated?
  
   On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:
Well, what I did is make 9 parts to my graphic,
   
topLeft_mc
topCenter_mc
topRight_mc
centerLeft_mc
center_mc
etc.
   
Then, put those in a movieClip with the respective instance
 names.  Then pass that clip to a scale function, also pass width and
 height parameters.  Then in the function, do some calculations.
 Something like this (this example attaches the scale 9 clip from the
 library):
   
private function scale9():MovieClip {
   t = this.target_mc.attachMovie(scale9graphic ,
 scale9graphic_mc, theDepth);
   t._x = x;
   t._y = y;
   x1 = 0;
   x2 = t.topLeft_mc._width;
   x3 = w-(t.topLeft_mc._width);
   y1 = 0;
   y2 = t.topLeft_mc._height;
   y3 = h-t.bottomLeft_mc._height;
   w1 = t.topLeft_mc._width;
   w2 = w-(t.topLeft_mc._width + t.topRight_mc._width);
   w3 = t.topRight_mc._width;
   h1 = t.topRight_mc._height;
   h2 = h-(t.topRight_mc._height+t.bottomRight_mc._height);
   h3 = t.bottomRight_mc._height;
   
   t.topLeft_mc._x = x1;
   t.topLeft_mc._y = y1;
   
   t.topCenter_mc._x = x2;
   t.topCenter_mc._y = y1;
   t.topCenter_mc._width = w2;
   
   t.topRight_mc._x = x3;
   t.topRight_mc._y = y1;
   
   t.centerLeft_mc._x = x1;
   t.centerLeft_mc._y = y2;
   t.centerLeft_mc._height = h2;
   
   t.center_mc._x = x2;
   t.center_mc._y = y2;
   t.center_mc._width = w2;
   t.center_mc._height = h2;
   
   t.centerRight_mc._x = x3;
   t.centerRight_mc._y = y2;
   t.centerRight_mc._height = h2;
   
   t.bottomLeft_mc._x = x1;
   t.bottomLeft_mc._y = y3;
   
   t.bottomCenter_mc._x = x2;
   t.bottomCenter_mc._y = y3;
   t.bottomCenter_mc._width = w2;
   
   t.bottomRight_mc._x = x3;
   t.bottomRight_mc._y = y3;
   
   return t;
};
   
Jason Merrill
Bank of America
Learning  Organization Effectiveness - Technology Solutions
   
   
   
   
   
   
-Original Message-
From: [EMAIL PROTECTED]
 [mailto:flashcoders-
[EMAIL PROTECTED] On Behalf Of Marcos Neves
Sent: Thursday, July 20, 2006 8:48 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] scale9grid how to

And how it can be done?

On 7/20/06, Merrill, Jason [EMAIL PROTECTED]
 wrote:
 If it gets too messy, you can also roll your own scale 9
 function for graphics -
that's what I did since I'm building for Flash 7.  It's pretty
 easy actually.

 Jason Merrill
 Bank of America
 Learning  Organization Effectiveness - Technology Solutions





 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Marcos Neves
 Sent: Wednesday, July 19, 2006 4:34 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] scale9grid how to
 

RE: [Flashcoders] scale9grid how to

2006-07-20 Thread Tom Lee
I'm curious how you originally intended to use 9-slice scaling - the uses I
would have for 9-slice would be interface component backgrounds and so
forth, for which it would be far from useless.  If you tell us what you're
trying to do, perhaps we can suggest an alternate approach?  

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marcos Neves
Sent: Thursday, July 20, 2006 2:09 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] scale9grid how to

Thanks Julien,

Your example open my mind. Now I know that scale9grid is not powerfull
as I thought.
Here some conclusions that I found based on some tests:

It doesn´t work with bitmap
You can´t have movieClip inside it, only shapes.
Nested MC with 9grid doesn´t work.
The gradient fill or bitmap fill scale as if 9grid doesn´t exists.
Textfields too. :(

Resuming, there are so restrictions that it became almost useless.
Very sorry. :(

But thanks every one for the hand. :)

On 7/20/06, Julien Vignali [EMAIL PROTECTED] wrote:
 Marco,

 If I remember well, you must publish your fla in order to test your
 scale9 grid. You can't preview the results within the flash editor and
 the scale9 guides (the 4 black dashed lines) are just visual helpers.

 But, you can easily apply a scale9 grid to any movieclip at runtime,
 even if you haven't previously enabled scale9 in the movieclip
 properties...

 Here is a .fla file to illustrate this:
 http://www.vignali.net/julien/scale9.fla


 Hope it helps
 Julien Vignali


 Marcos Neves a écrit :
  That I did eric, how can I test to see if works? If I scale at the
  scene, It doesn´t works. When I export the swf, neither.
 
  On 7/20/06, eric dolecki [EMAIL PROTECTED] wrote:
  Make your rectangle a mc.
  In the Library, right-click on the mc, choose properties
  should be a checkbox @ bottom to enable scale9
  you should see dashed rules appear in mc preview in Library
  2x click into, drag the rules around to set up your scale9
 
  On 7/20/06, Marcos Neves [EMAIL PROTECTED] wrote:
   Should someone give an example of how to use scale9grid in flash
  authoring?
   I bitmap fill a rectangle with a checker pattern. The corners should
   have no deformation, but it´s having.
  
   On 7/20/06, Marcos Neves [EMAIL PROTECTED] wrote:
I used that two. You call the scale9 function when? How do you know
when it need to be updated?
   
On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:
 Well, what I did is make 9 parts to my graphic,

 topLeft_mc
 topCenter_mc
 topRight_mc
 centerLeft_mc
 center_mc
 etc.

 Then, put those in a movieClip with the respective instance
  names.  Then pass that clip to a scale function, also pass width and
  height parameters.  Then in the function, do some calculations.
  Something like this (this example attaches the scale 9 clip from the
  library):

 private function scale9():MovieClip {
t = this.target_mc.attachMovie(scale9graphic ,
  scale9graphic_mc, theDepth);
t._x = x;
t._y = y;
x1 = 0;
x2 = t.topLeft_mc._width;
x3 = w-(t.topLeft_mc._width);
y1 = 0;
y2 = t.topLeft_mc._height;
y3 = h-t.bottomLeft_mc._height;
w1 = t.topLeft_mc._width;
w2 = w-(t.topLeft_mc._width + t.topRight_mc._width);
w3 = t.topRight_mc._width;
h1 = t.topRight_mc._height;
h2 = h-(t.topRight_mc._height+t.bottomRight_mc._height);
h3 = t.bottomRight_mc._height;

t.topLeft_mc._x = x1;
t.topLeft_mc._y = y1;

t.topCenter_mc._x = x2;
t.topCenter_mc._y = y1;
t.topCenter_mc._width = w2;

t.topRight_mc._x = x3;
t.topRight_mc._y = y1;

t.centerLeft_mc._x = x1;
t.centerLeft_mc._y = y2;
t.centerLeft_mc._height = h2;

t.center_mc._x = x2;
t.center_mc._y = y2;
t.center_mc._width = w2;
t.center_mc._height = h2;

t.centerRight_mc._x = x3;
t.centerRight_mc._y = y2;
t.centerRight_mc._height = h2;

t.bottomLeft_mc._x = x1;
t.bottomLeft_mc._y = y3;

t.bottomCenter_mc._x = x2;
t.bottomCenter_mc._y = y3;
t.bottomCenter_mc._width = w2;

t.bottomRight_mc._x = x3;
t.bottomRight_mc._y = y3;

return t;
 };

 Jason Merrill
 Bank of America
 Learning  Organization Effectiveness - Technology Solutions






 -Original Message-
 From: [EMAIL PROTECTED]
  [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Marcos Neves
 Sent: Thursday, July 20, 2006 8:48 AM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] scale9grid how to
 
 And how it can be done?
 

RE: [Flashcoders] ActionScript Application Framework

2006-07-20 Thread Steven Sacks | BLITZ
James,

Rails and Flex work very well together.  Maybe you should consider
following that career path - a Flex/Rails developer.  Jesse Warden has
gone that way and loves it.

http://www.recentrambles.com/pragmatic/view/31


BLITZ | Steven Sacks - 310-551-0200 x209

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

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


Re: [Flashcoders] scale9grid how to

2006-07-20 Thread Marcos Neves

I´m using for interface components too. I import a png button and
align the guides to my needs. But it doesn´t work.
I found an ugly workaround for this.
Textfields and movieClips inside would be good too.

On 7/20/06, Tom Lee [EMAIL PROTECTED] wrote:

I'm curious how you originally intended to use 9-slice scaling - the uses I
would have for 9-slice would be interface component backgrounds and so
forth, for which it would be far from useless.  If you tell us what you're
trying to do, perhaps we can suggest an alternate approach?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marcos Neves
Sent: Thursday, July 20, 2006 2:09 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] scale9grid how to

Thanks Julien,

Your example open my mind. Now I know that scale9grid is not powerfull
as I thought.
Here some conclusions that I found based on some tests:

It doesn´t work with bitmap
You can´t have movieClip inside it, only shapes.
Nested MC with 9grid doesn´t work.
The gradient fill or bitmap fill scale as if 9grid doesn´t exists.
Textfields too. :(

Resuming, there are so restrictions that it became almost useless.
Very sorry. :(

But thanks every one for the hand. :)

On 7/20/06, Julien Vignali [EMAIL PROTECTED] wrote:
 Marco,

 If I remember well, you must publish your fla in order to test your
 scale9 grid. You can't preview the results within the flash editor and
 the scale9 guides (the 4 black dashed lines) are just visual helpers.

 But, you can easily apply a scale9 grid to any movieclip at runtime,
 even if you haven't previously enabled scale9 in the movieclip
 properties...

 Here is a .fla file to illustrate this:
 http://www.vignali.net/julien/scale9.fla


 Hope it helps
 Julien Vignali


 Marcos Neves a écrit :
  That I did eric, how can I test to see if works? If I scale at the
  scene, It doesn´t works. When I export the swf, neither.
 
  On 7/20/06, eric dolecki [EMAIL PROTECTED] wrote:
  Make your rectangle a mc.
  In the Library, right-click on the mc, choose properties
  should be a checkbox @ bottom to enable scale9
  you should see dashed rules appear in mc preview in Library
  2x click into, drag the rules around to set up your scale9
 
  On 7/20/06, Marcos Neves [EMAIL PROTECTED] wrote:
   Should someone give an example of how to use scale9grid in flash
  authoring?
   I bitmap fill a rectangle with a checker pattern. The corners should
   have no deformation, but it´s having.
  
   On 7/20/06, Marcos Neves [EMAIL PROTECTED] wrote:
I used that two. You call the scale9 function when? How do you know
when it need to be updated?
   
On 7/20/06, Merrill, Jason [EMAIL PROTECTED] wrote:
 Well, what I did is make 9 parts to my graphic,

 topLeft_mc
 topCenter_mc
 topRight_mc
 centerLeft_mc
 center_mc
 etc.

 Then, put those in a movieClip with the respective instance
  names.  Then pass that clip to a scale function, also pass width and
  height parameters.  Then in the function, do some calculations.
  Something like this (this example attaches the scale 9 clip from the
  library):

 private function scale9():MovieClip {
t = this.target_mc.attachMovie(scale9graphic ,
  scale9graphic_mc, theDepth);
t._x = x;
t._y = y;
x1 = 0;
x2 = t.topLeft_mc._width;
x3 = w-(t.topLeft_mc._width);
y1 = 0;
y2 = t.topLeft_mc._height;
y3 = h-t.bottomLeft_mc._height;
w1 = t.topLeft_mc._width;
w2 = w-(t.topLeft_mc._width + t.topRight_mc._width);
w3 = t.topRight_mc._width;
h1 = t.topRight_mc._height;
h2 = h-(t.topRight_mc._height+t.bottomRight_mc._height);
h3 = t.bottomRight_mc._height;

t.topLeft_mc._x = x1;
t.topLeft_mc._y = y1;

t.topCenter_mc._x = x2;
t.topCenter_mc._y = y1;
t.topCenter_mc._width = w2;

t.topRight_mc._x = x3;
t.topRight_mc._y = y1;

t.centerLeft_mc._x = x1;
t.centerLeft_mc._y = y2;
t.centerLeft_mc._height = h2;

t.center_mc._x = x2;
t.center_mc._y = y2;
t.center_mc._width = w2;
t.center_mc._height = h2;

t.centerRight_mc._x = x3;
t.centerRight_mc._y = y2;
t.centerRight_mc._height = h2;

t.bottomLeft_mc._x = x1;
t.bottomLeft_mc._y = y3;

t.bottomCenter_mc._x = x2;
t.bottomCenter_mc._y = y3;
t.bottomCenter_mc._width = w2;

t.bottomRight_mc._x = x3;
t.bottomRight_mc._y = y3;

return t;
 };

 Jason Merrill
 Bank of America
 Learning  Organization Effectiveness - Technology Solutions






 -Original Message-
 From: [EMAIL 

RE: [Flashcoders] Accessing Vertices of Geometries

2006-07-20 Thread Tom Lee
What version of the Flash Player are you targeting?

The basic idea would be to put a button at each vertex, use startDrag and
stopDrag to enable drag-drop on those buttons, and redraw the shape on
mouseMove during drag actions, getting the new coordinates from the button
locations.  The specifics would vary depending on Player version.


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthew Ganz
Sent: Thursday, July 20, 2006 10:40 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Accessing Vertices of Geometries

hi.

i have a component that allows me to draw geometric shapes on it; rectangle,
polygon, line, etc...

the coordinates of each shape are stored in an array and passed back to
javascript. i have a new requirement whereby i need to allow the user to
select the vertices of each shape and move them to change the shape. the
exact same functionality that you can do with the rectangle tool in the
flash IDE.

has anyone done this before or can point me in the right direction on how to
get started?

thank you. -- matt. 
___
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] scale9grid how to

2006-07-20 Thread Tom Lee
If you must use a bitmap, you might look into the Splice9 JSFL extension at
http://www.brajeshwar.com/downloads/jsfl/splice9/.  This extension is an
author-time solution to the problem.  If possible, however, I would suggest
converting your PNGs to vectors.  With the filters now available in Flash,
there isn't much that you can do with bitmaps that you can't do with
vectors.  Also, vectors often yield smaller file sizes, and scale without
degradation.

Instead of putting textfields and movieclips inside the 9-sliced movieclip,
how about putting them on top of it?  You might consider using the 9-sliced
clip as a background layer, and then controlling the width and height of the
textfields separately.  

Some unique effects can be achieved by 9-slicing multiple movieclips and
then stacking them.  Additionally, you can put multiple shapes in the same
movieclip on different layers and all the shapes will be affected by
scale9grid.  Also, you can use a 9-sliced movieclip as a mask for another
movieclip, which could contain a textfield.

With a creative combination of techniques, you should be able to achieve the
desired result.  You may not be able to do it with 9-slice alone, however.

-tom

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marcos Neves
Sent: Thursday, July 20, 2006 2:56 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] scale9grid how to

I´m using for interface components too. I import a png button and
align the guides to my needs. But it doesn´t work.
I found an ugly workaround for this.
Textfields and movieClips inside would be good too.

On 7/20/06, Tom Lee [EMAIL PROTECTED] wrote:
 I'm curious how you originally intended to use 9-slice scaling - the uses
I
 would have for 9-slice would be interface component backgrounds and so
 forth, for which it would be far from useless.  If you tell us what you're
 trying to do, perhaps we can suggest an alternate approach?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Marcos
Neves
 Sent: Thursday, July 20, 2006 2:09 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] scale9grid how to

 Thanks Julien,

 Your example open my mind. Now I know that scale9grid is not powerfull
 as I thought.
 Here some conclusions that I found based on some tests:

 It doesn´t work with bitmap
 You can´t have movieClip inside it, only shapes.
 Nested MC with 9grid doesn´t work.
 The gradient fill or bitmap fill scale as if 9grid doesn´t exists.
 Textfields too. :(

 Resuming, there are so restrictions that it became almost useless.
 Very sorry. :(

 But thanks every one for the hand. :)

 On 7/20/06, Julien Vignali [EMAIL PROTECTED] wrote:
  Marco,
 
  If I remember well, you must publish your fla in order to test your
  scale9 grid. You can't preview the results within the flash editor and
  the scale9 guides (the 4 black dashed lines) are just visual helpers.
 
  But, you can easily apply a scale9 grid to any movieclip at runtime,
  even if you haven't previously enabled scale9 in the movieclip
  properties...
 
  Here is a .fla file to illustrate this:
  http://www.vignali.net/julien/scale9.fla
 
 
  Hope it helps
  Julien Vignali
 
 
  Marcos Neves a écrit :
   That I did eric, how can I test to see if works? If I scale at the
   scene, It doesn´t works. When I export the swf, neither.
  
   On 7/20/06, eric dolecki [EMAIL PROTECTED] wrote:
   Make your rectangle a mc.
   In the Library, right-click on the mc, choose properties
   should be a checkbox @ bottom to enable scale9
   you should see dashed rules appear in mc preview in Library
   2x click into, drag the rules around to set up your scale9
  
   On 7/20/06, Marcos Neves [EMAIL PROTECTED] wrote:
Should someone give an example of how to use scale9grid in flash
   authoring?
I bitmap fill a rectangle with a checker pattern. The corners
should
have no deformation, but it´s having.
   
On 7/20/06, Marcos Neves [EMAIL PROTECTED] wrote:
 I used that two. You call the scale9 function when? How do you
know
 when it need to be updated?

 On 7/20/06, Merrill, Jason [EMAIL PROTECTED]
wrote:
  Well, what I did is make 9 parts to my graphic,
 
  topLeft_mc
  topCenter_mc
  topRight_mc
  centerLeft_mc
  center_mc
  etc.
 
  Then, put those in a movieClip with the respective instance
   names.  Then pass that clip to a scale function, also pass width and
   height parameters.  Then in the function, do some calculations.
   Something like this (this example attaches the scale 9 clip from the
   library):
 
  private function scale9():MovieClip {
 t = this.target_mc.attachMovie(scale9graphic ,
   scale9graphic_mc, theDepth);
 t._x = x;
 t._y = y;
 x1 = 0;
 x2 = t.topLeft_mc._width;
 x3 = w-(t.topLeft_mc._width);
 y1 = 0;
 y2 = 

[Flashcoders] Speed up Datagrids

2006-07-20 Thread Doug Coning
I've created an RIA application that depends heavily upon the Enhanced
Datagrid.  I like the datagrid quite a bit, however, each time a window
opens, it can take upwards of 10 seconds for the datagrid to
instantiate, and this is testing with small bits of data (Nothing more
than 40 records).  I load the data by using the .dataProvider method
which comes back from the server very quickly.  Most of my datagrids
only have 1 to 4 columns, so the column sizes are not the problem.  Yes,
a lot of them have cell renderers which I'm putting in a checkbox,
button or image.   Once the datagrid loads, it runs very well.  I just
don't think the user is going to like waiting 10 to 15 seconds everytime
they open a window in flash that has a datagrid.

Does anyone have any successful strategies for speeding up the datagrid
component?

Does anyone know if the List component is faster than the datagrid
component for showing simple data?

Thanks,

Doug Coning
FORUM Solutions
Senior Web Software Developer
 
This e-mail and any attachment(s) are intended for the specified recipient(s) 
only and are legally protected.  If you have received this communication in 
error, please reply to sender's e-mail address with notification of the error 
and then destroy this message in all electronic and physical forms.
___
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] scale9grid how to

2006-07-20 Thread Marcos Neves

I found some workarounds at design time. But i´m still can´t use
[Embed] to include my vector or bitmap and use it as scale9grid.
Perhaps there´s some implications that I can´t see, to Macromedia
didn´t implement that.

Some unique effects can be achieved by 9-slicing multiple movieclips and
then stacking them.
Also, you can use a 9-sliced movieclip as a mask for another
movieclip, which could contain a textfield.

I´m curious about how to do that!

On 7/20/06, Tom Lee [EMAIL PROTECTED] wrote:

If you must use a bitmap, you might look into the Splice9 JSFL extension at
http://www.brajeshwar.com/downloads/jsfl/splice9/.  This extension is an
author-time solution to the problem.  If possible, however, I would suggest
converting your PNGs to vectors.  With the filters now available in Flash,
there isn't much that you can do with bitmaps that you can't do with
vectors.  Also, vectors often yield smaller file sizes, and scale without
degradation.

Instead of putting textfields and movieclips inside the 9-sliced movieclip,
how about putting them on top of it?  You might consider using the 9-sliced
clip as a background layer, and then controlling the width and height of the
textfields separately.

Some unique effects can be achieved by 9-slicing multiple movieclips and
then stacking them.  Additionally, you can put multiple shapes in the same
movieclip on different layers and all the shapes will be affected by
scale9grid.  Also, you can use a 9-sliced movieclip as a mask for another
movieclip, which could contain a textfield.

With a creative combination of techniques, you should be able to achieve the
desired result.  You may not be able to do it with 9-slice alone, however.

-tom

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Marcos Neves
Sent: Thursday, July 20, 2006 2:56 PM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] scale9grid how to

I´m using for interface components too. I import a png button and
align the guides to my needs. But it doesn´t work.
I found an ugly workaround for this.
Textfields and movieClips inside would be good too.

On 7/20/06, Tom Lee [EMAIL PROTECTED] wrote:
 I'm curious how you originally intended to use 9-slice scaling - the uses
I
 would have for 9-slice would be interface component backgrounds and so
 forth, for which it would be far from useless.  If you tell us what you're
 trying to do, perhaps we can suggest an alternate approach?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Marcos
Neves
 Sent: Thursday, July 20, 2006 2:09 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] scale9grid how to

 Thanks Julien,

 Your example open my mind. Now I know that scale9grid is not powerfull
 as I thought.
 Here some conclusions that I found based on some tests:

 It doesn´t work with bitmap
 You can´t have movieClip inside it, only shapes.
 Nested MC with 9grid doesn´t work.
 The gradient fill or bitmap fill scale as if 9grid doesn´t exists.
 Textfields too. :(

 Resuming, there are so restrictions that it became almost useless.
 Very sorry. :(

 But thanks every one for the hand. :)

 On 7/20/06, Julien Vignali [EMAIL PROTECTED] wrote:
  Marco,
 
  If I remember well, you must publish your fla in order to test your
  scale9 grid. You can't preview the results within the flash editor and
  the scale9 guides (the 4 black dashed lines) are just visual helpers.
 
  But, you can easily apply a scale9 grid to any movieclip at runtime,
  even if you haven't previously enabled scale9 in the movieclip
  properties...
 
  Here is a .fla file to illustrate this:
  http://www.vignali.net/julien/scale9.fla
 
 
  Hope it helps
  Julien Vignali
 
 
  Marcos Neves a écrit :
   That I did eric, how can I test to see if works? If I scale at the
   scene, It doesn´t works. When I export the swf, neither.
  
   On 7/20/06, eric dolecki [EMAIL PROTECTED] wrote:
   Make your rectangle a mc.
   In the Library, right-click on the mc, choose properties
   should be a checkbox @ bottom to enable scale9
   you should see dashed rules appear in mc preview in Library
   2x click into, drag the rules around to set up your scale9
  
   On 7/20/06, Marcos Neves [EMAIL PROTECTED] wrote:
Should someone give an example of how to use scale9grid in flash
   authoring?
I bitmap fill a rectangle with a checker pattern. The corners
should
have no deformation, but it´s having.
   
On 7/20/06, Marcos Neves [EMAIL PROTECTED] wrote:
 I used that two. You call the scale9 function when? How do you
know
 when it need to be updated?

 On 7/20/06, Merrill, Jason [EMAIL PROTECTED]
wrote:
  Well, what I did is make 9 parts to my graphic,
 
  topLeft_mc
  topCenter_mc
  topRight_mc
  centerLeft_mc
  center_mc
  etc.
 
  Then, put those in a movieClip with the respective instance
   names.  Then pass that clip to a scale function, also pass width and
   

Re: [Flashcoders] ActionScript Application Framework

2006-07-20 Thread Ujjwal Kabra

After nearly two years of working in ActionScript, my company decided that
Flash development was too painful and just not worth the effort.

This happened just about the time that I was actually getting the hang of
things. In any case, I was the last Flash(AS2) Developer left here...

I'm in full support for building an app-development framework around
Flash/AS2 and/or AS3, which would make life easier for AS2 devs like me, and
make the decision to chose Flash as a development platform easier for a
mid-sized team than it currently is.

While I have little(none actually) idea about Ruby and Rails, I'll read up
soon... I would love to get started before my Flash skills actually get
rusted away.

- Ujjwal

PS: Is there a troll feature on mailing lists?
On 7/21/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:


James,

Rails and Flex work very well together.  Maybe you should consider
following that career path - a Flex/Rails developer.  Jesse Warden has
gone that way and loves it.

http://www.recentrambles.com/pragmatic/view/31


BLITZ | Steven Sacks - 310-551-0200 x209

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

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] modify sample rate in MP3 header?

2006-07-20 Thread Marc Hoffman
I've been using Flash to play back bird songs from amy website. By 
generating some MP3's at half or quarter speed (with commensurate 
drop in pitch) I can demonstrate some fascinating detail in bird 
songs that's otherwise missed by the human ear.


Now if I could just modify the MP3 headers on-the-fly (with server 
side file manipulation), I could let Flash slow down any MP3's 
without having to generate and store separate versions of the sound 
file on the server.


Anybody know of tools to modify MP3 header info on the fly? Sort of 
like creating thumbnails of images using PHP?


Marc Hoffman


___
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] ActionScript Application Framework

2006-07-20 Thread jcanistrum

and  where does your company decided to move for ?

2006/7/20, Ujjwal Kabra [EMAIL PROTECTED]:


After nearly two years of working in ActionScript, my company decided that
Flash development was too painful and just not worth the effort.

This happened just about the time that I was actually getting the hang of
things. In any case, I was the last Flash(AS2) Developer left here...

I'm in full support for building an app-development framework around
Flash/AS2 and/or AS3, which would make life easier for AS2 devs like me,
and
make the decision to chose Flash as a development platform easier for a
mid-sized team than it currently is.

While I have little(none actually) idea about Ruby and Rails, I'll read up
soon... I would love to get started before my Flash skills actually get
rusted away.

- Ujjwal

PS: Is there a troll feature on mailing lists?
On 7/21/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:

 James,

 Rails and Flex work very well together.  Maybe you should consider
 following that career path - a Flex/Rails developer.  Jesse Warden has
 gone that way and loves it.

 http://www.recentrambles.com/pragmatic/view/31


 BLITZ | Steven Sacks - 310-551-0200 x209

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

 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





--
João Carlos
___
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] slide a movieclip with photo(loaded by xml)

2006-07-20 Thread Adrian Park

I'm thinking more like this (using your most recent code as a starting
point)...

//create an instance of MovieClipLoader
var myMCL = new MovieClipLoader();
// register this as a listener
myMCL.addListener(this);
// define function to handle onLoadInit event
function onLoadInit( targetMC:MovieClip ):Void
{
   subAppear(targetMC, (i+3), 95);
}



function createTreeMenu():Void {
   for (i=0; imainMenus.length; i++) {
   newBut = _root.attachMovie(but, but+i, 999+i);
   newBut._x = 33+(newBut._width+5)*i;
   newBut._y = 380;
   newBut.txt.text = [i+1];
   newBut.link = mainMenus[i].firstChild.firstChild;

   subAppearX(imagemp_mc, (i+3), 344);

   newBut.onRelease = function() {
   // load the clip
   myMCL.loadClip( this.link, imagem_mc );
   };

   }
}

I haven't tested this code but it should get you close to what you're after.
Note that you should use loadMovie OR MovieClipLoader - not both for the
same task.

A.


On 7/20/06, Jose Maria Barros [EMAIL PROTECTED] wrote:


Something like this? because it doesnt work...it remains the problem...

//create an instance of MovieClipLoader
var myMCL = new MovieClipLoader();


myMCL.onLoadInit = function (targetMC)
{
subAppear(targetMC, (i+3), 95);
}



function createTreeMenu():Void {
for (i=0; imainMenus.length; i++) {
newBut = _root.attachMovie(but, but+i, 999+i);
newBut._x = 33+(newBut._width+5)*i;
newBut._y = 380;
newBut.txt.text = [i+1];
newBut.link = mainMenus[i].firstChild.firstChild;

subAppearX(imagemp_mc, (i+3), 344);

newBut.onRelease = function() {
loadMovie(this.link, imagem_mc);
myMCL.loadClip(imagem_mc);
};

}
}


sorry for my dullness...maybe with a event listener?hummm

On 7/20/06, Adrian Park [EMAIL PROTECTED] wrote:

 When 'this.link' loads into imagem_mc, any existing properties and
methods
 of imagem_mc are destroyed because 'this.link' replaces imagem_mc.

 Immediately after loading the MovieClip, you call subAppear which
assigns
 the onEnterFrame handler. This handler is destroyed when the MovieClip
 loads
 so you don't see your animation working.

 Here are your options:
 1) use MovieClipLoader and then use the onLoadInit event to evoke
 subAppear
 when the movie has completely loaded or
 2) nest imagem_mc inside a wrapper MovieClip and assign the onEnterFrame
 handler to that wrapper.

 The first option is the better option as it's just neater and also
because
 I
 think it's fair to assume you only want the animation to happen once the
 MovieCLip has loaded anyway.

 HTH
 Adrian


 On 7/20/06, Jose Maria Barros [EMAIL PROTECTED] wrote:
 
  Hello. Im doing a test loading from xml information to load into one
 movie
  clip one photo and having a number menu. When i press one of those
 numbers
  a
  function subAppear makes the movieclip slide from the top.
 
  Wht i dont understand is that he loads the photo, but the function
 doesnt
  work..i tried to test the function without loading the xml and the
  function
  works good..but when i load the xml..it doesnt..any help?
 
  Thanks in advance...and here is the code from the function and the
  function
  that creates the buttons
 
  Jose Maria
 
  function subAppear(mc:MovieClip, val:Number, target:Number):Void {
 
  mc.onEnterFrame = function() {
  if (target-this._y0.2  this._alpha99) {
  this._y = target;
  delete this.onEnterFrame;
  }
  if (this._alpha101) {
  this._alpha += val;
  }
  if (this._ytarget) {
  this._y -= (this._y-target)/4;
  }
  };
  }
 
 
  function createPhotofolio():Void {
  for (i=0; iphotoMenu.length; i++) {
  newBut = _root.attachMovie(but, but+i, 999+i);
  newBut._x = 33+(newBut._width+5)*i;
  newBut._y = 380;
  newBut.txt.text = [i+1];
  newBut.link = photoMenu[i].firstChild.firstChild;
 
  newBut.onRelease = function() {
  loadMovie(this.link, imagem_mc);
  subAppear(imagem_mc, (i+3), 95);
  };
 
  }
  }
  ___
  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 

[Flashcoders] Flash and SSL/HTTP Basic Authentication

2006-07-20 Thread Matthew Ganz
hi. 

i'm looking to learn more about how well flash plays with SSL and HTTP Basic 
Authentication. my understanding is that the flash player doesn't implement SSL 
and that all certificate verification is determined by the browser. but 
browsers may handle that differently. 

can anyone share their experiences or point me in the right direction where i 
can learn more? 

thanks. -- matt.
___
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 and SSL/HTTP Basic Authentication

2006-07-20 Thread Rifled Cloaca

With SSL, you need to use POST to send info, since Flash uses the browser's
POST transport for it, so the browser handles the encryption.

If you're using PHP and Sessions, you need to set your session_cache_limiter
in your PHP.INI (or using ini_set) from none to public or private, or
nothing will work.

Also, with the OBJECT/EMBED tag, you need to change the macromedia
pluginspage URL from http:// to https:// or you will get a security warning.

-rc


On 7/20/06, Matthew Ganz [EMAIL PROTECTED] wrote:


hi.

i'm looking to learn more about how well flash plays with SSL and HTTP
Basic Authentication. my understanding is that the flash player doesn't
implement SSL and that all certificate verification is determined by the
browser. but browsers may handle that differently.

can anyone share their experiences or point me in the right direction
where i can learn more?

thanks. -- matt.
___
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 and SSL/HTTP Basic Authentication

2006-07-20 Thread Tom Lee
I've had good luck with SSL and HTTP Basic across all platforms.  As you
say, it is handled by the browser.  I have run into problems using Flash's
WebService components over secure connections when testing within the IDE.
If you're testing on a web server, you should be fine.

-tom

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthew Ganz
Sent: Thursday, July 20, 2006 5:23 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Flash and SSL/HTTP Basic Authentication

hi. 

i'm looking to learn more about how well flash plays with SSL and HTTP Basic
Authentication. my understanding is that the flash player doesn't implement
SSL and that all certificate verification is determined by the browser. but
browsers may handle that differently. 

can anyone share their experiences or point me in the right direction where
i can learn more? 

thanks. -- matt. 
___
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] Bar Codes

2006-07-20 Thread Dan Wade
Hello,

Does anybody have experience with generating barcodes. From what I've read
it's as easy as embedding a barcode font and voila. But I can't match up to
the example I have from the client.

Any help or direction appreciated.

Thanks,

-d

___
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] Bar Codes

2006-07-20 Thread August Gresens

If you are building a web application, I've used Java based (servlet)
software that will return a JPEG image from a GET request this was from
http://www.idautomation.com. I'm sure there are PHP versions of the same
thing. I'm not sure how you would generate this in a standalone Flash app.
Hope this helps, August

On 7/20/06, Dan Wade [EMAIL PROTECTED] wrote:


Hello,

Does anybody have experience with generating barcodes. From what I've read
it's as easy as embedding a barcode font and voila. But I can't match up
to
the example I have from the client.

Any help or direction appreciated.

Thanks,

-d

___
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





--
-


August Gresens
Technical Director
Black Hammer Productions, NYC
[EMAIL PROTECTED]

-

___
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] system security

2006-07-20 Thread Laurent CUCHET
Hi 
http://www.laurentcuchet.fr
I got a serious problem with flash player 9 and security
I got 2 level
1. _level0 with a textfield ³titre²
2. _level1 with a textfield egal of the level 0 ³titre²

IN LOCAL IT READ

IN ExTERNAL IT DOESNT WORK ...

An idea ? Thank you

___
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] modify sample rate in MP3 header?

2006-07-20 Thread Bernard Visscher
I don't believe it's possible like that.
MP3 doesn't store samplerate in the headers it's all over the place.
Just test with a simple mp3, delete the first mb with a texteditor now it
will play the remaining mp3 with the correct sample rate.

Bernard 

 -Oorspronkelijk bericht-
 Van: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] Namens Marc Hoffman
 Verzonden: donderdag 20 juli 2006 22:06
 Aan: Flashcoders mailing list
 Onderwerp: [Flashcoders] modify sample rate in MP3 header?
 
 I've been using Flash to play back bird songs from amy 
 website. By generating some MP3's at half or quarter speed 
 (with commensurate drop in pitch) I can demonstrate some 
 fascinating detail in bird songs that's otherwise missed by 
 the human ear.
 
 Now if I could just modify the MP3 headers on-the-fly (with 
 server side file manipulation), I could let Flash slow down 
 any MP3's without having to generate and store separate 
 versions of the sound file on the server.
 
 Anybody know of tools to modify MP3 header info on the fly? 
 Sort of like creating thumbnails of images using PHP?
 
 Marc Hoffman
 
 
 ___
 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] Radiobutton groupName issue *URGENT*

2006-07-20 Thread Alberto Florentin
Hey, I just worked with radiobutton group for first time (at least for 2
years).  Had some problems on how to access the radioGroup object itself.
Finally used var radiogroup = eval(myradioButton.groupName) and then added
to it the event listener.  Problem is, to make it work I had to include the
path to the movieclip containing the radiobutton, like this var radiogroup =
eval(path +.+myradioButton.groupName).  So I understand the
radiobuttongroup object belongs to the _parent.myradioButton movieclip.  In
your case it seems that you get multiple radiobutton groups, one for each
movieclip.  You have to find some other way to do it.

Alberto

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Mike Boutin
Sent: Wednesday, July 19, 2006 8:35 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Radiobutton groupName issue *URGENT*


I am creating multiple movieclips with 1 radiobutton in each.  I want
them all the tie into 1 radiobutton Group, but the follow code doesnt
seem to work.  Can anyone tell me what im doing wrong and how to go
about fixing it?


I created a test case to show exactly what im trying to do...


import mx.controls.RadioButton;
for (var i =0; i10; i++){
var mc:MovieClip = this.createEmptyMovieClip(rbHolder_+i,
this.getNextHighestDepth());
var rb = mc.createClassObject(RadioButton, rb_+i,
mc.getNextHighestDepth(), {label:rb_+i, groupName:configGroup});
mc._y = i * 20;
trace(Group Name: +rb.groupName);
}



Mike Boutin
___
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] Radiobutton groupName issue *URGENT*

2006-07-20 Thread eric dolecki

yup - seems like a scoping issue...

if all the radiobutton mcw were nested in a larger, single mc, they could
all register with the radiobutton groupname that is defined in that single
mc. in theory.

e.d.

On 7/20/06, Alberto Florentin [EMAIL PROTECTED] wrote:


Hey, I just worked with radiobutton group for first time (at least for 2
years).  Had some problems on how to access the radioGroup object itself.
Finally used var radiogroup = eval(myradioButton.groupName) and then added
to it the event listener.  Problem is, to make it work I had to include
the
path to the movieclip containing the radiobutton, like this var radiogroup
=
eval(path +.+myradioButton.groupName).  So I understand the
radiobuttongroup object belongs to the _parent.myradioButton
movieclip.  In
your case it seems that you get multiple radiobutton groups, one for each
movieclip.  You have to find some other way to do it.

Alberto

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Mike Boutin
Sent: Wednesday, July 19, 2006 8:35 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Radiobutton groupName issue *URGENT*


I am creating multiple movieclips with 1 radiobutton in each.  I want
them all the tie into 1 radiobutton Group, but the follow code doesnt
seem to work.  Can anyone tell me what im doing wrong and how to go
about fixing it?


I created a test case to show exactly what im trying to do...


import mx.controls.RadioButton;
for (var i =0; i10; i++){
var mc:MovieClip = this.createEmptyMovieClip(rbHolder_+i,
this.getNextHighestDepth());
var rb = mc.createClassObject(RadioButton, rb_+i,
mc.getNextHighestDepth(), {label:rb_+i, groupName:configGroup});
mc._y = i * 20;
trace(Group Name: +rb.groupName);
}



Mike Boutin
___
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] Radiobutton groupName issue *URGENT*

2006-07-20 Thread Mike Boutin
Thanks for all the posts. Yes this is what i ended up doing, i just 
figured there might be a way around it.. thanks again!



Mike

eric dolecki wrote:

yup - seems like a scoping issue...

if all the radiobutton mcw were nested in a larger, single mc, they could
all register with the radiobutton groupname that is defined in that single
mc. in theory.

e.d.

On 7/20/06, Alberto Florentin [EMAIL PROTECTED] wrote:


Hey, I just worked with radiobutton group for first time (at least for 2
years).  Had some problems on how to access the radioGroup object itself.
Finally used var radiogroup = eval(myradioButton.groupName) and then 
added

to it the event listener.  Problem is, to make it work I had to include
the
path to the movieclip containing the radiobutton, like this var 
radiogroup

=
eval(path +.+myradioButton.groupName).  So I understand the
radiobuttongroup object belongs to the _parent.myradioButton
movieclip.  In
your case it seems that you get multiple radiobutton groups, one for each
movieclip.  You have to find some other way to do it.

Alberto

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Mike 
Boutin

Sent: Wednesday, July 19, 2006 8:35 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Radiobutton groupName issue *URGENT*


I am creating multiple movieclips with 1 radiobutton in each.  I want
them all the tie into 1 radiobutton Group, but the follow code doesnt
seem to work.  Can anyone tell me what im doing wrong and how to go
about fixing it?


I created a test case to show exactly what im trying to do...


import mx.controls.RadioButton;
for (var i =0; i10; i++){
var mc:MovieClip = this.createEmptyMovieClip(rbHolder_+i,
this.getNextHighestDepth());
var rb = mc.createClassObject(RadioButton, rb_+i,
mc.getNextHighestDepth(), {label:rb_+i, groupName:configGroup});
mc._y = i * 20;
trace(Group Name: +rb.groupName);
}



Mike Boutin
___
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] Yahoo Maps: Detecting latitude and longitude of mouse over map

2006-07-20 Thread Dave Wood

Hi

I'm trying to detect the latitude and longitude of the cursor as the  
user moves their mouse around a map. Should be straightforward I  
thought - if I use LatLonRect data and then calculate based on  
_xmouse and _ymouse data and the height and width of the movieClip  
containing the map, I should be able to do this right?


Weird problem is that flash reports the _height and _width of the  
movieclip incorrectly.


I have a movieClip mapTable_mc in which there is a map named map

The actual dimensions of the movieClip (and also the map) are 400 X  
300 pixels.


trace(mapTable_mc._height)
…output is 1280
trace(mapTable_mc._width)
…output is 1280

Trace mapTable_mc.map._height
…output is 1280
Trace mapTable_mc.map._width
…output is 1280

Height and width are not only incorrect but also the same as each other!

If I trace _xmouse and _ymouse values, they are exacly as expected.

Can anyone shed any light?

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] Yahoo Maps: Detecting latitude and longitude of mouse over map

2006-07-20 Thread Dave Wood
The actual dimensions of the movieClip (and also the map) are 400 X  
300 pixels.


Sorry, that was a typo - they are actually 500 X 400 pixels.

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] Yahoo Maps: Detecting latitude and longitude of mouse over map

2006-07-20 Thread David Rorex

When flash calculates _width and _height, it also includes things
inside the movieclip which may be invisible, or masked out. Try this
simple example:
On the stage, create an empty movie clip A which contains two square
movieclips B and C, which are placed next to each other

This code will produce the same output 4 times:

trace(A._width);
A.B._visible = false;
trace(A._width);
A.C._visible = false;
trace(A._width);
A._visible = false;
trace(A._width);

Not sure if this is related exactly to your problem, but I've had
issues with _width  _height before, and this is usually the cause.

-David R

On 7/20/06, Dave Wood [EMAIL PROTECTED] wrote:

 The actual dimensions of the movieClip (and also the map) are 400 X
 300 pixels.

Sorry, that was a typo - they are actually 500 X 400 pixels.

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] Customised date chooser

2006-07-20 Thread Haikal Saadh

Hi,

Has anyone extended the DateChooser component so that it's easy to jump 
across years as well as months?


Also, any tips/gotchas would be nice as well, if you've played with this.

I just thought I'd ask before I went and did it myself.

Thanks 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


[Flashcoders] Re: Flashcoders Digest, Vol 18, Issue 55

2006-07-20 Thread kim
Thank you for your email.  I will be out of the office Friday, 7/21.  If you 
need any assistance, please contact Paul Sternglass at [EMAIL PROTECTED] or 
914-614-0046.


___
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] Can I assign a Class to the main timeline?

2006-07-20 Thread JulianG

Hello guys:

I'm new to the list.
I've been using Flash for several years now, and I'm coding in AS2 since 
last year. I can create Classes with no problems. I usually extend my 
classes and other original Flash classes.
I usually extend the MovieClip class and assign the class to a Symbol in 
the Library using the Linkage dialog box.
So, most of my MovieClips instead of having code on a keyframe, they 
have a class assigned to them.


Now the question is.. is there a way I can do the same, but with the 
main Timeline?
I mean, I want my main timeline (which already supports all the members 
[properties and methods] of the MovieClip class ) to behave according to 
a certain Class that I write and that is an extension of the MovieClip 
class.
Is this possible? where can I tell flash to associate a certain Class to 
the main timeline instead of a Symbol on the Library?

Any documentation on this?

Thanks in advance!

JulianG

___
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] Yahoo Maps: Detecting latitude and longitude of mouse over map

2006-07-20 Thread Dave Wood

Hi David


When flash calculates _width and _height, it also includes things
inside the movieclip which may be invisible, or masked out.


Good thought, but no, the movieclip contains nothing beyond the area  
covered by the map instance.


Note that it wsan't just the clip containing the map the gave the  
strange values, but also of the map itself.


Cheers

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] Can I assign a Class to the main timeline?

2006-07-20 Thread Weyert de Boer
You might want to try this, below the contructor of the 
Application-class. This will be come the class associated with the main 
class. Seems to work for me.



   /**
*  Constructor
*
*  @paramtimelineThe timeline
*/
   public function Application( target ) {
   super();
  
   //

   target.__proto__ = __proto__;
   target.__constructor__ = com.Application( com.Application );
   this = com.Application( target );
com.Application( target );
   }
___
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] MySpace to boost Player 9 adoption rate

2006-07-20 Thread Josh Santangelo

MySpace.com is now requiring Flash Player 9 in order to view the site.

http://www.tiara.org/blog/?p=222

Awesome. Watch that adoption rate shoot right up.

-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] Can I assign a Class to the main timeline?

2006-07-20 Thread Patrick Matte

Nice trick. But this seems to work as well but simpler.

class com.Application{

public function Application( target ) {
 target.__proto__ = __proto__;
 this = com.Application( target );
}

}

- Original Message - 
From: Weyert de Boer [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, July 20, 2006 8:31 PM
Subject: Re: [Flashcoders] Can I assign a Class to the main timeline?


You might want to try this, below the contructor of the 
Application-class. This will be come the class associated with the main 
class. Seems to work for me.



   /**
*  Constructor
*
*  @paramtimelineThe timeline
*/
   public function Application( target ) {
   super();
  
   //

   target.__proto__ = __proto__;
   target.__constructor__ = com.Application( com.Application );
   this = com.Application( target );
com.Application( target );
   }
___
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] scale9grid how to

2006-07-20 Thread Charles Parcell

Here are my thoughts.

Based on the image you passed on in one of your previous postings, it looks
like you are building a drop down list component. I would assume that you
wanted slice9 so you could scale the component in the X direction for longer
strings.  Is this a correct assumption?

You might want to break your image into three (3) columns. Col 1 would be an
image from the left edge of the image to just right of the first black line.
The second would be a single pixel column between the left and right black
lines. The third column would be from just to the left of the right black
line to the right edge of the image.

With these three graphics you can build a X scaled component of any width.
Simply replicate the single pixel column to create a text area the size you
need.  Use the BitmapData class to build the image and simply dump the
resulting image in to a MC. This is but one example of the power held by
imaging code new to Flash 8 ( copyPixels() for example )

Charles P.
___
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