[Flashcoders] Better XML parsin

2006-08-21 Thread Flash Mel

Hello everyone,

There has to be a better way to parse XML.  Using for loops seems
antiquated.  Could I do a while loop and cycle through all the
possible nodes?  What else is out there for parsing XML in a cleaner
fashion?

Cheers!

fM
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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: Better XML parsin

2006-08-21 Thread Flash Mel

Jack - Awesome!  I'm off to the store for a while, soon as I get back
I'll give this a test.

David - Thanks for the link.  Looks useful as well.  I'll give these a
try and respond in a few thanks peeps.

Cheers,

fM



On 8/21/06, Jack Doyle [EMAIL PROTECTED] wrote:

I wrote a class that might be useful to you. Just point it at your XML file
and it'll load it and parse it into Arrays/Objects. See the top of the class
file for some documentation. It can also reverse parse (dump an object back
into XML format).

http://www.greensock.com/ActionScript/XMLParser.zip

This is the first time I'm making it available to the public, so I welcome
comments/suggestions (be kind). It's been working quite well for me for
months.

Jack Doyle

---
Date: Mon, 21 Aug 2006 15:46:24 -0400
From: Flash Mel [EMAIL PROTECTED]
Subject: [Flashcoders] Better XML parsin

Hello everyone,

There has to be a better way to parse XML.  Using for loops seems
antiquated.  Could I do a while loop and cycle through all the
possible nodes?  What else is out there for parsing XML in a cleaner
fashion?

Cheers!

fM



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

2006-08-14 Thread Flash Mel

Have a look at this: www.rpa.com

Interesting concept.  My question is merely on the zooming; zooming
elements from far to wide.  I like this a lot.  I know it might be a
bit of a challenge for me, but i'm willing to try it.  If someone
could point me in the direction of some conceptual ideas that would be
fantastic.

Thanks all.

fM
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Eclipse Assistance (beginner)

2006-07-18 Thread Flash Mel

Hey Andy, thanks for the reply.  What I was looking for was a help site that
talks about how to setup Eclipse properly.  I showed a buddy of mine my
setup and he said it wasn't right - too bad he didnt set his up, he works
with some real good flash devs that helped him out.  looking around at
screenshots of other dev's eclipse workspace and I'm realizing I'm way off
track with how to setup eclipse for use with my projects.

=\




On 7/14/06, Andy Stone [EMAIL PROTECTED] wrote:


There's a ton of resources out there. You can find tutorials at a few of
sites below...

http://www.gotoandlearn.com/
http://www.ultrashock.com/
http://www.flashkit.com
http://actionscript.org
http://www.kirupa.com
http://www.moock.org/asdg/codedepot/
http://www.sephiroth.it/tutorials.php

I Hope this helps. -Andy

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Flash Mel
Sent: Thursday, July 13, 2006 2:08 PM
To: Flashcoders mailing list
Subject: [Flashcoders] Eclipse Assistance (beginner)

Ok, so I just got Eclipse installed yesterday.  I've been using SciTEFlash
forever and it has served me well.  But I needed a better way of managing
my
projects and the projects of the other flash developer here.

ANYWAY...now that I have Eclipse installed I am a bit confused as to to
setting up and testing movies.  Not just for class files either, but for
regular .as files, I am at a loss as to how to test the movie.  =\

Hopefully working in this environment and pushing myself more, I can begin
writing more AS2 classes and even *gasp* AS3!!  =]   One day soon.

Any help or tutorials and even some guidance would be appreciated.  If
this
might be a lengthy description, feel free to contact me on google talk.

Cheers and my bad for the newbie-ish post.

fM.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Eclipse Assistance (beginner)

2006-07-18 Thread Flash Mel

No Java unforunately.
I have the plugs for eclipse.  they seem to work well.  I just have my
projects setup all wrong.  using import com.mproject.somefile.as doesn't
work.  AND in the projects folder on the left i don't just see code files, I
see the .fla's the .swf's etc.  so I know i have something wrong here...

