Re: [Flashcoders] wheel on curve game engine

2006-05-28 Thread Byron Canfield
More so is the adolescent "attitude", Mick.

-- 
Byron "Barn" Canfield


> Help vampire messages are more of a waste of *everything* than the
> original
> posters - <>


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

2006-05-28 Thread Byron Canfield
Review the archives for the thread entitled: Are you a help vampire?

-- 
Byron "Barn" Canfield


> Hello,
>
> got anyone idea or even script modellign wheel (bike, car..) on curve,
> collision but mainly bounces, gravity, etc
>
> like in this game: http://www.freeonlinegames.com/play/3286.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] swapping depths and disappearing clips

2006-05-20 Thread Byron Canfield
I think the primary problem is that you are retrieving the next highest
depth value from a timeline OTHER than the one where the swapDepths is
being performed. Getting the depth value from "this" (which is the
timeline of the button/clip, itself, but swapping the depth of the
button/clip, which takes place in the timeline of the parent of the
button/clip.

-- 
Byron "Barn" Canfield


>> ...
>>  curPhoto.onRollOver = function(){
>>  // move to the front
>>  swapDepths(this.getNextHighestDepth());
>>  this.scaleTo(90, 90, 2);
>>  var startPos = this.photoTab_mc._x;
>>  var targetPos = startPos + 25;
>>  var tabTween:Tween = new
>> Tween(this.photoTab_mc, "_x",
>> Strong.easeOut, startPos, targetPos, .5, true);
>>  }


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

2006-05-17 Thread Byron Canfield
I have neither Flex nor Flash Player 9 -- I suspect your conclusion is
correct. Wild hair (is Flash 9 player beta?): might want to see if it's a
case issue, and use a different name for the color object (i.e., Flash 6
player would also reject "color" for use as an object name, as it was not
case sensitive and "color" was a reserved word).

-- 
Byron "Barn" Canfield


> Barn -
>
> Thanks for testing the code. Do you have Flex 2.0 / Flash Player 9 on your
> system? If not, then I think that may be the cause of my problem (I do
> have
> them installed; we're using Flex for upcoming projects).


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

2006-05-17 Thread Byron Canfield
I am unable to reproduce the error.

Created a movieclip and gave it the instance name "tmp", copied and pasted
the code directly from your email, and it compiles with no errors (and
turns the movieclip red).

-- 
Byron "Barn" Canfield


> Hello all,
>
> I'm getting an error that makes no sense at all. I distilled the code to
> its
> simplest form, and I'm still getting the error. I have a movie with one
> frame and one movie clip on the stage, with the instance name "tmp". Here
> is
> the code:
>
> var color:Color;
> color = new Color(tmp);
> color.setRGB(0xFF);
>
> Here is the error that I get when I try to compile:
>
>>> There is no method with the name 'setRGB'.
>
> I am using Flash 8 on Windows XP Pro. I understand that the Color object
> has
> been deprecated in 8, but it should still compile.
>
> I also have Flex 2.0 with Flash Player 9 installed on the same box - I
> don't
> think this should affect the Flash compiler, but perhaps it does. If none
> of
> you have experienced this error, perhaps I should post it to the
> Flexcoders
> mailing list?


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

2006-04-01 Thread Byron Canfield
Additionally, the proposed solutions, whether embedded JavaScript or
external JavaScript files are entirely ineffectual for those who have
changed the browser settings to disallow JavaScript execution -- not all
that uncommon in this, the age of the pop-ups.

-- 
Byron "Barn" Canfield


> I couldnt give a stuff about the lost lawsuit, 0.001% revenue loss
> for MS compared to all legacy flash sites that I will have to dig up log
> in details for and fix, much bigger impact for me personally than bill
> will fell personally


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

2006-03-24 Thread Byron Canfield
The initial coordinates of a dynamically created movieclip are always 0.

Unless you have explicitly assigned a new value to the _x property of a
dynamically created movieclip, it will be zero.

-- 
Byron "Barn" Canfield


> If i create n movieclip with the createEmptyMovieClip giving to anyone a
> different name is possible to know the x and y value from another
> function?
> To me seem no , if i create for example 10 movie clip and in another
> function
> i write
> trace("x : "+movieclip1._x)
> trace("y : "+movieclip1._y)
>
> trace("x : "+movieclip2._x)
> trace("y : "+movieclip2._y)
>
>
> ...
>
>
> it writes always 0...


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

2006-03-20 Thread Byron Canfield
I was able to get it to work by deleting the m1 button event handler
function, however, the button event handler for m2 cannot be executed
before m2 actually exists, and since it comes into existence on frame 20
of m1, the button event handler function must also be run on frame 20 of
m1.

-- 
Byron "Barn" Canfield


> thanks for the help. If you say it can never work, then I assume it can
> never work... I'll do a little rethinking as you suggest and use the
> oldstyle buttons where needed.
>
> Ben
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Andy
> Johnston
> Sent: maandag 20 maart 2006 1:41
> To: Flashcoders mailing list
> Subject: Re: [Flashcoders] movieclip actions not working
>
> ben, you cannot have a button inside another button...
>
> That is why your code wont work.
>
> paste this over your current code
>
> m1.onRollOver = function ():Void
> {
> this.gotoAndStop (20);
> };
> m1.onRollOut = function ():Void
> {
> this.gotoAndStop (1);
> };
> m1.m2.onPress = function ():Void
> {
> trace("HI")
> getURL ("http://www.cnn.com";, "_blank");
> };
>
> as you will see the trace("HI") will never fire because the m1 button
> movieClips hit area will expand to the total size of the movieClip.
>
> rethink your setup, this will never work despite all the help in the world
>
>>have you tried that Byron, and does that work for you? I've tried it
>> here,
>>and makes no difference at all...
>>
>>strange that such a simple thing is so hard to solve...
>>
>>-Original Message-
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] On Behalf Of Byron
>>Canfield
>>Sent: maandag 20 maart 2006 1:18
>>To: flashcoders@chattyfig.figleaf.com
>>Subject: RE: [Flashcoders] movieclip actions not working
>>
>>Actually try this, instead.
>>
>>m1.onRollOver = function(){
>>  delete this.onRollOver;
>>  //this.play();
>>  this.gotoAndStop(20);
>>}
>>
>>
>>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/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] movieclip actions not working

