Re: [Flashcoders] Coordinates and Stage align in Flexible UIs

2007-05-24 Thread Kevin Cannon

Ahhh, of course. That makes sense to me now.

Thanks very much.

- Kevin

On 22/05/07, Muzak [EMAIL PROTECTED] wrote:

- Original Message -



No, you calculate those using the original document width and height and the 
Stage.width and Stage.height.
So you'll have to store the original width and height in variables.

var origWidth:Number = 760;
var origHeight:Number = 450;

var offsetX:Number = (Stage.width - origWidth)/2;
var offsetY:Number = (Stage.height - origHeight)/2;

regards,
Muzak


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Coordinates and Stage align in Flexible UIs

2007-05-22 Thread Kevin Cannon

Hi there,

Is there a good explanation about how co-ordinates work with Stage Align?
I'm building a Flexible UI and all works fine is I use Stage.align to
the top left, and set teh scalemode to noscale, but if I want to align
it to the center things start going a little hay-wire.

I'm trying to leave as much of the design on the timeline as possible,
and will be loading in SWF dynamically, so I'm aiming to have the main
content centered, and have the UI change around that, rather than
positioning it with code, but I've not managed to do that yet.

Anyone know of any resources that might help me?

- Kevin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Coordinates and Stage align in Flexible UIs

2007-05-22 Thread Kevin Cannon

Hi,

That looks very useful. I've one question though. How is the 'border
to stage position' information worked out? Is the some kind of
absolute top/left co-ordinates you can find?

- Kevin

On 22/05/07, Muzak [EMAIL PROTECTED] wrote:

Maybe this will help:
http://muzakdeezign.com/flashcoders/stage_align.html

regards,
Muzak

- Original Message -
From: Kevin Cannon [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, May 22, 2007 12:43 PM
Subject: [Flashcoders] Coordinates and Stage align in Flexible UIs


 Hi there,

 Is there a good explanation about how co-ordinates work with Stage Align?
 I'm building a Flexible UI and all works fine is I use Stage.align to
 the top left, and set teh scalemode to noscale, but if I want to align
 it to the center things start going a little hay-wire.

 I'm trying to leave as much of the design on the timeline as possible,
 and will be loading in SWF dynamically, so I'm aiming to have the main
 content centered, and have the UI change around that, rather than
 positioning it with code, but I've not managed to do that yet.

 Anyone know of any resources that might help me?

 - Kevin


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] ISOMETRIC GAME ENGINE

2007-03-15 Thread Kevin Cannon

Some of the other posts might be more related, but there's an
excellent tutorial on tilebased games that leads into isometric games
on this site:

http://www.tonypa.pri.ee/tbw/start.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


[Flashcoders] AS Tweening. Approach to prevent tween clashing?

2006-11-03 Thread Kevin Cannon

Hi All,

I've been building sites with laco's tweens for a good while.

Occasionally I've come accross problems when you click on buttons
really fast in sucession. If one item is still tweening you can end up
with unpredictable results.

Does anyone have any advise on what approach I can take to avoid that.
I'm real trouble figuring out what specifically is causing the
problem, even though I understand the general problem.

Has anyone any advice,

Thanks,

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

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


Re: [Flashcoders] AS Tweening. Approach to prevent tween clashing?

2006-11-03 Thread Kevin Cannon

Hi Toby,

Thanks for the reply, even quick pointers are welcome. :)
I've been disabling buttons too when I can, but even still I find
there's time when someone needs to switch between one section and
another and it causes problem.

I'll check out that stopTween function and see if it can help me.

Cheers!

- Kevin

On 03/11/06, Toby [EMAIL PROTECTED] wrote:

Am quite busy so I can only give a quick answer, but I believe there is
documentation provided with laco on 'stopTween()' or similar. I personally
don't use this much, and tend to disable buttons that would allow a user to
clash animations.