=\

osflash isn't very helpful.  i tried, but it doesn't go through and show you
how to setup a project.


fM

On 7/15/06, Ed Staub [EMAIL PROTECTED] wrote:


Flash Mel,

I'm maybe one step ahead of you here. I was watching the responses, hoping
to learn something.
No such luck.

It looks to me like you probably come from a Java background - yes?

Here's what I THINK is true - hopefully this will provoke someone to
correct
me who knows more.  Take everything here with a grain of salt.

1.) The best Flash debugger for normal development is, unfortunately,
Macromedia's.  There are none in the Eclipse plug-ins.

2.) For unit testing, the most-recommended component seems to be
As2Unit.  I
haven't tried it.  It's only available in compiled form, which gives me
pause.  This seems to be the most-recommended package, but there are many
others.  One that appears to have quite a bit of momentum is AsUnit
(http://asunit.org/) - I'd definitely check it out.  If you find something
you like, please drop me a line.

3.) I didn't see which plug-in you're using.  I tried FDT, since several
sites will tell you it's the best plug-in for AS development, but have a
few
issues:

a. It's a commercial product - they want around $250 for it.  There's a
30-day trial
b. Nothing's been updated since last fall.
c. It has a problem with F8 library organization - it doesn't support the
automatic switch-in of F8 or F7 depending on context.
d. The web site is slow to the point of unusability - I think it is
severely
throttled.
e. Email bounces
f. Given the state of the website, I'd be scared to death to try to pay by
credit card there.

Based on all this, I switched to FlashDevelop (not Eclipse at all - it's
.NET, in fact!).  So far, so good - it's fast, slick, intuitive, and there
appears to be quite a bit of developer momentum in plugins, etc.

In trying to find out what's going on, keep a close eye on WHEN something
was recommended.  What was best a year ago often isn't the best now.

The site that seems most relevant to your questions wasn't on the list
another responder sent earlier.
   http://www.osflash.org

Good luck,

-Ed Staub






___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Eclipse Assistance (beginner)

2006-07-18 Thread Flash Mel

Hey Steven thanks, I'll check that as well!

m.

On 7/14/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:


If you liked SciTE, you should check out Flash Develop.

http://www.flashdevelop.org/community/

It launches in like 2 seconds and has tons of great features.  It's
still in development, but it's coming along nicely.  It supports all the
file types you edit when working in Flash.

Sorry for hijacking your thread.



BLITZ | Steven Sacks - 310-551-0200 x209

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Andy Stone
 Sent: Friday, July 14, 2006 12:41 PM
 To: 'Flashcoders mailing list'
 Subject: RE: [Flashcoders] Eclipse Assistance (beginner)

 There's a ton of resources out there. You can find tutorials at a few
of
 sites below...

 http://www.gotoandlearn.com/
 http://www.ultrashock.com/
 http://www.flashkit.com
 http://actionscript.org
 http://www.kirupa.com
 http://www.moock.org/asdg/codedepot/
 http://www.sephiroth.it/tutorials.php

 I Hope this helps. -Andy

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Flash
Mel
 Sent: Thursday, July 13, 2006 2:08 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] Eclipse Assistance (beginner)

 Ok, so I just got Eclipse installed yesterday.  I've been using
SciTEFlash
 forever and it has served me well.  But I needed a better way of
managing
 my
 projects and the projects of the other flash developer here.

 ANYWAY...now that I have Eclipse installed I am a bit confused as to
to
 setting up and testing movies.  Not just for class files either, but
for
 regular .as files, I am at a loss as to how to test the movie.  =\

 Hopefully working in this environment and pushing myself more, I can
begin
 writing more AS2 classes and even *gasp* AS3!!  =]   One day soon.

 Any help or tutorials and even some guidance would be appreciated.  If
 this
 might be a lengthy description, feel free to contact me on google
talk.

 Cheers and my bad for the newbie-ish post.

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

2006-07-14 Thread Flash Mel

Thanks guys, got it working!