2006-03-19 Thread Byron Canfield
Actually try this, instead.

m1.onRollOver = function(){
delete this.onRollOver;
//this.play();
this.gotoAndStop(20);
}

-- 
Byron "Barn" Canfield


> Thanks for your help, but have you actually tried it? When I paste your
> code, it does not make a difference at all, the m2 button still does not
> launch a url when clicked.
>
> again, here's a link to a fla. See if you can get that to work...
> http://www.citogrid.com/v3/images/fla/whynot.fla
>
> thx,
> Ben
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Byron
> Canfield
> Sent: maandag 20 maart 2006 0:33
> To: flashcoders@chattyfig.figleaf.com
> Subject: RE: [Flashcoders] movieclip actions not working
>
> Your first button event handler has already intercepted the mouse event.
> The button event handler nested inside is therefore ignored entirely.
>
> For your first button event:
>
> m1.onRollOver = function() {
>   gotoAndStop(20);
>   //or play();
> this.enabled = false;
> }
> --
> Byron "Barn" Canfield
>
>
>>> stop action on frame 1
>>
>> stop();
>> m1.onRollOver = function() {
>>  gotoAndStop(20);
>>  //or play();
>> }
>>
>>
>>> stop action on frame 20
>>
>> stop();
>> m2.onRelease = function() {
>>  getURL("http://www.website.com";, "_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
>


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

2006-03-19 Thread Byron Canfield
All my code does is terminate the interception of the button event by the
first button. It does not address other code errors.

As was asked before, where is the code for the second button? Is it on
frame twenty of the m1 movieclip? And, if so, has the button instantiated
by the time the button event handler function is created?

-- 
Byron "Barn" Canfield


> Thanks for your help, but have you actually tried it? When I paste your
> code, it does not make a difference at all, the m2 button still does not
> launch a url when clicked.
>
> again, here's a link to a fla. See if you can get that to work...
> http://www.citogrid.com/v3/images/fla/whynot.fla
>
> thx,
> Ben
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Byron
> Canfield
> Sent: maandag 20 maart 2006 0:33
> To: flashcoders@chattyfig.figleaf.com
> Subject: RE: [Flashcoders] movieclip actions not working
>
> Your first button event handler has already intercepted the mouse event.
> The button event handler nested inside is therefore ignored entirely.
>
> For your first button event:
>
> m1.onRollOver = function() {
>   gotoAndStop(20);
>   //or play();
> this.enabled = false;
> }
> --
> Byron "Barn" Canfield
>
>
>>> stop action on frame 1
>>
>> stop();
>> m1.onRollOver = function() {
>>  gotoAndStop(20);
>>  //or play();
>> }
>>
>>
>>> stop action on frame 20
>>
>> stop();
>> m2.onRelease = function() {
>>  getURL("http://www.website.com";, "_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
>


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

2006-03-19 Thread Byron Canfield
Your first button event handler has already intercepted the mouse event.
The button event handler nested inside is therefore ignored entirely.

For your first button event:

m1.onRollOver = function() {
gotoAndStop(20);
//or play();
this.enabled = false;
}
-- 
Byron "Barn" Canfield


>> stop action on frame 1
>
> stop();
> m1.onRollOver = function() {
>   gotoAndStop(20);
>   //or play();
> }
>
>
>> stop action on frame 20
>
> stop();
> m2.onRelease = function() {
>   getURL("http://www.website.com";, "_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] preloader issue

2006-03-11 Thread Byron Canfield
Not sure if anyone has responded yet -- my thread sorting is all screwed up.

You cannot delete or terminate an onClipEvent(enterFrame) unless you
delete the movieclp to which you have applied it, either by terminating
it's existence on the timeline with an empty keyframe, or by swapping it
to a "dynamic" depth (zero or above) and using removeMovieClip().

An onClipEvent(enterFrame) is not synonymous with an onEnterFrame() function.

-- 
Byron "Barn" Canfield


> well, the preloader does display load status, then simply repeats, instead
> of deleting itself, it just repeats the loading ... any ideas??? i just
> want
> the swf it loads to not play or start until it is fully loaded, and the
> label_txt is deleted etc ...
>
>
>
> onClipEvent(load) {
>this.loadMovie("en.swf");
> }
>
> onClipEvent(enterFrame) {
>tBytes = this.getBytesTotal();
>bLoaded = this.getBytesLoaded();
>percent = Math.round((bLoaded/tBytes)*100)
>if (bLoaded  _root.bar_mc._xscale = (bLoaded/tBytes)*100;
>  if (percent < 10) {
>   _root.label_txt.text = "0" + percent + "%";
>  }
>  else {
>   _root.label_txt.text = percent + "%";
>  }
>} else {
>  _root.bar_mc.removeMovieClip();
>  _root.label_txt.removeTextField();
>  target_mc.play();
>  delete _root.target_mc.onEnterFrame;
>}
> }
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/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] The almighty duplicateMovieClip?

2006-03-11 Thread Byron Canfield
Well, no, to the first statement. There IS an answer, and the answer is...

That is correct; that cannot be done. Duplicates are always generated in
the same timeline as the original from which the duplicate is made.

To assign a movieclip to a specific timeline, use attachMovie() attaching
a library object movieclip to which you have applied a linkage.

-- 
Byron "Barn" Canfield


>
> Dear all,
>
> There seems to be no answer to this one question on the web, nor did it
> bother anyone at anytime:
>
> The almighty duplicateMovieClip (global funk or MC method, no matter)
> doesn't seem to be capable of duplicating a MC from one timeline into a
> different one.
>
> The thing I'm trying to achieve is grab a copy of a MC _root.mc1.mc2 (thus
> it's _name = mc2) into a MC different from _root.mc1, for instance _root
>
> But it doesn't seem to be possible. Am I right?
>
> Something like this (thought the code is obviously incorrect):
>
> _root.mc1.mc2.duplicateMovieClip("_root.newMC", 100);
> trace(_root.newMC);
>
>
>
>
>
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/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] Contaminated list?

2006-03-10 Thread Byron Canfield
How does this happen? Already, at an email address that I use ONLY for
this list, to which I have subscribed for just the upside of 3 weeks now,
I've received the following garbage (message header at end, for anyone
interested).
-- 
Byron "Barn" Canfield



 Original Message 
Subject: Attn: Byron Canfield Please Respond,
From:"Barrister Brian Braithwaite" <[EMAIL PROTECTED]>
Date:Fri, March 10, 2006 5:11 am
To:  [EMAIL PROTECTED]
--

BARRISTER BRIAN OLUFEMI BRAITHWAITHE.
BRAITHWAITHE & ASSOCIATES,
BE 152 RUE DU CENTRALE,
LOME,
TOGO.
  PROPOSITION

I am Barrister Brian Olufemi Braithwaithe, Attorney at
Law, and I require your participation in a transaction
for which you would be amply rewarded.

You must be capable of handling discretely a large
investment portfolio. I got your contact through a
third party who must remain anonymous. I beleive as he
does that you are the right candidate for the job at
hand.

Please get back to me if you think you are suitable
and interested. Please if you are not just delete it
and dont reply and kindly accept my apologies for
disturbing you.

Thanks for your understanding.
Brian O. Braithwaithe
[EMAIL PROTECTED]







___
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les
tarifs exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com

 Message Header 
Return-Path: <[EMAIL PROTECTED]>
X-Original-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Received: from deathwish.dreamhost.com (deathwish.dreamhost.com
[66.33.206.108])
 by chopstick.dreamhost.com (Postfix) with ESMTP id E96D6103FC5
 for <[EMAIL PROTECTED]>; Fri, 10 Mar 2006 05:11:07 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
 by deathwish.dreamhost.com (Postfix) with ESMTP id C846417510F
 for <[EMAIL PROTECTED]>; Fri, 10 Mar 2006 05:11:07 -0800 (PST)
Received: from deathwish.dreamhost.com ([127.0.0.1])
 by localhost (deathwish [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 24607-19 for <[EMAIL PROTECTED]>;
 Fri, 10 Mar 2006 05:11:07 -0800 (PST)
Received: from web27304.mail.ukl.yahoo.com (web27304.mail.ukl.yahoo.com
[217.146.177.165])
 by deathwish.dreamhost.com (Postfix) with SMTP id 87C78175141
 for <[EMAIL PROTECTED]>; Fri, 10 Mar 2006 05:11:06 -0800 (PST)
Received: (qmail 9065 invoked by uid 60001); 10 Mar 2006 13:11:04 -
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
 s=s1024; d=yahoo.fr;
 
h=Message-ID:Received:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding;
 
b=ZNq6dAIacKhR7p7mUmf/wFjvHB6iUZDzoTsDrPvcqYShWKxhhoSF2hMEaQ/xawi9wKwZoF+LGOQXu1jChObXXMnjF+cx/l9FkYQdFqv93iBG0SpNzj6EQA/LYOoxLeVLlzoeH8ritVgJmz6vO4Wa/gAopCAGF+oco1kHWkjpbik=
;
Message-ID: <[EMAIL PROTECTED]>
Received: from [80.248.65.169] by web27304.mail.ukl.yahoo.com via HTTP;
Fri, 10 Mar 2006 14:11:04 CET
Date: Fri, 10 Mar 2006 14:11:04 +0100 (CET)
From: Barrister Brian Braithwaite <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Attn: Byron Canfield Please Respond,
To: [EMAIL PROTECTED]
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-DH-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at deathwish
X-Spam-Status: No, hits=0.0 tagged_above=-999.0 required=999.0 tests=
X-Spam-Level:
=

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

2006-03-07 Thread Byron Canfield
Part of the problem is that your onEnterFrame is getting stomped on by the
reinstantiation of the target movieclip when the SWF actually begins to
load. That effectively (quite) deletes the onEnterFrame. Either attach the
onEnterFrame to some other timeline, or load the movie into some other
timeline, perhaps a child movieclip.

-- 
Byron "Barn" Canfield


> I have posted this before, and gotten some feedback, this is the result,
> yet
> i still cannot get the clip to display the load progress of "bigfile.swf"
> inside the label_txt. the swf loads inside of _root.target_mc ... any
> ideas
> here people?
>
> // - begin code
> target_mc.loadMovie("bigfile.swf");
> target_mc.onEnterFrame = function() {
>   tBytes = getBytesTotal();
>   trace ("tBytes: " + tBytes);
>   bLoaded = getBytesLoaded();
>   trace ("bLoaded: " + bLoaded);
>   percent = (bLoaded/tBytes) * 100;
>   if (bLoaded < tBytes){
>_root.bar_mc._xscale = (bLoaded/tBytes)*100;
>_root.label_txt.text = percent & " % LOADED"
>   } else {
>//play();
>//_root.target_mc.unloadMovie();
>delete this.onEnterFrame;
>   }
> }
>
> // end code
>
> regards, edward
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/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] random concatenated txt question

2006-03-06 Thread Byron Canfield
I think I would take the simpler route:

ascii = new Array("a", "b", "c", "d", "e", "f", "g", "h", "i",
"j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u",
"v", "w", "x", "y", "z");

function fncShuffle() {
return Math.floor(Math.random()*3)-1;
}

_root.onEnterFrame = function() {
myTxt_txt.text = ascii.sort(fncShuffle).join("").substr(0, 19);
};


-- 
Byron "Barn" Canfield


> great fix! thx guys(or gals):
>
>
>
> ascii = new Array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j",
>   "k", "l", "m", "n", "o", "p", "q", "r", "s", "t",
>   "u", "v", "w", "x", "y", "z", "!", "@", "#", "$",
>   "%", "^", "&");
>
> function random1() {
>  singleLetter = ascii[random(ascii.length)];
>  return singleLetter;
> }
>
> function random2() {
>  yy = _root.myTxt_txt.length;
>  initialTxt = "";
>  for (var x:Number = 0; x < yy; x++) {
>   j = random1();
>   initialTxt += j.toString();
>  }
>  return initialTxt;
> }
>
> _root.onEnterFrame = function() {
>  uu = random2();
>  myTxt_txt.text = uu;
> }
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/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] random concatenated txt question

2006-03-06 Thread Byron Canfield
I don't see anything there in that code that limits the string length to
19, nor anything to reset the string to a null value upon reaching the 19.

It just keeps on concatenating onto the end of the string, but you can't
see it because of the limited size of the textfield.

Try putting a trace in your onEnterFrame() and you'll see what I mean:

_root.onEnterFrame = function() {
myTxt_txt.text = random2();
trace("myTxt_txt.text: "+myTxt_txt.text.length)
};

That said, it seems to me that you're really going about this the hard
way. Each of those single-letter strings is possible to represent with a
numeric ascii value, such that there is no need for the array -- just
convert the chosen numeric value to a character at the time it is
concatenated.

-- 
Byron "Barn" Canfield


> this fills up my dynamic txt field. then just stops. it should keep
> producing a random string of 19 characters (the length of the txt field),
> then replace it every frame with a new string of random characters.
> instead
> it just fills up, then stops. ugh!
> -
>
>
>
> ascii = new Array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j",
>   "k", "l", "m", "n", "o", "p", "q", "r", "s", "t",
>   "u", "v", "w", "x", "y", "z");
>
> function random1() {
>  x = ascii[random(ascii.length)];
>  return x;
> }
>
> function random2() {
>  yy = _root.myTxt_txt.length;
>  for (x = 0; x < yy; x++) {
>   j = random1();
>   if (initialTxt == undefined) {
>initialTxt = '';
>   }
>   initialTxt += j.toString();
>  }
>  return initialTxt;
> }
>
> _root.onEnterFrame = function() {
>  myTxt_txt.text = random2();
> }
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/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] Help with timeline Script