Hth,
Toby


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Kevin Cannon
 Sent: 03 November 2006 16:40
 To: Flashcoders mailing list
 Subject: [Flashcoders] AS Tweening. Approach to prevent tween clashing?

 Hi All,

 I've been building sites with laco's tweens for a good while.

 Occasionally I've come accross problems when you click on buttons
 really fast in sucession. If one item is still tweening you can end up
 with unpredictable results.

 Does anyone have any advise on what approach I can take to avoid that.
 I'm real trouble figuring out what specifically is causing the
 problem, even though I understand the general problem.

 Has anyone any advice,

 Thanks,

 - Kevin
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Flash Filters - Progressive enhancement for those with the 8+ player?

2006-10-19 Thread Kevin Cannon

Hey all,

Is it possible to publish a movie as Flash 6, but use the flash
filters to add things like drop shadows for those with the Flash 8 or
greater plugin?

My basic tests haven't resulted in it working, but I suspect there may be a way.

Any ideas?

Thanks,

- Kevin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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 Filters - Progressive enhancement for those with the 8+ player?

2006-10-19 Thread Kevin Cannon

Wow - thanks a lot, seems perfect.

Found one of those SWF changer utilities too to help with the conversion.
http://www.orison.biz/blogs/chall3ng3r/?p=101

Do you know if there's any problems or caveats of using this method?

- Kevin

On 19/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

We use a simple trick to perform this :

Prepare all your assets to be compiled to Flash 6, you will apply filters only
by code, then, in your code you need to create a local var called flash when
flash version is not 8, like that (sorry for the ugly code, it's just for the
demonstration):
...

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Disabling Nested MCs?

2006-10-03 Thread Kevin Cannon

Hey,

I'm using Laco's tweens, but maybe it has something similar. I'll look into it.

Thanks for the pointer.

- Kevin

On 02/10/06, Rich Rodecker [EMAIL PROTECTED] wrote:

just add the map._visible = false part to after the tween ends.  If you're
using the built in Tween class there is an onMotionFinished event handler
you can use on the tween, and pretty much most of the other tweening engines
have something comparable.

On 10/2/06, Kevin Cannon [EMAIL PROTECTED] wrote:

 Hi Jake,

 Ahh, I so that's how you do it. I think the current way I have tweens
 working won't allow be to easily do that, but when I start using Fuse
 Kit it should be a doddle.

 Thanks,

 - Kevin

 On 02/10/06, Jake Prime [EMAIL PROTECTED] wrote:
  Hi Kevin
 
  Try:
 
  map._visible = false;
 
  This will disable all buttons in map, and if the whole map is 0 alpha
  anyway will make no visible difference.
 
  Jake
 
  On 02/10/06, Kevin Cannon [EMAIL PROTECTED] wrote:
   Hi,
  
   I have an interactive map with various clickable countries on it. At
   certain times the map fades out to alpha = 0.
  
   When that happens the country movieclips are still clickable so I need
   to disable them.
  
   I expected map.enabled = false; to do it, but it seems to have no
   effect since the map movieclip itself has no actions.
  
   If there a way to disable the nested MCs without having to do it by
   manually disabling them all? I don't want to reinvent the wheel if
   there's a native way of doing it.
  
   Thanks,
  
   - Kevin
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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] Disabling Nested MCs?

2006-10-02 Thread Kevin Cannon

Hi Jake,

Ahh, I so that's how you do it. I think the current way I have tweens
working won't allow be to easily do that, but when I start using Fuse
Kit it should be a doddle.

Thanks,

- Kevin

On 02/10/06, Jake Prime [EMAIL PROTECTED] wrote:

Hi Kevin

Try:

map._visible = false;

This will disable all buttons in map, and if the whole map is 0 alpha
anyway will make no visible difference.

Jake

On 02/10/06, Kevin Cannon [EMAIL PROTECTED] wrote:
 Hi,

 I have an interactive map with various clickable countries on it. At
 certain times the map fades out to alpha = 0.

 When that happens the country movieclips are still clickable so I need
 to disable them.

 I expected map.enabled = false; to do it, but it seems to have no
 effect since the map movieclip itself has no actions.

 If there a way to disable the nested MCs without having to do it by
 manually disabling them all? I don't want to reinvent the wheel if
 there's a native way of doing it.

 Thanks,

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

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


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

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


Re: [Flashcoders] Loading Remote Images Cross Domain files - MoveieClipLoader