Cheers,

fM.



On 7/10/06, Steven Sacks | BLITZ [EMAIL PROTECTED] wrote:


You orphaned a running interval.  You need to make sure you
clearInterval first.  You could put it in the onUnload of your loaded
movie, or you could clear the interval in that swf just before you
loadMovie.

BLITZ | Steven Sacks - 310-551-0200 x209


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Flash Mel
 Sent: Sunday, July 09, 2006 8:04 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] setInterval and loadMovie

 Evening,

 I'm having a brainfart here.  I have a movie that loads separate .swfs
 into a clip called holdGallery_mc.  All of the .swfs are simply
 different slideshows (reads from xml, images files on server,
 preloader for each image, pan image vert or horz depending on size,
 etc.).  Anyway, the core for all the slideshows to work is a
 setInterval script reStartSlides = setInterval(startSlides, 4000);

 Here is my problem, when loading the the .swfs into the main movie,
 the first one naturally, is ok.  But when I try loading another .swf
 to  replace the current on, the old .swf is gone but its interval is
 still alive and kicking.

 What, what?!

 What is happening?
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Eclipse Assistance (beginner)

2006-07-14 Thread Flash Mel

Ok, so I just got Eclipse installed yesterday.  I've been using SciTEFlash
forever and it has served me well.  But I needed a better way of managing my
projects and the projects of the other flash developer here.

ANYWAY...now that I have Eclipse installed I am a bit confused as to to
setting up and testing movies.  Not just for class files either, but for
regular .as files, I am at a loss as to how to test the movie.  =\

Hopefully working in this environment and pushing myself more, I can begin
writing more AS2 classes and even *gasp* AS3!!  =]   One day soon.

Any help or tutorials and even some guidance would be appreciated.  If this
might be a lengthy description, feel free to contact me on google talk.

Cheers and my bad for the newbie-ish post.

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

2006-07-09 Thread Flash Mel

Evening,

I'm having a brainfart here.  I have a movie that loads separate .swfs
into a clip called holdGallery_mc.  All of the .swfs are simply
different slideshows (reads from xml, images files on server,
preloader for each image, pan image vert or horz depending on size,
etc.).  Anyway, the core for all the slideshows to work is a
setInterval script reStartSlides = setInterval(startSlides, 4000);

Here is my problem, when loading the the .swfs into the main movie,
the first one naturally, is ok.  But when I try loading another .swf
to  replace the current on, the old .swf is gone but its interval is
still alive and kicking.

What, what?!

What is happening?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] onResize (when done)

2006-06-05 Thread Flash Mel