2006-03-03 Thread Byron Canfield
I guess I didn't make that clear. Client requirement or no, some things
just won't work when names in Flash begin with numeric characters, or, if
they do work at all, it is only after jumping through hoops to get the
names to resolve properly.


-- 
Byron "Barn" Canfield


> Byron man, this is client requirement. He wants to open the outlook as
> soon
> as some click on his email id. And you know about the clients, if they
> need
> it ,they need it.
>
> ----- Original Message -
> From: "Byron Canfield" <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, March 01, 2006 11:24 AM
> Subject: Re: [Flashcoders] Help with timeline Script
>
>
>> The first thing you should do is repair your naming -- object (and all
>> other) names in Flash should always begin with at least one non-numeric
>> character.
>>
>> --
>> Byron "Barn" Canfield
>>
>>
>>> Help!  I cant get this code quite right.  I'm probably attempting
>>> somthing
>>> that is way above my head but maybe i'll learn something in the end ;-)
>>>
>>> Goal description:
>>>
>>> I'm creating a time line.  I have a series of dates that act as a
>>> series
>>> of
>>> buttons.  Each button controls a specific mc.  Like so:
>>>
>>> 1930_btn controls 1930_mc
>>> 1940_btn controls 1940_mc
>>> 1950_btn controls 1950_mc
>>
>>
>> ___
>> Flashcoders@chattyfig.figleaf.com
>> To change your subscription options or search the archive:
>> http://chattyfig.figleaf.com/mailman/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] oop question?