2006-07-29 Thread Kevin Cannon
Hi all,

Just thought I'd post up saying I solved the problem for anyone searching the
archives.

I was using onLoadInit to make the image fade in once it was loaded.
For some reason, when using onLoadInit the whole loadClip called just doesn't
get called at all for crossdomain images.

When i changed it to onLoadComplete however everything works find. The
crossdomain.xml file gets called and everything is fine.

I'd been under the impression onLoadInit was better to use that onLoadComplete
so i'm still at a bit of a loss in that regard, but the code is working and
I'm happy.

Thanks,

- Kevin

On Fri, Jul 28, 2006 at 02:59:33PM +0100, Kevin Cannon wrote:
 Hi,
 
 I've managed to narrow down the problem. I'm using the MovieClipLoader class
 so I canfade in an image once loaded. It won't load the image crossdomain with
 the loadClip function, but if I just use plain old loadMovie it works fine.
 
 This works:
   targetClip.loadMovie(imagePath);
 
 But this code doesn't:
   var mcLoader = new MovieClipLoader();
   mcLoader.addListener(this);
   mcLoader.loadClip(imagePath, targetClip);
 
 I've no idea why using the loader class wouldn't work when it's deployed.
 
 Anyone got any ideas?
 
 Thanks,
 
 - Kevin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Loading Remote Images Cross Domain files

2006-07-27 Thread Kevin Cannon
Hi all,

I'm having a bit of trouble figuring out this cross domain policy stuff. I've
read Macromedia's tutorial and Colin Moock's explanation and while I
understand the principle, I'm still unable to get it working.

Quite simply, I want to load images from a remote server.

I've set it all up and it just fails silently. I checked what's happpening in
the background with LiveHTTPHeaders and the request for the crossdomain.xml
file never gets sent, even when I explicitly set it with
System.security.loadPolicyFile.

I'm publishing as Flash 7, and using the Flash 9 plugin.

This seems like it should work straight off from reading the tutorials, so i'm
really at a bit of a loss. To eliminate the chance that this was my server,
i've also tried loading things from flickr with the same result.

Any suggestions, I'd really appreciate it.

- Kevin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Stretching Designs - Coded?

2006-06-11 Thread Kevin Cannon
Hi there,

I've seen a couple of design occasionally (like thefwa.com) that dynamically
stretch and adjust with the width of the browser and the content.

How is that kind of thing done? I know you can achieve some interestin gthings
with scaleMode and Stage.align but I'm guessing something more complex is
going on here.

I want to create a header banner, that fits into a flexible width site, so it
needs to stretch with the page. The height will stay the same, and there's
some design elements that should be locked left, and some locked right.

Could anyone point me in the right direction. I've not had much trouble with
google since i'm not entirely sure what the correct terms for this are.

Thanks!

- Kevin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Convert Flash 7 swf to Flash 8

2006-05-07 Thread Kevin Cannon
On Sat, May 06, 2006 at 12:11:10PM -0300, Zeh Fernando wrote:
 Hi,
 I remember when Flash 8 player was released there was a tool that would
 change a swf to make it act like a Flash 8 one, but I can't find that now.
 I just have a little app that loas images, and want to convert it to F8 so
 it can load pngs.  I've tried playing with mtasc but it's a pretty steep
 learning curve, so i'm not sure if it can do it.  Is there anything else?

 You just have to change the fourth byte on the file from ascii 07 to ascii 
 08. You can do that with any hex editor.

 Someone also made an automatic program to that kind of conversion (Mario 
 Klingemann if I remember correctly). That's probably what you've mentioned.

Ah, cheers, editing the hex code did the trick. Cool!

Thanks,

- Kevin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Convert Flash 7 swf to Flash 8

2006-05-06 Thread Kevin Cannon
Hi,

I remember when Flash 8 player was released there was a tool that would change
a swf to make it act like a Flash 8 one, but I can't find that now.

I just have a little app that loas images, and want to convert it to F8 so it
can load pngs.

I've tried playing with mtasc but it's a pretty steep learning curve, so i'm
not sure if it can do it.

Is there anything else?

- Kevin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] XPath Problem