I had a question about this.  There is a solution in the archives
(http://chattyfig.figleaf.com/mailman/htdig/flashcoders/2002-December/056558.html)
where someone used onEnterFrame.  That solution was back in 2002.  Is
there a better alternative now?

My question is two-fold:  Is it possible to determine if the stage is
resizing larger?  smaller?  only height?  only width?


Ah, my mind is boggled!

Cheers,

fM
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Fitting text characters to an area

2006-05-08 Thread Flash Mel

This is similar to the thread about fitting boxes to an area.
I've got this:

MovieClip.prototype.FadeIn = function() {
   this._alpha = randomBetween(-200, 0);
   this.onEnterFrame = function() {
   if (this._alpha  100) {
   this._alpha += 10;
   }
   };
};
function randomBetween(a, b) {
   return Math.min(a, b) + random(Math.abs(a - b) + 1);
}
var textMessage = Very long string here.  Pellentesque habitant morbi
tristique senectus et netus et malesuada fames ac turpis egestas. Nulla
ullamcorper. Praesent nunc nisi, lacinia at, mattis eget, blandit a, lacus.
Praesent vel lacus vitae ante vulputate auctor. Class aptent taciti sociosqu
ad litora torquent per conubia nostra, per inceptos hymenaeos. Duis velit.
Proin cursus mi ac erat. Nunc vel purus. Morbi mauris. Vivamus mauris.
Vestibulum posuere interdum nunc. Sed ac ante sed nulla tempus adipiscing.;
var positioning = 60;
var letterSpacing = 30;
for (i = 0; i  textMessage.length; i++) {
   var mc = textToDuplicate.duplicateMovieClip(letterDuplicate + i, i);
   mc._x = positioning;
   mc.WhatLetter = textMessage.charAt(i);
   mc.FadeIn();
   positioning += letterSpacing;
}

Works fine if it's one line, but how to make this wrap in a give area?  Is
it possible to adapt the code given for the previous question of how to fit
squares in an area?


Thanks much.

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

2006-03-29 Thread Flash Mel
My emails aren't getting through to the list!  Whats up?!?!


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

2006-03-29 Thread Flash Mel
Ok, since my email got through this morning, I'm hoping this one gets
through.  Here is the question I've emailed four times now.  Doesn't show up
in the threads.

Here we go:



Here is what I have so far:

import mx.transitions.Tween;
import mx.transitions.easing.*;

m = 0;
numTiles = 112;

function placeTiles() {
if (m == numTiles){
m = 0;
clearInterval(buildTiles);
} else {
_root.attachMovie(square, tile + m + _mc, m, {_x:m % 14 * 50,
_y:Math.floor(m / 14) * 50});
myObj = tile + m + _mc;
new Tween(_root[myObj], _alpha, Regular.easeInOut, 0, 100, 35,
false);
_root[myObj].number_text.text = m;
m++;
}
}

buildTiles = setInterval(placeTiles, 30);

This works fine.  Builds the rows one after another.  But what I am trying
to do is build one row across and one down.  Make sense?

In essence, the final display and position of the objects will be:

123
456
789

The sequence I am after:

1

then

12
4

then

123
45
7

and so on

123
456
78

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

2006-03-29 Thread Flash Mel
Thanks John,

This is great!  When I trace this, it works.  I've applied it to my code,
and I think I have added something wrong.  What happens is that all the
elements just build in a single area.

Here is what I had in the previous code:
http://www.apt11.com/test/test.html

Essentially, I need 0 to display, then 1, 14 then 2, 15, 28 and
so on.

Am I not applying your code correctly?  My apologies for the bumbling and
thanks for the help.

fM.



On 3/29/06, John Grden [EMAIL PROTECTED] wrote:

 This will give you what you're looking for:

 var cols:Number = 3;
 var rows:Number = 3;

 for(var i:Number=0;irows;i++)
 {
 for(var j:Number=0;jcols;j++)
 {
  var gridLocation:Number = (i+j) + ((rows-1)*i);
  trace(grid location =  + gridLocation);
  // create your moviecilp
 }
 }

 row by row, create a movieclip per column.

 hth,

 John

 On 3/29/06, Flash Mel [EMAIL PROTECTED] wrote:
 
  Ok, since my email got through this morning, I'm hoping this one gets
  through.  Here is the question I've emailed four times now.  Doesn't
  show up in the threads.
 
  Here we go:
 
 
 
  Here is what I have so far:
 
  import mx.transitions.Tween;
  import mx.transitions.easing.*;
 
  m = 0;
  numTiles = 112;
 
  function placeTiles() {
  if (m == numTiles){
  m = 0;
   clearInterval(buildTiles);
  } else {
  _root.attachMovie(square, tile + m + _mc, m, {_x:m % 14
  * 50, _y:Math.floor(m / 14) * 50});
  myObj = tile + m + _mc;
  new Tween(_root[myObj], _alpha, Regular.easeInOut, 0, 100, 35,
  false);
  _root[myObj].number_text.text = m;
  m++;
  }
  }
 
  buildTiles = setInterval(placeTiles, 30);
 
  This works fine.  Builds the rows one after another.  But what I am
  trying to do is build one row across and one down.  Make sense?
 
  In essence, the final display and position of the objects will be:
 
  123
  456
  789
 
  The sequence I am after:
 
  1
 
  then
 
  12
  4
 
  then
 
  123
  45
  7
 
  and so on
 
  123
  456
  78
 
  Help?!
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/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 Grden - Blitz
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] Thank you Flash Coders