2006-03-02 Thread Byron Canfield
The important thing to remember (just learned this Monday, from Aral's
workshop at Flash Forward) is that "#include" actually inserts the content
of an external .as file in the position where the include statement is
issued, whereas "import" does not insert, load, or import anything -- all
it does is say, "there is a class file that the script may or may not be
looking for in this location and by this filename", which is required only
when the class file does not exist in the same location as the FLA being
compiled (the compiler will automagically look in the current directory).

-- 
Byron "Barn" Canfield


> my main flash file only contains:
>
>
> #include "mLoader.as"
>
> var mLoader1:mLoader = new mLoader( );
>
>
> ... while my .as file only contains:
>
> class mLoader {
> }
>
>
>
> but i get the following error:
> **Error** Z:\design\murderdesign.com\reusable\loader\mLoader.as: Line 1:
> Classes may only be defined in external ActionScript 2.0 class scripts.
>  class mLoader {
>
> Total ActionScript Errors: 1  Reported Errors: 1
>
> any idea what that is?


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

2006-03-02 Thread Byron Canfield
Except that's not the kind of patent action this case addresses. This one
is specifically someone developing or copying an idea that already
existed, and then, upon finding it not yet patented, patenting it and
thereby attempting to extort money out of others, some of whom did all the
originally development.

This silly business model of "profit solely through litigation" has got to
stop.


-- 
Byron "Barn" Canfield


> Actually DNA work, drug design, and all that kind of stuff is
> incredibly important work that if not protected there would be no
> motivation to do.
>
> If someone discovers a gene after spending, say $500 Million, should
> someone else be able to come along and spend $1 Million and compete
> from the same starting line?
>
> Patents protect innovation. The problem is that innovations, once
> accepted by the public, often seem obvious and inevitable. Often they
> just **seem** to be obvious, but are not. There are lots of "obvious"
> things that dont catch on and vice versa. Broad acceptance is not the
> same as obvious, but many dont understand that distinction.
>
> If someone actually solves any of the biological mysteries that will
> help us cure diseases and make life more comfortable, they absolutely
> deserve protection.
>
> Regards
> Hank
>
> On 3/2/06, elibol <[EMAIL PROTECTED]> wrote:
>> Umm, hmm... The genes which comprise breathing should soon be patented
>> then.
>>
>> Sighs* ( pun intended )
>>
>> M.
>>
>> On 3/2/06, Kenneth Kawamoto <[EMAIL PROTECTED]> wrote:
>> >
>> > Never mind the breathing, your DNA itself is patented: your existence
>> is
>> > in bleach of the U.S. patent law!
>> > <
>> > http://news.nationalgeographic.com/news/2005/10/1013_051013_gene_patent.html
>> > >
>> >
>> > Kenneth Kawamoto
>> > www.materiaprima.co.uk
>> >
>> > On 3/2/06, Serge <[EMAIL PROTECTED]> wrote:
>> > > What do you say, if somebody would like to patent a process of
>> > breathing?
>> >
>> >
>> > ___
>> > Flashcoders@chattyfig.figleaf.com
>> > To change your subscription options or search the archive:
>> > http://chattyfig.figleaf.com/mailman/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] Help with timeline Script

2006-02-28 Thread Byron Canfield
The first thing you should do is repair your naming -- object (and all
other) names in Flash should always begin with at least one non-numeric
character.

-- 
Byron "Barn" Canfield


> Help!  I cant get this code quite right.  I'm probably attempting somthing
> that is way above my head but maybe i'll learn something in the end ;-)
>
> Goal description:
>
> I'm creating a time line.  I have a series of dates that act as a series
> of
> buttons.  Each button controls a specific mc.  Like so:
>
> 1930_btn controls 1930_mc
> 1940_btn controls 1940_mc
> 1950_btn controls 1950_mc


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

2006-02-28 Thread Byron Canfield
I'm in this camp -- I prefer using the email client of MY choice, not
someone else's. Plus I like being able to review what I sent.

Personally, I find corporate sites that hide the principals' email
addresses to be annoying -- I just want the email address; I'll do the
rest.

-- 
Byron "Barn" Canfield


> Really? As long as I know it's going to happen (ie - I've clicked on an
> email address) I much prefer the email opening up in the mail client of
> my choice, rather than me having to use some limited feature textbox and
> submit button.
>
> No spellcheck
> No signature
> No address book
> No sent item in my 'sent items' box
>
> etc.
>
> M
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/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] Z sorting multiple overlapping movie clips