2006-04-30 Thread Kevin Cannon
Hi,

I'm playing around with Xfactor's XPath implementation but running into
trouble with a basic test. I can parse the xml fine on the first run, but I
want to subsequently parse those results.  Here's the (rough) code:

// This gets a list of the countries
function parseXML(xmlData) {

countriesList = XPath.selectNodes(xmlData, /map/country);

handleCountry(countriesList[0]);
}

// I want to find the name of a country

function handleCountry(country) {

trace(country); // traces the corect XML out for the country

countryName = XPath.selectNodes(country, /country/name);
trace(countryName); // shows nothing

// If I do this though, I get back the original results
countryList = XPath.selectNodes(country, /map/country);
trace(countryList); // shows country list
}

It doesn't seem to point to the XML I've grabbed from the first function.
Traces all seem to be fine up to that point, so I'm really at a loss.

Anyone got any ideas?

- Kevin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] XPath Problem

2006-04-30 Thread Kevin Cannon
On Sun, Apr 30, 2006 at 10:39:23AM -0400, Howard Nager wrote:
 Any chance you can show an example of what your xml file looks like?

 I was goign to suggest that you try:
 
   countryName = XPath.selectNodes(country, ./name);
 or 
   countryName = XPath.selectNodes(country, ./country/name);
 
 But  I can't be sure without looking at the xml structure. 

Hey,

Here's the XML:
http://www.conquerclub.com/maps/Indochina.xml

Your first solution works fine, though I admit I'm at a bit of a loss as to
why. :)

Thnaks! 

- Kevin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] XPath Problem

2006-04-30 Thread Kevin Cannon
Bart,

Thanks for the explanation, I understand it a better now.

Cheers,

- Kevin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Initializing Components Delay Problem

2006-04-25 Thread Kevin Cannon
Hi guys,

I've just started writing basic components for things I reuse often and having
a problem with components being initialized. There seems to be a delay before
it happens in some situations. From googling it seems like it's a standard
problem that I'm sure all you guys have encounted many times, but I can't seem
to find the best way of fixing the issue.

Is there anything I can I do to get around this problem?

Thanks!

- Kevin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Managing Components and external .as files

2006-04-21 Thread Kevin Cannon
Hi,

I've started building a library of my own components for thing I reuse accross
projects.

I usually build stuff with external .as files, so I was wondering how I can
have manage the library of components if each component will have it's own
external as file. I don't want to copy the .as file into each project when I
need to use it.

What approach should I take?

Thanks,

- Kevin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] SourceSafe??? Recommendations needed.

2006-04-21 Thread Kevin Cannon
I believe subversions diff can actually handle binary files. Anyway, here's
some great articles for you to check out.

Article on using subversion with Flash:
http://www.ivantodorov.com/blog/?p=28

Also, BLITZ's directory structure and file name conventions are worth reading
too:
http://www.ivantodorov.com/blog/?p=24

- Kevin

On Fri, Apr 21, 2006 at 10:53:52AM -0400, eric dolecki wrote:
 Use Subversion everyday - its awesome, its just right-clicking away on
 files, its much faster than WinCVS (I think), its updated quite a lot, its
 diff is quick, graphing is good, etc.
 
 I love it.
 
 - e.dolecki
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Actionscript 2 - suitable for designers?

2006-03-27 Thread Kevin Cannon
Hi,

I hope this isn't off-topic but I've been struggling to find the answer, and
this list has been a great help to me over the years.

I'm a designer, but often code in Flash. I'm not building huge RIAs, usually
just adding small little bits of interactivity to sites, and building some
multimedia interfaces and gathering data from XML etc...  Nothing hardcore,
but a bit more that just tinkering with AS.

Up until now I've always used AS1, and though I've bought Colin Moock's AS2
book, it seems like a bit leap to make, and from what I've read it seems like
many of the advantages of AS2 are in having proper OO, and more manageable
code for large projects. 

I'm wondering if AS2 offers any advantages to me, or if sticking with AS1
would be better. Is AS2 (and now 3) the natural progression of Flash coding,
is there even a future for AS1, all the useful libraries seem to be AS2 only
these days too, perhaps that alone is a reason to switch. I'm unsure as to
what path I'm supposed to be on.