2006-03-14 Thread Flash Mel
Just wanted to say thanks to everyone for keeping this going.  This group
has been around for years and I have learned so much from everyone and the
archives are great!  Cheers to the Flash Coder peeps and Figleaf for keeping
ChattyFig up and going!

Ciao,

fM.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Random Objs and Placement

2006-03-14 Thread Flash Mel
Not sure how to title this email.  I am in search of a concept.  What I want
to do is take several objs - squares of varying sizes - then have them
placed on the stage forming a mosaic grid of some sort.  Maybe some spacing
in there.

Anyway, I'm thinking I need to take this approach:
//pseudo code below
createEmptyMovieClip(box_mc, getNextHighestDepth());
duplicate box_mc and randomly place them in locations off the stage
then have those clips come in and form the mosaic.

Now I think that idea works if all the box_mc clips were the same size.
For clips of different sizes, I'm thinking I need to add collision detection
just in case they stop on top of each other.  But how far over should it
move it they touch?  And which way should they move (if they are touching
the left,bottom, top, right side)?  Etc.  Lots of questions.

Writing it now, just also seeing if someone else has more input or even a
suggested site to look at for ideas or demos.

Thanks.

fM.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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[2]: [Flashcoders] RE: getDepth: highest depth, middle depth, lowest depth

2006-03-10 Thread Flash Mel
Hey Ivan, thanks!  Just getting around to replying.

On 3/9/06, Iv [EMAIL PROTECTED] wrote:

 Hello Flash,

 FM I am not allowed to use Flash 8 for this project.
 FM They want it published in Flash 6.  From what I was reading the new
 FM DepthManager class only works with Flash 8.

 http://proto.layer51.com/d.aspx?f=834
 use property below main code.


 --
 Ivan Dembicki
 

 [EMAIL PROTECTED] ||
 http://www.design.ru

 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] RE: getDepth: highest depth, middle depth, lowest depth

2006-03-09 Thread Flash Mel
Thanks guys!  I was reading the archives about the DepthManager class
and peeked into the recent z ordering thread for some useful info.

My one problem that I am running in to is that for whatever reason, my
boss is telling me I am not allowed to use Flash 8 for this project. 
They want it published in Flash 6.  From what I was reading the new
DepthManager class only works with Flash 8.

I'll post more code snippets when I get in to work.  Thanks again for
the responses!

fm.