2006-02-28 Thread Byron Canfield
You can make it a lot easier by doing some of the prep work for that
architecture in the for loop that you use to first create and assign
depths to those movieclips.

This isn't exactly OOP, but it demonstrates the architecture:

var qtyClips:Number = 4;
var nbrDepthOffset:Number = 7;
var rraClips:Array = new Array();
var nbrLastPressed:Number;
//
function fncClipInit() {
for (var i = 0; i Does anyone have a an algorithm for Z sorting multiple overlapping
> clips...
>
> I have an array of clips and when one is clicked I want it to come to
> the top, but I want the other overlapping items to also shift
> appropriately...
>
> So
>
> Item [1] at depth 10
> Item [2] at depth 9
> Item [3] at depth 8
> Item [4] at depth 7
>
> If you click item [4], it would go to depth 10, and the other would
> shift down 1
>
> Item [4] depth 10
> Item [1] depth 9
> Item [2] depth 8
> Item [3] depth 7
>
> But if any of those items are overlaping other items, they also need to
> be Z sorted.
>
> I'd rather not re-invent the wheel.
>
> Thanks
> Grant
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/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] Navigating between labels? Scripting help:

2006-02-26 Thread Byron Canfield
How about just a single function (ala LOTR -- "one ring to rule them all")
and just pass it a 1 or -1 to indicate the direction?

/* Initialize index: */
var index:Number = 0;
/* Declare var frames as an array and populatec with frame labels: */
var frames:Array = ["scene1", "scene2", "scene3"];
/* Get length of array: */
var max:Number = frames.length;
//
/* Attach function to forward button: */
_root.forward.onRelease = function() {
frameChange(+1);
};
//
/* Attach function to backward button: */
_root.backward.onRelease = function() {
frameChange(-1);
};
//
frameChange = function (nbrDir) {
index = (index+nbrDir+max)%max;
trace(frames[index]);
gotoAndPlay(frames[index]);
};

Also, I notice that one of your comments describes these as "scene
labels", but note that scene labels can only be targeted from the _root of
the level AND you cannot use variable references (including arrays) for
scene label designations -- must be actual string literal: the actual
scene name  surrounded with quote marks. For the above to work, those must
be frame labels, not scene labels.

-- 
Byron "Barn" Canfield


> Hey all...
>
> I need some help with the below code... I am trying to set-up a dynamic
> way to jump from label to label on the main timeline of my animation...


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

2006-02-24 Thread Byron Canfield
newClip.intervalid = setInterval(newClip.doSomething, 200);


-- 
Byron "Barn" Canfield


> Hey All,
>
> I'm looping through a structure adding movieclips along the way for each
> element. I need to setup a separate interval inside each new clip. If I
> call
> the function directly, I need this to be constantly updating without an
> onEnterFrame.
>
>
>
> _root.work.createEmptyMovieClip( newName, vItemCount );
> //
> var newClip = _root.work[newName];
> //
> // this function redraws the line
> newClip.doSomething = function(){
> // {.}
> }
> // I've tried all of the following
> // newClip.intervalid = setInterval(this, doSomething, 200);
> // newClip.intervalid = newClip.setInterval(doSomething, 200);
> // newClip.intervalid = setInterval(newClip, doSomething, 200);
>
> Any insight or help is appreciated.
>
>
> Cheers,
>
> !k


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

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


Re: [Flashcoders] I.E. won't play MP3 (sometimes)

2006-02-23 Thread Byron Canfield
Worked fine for me: XP/sp2, IE 6.0.2900.2180.xpsp_sp2_gdr_050301-1519


-- 
Byron "Barn" Canfield


> If you have 10 seconds, please test this so if this problem is only
> on my laptop.
>
> This movie streams short MP3's when the user clicks a button. Works
> fine in I.E. on 3 of my machines, but on my laptop the MP3 never
> plays, although it does get loaded into I.E.'s cache.
>
> I'd appreciate knowing if any of you get the same results. Go to
> http://www.dartfrogmedia.com/birdgame. Click on the bird photo and
> please let me know if you don't hear the bird name announced. Note:
> the intro sound is NOT streamed, so you'll hear it for sure.
>
> thanks,
> Marc
>
>
> ___
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/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] preloading multiple swfs with moviecliploader

2006-02-21 Thread Byron Canfield
Well, presuming you're speaking of on-line delivery, you're kind of at the
mercy of the browser on that one, as most browsers have a physicial limit
of 4 simultaneous connections (download streams), though I think some
versions on the Mac allow up to 7, such that any quantity of files greater
than that will simply have to wait their turns. The problem therein is
that the sum of all file sizes is not known until the last file has loaded
enough that the byte values can be retrieved, so that means that some
files have to load in their entirety before the sizes of others are even
known.

One way around that is to use a server-side script to feed the filesizes
of all files to be loaded to Flash in advance of the first file load, such
that the progress bar can be "constructed", in advance, to measure the
progress properly. But then again, if you do that, there's really no need
to load files quasi-simultaneously -- you can then simply load
sequentially.

-- 
Byron "Barn" Canfield


> Has anyone been able to preload multiple swfs concurrently and keep
> track of progress globally rather than for individual files?
>
> We can do it sequentially, but that ain't pretty for the user when they
> have to endure 12 serial progress bars.
>
> TIA,
>
> Randy Tinfow
> IMAGE PLANT


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

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