Any advice you could give me would be appreciated,

- Kevin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Stage.width and varying HTML size?

2006-03-16 Thread Kevin Cannon
Hi,

How does Stage.width relate to the size of the flash window set via HTML?

I'm trying to create a simple slideshow movie that can take any size images
as a parameter, and will display them as their actualy size. It's simple to do
when dealing with a fixed size movie, but when doing it with a movie that
changes size causes me trouble. I want the images to be loacked to the top
left of the movie, no matter what size is defined in the HTML.

I've got scaleMode = noScale set, but when the HTML sets the page wider the
0,0 point moves around strangely. It doesn't seem to be an obvious way to make
it work.

Any tips to get my head around it?

Thanks,

- Kevin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Stage.width and varying HTML size?

2006-03-16 Thread Kevin Cannon
Arul,

Ahh, that's perfect. I knew I was missing something! :)

Thanks so much!

- Kevin

On Thu, Mar 16, 2006 at 07:29:54PM +0530, Arul Prasad wrote:
 Use
 Stage.align = TL ;
 
 along with ur
 
 Stage.scaleMode= noScale;
 
 Should help.
 
 ~Arul Prasad
 
 
 On 3/16/06, Kevin Cannon [EMAIL PROTECTED] wrote:
 
  Hi,
 
  How does Stage.width relate to the size of the flash window set via HTML?
 
  I'm trying to create a simple slideshow movie that can take any size
  images
  as a parameter, and will display them as their actualy size. It's simple
  to do
  when dealing with a fixed size movie, but when doing it with a movie that
  changes size causes me trouble. I want the images to be loacked to the top
  left of the movie, no matter what size is defined in the HTML.
 
  I've got scaleMode = noScale set, but when the HTML sets the page wider
  the
  0,0 point moves around strangely. It doesn't seem to be an obvious way to
  make
  it work.
 
  Any tips to get my head around it?
 
  Thanks,
 
  - Kevin
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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] Timing Tweens Effectively

2006-03-15 Thread Kevin Cannon
Hi,

I'm looking to improve my handling of timed events for the sites I'm building.

I'm using a lot of tweens, and stacking them using callbacks, and sometimes
setInterval to achieve what I want. It's not particularly clean, so I was
wondering if there's any methods or libraries, to code timed events in a
more efficient manner.

Thanks,

- Kevin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Attaching code to buttons already on stage

2006-02-27 Thread Kevin Cannon
Hey all,

I'm used to using registerClass to apply code to navigation buttons at the
like dynamically added to movie.

If I've got a few buttons already on stage I'm wondering what the cleanest way
is to add code to them:

I could do something like this:

home_btn.onRelease = news_btn.onRelease = about_btn.onRelease = function() {
// do something 
}

But that seems rather cumbersome, and I suspect there's a better way of doing
it, any recommendations?

Thanks,

- Kevin
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: OT THANK YOU: Re: [Flashcoders] How to call functions in sequence

2006-01-30 Thread Kevin Cannon
On Sun, Jan 29, 2006 at 10:04:22AM +0100, Sander wrote:
 If your functions are motion-based, have a look at Fuse. It's a set  
 of Tween classes that lets you execute a lot of tweens in sequence. 2  
 can fire off when 1 finished if you want. You can tween position,  
 alpha, rotation and many more.

You could also use setInterval to call the functions.

Also, there's Sequence classses out there that are useful too:
http://proto.layer51.com/d.aspx?f=1417

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


[Flashcoders] Structuring Websites/Interfaces

2006-01-09 Thread Kevin Cannon
Hi all!

I'm wondering if anyone can recommend any books or resources on how to
structure dynamic animated sites, with lots of tweens and heavy coding.

We're moving more in that direction in our company, and although I have good
bit of experience coding Flash I want to try avoid making common mistakes.

Right now I'm at the point of having all code in external files, reading XML
data, and it's reasonably modular, but occasionally run into problems when
dealing with complex animations.

If anyone's found useful resources to help me improve what I'm doing I'd be
most grateful! :)

Thanks,

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