On 3/8/06, judah [EMAIL PROTECTED] wrote:
 I've found very little info on the DepthManager class. afaik, you need
 to increment the kTop property when you use it:

 var new_mc = myMovie.createObject(__rowRenderer, new_mc,
 DepthManager.kTop++, {owner:this, styleName:this});

 At the same time I find it useful to get the next highest depth of the
 movieclip I want to be over. This next statement adds the movieclip to
 myMovie at myMovies's next highest depth. So if myMovie has one other
 object on it at depth 1 then myMovie.getNextHighestDepth() returns 2.
 var new_mc = myMovie.createObject(__rowRenderer, new_mc,
 myMovie.getNextHighestDepth(), {owner:this, styleName:this});

 I've had problems using _root.getNextHighestDepth() in a class. It stops
 at a certain number and any new movieclips replace the movie that is at
 the same depth.

 if createObject is not available (for use mostly with components) use
 attachMovie in it's place...

 Judah

 Scott Pobiner wrote:

  Hey Mel,
 
  Take a look at the DepthManager.  You can use it for exactly what you
  are trying to do.  The catch is that you have to instantiate the
  MovieClips  you want to use via actionscript with the DepthManager
  functions.  Remember to do this because the DepthManager needs to
  keep track of all elements you want to sort.  Then all you have to do
  is use the constants DepthManage.kTop, DepthManage.kBottom, etc.  The
  manager sorts its children instances using these constants by putting
  each call to kTop in depth 201 and then moving the rest down
  sequentially (actually vice versa).
 
  Hope this helps,
 
  _S
 
 
  Hello,
 
  I have another question for the group:
 
  I was using this...
 
  for (var i in this) {
  if (typeof (this[i]) == movieclip) {
  trace(movie clip '+this[i]._name+' is at depth
  +this[i].getDepth()*-1);
  }
  }
 
  ...to discover the depth of the movieclips I have on the stage.
 
  Then I wrote this...
 
  postcard_amt = [1, 2, 3];
  for (i=0; ipostcard_amt.length; i++) {
  postcard_itm = postcard+i+_mc;
  _root[postcard_itm].onPress = function(){
  trace(this.getDepth());
  }
  }
 
  ...to specifially single out the _mc's I wanted.
  Not sure if that is the best way to write it, but that's not my
  question
  (althought I am open to more efficient ways).
 
  /*
 
  My question:
  What is the best approach to finding the highest depth, the middle
  depth and
  the lowest depth?
 
  */
 
  Backstory:
  Ideally, what I will be doing is swapDepths() with these _mc's and
  reshuffling them accordingly.
 
  if original state is...
 
  1
  2
  3
 
  ...onEvent...
 
  2
  3
  1
 
  ...then another Event...
 
  3
  1
  2
 
  ...and so on.
 
  Thanks for the advice,
  fm
 
 
 
 
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 


 --
 Always bear in mind that your own resolution to succeed is more important 
 than any one thing.

 You can have anything you want - if you want it badly enough. You can be 
 anything you want to be, do anything you set out to accomplish if you hold to 
 that desire with singleness of purpose.

 - Abraham Lincoln

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

2006-03-07 Thread Flash Mel
Ah!  I knew I was missing something!  Dang.
Thanks, Geoffrey!



On 3/6/06, Geoffrey Williams [EMAIL PROTECTED] wrote:

 Need to 'eval' num. use array notation.

 controller_mc.attachMovie(gallery_mc, gallery_mc, 50);
 theGallery = controller_mc.gallery_mc;
 gallery_contains = 4;

 for (i = 0; igallery_contains; i++){
 num = img_+i;
 theGallery[num]._alpha  = 0;
 trace(num);
 }

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Flash Mel
 Sent: Monday, March 06, 2006 6:31 PM
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] String problems?

 I am writing this wrong:


 controller_mc.attachMovie(gallery_mc, gallery_mc, 50);
 theGallery = controller_mc.gallery_mc;
 gallery_contains = 4;

 for (i = 0; igallery_contains; i++){
 num = img_+i;
 theGallery.num._alpha  = 0;
 trace(num);
 }

 gallery_mc has _mc's in it named, img_0, img_1, img_2, img_3.

 What am I doing wrong here?
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/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] String problems?

2006-03-06 Thread Flash Mel
I am writing this wrong:


controller_mc.attachMovie(gallery_mc, gallery_mc, 50);
theGallery = controller_mc.gallery_mc;
gallery_contains = 4;

for (i = 0; igallery_contains; i++){
num = img_+i;
theGallery.num._alpha  = 0;
trace(num);
}

gallery_mc has _mc's in it named, img_0, img_1, img_2, img_3.

What am I doing wrong here?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/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] Preloading content in background

2005-12-22 Thread Flash Mel
Was this ever resolved?

It turns out I am trying to do the same thing, but the problem I am running
into is that - while it loads all the elements - it also starts playing all
of them.

I'm using Bokel's loaderCLass and I dabbled with the extension of that class
from Tin Lion.  Both work well, I just don't want the files to execute when
they are finished loading.  I just need everything loaded so when a user
does click to that particular section, the .swf loads and starts playing
without the need of the preloader.

Paul, have you been able to successfully get this to work?  Anyone else?


thanks.





Paul Steven wrote:

Thanks for all the great replies. To be honest the pages are all less than
100kb each so I don't think the client will pay up to come up with any
ingenius preloader solutions:)


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