Re: [Flashcoders] Known memory leaks in FP10

2010-02-02 Thread W.R. de Boer
Yes, I am already using that unloadAndStop()-method but I haven't had much yet. 
I am experience a rise in cpu usage each time I am switching client SWF files. 
After it's loaded it drops back to normal 20-30% cpu usage but after running it 
for a few hours. You can see that the switching between takes longer and longer 
every time.

Does that mean something isn't correctly cleaned up like some MovieClip which 
ain't stopped or an Timer-class instance? How can I hunt such things down? The 
Flex Builder profile is not of much help because it crashes after  a while or 
gives or null exception in the ProfilerAgent class.

Desperate!
Weyert

On Feb 1, 2010, at 7:11 PM, Henrik Andersson wrote:

 Mario Gonzalez wrote:
 Using an anvil to place a thumbtack approach, you could use flash player
 10.1 and it's new 'unloadAndStop' method
 
 The method has been there sine fp 10, not fp 10.1
 ___
 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


Re: [Flashcoders] Flash and MySQL

2010-02-02 Thread beno -
On Mon, Feb 1, 2010 at 5:29 PM, Steven Sacks flash...@stevensacks.netwrote:

 Quite frankly, it boggles my mind anyone ever answers beno's posts with any
 level of seriousness. He's the love child of a troll and a help vampire.

 How hard would [building a MySQL equivalent db in AS3] be? Tell me...


Well I don't know. You know because you have more experience than I.


 I think beno is a 4channer and is secretly laughing at how many people
 provide serious responses to such inanity.


Don't be a fool. Don't call me names. Be mature in your responses.
beno



 ___
 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


[Flashcoders] Keep getting Error #1009: Cannot access a property or method of a null object reference. at ProfilerAgent/allCompleteHandler()

2010-02-02 Thread W.R. de Boer
Hello,

I am currently trying to use the Flex Builder 3 Profiler only I am having 
trouble with profiling this SWF I am having. The issue is that half the time I 
am getting the following error:

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
   at 
ProfilerAgent/allCompleteHandler()[C:\SVN\branches\3.2.0\modules\profiler3\as\ProfilerAgent.as:293]

Does anyone know how to get rid of this problem or this error basically mean? 
An issue on my side which is causing this?

Thanks,
Weyert de Boer
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread beno -
Hi;
I have posted this question so many times in so many forums and not gotten
an answer that I'm simply asking the helpful, mature people of this list to
help me understand better how to ask this question in a way that would
elicit a helpful response.
TIA,
beno

I have asked this in the newbies d'list, Adobe's d'list and of the two
listers here kind enough to offer off-list help and all to no avail, so with
your permission I'm now asking it here.

Hi;
I have this code:
package
{
   import flash.events.Event;
   import flash.events.ProgressEvent;
   import flash.events.Event;
   import flash.events.MouseEvent;
   import flash.display.MovieClip;
   import com.greensock.*;
   import com.greensock.easing.*;
   public class Main2 extends MovieClip
   {
  //Import Library Assests
public var myThumb:CloseThumb;

  public function Main2()
  {
 init();

  }

  public function init():void
  {
theThumb();
}
public function theThumb():void
{
myThumb = new CloseThumb();
myThumb.x = 365;
myThumb.y = 355;
myThumb.addEventListener(Event.ENTER_FRAME, checkFrame);
}
public function checkFrame(e:Event):void {
if (e.target.currentFrame == 1) {
e.target.removeEventListener(Event.ENTER_FRAME, checkFrame);
trace('check');
addChild(myThumb);
TweenMax.to(myThumb, .4, {shortRotation:{rotation:60}, ease:Back.easeOut});
}
}
   }
}
It works fine. The problem is that if I change currentFrame from == 1 to any
other value, it breaks. The reason apparently is because the mc in the fla
is only 1 frame long. Now, I need to be able to call it from various frames.
I've been told to extend it to, for example, 2 frames, but that does
nothing. My main timeline also has but one frame calling the actionscript.
Apparently it's useless to have a listener checkframe on an mc that has 1
frame. Please advise.
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Glen Pike

So you are adding the myThumb and Tweening it somewhere?

You might want to make myThumb do the Tween again from other frames in 
your movie?


Maybe define a function in your class that is not depending on the 
ENTER_FRAME event?


public function doTween():void {
addChild(myThumb):

TweenMax.to(myThumb, .4, {shortRotation:{rotation:60}, 
ease:Back.easeOut,/onComplete/:onFinishTween});

}

//If you want to get rid of the thumb after the tween has finished, then 
add the onComplete handler above to point here...

public function onFinishTween():void {
   removeChild(myThumb);
}
//Then in your theThumb function:

public function theThumb():void
   {
   myThumb = new CloseThumb();
   myThumb.x = 365;
   myThumb.y = 355;
doTween();
   }



beno - wrote:

Hi;
I have posted this question so many times in so many forums and not gotten
an answer that I'm simply asking the helpful, mature people of this list to
help me understand better how to ask this question in a way that would
elicit a helpful response.
TIA,
beno

I have asked this in the newbies d'list, Adobe's d'list and of the two
listers here kind enough to offer off-list help and all to no avail, so with
your permission I'm now asking it here.

Hi;
I have this code:
package
{
   import flash.events.Event;
   import flash.events.ProgressEvent;
   import flash.events.Event;
   import flash.events.MouseEvent;
   import flash.display.MovieClip;
   import com.greensock.*;
   import com.greensock.easing.*;
   public class Main2 extends MovieClip
   {
  //Import Library Assests
public var myThumb:CloseThumb;

  public function Main2()
  {
 init();

  }

  public function init():void
  {
theThumb();
}
public function theThumb():void
{
myThumb = new CloseThumb();
myThumb.x = 365;
myThumb.y = 355;
myThumb.addEventListener(Event.ENTER_FRAME, checkFrame);
}
public function checkFrame(e:Event):void {
if (e.target.currentFrame == 1) {
e.target.removeEventListener(Event.ENTER_FRAME, checkFrame);
trace('check');
addChild(myThumb);
TweenMax.to(myThumb, .4, {shortRotation:{rotation:60}, ease:Back.easeOut});
}
}
   }
}
It works fine. The problem is that if I change currentFrame from == 1 to any
other value, it breaks. The reason apparently is because the mc in the fla
is only 1 frame long. Now, I need to be able to call it from various frames.
I've been told to extend it to, for example, 2 frames, but that does
nothing. My main timeline also has but one frame calling the actionscript.
Apparently it's useless to have a listener checkframe on an mc that has 1
frame. Please advise.
TIA,
beno
___
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


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread beno -
On Tue, Feb 2, 2010 at 8:54 AM, Cor c...@chello.nl wrote:

 /*
 Without knowing what you exactly trying to do, maybe this helps.

 */

 package {
import flash.events.Event;
import flash.events.ProgressEvent;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.display.MovieClip;
import com.greensock.*;
import com.greensock.easing.*;

public class Main2 extends MovieClip {
//Import Library Assests
public var myThumb:CloseThumb;

public function Main2() {
init();
}

public function init():void {
theThumb();
}
public function theThumb():void {
myThumb = new CloseThumb();
myThumb.x = 365;
myThumb.y = 355;
 addChild(myThumb);
myThumb.addEventListener(Event.ADDED_TO_STAGE,
 onStage);
}
public function onStage(e:Event):void {
 if (e.target.currentFrame == 1) {

 e.target.removeEventListener(Event.ADDED_TO_STAGE, onStage);
trace('check');
 TweenMax.to(myThumb, .4,
 {shortRotation:{rotation:60}, ease:Back.easeOut});
}
}
}
 }

 It did add...at least I saw it on stage. It didn't trace, however.
You can d'l everything here:
http://angrynates.com/cart/main2.zip
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread beno -
On Tue, Feb 2, 2010 at 9:03 AM, Glen Pike g...@engineeredarts.co.uk wrote:

 So you are adding the myThumb and Tweening it somewhere?

 You might want to make myThumb do the Tween again from other frames in your
 movie?

 Maybe define a function in your class that is not depending on the
 ENTER_FRAME event?

 public function doTween():void {
 addChild(myThumb):

 TweenMax.to(myThumb, .4, {shortRotation:{rotation:60},
 ease:Back.easeOut,/onComplete/:onFinishTween});

 }


That looks like the idea I need. However, I changed this line:
addChild(myThumb):
to this:
addChild(myThumb);
(colon to semicolon)

I still get errors with this line:
TweenMax.to(myThumb, .4, {shortRotation:{rotation:60},
ease:Back.easeOut,/onComplete/:onFinishTween});

1084: Syntax error: Expecting identifier before /onComplete/
1084: Syntax error: Expecting colon before rightbrace
1084: Syntax error: Expecting identifier before rightbrace

Please advise.
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Glen Pike

Hi,

   Colon was a typo, sorry.

   Also, I think the /onComplete/ bit is a pasting problem...

   It should say onComplete - no slashes:

   TweenMax.to(myThumb, .4, {shortRotation:{rotation:60}, 
ease:Back.easeOut,onComplete:onFinishTween});


   If you want your thumb to yoyo or repeat tweening, you can do that 
with the TweenMax too - look for examples of yoyo and repeat in the 
docs for TweenMax.


   Useful page? http://blog.greensock.com/get-started-tweening/

   Glen

beno - wrote:

On Tue, Feb 2, 2010 at 9:03 AM, Glen Pike g...@engineeredarts.co.uk wrote:

  

So you are adding the myThumb and Tweening it somewhere?

You might want to make myThumb do the Tween again from other frames in your
movie?

Maybe define a function in your class that is not depending on the
ENTER_FRAME event?

public function doTween():void {
addChild(myThumb):

TweenMax.to(myThumb, .4, {shortRotation:{rotation:60},
ease:Back.easeOut,/onComplete/:onFinishTween});

}




That looks like the idea I need. However, I changed this line:
addChild(myThumb):
to this:
addChild(myThumb);
(colon to semicolon)

I still get errors with this line:
TweenMax.to(myThumb, .4, {shortRotation:{rotation:60},
ease:Back.easeOut,/onComplete/:onFinishTween});

1084: Syntax error: Expecting identifier before /onComplete/
1084: Syntax error: Expecting colon before rightbrace
1084: Syntax error: Expecting identifier before rightbrace

Please advise.
TIA,
beno
___
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


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread beno -
On Tue, Feb 2, 2010 at 9:24 AM, Glen Pike g...@engineeredarts.co.uk wrote:

 Hi,

   Colon was a typo, sorry.

   Also, I think the /onComplete/ bit is a pasting problem...

   It should say onComplete - no slashes:

   TweenMax.to(myThumb, .4, {shortRotation:{rotation:60},
 ease:Back.easeOut,onComplete:onFinishTween});


Wonderful! That worked!
Thanks!
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread beno -
On Tue, Feb 2, 2010 at 9:31 AM, Cor c...@chello.nl wrote:

  When not using the timeline, you don’t have current frames!

 You have to pick another trigger!

Thanks for your help on this! Glen Pike solved it, however.
Thanks again!
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread beno -
OOPS! I spoke too soon!!

Here's the revised code:

package
{
   import flash.events.Event;
   import flash.events.ProgressEvent;
   import flash.events.Event;
   import flash.events.MouseEvent;
   import flash.display.MovieClip;
   import com.greensock.*;
   import com.greensock.easing.*;

   public class Main2 extends MovieClip
   {
  //Import Library Assests
public var myThumb:CloseThumb;

  public function Main2()
  {
 init();

  }

  public function init():void
  {
theThumb();
}

public function doTween():void {
addChild(myThumb);
TweenMax.to(myThumb, .4, {shortRotation:{rotation:60},
ease:Back.easeOut,onComplete:onFinishTween});

}

//If you want to get rid of the thumb after the tween has finished, then add
the onComplete handler above to point here...
public function onFinishTween():void {
  removeChild(myThumb);
}
//Then in your theThumb function:


public function theThumb():void
  {
  myThumb = new CloseThumb();
  myThumb.x = 365;
  myThumb.y = 355;
myThumb.addEventListener(Event.ENTER_FRAME, checkFrame);
}
 public function checkFrame(e:Event):void {
if (e.target.currentFrame == 10) {
   doTween();
}
}

   }
}

I still need to target the frame I want to use. Again, when I change the
value to anything other than 1, it fails. Please advise.
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread beno -
On Tue, Feb 2, 2010 at 9:48 AM, Cor c...@chello.nl wrote:

  Notice this:



 public function checkFrame(e:Event):void {

if (e.target.currentFrame== 
 10) {

trace(
 checkFrame + e.target.currentFrame)

doTween();

}

}



 The trace only show the text because myThumb has no frames


Has 1 frame. Right. There's the problem. Now the rest of the movie, of
course, does have frames. Is there any way to work around this?
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Geografiek

Hi Beno,
What fails?
Is checkFrame never called? or doTween? Do you get any error messages?
Put some traces in your code to see what's actually happening.
Willem


On 2-feb-2010, at 14:38, beno - wrote:


OOPS! I spoke too soon!!

Here's the revised code:

package
{
   import flash.events.Event;
   import flash.events.ProgressEvent;
   import flash.events.Event;
   import flash.events.MouseEvent;
   import flash.display.MovieClip;
   import com.greensock.*;
   import com.greensock.easing.*;

   public class Main2 extends MovieClip
   {
  //Import Library Assests
public var myThumb:CloseThumb;

  public function Main2()
  {
 init();

  }

  public function init():void
  {
theThumb();
}

public function doTween():void {
addChild(myThumb);
TweenMax.to(myThumb, .4, {shortRotation:{rotation:60},
ease:Back.easeOut,onComplete:onFinishTween});

}

//If you want to get rid of the thumb after the tween has finished,  
then add

the onComplete handler above to point here...
public function onFinishTween():void {
  removeChild(myThumb);
}
//Then in your theThumb function:


public function theThumb():void
  {
  myThumb = new CloseThumb();
  myThumb.x = 365;
  myThumb.y = 355;
myThumb.addEventListener(Event.ENTER_FRAME, checkFrame);
}
 public function checkFrame(e:Event):void {
if (e.target.currentFrame == 10) {
   doTween();
}
}

   }
}

I still need to target the frame I want to use. Again, when I  
change the

value to anything other than 1, it fails. Please advise.
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
Geografiek is a Dutch, Utrecht-based map and chart design company.
Willem van den Goorbergh can be contacted by telephone: (+31) 
30-2719512 or cell phone: (+31)6-26372378

or by fax: (+31)302719687
snail mail: Hooghiemstraplein 89 3514 AX UTRECHT
Visit our website at: http://www.geografiek.nl
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=




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


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Glen Pike
Are you trying to see if the current frame of myThumb is 10, or the 
current frame of the Main clip?


If you are looking at the current frame of the Main clip, then 
e.target.currentFrame should be changed to this.currentFrame.


If these don't have 10 or more frames, then your code won't work.  If 
you need to have a check based on the number of times something is 
called, e.g. the enterframe handler, then use a counter to increment 
until it gets to your magic number then do something:


//class variable called counter.
private var counter:int = 0;

public function checkFrame(e:Event):void {
if (counter == 10) {
doTween();
counter = 0;
} else {
counter++;
}

}



beno - wrote:

OOPS! I spoke too soon!!

Here's the revised code:

package
{
   import flash.events.Event;
   import flash.events.ProgressEvent;
   import flash.events.Event;
   import flash.events.MouseEvent;
   import flash.display.MovieClip;
   import com.greensock.*;
   import com.greensock.easing.*;

   public class Main2 extends MovieClip
   {
  //Import Library Assests
public var myThumb:CloseThumb;

  public function Main2()
  {
 init();

  }

  public function init():void
  {
theThumb();
}

public function doTween():void {
addChild(myThumb);
TweenMax.to(myThumb, .4, {shortRotation:{rotation:60},
ease:Back.easeOut,onComplete:onFinishTween});

}

//If you want to get rid of the thumb after the tween has finished, then add
the onComplete handler above to point here...
public function onFinishTween():void {
  removeChild(myThumb);
}
//Then in your theThumb function:


public function theThumb():void
  {
  myThumb = new CloseThumb();
  myThumb.x = 365;
  myThumb.y = 355;
myThumb.addEventListener(Event.ENTER_FRAME, checkFrame);
}
 public function checkFrame(e:Event):void {
if (e.target.currentFrame == 10) {
   doTween();
}
}

   }
}

I still need to target the frame I want to use. Again, when I change the
value to anything other than 1, it fails. Please advise.
TIA,
beno
___
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


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Matt S.
beno don't do traces. traces are for pussies.

.m

On Tue, Feb 2, 2010 at 8:58 AM, Geografiek geograf...@geografiek.nl wrote:
 Hi Beno,
 What fails?
 Is checkFrame never called? or doTween? Do you get any error messages?
 Put some traces in your code to see what's actually happening.
 Willem

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


Re: [Flashcoders] WIRED hates Flash

2010-02-02 Thread Paul Andrews

William Chadwick wrote:

Apple's decision is irritating, but they're going to loose out. Apple is the
one who will suffer.
  
They are suffering so badly the appstore is empty, nobody buys iPhones 
and revenue is tiny..  ..I don't think so. Jobs did a smart thing 
keeping flash off the iPhone.


I really can't imagine why he isn't a Flash supporter..

Apple is raking the money in via the AppStore.

William Chadwick

On Mon, Feb 1, 2010 at 3:19 PM, Bob Wohl bob.w...@gmail.com wrote:

  

No, it's written with AS but not compiled to flash. It's all smoke and
mirrors.

On Mon, Feb 1, 2010 at 3:07 PM, Gustavo Duenas
gdue...@leftandrightsolutions.com wrote:


I don't get it, it says that ipad wouldn't support flash player, but
recently I read on adobe labs that there is possible in cs5 to make app
(flash based) for iphone, then is not the same system?

gus
On Feb 1, 2010, at 4:36 PM, Henrik Andersson wrote:

  

Gerry wrote:


Flash Player 1. I emailed Tobias and he replied...
Sorry, but Gordon supports only SWF version 1.0 at this time. Export
  

your


movie to FP1 and it will works great.
  

Can you even do that with recent Flash versions?
___
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


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread beno -
On Tue, Feb 2, 2010 at 10:14 AM, Glen Pike g...@engineeredarts.co.ukwrote:

 Are you trying to see if the current frame of myThumb is 10, or the current
 frame of the Main clip?

 If you are looking at the current frame of the Main clip, then
 e.target.currentFrame should be changed to this.currentFrame.

 If these don't have 10 or more frames, then your code won't work.  If you
 need to have a check based on the number of times something is called, e.g.
 the enterframe handler, then use a counter to increment until it gets to
 your magic number then do something:

 //class variable called counter.

 private var counter:int = 0;

 public function checkFrame(e:Event):void {
if (counter == 10) {
doTween();
counter = 0;
} else {
counter++;
}

 }


 I tried this:

package
{
   import flash.events.Event;
   import flash.events.ProgressEvent;
   import flash.events.Event;
   import flash.events.MouseEvent;
   import flash.display.MovieClip;
   import com.greensock.*;
   import com.greensock.easing.*;
// import CloseThumb;
   public class Main2 extends MovieClip
   {

public var myThumb:CloseThumb;
private var counter:int = 0;
  public function Main2()
  {
 init();

  }

  public function init():void
  {
//CloseThumb();
theThumb();
}

public function checkFrame(e:Event):void {
   if (counter == 10) {
   doTween();
   counter = 0;
   } else {
   counter++;
trace(counter);
}

}

public function doTween():void {
addChild(myThumb);
TweenMax.to(myThumb, .4, {shortRotation:{rotation:60},
ease:Back.easeOut,onComplete:onFinishTween});

}

//If you want to get rid of the thumb after the tween has finished, then add
the onComplete handler above to point here...
public function onFinishTween():void {
  removeChild(myThumb);
}
//Then in your theThumb function:


public function theThumb():void
  {
  myThumb = new CloseThumb();
  myThumb.x = 365;
  myThumb.y = 355;
myThumb.addEventListener(Event.ENTER_FRAME, checkFrame);
}

// public function checkFrame(e:Event):void {
// if (e.target.currentFrame == 2) {
//   doTween();
// }
// }

   }
}


It didn't trace the counter. I tried it in the real program (we're working
with a stripped-down version) but it didn't print, nor throw errors.
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] 9-Slice scaling strange behaviour... - Flash CS3

2010-02-02 Thread Glen Pike

Hi,

   I am running into a bizarre problem with Flash CS3 - when I enable 
9-slice scaling for a clip, it suddenly becomes transparent if it is 
placed on stage...


   1.   Create a shape, convert to a symbol, enable 9-Slice scaling - 
disappears???


   It's still there on stage as it has the selection border for MC's...

   Has anyone seen this?  Is it some bizzare corruption with the Flash 
install, or an IDE bug?


   Cheers

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


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Nathan Mynarcik
Lmao. I now have a whole train car of people looking at me from bursting out 
with laughter!


--Original Message--
From: Matt S.
Sender: flashcoders-boun...@chattyfig.figleaf.com
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: Re: [Flashcoders] I Must Be Asking This Question Wrong...
Sent: Feb 2, 2010 8:49 AM

beno don't do traces. traces are for pussies.

.m

On Tue, Feb 2, 2010 at 8:58 AM, Geografiek geograf...@geografiek.nl wrote:
 Hi Beno,
 What fails?
 Is checkFrame never called? or doTween? Do you get any error messages?
 Put some traces in your code to see what's actually happening.
 Willem

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


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Glen Pike

Try adding the ENTER_FRAME listener to Main instead of myThumb...

//myThumb.addEventListener(Event.ENTER_FRAME, checkFrame);
addEventListener(Event.ENTER_FRAME, checkFrame);




beno - wrote:

On Tue, Feb 2, 2010 at 10:14 AM, Glen Pike g...@engineeredarts.co.ukwrote:

  

Are you trying to see if the current frame of myThumb is 10, or the current
frame of the Main clip?

If you are looking at the current frame of the Main clip, then
e.target.currentFrame should be changed to this.currentFrame.

If these don't have 10 or more frames, then your code won't work.  If you
need to have a check based on the number of times something is called, e.g.
the enterframe handler, then use a counter to increment until it gets to
your magic number then do something:

//class variable called counter.

private var counter:int = 0;

public function checkFrame(e:Event):void {
   if (counter == 10) {
   doTween();
   counter = 0;
   } else {
   counter++;
   }

}


I tried this:



package
{
   import flash.events.Event;
   import flash.events.ProgressEvent;
   import flash.events.Event;
   import flash.events.MouseEvent;
   import flash.display.MovieClip;
   import com.greensock.*;
   import com.greensock.easing.*;
// import CloseThumb;
   public class Main2 extends MovieClip
   {

public var myThumb:CloseThumb;
private var counter:int = 0;
  public function Main2()
  {
 init();

  }

  public function init():void
  {
//CloseThumb();
theThumb();
}

public function checkFrame(e:Event):void {
   if (counter == 10) {
   doTween();
   counter = 0;
   } else {
   counter++;
trace(counter);
}

}

public function doTween():void {
addChild(myThumb);
TweenMax.to(myThumb, .4, {shortRotation:{rotation:60},
ease:Back.easeOut,onComplete:onFinishTween});

}

//If you want to get rid of the thumb after the tween has finished, then add
the onComplete handler above to point here...
public function onFinishTween():void {
  removeChild(myThumb);
}
//Then in your theThumb function:


public function theThumb():void
  {
  myThumb = new CloseThumb();
  myThumb.x = 365;
  myThumb.y = 355;
myThumb.addEventListener(Event.ENTER_FRAME, checkFrame);

}

// public function checkFrame(e:Event):void {
// if (e.target.currentFrame == 2) {
//   doTween();
// }
// }

   }
}


It didn't trace the counter. I tried it in the real program (we're working
with a stripped-down version) but it didn't print, nor throw errors.
TIA,
beno
___
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


RE: [Flashcoders] 9-Slice scaling strange behaviour... - Flash CS3

2010-02-02 Thread David Hunter

no such problem on my mac running CS3 and creating a movieclip with 9-slice 
scaling in AS3. maybe restart the program or begin a new project.

 Date: Tue, 2 Feb 2010 15:02:01 +
 From: g...@engineeredarts.co.uk
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] 9-Slice scaling strange behaviour... - Flash CS3
 
 Hi,
 
 I am running into a bizarre problem with Flash CS3 - when I enable 
 9-slice scaling for a clip, it suddenly becomes transparent if it is 
 placed on stage...
 
 1.   Create a shape, convert to a symbol, enable 9-Slice scaling - 
 disappears???
 
 It's still there on stage as it has the selection border for MC's...
 
 Has anyone seen this?  Is it some bizzare corruption with the Flash 
 install, or an IDE bug?
 
 Cheers
 
 Glen
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
_
Got a cool Hotmail story? Tell us now
http://clk.atdmt.com/UKM/go/195013117/direct/01/___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] 9-Slice scaling strange behaviour... - Flash CS3

2010-02-02 Thread Glen Pike

Hi,

   Seemed that a restart of the IDE sorts it out - I think I have a 
corrupt FLA that seems to cause the issue - when I open it again, it 
breaks my 9-slice stuff.  Great, now have to weed that FLA and see if I 
can rescue it...


   Cheers

   Glen

David Hunter wrote:

no such problem on my mac running CS3 and creating a movieclip with 9-slice 
scaling in AS3. maybe restart the program or begin a new project.

  

Date: Tue, 2 Feb 2010 15:02:01 +
From: g...@engineeredarts.co.uk
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] 9-Slice scaling strange behaviour... - Flash CS3

Hi,

I am running into a bizarre problem with Flash CS3 - when I enable 
9-slice scaling for a clip, it suddenly becomes transparent if it is 
placed on stage...


1.   Create a shape, convert to a symbol, enable 9-Slice scaling - 
disappears???


It's still there on stage as it has the selection border for MC's...

Has anyone seen this?  Is it some bizzare corruption with the Flash 
install, or an IDE bug?


Cheers

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

 		 	   		  
_

Got a cool Hotmail story? Tell us now
http://clk.atdmt.com/UKM/go/195013117/direct/01/___
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


RE: [Flashcoders] Preloader error (AS3)

2010-02-02 Thread Paul Steven
Thanks for the replies - I did have a COMPLETE event already.

Henrik - with your comment about the only line of code mentioning an object,
I worked out a solution by calling the following code once it was complete:

this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, PL_LOADING0);

this.loaderInfo.removeEventListener(Event.INIT, checkLoaded0);
this.loaderInfo.removeEventListener(Event.COMPLETE, checkLoaded0);

Guess the PL_LOADING0 function was still being called when the mc was no
longer on screen.

Cheers

Paul

You can now play my game without any loading error

http://www.mediakitchen.co.uk/portfolio_games_liver.htm





-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik
Andersson
Sent: 01 February 2010 10:56
To: Flash Coders List
Subject: Re: [Flashcoders] Preloader error (AS3)

Paul Steven wrote:
   lpc.loadingMC.percent.text=int(pcent0)+%;

This line is the only one even mentioning other objects. One of the 
properties are null.
Check that said object actually exists at that point in time.

The note about the COMPLETE event is correct, listen for it as well, 
since the progress events are not required to be fired for the last few 
bytes.
___
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


RE: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Merrill, Jason
beno don't do traces. traces are for pussies.

Well, including me as well, call me that off-list, not here.  And
preferably somewhere outside where we can settle it like men.


Jason Merrill 

Bank of  America  Global Learning 
Learning  Performance Soluions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)



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


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread beno -
On Tue, Feb 2, 2010 at 11:12 AM, Glen Pike g...@engineeredarts.co.ukwrote:

 Try adding the ENTER_FRAME listener to Main instead of myThumb...

 //myThumb.addEventListener(Event.ENTER_FRAME, checkFrame);

 addEventListener(Event.ENTER_FRAME, checkFrame);


The following code:

package
{
   import flash.events.Event;
   import flash.events.ProgressEvent;
   import flash.events.Event;
   import flash.events.MouseEvent;
   import flash.display.MovieClip;
   import com.greensock.*;
   import com.greensock.easing.*;
// import CloseThumb;
   public class Main2 extends MovieClip
   {

//private var myThumb:CloseThumb = new CloseThumb();
public var myThumb:CloseThumb;
private var counter:int = 0;
  public function Main2()
  {
 init();
addEventListener(Event.ENTER_FRAME, checkFrame);

  }

  public function init():void
  {
//CloseThumb();
theThumb();
}

public function checkFrame(e:Event):void {
   if (counter == 10) {
   doTween();
   counter = 0;
   } else {
   counter++;
trace(counter);
}
}

public function doTween():void {
addChild(myThumb);
TweenMax.to(myThumb, .4, {shortRotation:{rotation:60},
ease:Back.easeOut,onComplete:onFinishTween});
}

//If you want to get rid of the thumb after the tween has finished, then add
the onComplete handler above to point here...
public function onFinishTween():void {
  removeChild(myThumb);
}
//Then in your theThumb function:


public function theThumb():void
  {
  myThumb = new CloseThumb();
  myThumb.x = 365;
  myThumb.y = 355;
 myThumb.addEventListener(Event.ENTER_FRAME, checkFrame);
}

 public function checkFrame(e:Event):void {
 if (e.target.currentFrame == 2) {
   doTween();
 }
 }

   }
}

traces this:

at Main2/theThumb()
at Main2/init()
at Main2()

Nothing prints in the swf.
TIA,
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Glen Pike

Aww, I wanted to see a girl-fight ;)

preferably somewhere outside where we can settle it like men.
  


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


RE: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Merrill, Jason
However he wants to roll.


Jason Merrill 

Bank of  America  Global Learning 
Learning  Performance Soluions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen
Pike
Sent: Tuesday, February 02, 2010 10:33 AM
To: Flash Coders List
Subject: Re: [Flashcoders] I Must Be Asking This Question Wrong...

Aww, I wanted to see a girl-fight ;)
 preferably somewhere outside where we can settle it like men.
   

___
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


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Kerry Thompson
Beno wrote:

 I have this code:
 package
 {
  snip
      public var myThumb:CloseThumb;

   snip
      public function theThumb():void
       {
               myThumb = new CloseThumb();
               myThumb.x = 365;
               myThumb.y = 355;
   myThumb.addEventListener(Event.ENTER_FRAME, checkFrame);
       }
 public function checkFrame(e:Event):void {
 if (e.target.currentFrame == 1) {
 e.target.removeEventListener(Event.ENTER_FRAME, checkFrame);
 }
 It works fine. The problem is that if I change currentFrame from == 1 to any
 other value, it breaks. The reason apparently is because the mc in the fla
 is only 1 frame long. Now, I need to be able to call it from various frames.
 I've been told to extend it to, for example, 2 frames, but that does
 nothing. My main timeline also has but one frame calling the actionscript.
 Apparently it's useless to have a listener checkframe on an mc that has 1
 frame.

It sounds like you pretty much answered the question yourself. If your
movie is only 1 frame long, naturally it won't execute if you test for
frame 2. I'm not sure why you would want to check for frame 2, anyway.

 For that matter, I'm not sure why you're checking for frame 1 if you
know that's where you'll always be. I'm afraid I also don't understand
what you're doing with the checkFrame handler, anyway. All it does is
remove itself, at least from the code you posted, so I don't
understand what the handler does.

A lot of AS3 movies are single-frame movies because AS3 lends itself
to OOP programming so well. I do a lot of enterFrame handling in my
movies, so it's not intrinsically bad.

Cordially,

Kerry Thompson

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


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Paul Andrews

Merrill, Jason wrote:

beno don't do traces. traces are for pussies.
  


Well, including me as well, call me that off-list, not here.  And
preferably somewhere outside where we can settle it like men.
  
I think there was just a smiley missing from the post. He probably call 
his statements 'logTrace' .. ;-)


Beno is the most expensive developer on the planet.


Jason Merrill 

Bank of  America  Global Learning 
Learning  Performance Soluions


Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)



___
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


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Matt S.
school parking lot. behind the school buses. 4pm. and dont try to
sneak a wireless mouse in, thats just dirty fighting.

.m

On Tue, Feb 2, 2010 at 10:26 AM, Merrill, Jason
jason.merr...@bankofamerica.com wrote:
 Well, including me as well, call me that off-list, not here.  And
 preferably somewhere outside where we can settle it like men.


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


RE: [Flashcoders] 9-Slice scaling strange behaviour... - Flash CS3

2010-02-02 Thread David Hunter

copy and paste all the code into a new document and then paste all the library 
assets into the new document and you should be fixed. unless you have lots of 
timeline animations or assets on the stage...

 Date: Tue, 2 Feb 2010 15:17:48 +
 From: g...@engineeredarts.co.uk
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] 9-Slice scaling strange behaviour... - Flash CS3
 
 Hi,
 
 Seemed that a restart of the IDE sorts it out - I think I have a 
 corrupt FLA that seems to cause the issue - when I open it again, it 
 breaks my 9-slice stuff.  Great, now have to weed that FLA and see if I 
 can rescue it...
 
 Cheers
 
 Glen
 
 David Hunter wrote:
  no such problem on my mac running CS3 and creating a movieclip with 9-slice 
  scaling in AS3. maybe restart the program or begin a new project.
 

  Date: Tue, 2 Feb 2010 15:02:01 +
  From: g...@engineeredarts.co.uk
  To: flashcoders@chattyfig.figleaf.com
  Subject: [Flashcoders] 9-Slice scaling strange behaviour... - Flash CS3
 
  Hi,
 
  I am running into a bizarre problem with Flash CS3 - when I enable 
  9-slice scaling for a clip, it suddenly becomes transparent if it is 
  placed on stage...
 
  1.   Create a shape, convert to a symbol, enable 9-Slice scaling - 
  disappears???
 
  It's still there on stage as it has the selection border for MC's...
 
  Has anyone seen this?  Is it some bizzare corruption with the Flash 
  install, or an IDE bug?
 
  Cheers
 
  Glen
  ___
  Flashcoders mailing list
  Flashcoders@chattyfig.figleaf.com
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  

  _
  Got a cool Hotmail story? Tell us now
  http://clk.atdmt.com/UKM/go/195013117/direct/01/___
  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
  
_
Do you have a story that started on Hotmail? Tell us now
http://clk.atdmt.com/UKM/go/195013117/direct/01/___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Merrill, Jason
 dont try to sneak a wireless mouse in, thats just dirty fighting.

LOL


Jason Merrill 

Bank of  America  Global Learning 
Learning  Performance Soluions

Join the Bank of America Flash Platform Community  and visit our Instructional 
Technology Design Blog
(note: these are for Bank of America employees only)






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Matt S.
Sent: Tuesday, February 02, 2010 10:45 AM
To: Flash Coders List
Subject: Re: [Flashcoders] I Must Be Asking This Question Wrong...

school parking lot. behind the school buses. 4pm. and dont try to
sneak a wireless mouse in, thats just dirty fighting.

.m

On Tue, Feb 2, 2010 at 10:26 AM, Merrill, Jason
jason.merr...@bankofamerica.com wrote:
 Well, including me as well, call me that off-list, not here.  And
 preferably somewhere outside where we can settle it like men.


___
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


RE: [Flashcoders] Keep getting Error #1009: Cannot access a property

2010-02-02 Thread Mattheis, Erik (MIN - WSW)
It means you're trying to manipulate an object represented by a variable with a 
null value.

For instance,

var mc:MovieClip;
mc.x = 9;

will generate that error as you've just defined that mc will be a movieclip and 
its initial value is null.

var mc:MovieClip = new MovieClip();
mc.x = 9;

Will not generate the error, nor will

var mc:MovieClip;

if (mc) { // check to see if mc is null before accessing it
mc.x = 9;
}

_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T  952 346 6610
C 612 377 2272

Weber Shandwick
Advocacy starts here.

PRWeek Global Agency Report Card 2009 - Gold Medal Winner
The Holmes Report Global Agency of the Year
PR News Agency of the Year

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of W.R. de Boer
Sent: Tuesday, February 02, 2010 6:41 AM
To: Flash Coders List
Subject: [Flashcoders] Keep getting Error #1009: Cannot access a property or 
method of a null object reference. at ProfilerAgent/allCompleteHandler()

Hello,

I am currently trying to use the Flex Builder 3 Profiler only I am having 
trouble with profiling this SWF I am having. The issue is that half the time I 
am getting the following error:

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
   at 
ProfilerAgent/allCompleteHandler()[C:\SVN\branches\3.2.0\modules\profiler3\as\ProfilerAgent.as:293]

Does anyone know how to get rid of this problem or this error basically mean? 
An issue on my side which is causing this?

Thanks,
Weyert de Boer
___
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


[Flashcoders] RE: Drop shadow behavior

2010-02-02 Thread Mattheis, Erik (MIN - WSW)
A clus - setting cacheAsBitmap to true for both the mask and bitmap makes the 
dropshadow only appear *outside* of what would be the sprite's rectangular hit 
area.

Puzzled.

_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T  952 346 6610
C 612 377 2272

Weber Shandwick
Advocacy starts here.

PRWeek Global Agency Report Card 2009 - Gold Medal Winner
The Holmes Report Global Agency of the Year
PR News Agency of the Year


-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com 
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Mattheis, Erik 
(MIN - WSW)
Sent: Monday, February 01, 2010 4:21 PM
To: Flash Coders List
Subject: [Flashcoders] Drop shadow behavior

I have a sprite with two children, a bitmap and a dynamic mask. I apply two 
filters two it - a BevelFilter when it's added_to_stage, and a DropShadowFilter 
later.

When I add the drop shadowfilter, it only displays in what would be the 
rectangular hit area unless a) I don't add the bevel filter first or b) I'm 
looking at it in the authoring environment.

This is AS 3, Flash Player 10. Ideas? Thanks.

_ _ _
Erik Mattheis
Senior Web Developer
Minneapolis
T  952 346 6610
C 612 377 2272

Weber Shandwick
Advocacy starts here.

PRWeek Global Agency Report Card 2009 - Gold Medal Winner
The Holmes Report Global Agency of the Year
PR News Agency of the Year

___
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


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread beno -
On Tue, Feb 2, 2010 at 11:42 AM, Paul Andrews p...@ipauland.com wrote:

 Beno is the most expensive developer on the planet.


I can't stop laughing! I'm sorry it's too true!
beno
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Nathan Mynarcik
If you count all of our hours and rates, yes...he is quite expensive!

--Original Message--
From: Paul Andrews
Sender: flashcoders-boun...@chattyfig.figleaf.com
To: Flash Coders List
ReplyTo: Flash Coders List
Subject: Re: [Flashcoders] I Must Be Asking This Question Wrong...
Sent: Feb 2, 2010 9:42 AM

Merrill, Jason wrote:
 beno don't do traces. traces are for pussies.
   

 Well, including me as well, call me that off-list, not here.  And
 preferably somewhere outside where we can settle it like men.
   
I think there was just a smiley missing from the post. He probably call 
his statements 'logTrace' .. ;-)

Beno is the most expensive developer on the planet.

 Jason Merrill 

 Bank of  America  Global Learning 
 Learning  Performance Soluions

 Join the Bank of America Flash Platform Community  and visit our
 Instructional Technology Design Blog
 (note: these are for Bank of America employees only)



 ___
 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


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com
254.749.2525
www.mynarcik.com

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


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Henrik Andersson

Matt S. wrote:

traces are for pussies.


Traces are for morons. Professionals uses breakpoints.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Henrik Andersson

Nathan Mynarcik wrote:

Lmao. I now have a whole train car of people looking at me from bursting out 
with laughter!


Uhm, are we degrading into irc now? I had this idea that this was a 
serious list.

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


Re: [Flashcoders] Keep getting Error #1009: Cannot access a property

2010-02-02 Thread W.R. de Boer
Yes, I am aware what the error means but it is in the profiler agent something 
that's getting loaded while profiling.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Paul Andrews

Henrik Andersson wrote:

Nathan Mynarcik wrote:
Lmao. I now have a whole train car of people looking at me from 
bursting out with laughter!


Uhm, are we degrading into irc now? I had this idea that this was a 
serious list.

Probably more twilight zone when trace is verbodden by the coding police.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread beno -
Frankly I'm glad things have slowed down. Let me play Devil's Advocate and
state explicitly I don't want you to do my work for me. I want you to help
me understand what it is I need to do. This morning, two very kind people
reached out to help me simultaneously. Their methodology was completely
different the one from the other. Their attitude was stellar but their
delivery beyond what they should have offered. Make_me_work. I'm not afraid
of working. I like it. I need to learn this for myself. Suggest...and make
me sweat. As it was, I was doing everything I could to keep up with the two
of you! Now that things have calmed down, I've had a chance to review your
suggestions and try to make sense of the vis-a-vis my code.

One lister commented I'm the most expensive programmer on the planet. I
laughed my a$$ off. It may be true. However, it's equally true I am
sincerely trying my best. Again, I'm an artist, and positively gifted at
that. (Or, as I would say, I'm really good at listening to the Muses. I'm
not the artist. They are.) This will be incorporated into my art, so it's
more than just a revenue generator. But as an artist, I really have a very
difficult time thinking like a left-brain programmer. Please believe me when
I tell you I'm doing the very best I can. I would never abuse your help,
even though it may seem that way to some of you left-brainers. If you could
walk a mile in my moccasins, you would have an entirely different
perspective on this matter, I assure you.

Lastly, before I get into the code, let me state that the Moock book should
arrive by Friday. Hopefully I'll be able to answer most of my own questions
by then, which--believe it or not--is what I would prefer to do. I don't
want to be the most expensive programmer in the world. I want to do it
myself, at least as much as I possibly can. I want your respect, not your
charity.

So, the code. Working with Glen Pike's suggestions of keeping it all in the
same class, I've refined my code to this:

package
{
   import flash.events.Event;
   import flash.events.ProgressEvent;
   import flash.events.Event;
   import flash.events.MouseEvent;
   import flash.display.MovieClip;
   import com.greensock.*;
   import com.greensock.easing.*;
public class Main2 extends MovieClip
   {
trace('hi');
 public var myThumb:CloseThumb;
private var counter:int = 0;

 public function Main2()
{
trace('Main2');
 init();
addEventListener(Event.ENTER_FRAME, checkFrame);
}

public function init():void
{
trace('init');
 theThumb();
}

public function checkFrame(e:Event):void
 {
if (counter == 10)
{
 doTween();
counter = 0;
} else
 {
counter++;
trace(counter);
 }
}

public function doTween():void
 {
trace('doTween');
addChild(myThumb);
 TweenMax.to(myThumb, .4, {shortRotation:{rotation:60},
ease:Back.easeOut,onComplete:onFinishTween});
}

public function onFinishTween():void
{
removeChild(myThumb);
 }

public function theThumb():void
{
trace('theThumb');
 myThumb = new CloseThumb();
myThumb.x = 365;
myThumb.y = 355;
 }
   }
}

Notice all the traces I have. Not a single one prints. It would help me to
know why. The mc CloseThumb does not play, either. What traces is the
following:

at Main2/theThumb()
at Main2/init()
at Main2

I would like to know what that means since I've seen it so many times.


Here's Cor's version of separating out a new class called CloseThumb() and
calling it from the main class. First, the Main2.as:

package
{
import flash.events.Event;
import flash.events.ProgressEvent;
 import flash.events.Event;
import flash.events.MouseEvent;
import flash.display.MovieClip;
 import com.greensock.*;
import com.greensock.easing.*;
import CloseThumb;
 public class Main2 extends MovieClip
{
 trace('hi');
private var myThumb:CloseThumb = new CloseThumb();


public function Main2()
{
trace('Main2');
 init();
}


public function init():void
 {
trace('init');
CloseThumb();
 }

}
}



Now, here's CloseThumb.as:

package
{
import flash.events.Event;
import flash.events.ProgressEvent;
 import flash.events.Event;
import flash.events.MouseEvent;
import flash.display.MovieClip;
 import com.greensock.*;
import com.greensock.easing.*;

public class CloseThumb extends MovieClip
 {
public var myThumb:CloseThumb;


public function CloseThumb()
 {
init();
}


public function init():void
{
theThumb();
 trace('init CloseThumb');
}

public function doTween():void
 {
trace('doTween');
TweenMax.to(myThumb, .4, {shortRotation:{rotation:60},
ease:Back.easeOut,onComplete:onFinishTween});
 }

public function onFinishTween():void
{
 removeChild(myThumb);
}

public function theThumb():void
 {
myThumb.x = 365;
myThumb.y = 355;
 addChild(myThumb);
doTween();
trace('theThumb');
 }
}
}

This throws the following error:

Main2.as, Line 28   1136: Incorrect number of arguments. Expected 1.

I don't understand why it expects any arguments at all!

Now please. Take your time responding. I've decided I'm going 

Re: [Flashcoders] strange Text Rendering Bug : SOLVED + BUG found

2010-02-02 Thread artur

seems like the standard wmode=”gpu is BUGGY!

only for Mac 10.5 (Leopard) on either FF or Safari with Flash 10

“GPU” is full hardware accelerated composing.

turn that shit off people!

*Artur Maklyarevsky | CEO *

folio: *design2dev.com* http://www.linkedin.com/in/design2dev
voice: 646.797.3320
info : *linkedIN http://www.linkedin.com/in/design2dev*
skype: Skype Me™! callto://artur_Design2Dev


On 2/1/2010 11:28 AM, artur wrote:

apologies,

i thought the screenshot would have been evidently clear.

what you should be seeing ( behind the main nav menu )
is many textfields, with black text on a white background

but the bug is showing the text fields reversed in color, with the 
text knocked out.
this only happens on these browsers Mac 10.5 with FireFox 3.6 and 
Safari 4.0.4


thanks

*Artur Maklyarevsky | CEO *

folio: *design2dev.com* http://www.linkedin.com/in/design2dev
voice: 646.797.3320
info : *linkedIN http://www.linkedin.com/in/design2dev*
skype: Skype Me™! callto://artur_Design2Dev


On 1/29/2010 10:36 PM, jonathan howe wrote:
Yup, the page loads I don't know what I'm looking for. I see a lot of 
broken looking stuff. Try some descriptive text next time.


On Fri, Jan 29, 2010 at 4:51 PM, Nathan Mynarcik nat...@mynarcik.com 
mailto:nat...@mynarcik.com wrote:


Why what happens?

That link has nothing flash on it.


--Original Message--
From: artur
Sender: flashcoders-boun...@chattyfig.figleaf.com
mailto:flashcoders-boun...@chattyfig.figleaf.com
To: Flash Coders List
ReplyTo: ar...@artur.com mailto:ar...@artur.com
ReplyTo: Flash Coders List
Subject: [Flashcoders] strange Text Rendering Bug
Sent: Jan 29, 2010 3:20 PM

http://skitch.com/menslow/n18yk/main

Mac 10.5 with FireFox 3.6 and Safari 4.0.4
flash vrsn is: 10.0.42.34

any ideas why this is happens?

thanks

- art

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


Nathan Mynarcik
Interactive Web Developer
nat...@mynarcik.com mailto:nat...@mynarcik.com
254.749.2525
www.mynarcik.com http://www.mynarcik.com/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
mailto:Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




--
-jonathan howe

___
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


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Gustavo Duenas
from an artist to another, explain me what are you trying to do in  
plain english and maybe the people in the list would start seeing  
things your way...I don't know, but when I ask for help (a lot of  
times in the past, present and the future) I've always explained what  
am I looking to obtain first, then I submit the code for  
consideration, that helps me a lot...my two cents.


Gus
call me pussy or moron I use to trace , but if you want to teach me  
breackpoints, no problem, i'll bring my sharpest pencil to defend  
myself

;)




On Feb 2, 2010, at 1:08 PM, beno - wrote:

Frankly I'm glad things have slowed down. Let me play Devil's  
Advocate and
state explicitly I don't want you to do my work for me. I want you  
to help
me understand what it is I need to do. This morning, two very kind  
people
reached out to help me simultaneously. Their methodology was  
completely

different the one from the other. Their attitude was stellar but their
delivery beyond what they should have offered. Make_me_work. I'm not  
afraid
of working. I like it. I need to learn this for myself.  
Suggest...and make
me sweat. As it was, I was doing everything I could to keep up with  
the two
of you! Now that things have calmed down, I've had a chance to  
review your

suggestions and try to make sense of the vis-a-vis my code.

One lister commented I'm the most expensive programmer on the  
planet. I

laughed my a$$ off. It may be true. However, it's equally true I am
sincerely trying my best. Again, I'm an artist, and positively  
gifted at
that. (Or, as I would say, I'm really good at listening to the  
Muses. I'm
not the artist. They are.) This will be incorporated into my art, so  
it's
more than just a revenue generator. But as an artist, I really have  
a very
difficult time thinking like a left-brain programmer. Please believe  
me when
I tell you I'm doing the very best I can. I would never abuse your  
help,
even though it may seem that way to some of you left-brainers. If  
you could

walk a mile in my moccasins, you would have an entirely different
perspective on this matter, I assure you.

Lastly, before I get into the code, let me state that the Moock book  
should
arrive by Friday. Hopefully I'll be able to answer most of my own  
questions
by then, which--believe it or not--is what I would prefer to do. I  
don't
want to be the most expensive programmer in the world. I want to  
do it
myself, at least as much as I possibly can. I want your respect, not  
your

charity.

So, the code. Working with Glen Pike's suggestions of keeping it all  
in the

same class, I've refined my code to this:

package
{
  import flash.events.Event;
  import flash.events.ProgressEvent;
  import flash.events.Event;
  import flash.events.MouseEvent;
  import flash.display.MovieClip;
  import com.greensock.*;
  import com.greensock.easing.*;
   public class Main2 extends MovieClip
  {
trace('hi');
public var myThumb:CloseThumb;
private var counter:int = 0;

public function Main2()
{
trace('Main2');
init();
addEventListener(Event.ENTER_FRAME, checkFrame);
}

public function init():void
{
trace('init');
theThumb();
}

public function checkFrame(e:Event):void
{
if (counter == 10)
{
doTween();
counter = 0;
} else
{
counter++;
trace(counter);
}
}

public function doTween():void
{
trace('doTween');
addChild(myThumb);
TweenMax.to(myThumb, .4, {shortRotation:{rotation:60},
ease:Back.easeOut,onComplete:onFinishTween});
}

public function onFinishTween():void
{
removeChild(myThumb);
}

public function theThumb():void
   {
trace('theThumb');
myThumb = new CloseThumb();
   myThumb.x = 365;
   myThumb.y = 355;
}
  }
}

Notice all the traces I have. Not a single one prints. It would help  
me to

know why. The mc CloseThumb does not play, either. What traces is the
following:

at Main2/theThumb()
at Main2/init()
at Main2

I would like to know what that means since I've seen it so many times.


Here's Cor's version of separating out a new class called  
CloseThumb() and

calling it from the main class. First, the Main2.as:

package
{
import flash.events.Event;
import flash.events.ProgressEvent;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.display.MovieClip;
import com.greensock.*;
import com.greensock.easing.*;
import CloseThumb;
public class Main2 extends MovieClip
{
trace('hi');
private var myThumb:CloseThumb = new CloseThumb();


public function Main2()
{
trace('Main2');
init();
}


public function init():void
{
trace('init');
   CloseThumb();
}

}
}



Now, here's CloseThumb.as:

package
{
import flash.events.Event;
import flash.events.ProgressEvent;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.display.MovieClip;
import com.greensock.*;
import com.greensock.easing.*;

public class CloseThumb extends MovieClip
{
public var myThumb:CloseThumb;


public function CloseThumb()
{
init();
}


public function init():void
{
theThumb();

RE: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Cor
That's a buck to me!

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Gustavo
Duenas
Sent: dinsdag 2 februari 2010 22:41
To: Flash Coders List
Subject: Re: [Flashcoders] I Must Be Asking This Question Wrong...

from an artist to another, explain me what are you trying to do in  
plain english and maybe the people in the list would start seeing  
things your way...I don't know, but when I ask for help (a lot of  
times in the past, present and the future) I've always explained what  
am I looking to obtain first, then I submit the code for  
consideration, that helps me a lot...my two cents.

Gus
call me pussy or moron I use to trace , but if you want to teach me  
breackpoints, no problem, i'll bring my sharpest pencil to defend  
myself
;)




On Feb 2, 2010, at 1:08 PM, beno - wrote:

 Frankly I'm glad things have slowed down. Let me play Devil's  
 Advocate and
 state explicitly I don't want you to do my work for me. I want you  
 to help
 me understand what it is I need to do. This morning, two very kind  
 people
 reached out to help me simultaneously. Their methodology was  
 completely
 different the one from the other. Their attitude was stellar but their
 delivery beyond what they should have offered. Make_me_work. I'm not  
 afraid
 of working. I like it. I need to learn this for myself.  
 Suggest...and make
 me sweat. As it was, I was doing everything I could to keep up with  
 the two
 of you! Now that things have calmed down, I've had a chance to  
 review your
 suggestions and try to make sense of the vis-a-vis my code.

 One lister commented I'm the most expensive programmer on the  
 planet. I
 laughed my a$$ off. It may be true. However, it's equally true I am
 sincerely trying my best. Again, I'm an artist, and positively  
 gifted at
 that. (Or, as I would say, I'm really good at listening to the  
 Muses. I'm
 not the artist. They are.) This will be incorporated into my art, so  
 it's
 more than just a revenue generator. But as an artist, I really have  
 a very
 difficult time thinking like a left-brain programmer. Please believe  
 me when
 I tell you I'm doing the very best I can. I would never abuse your  
 help,
 even though it may seem that way to some of you left-brainers. If  
 you could
 walk a mile in my moccasins, you would have an entirely different
 perspective on this matter, I assure you.

 Lastly, before I get into the code, let me state that the Moock book  
 should
 arrive by Friday. Hopefully I'll be able to answer most of my own  
 questions
 by then, which--believe it or not--is what I would prefer to do. I  
 don't
 want to be the most expensive programmer in the world. I want to  
 do it
 myself, at least as much as I possibly can. I want your respect, not  
 your
 charity.

 So, the code. Working with Glen Pike's suggestions of keeping it all  
 in the
 same class, I've refined my code to this:

 package
 {
   import flash.events.Event;
   import flash.events.ProgressEvent;
   import flash.events.Event;
   import flash.events.MouseEvent;
   import flash.display.MovieClip;
   import com.greensock.*;
   import com.greensock.easing.*;
public class Main2 extends MovieClip
   {
 trace('hi');
 public var myThumb:CloseThumb;
 private var counter:int = 0;

 public function Main2()
 {
 trace('Main2');
 init();
 addEventListener(Event.ENTER_FRAME, checkFrame);
 }

 public function init():void
 {
 trace('init');
 theThumb();
 }

 public function checkFrame(e:Event):void
 {
 if (counter == 10)
 {
 doTween();
 counter = 0;
 } else
 {
 counter++;
 trace(counter);
 }
 }

 public function doTween():void
 {
 trace('doTween');
 addChild(myThumb);
 TweenMax.to(myThumb, .4, {shortRotation:{rotation:60},
 ease:Back.easeOut,onComplete:onFinishTween});
 }

 public function onFinishTween():void
 {
 removeChild(myThumb);
 }

 public function theThumb():void
{
 trace('theThumb');
 myThumb = new CloseThumb();
myThumb.x = 365;
myThumb.y = 355;
 }
   }
 }

 Notice all the traces I have. Not a single one prints. It would help  
 me to
 know why. The mc CloseThumb does not play, either. What traces is the
 following:

 at Main2/theThumb()
 at Main2/init()
 at Main2

 I would like to know what that means since I've seen it so many times.


 Here's Cor's version of separating out a new class called  
 CloseThumb() and
 calling it from the main class. First, the Main2.as:

 package
 {
 import flash.events.Event;
 import flash.events.ProgressEvent;
 import flash.events.Event;
 import flash.events.MouseEvent;
 import flash.display.MovieClip;
 import com.greensock.*;
 import com.greensock.easing.*;
 import CloseThumb;
 public class Main2 extends MovieClip
 {
 trace('hi');
 private var myThumb:CloseThumb = new CloseThumb();


 public function Main2()
 {
 trace('Main2');
 init();
 }


 public function init():void
 {
 trace('init');

Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Henrik Andersson

Gustavo Duenas wrote:

Gus
call me pussy or moron I use to trace , but if you want to teach me
breackpoints, no problem, i'll bring my sharpest pencil to defend myself
;)


Hit ctrl-b to set them, use ctrl-shift-enter to start debugging mode so 
that they actually are used. Then use the classical step-in, step-over 
and step-out buttons to step the code.


Also check out the memory viewer panel where you can explore the current 
scope.

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


[Flashcoders] XMLList question

2010-02-02 Thread Alexander Farber
Hello,

I'm parsing following XML:

var lobby:XML =
  lobby
info
  idDE2/id
  nameAlex/name
  avatar2_1211369175.jpg/avatar
/info
info
  idDE55/id
  nameVasja/name
  avatar55_1232308551.jpg/avatar
/info
  /lobby;

var _people:Array = new Array();

setLobby(lobby.info);

function setLobby(list:XMLList):void {
for each (var info in list) {
var item:Object = {label: info.name, userid: info.id};
_people.push(item);
}
}

- but when I look in the debugger at the elements
of the _people array, then I see that label and
userid members are of type XMLList and not String.

And that is why my string comparisions later in the code do not work.

Am I supposed to call toString() explicitly:

var item:Object = {label: info.name.toString(), userid: 
info.id.toString()};

or is there a more natural way?

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


Re: [Flashcoders] XMLList question

2010-02-02 Thread Henrik Andersson
XMLList implicitly converts to XML resulting in either the only XML 
object in the list or a runtime error. XML in turn implicitly converts 
to String.


There is little you can do to fix your issue that you have not already 
done. The toString method does the same thing as the implicit conversions.

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


RE: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Keith Reinfeld
beno, 
 
Is this anything like what you are after? 
 
http://keithreinfeld.home.comcast.net/~keithreinfeld/Testing/Main.html 
 
Regards,

Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net


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


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Glen Pike

Hi Beno,

Okay - I tried to use the FLA you posted, but don't have CS4, so I can't 
open it, but I have got my example to run okay.


That's probably the limit of my generosity for now as I am going to be 
too busy to help over the next few days and now it's your turn :)


So please digest some of the stuff in the code and look in the AS3 
documentation for MovieClip about it's Events like ADDED_TO_STAGE, 
ENTER_FRAME, etc. to get more of a grasp on how these things might work. 

The Events stuff is all over the place in AS3 - not so much in 
PHP/Python land (unless you are familiar with callbacks =~ events) 
because a lot of Web based stuff is stateless - you call a URL, your 
code calls a load of functions in series and draws you a page, 
finished.  You should make understanding events stuff a priority in 
order to get your head around the style of coding most of us are doing - 
it's just like the old on(enterFrame) { trace(hello from  + this) } 
or myClip.onRelease = function() { trace(you clicked me) } code from 
AS1 / AS2 days, but slightly less forgiving.  Admittedly AS3 is a 
steeper curve, but you can still write in AS2 style for some stuff - 
check out this book / PDF, which is very useful and easy to follow too 
https://www.adobe.com/devnet/actionscript/articles/as3_migration_cookbook/as3_migration_cookbook.pdf


I did run the code at the bottom of the email in FlashDevelop - and it 
works as I think you intend, but I am not 100% at what you are aiming 
at.  I commented it to show what I am trying to acheive.
  
When you say about the traces for both sets of code in your last email 
- these are not traces, they are output from the Flash compiler or 
Flash player complaining about something.  The first one;


at Main2/theThumb()
at Main2/init()
at Main2

is an Exception, which possibly happens because Flash is not ready to do 
stuff on stage when Main2() is started.  (I added the 
Event.ADDED_TO_STAGE handler to hopefully combat this...) 

The 2nd error message is from the compiler (look at the panel it appears 
in). 


Main2.as, Line 28   1136: Incorrect number of arguments. Expected 1.


Google AS3 #1136 if you don't understand the message - (same for any 
error number you don't understand)  This one means you are calling a 
function with the wrong number of parameters, e.g. gotoAndStop() - 
should be gotoAndStop(frameNumber) - look in the Source column of the 
Compiler Errors panel to tell you more info, but the Line 28 will give 
you a big clue as to where you are going wrong - I could not see in your 
code because the formatting maybe broken by the email...


package
{
  import flash.events.Event;
  //import flash.events.ProgressEvent;
  import flash.events.Event;
  //import flash.events.MouseEvent;
  import flash.display.MovieClip;
  import com.greensock.*;
  import com.greensock.easing.*;
 
 
  /**
   * This class creates a MovieClip called myThumb and then it will 
tween the rotation of the MovieClip.
   * When the Tween has finished, the class will use an Enter Frame 
handler to wait 10 frames before

   * repeating the tween.  It will do this until the cows come home.
   */
  public class Main2 extends MovieClip
  {
   //I changed this to MovieClip - guessing CloseThumb is a symbol 
in your library - change it back if you are happy this code works...

   public var myThumb:MovieClip;
   private var counter:int = 0;

   public function Main2()
   {
   trace('Main2()');
   //It maybe a good idea to wait for the MovieClip to be added 
to the stage before starting to do stuff.
   //It's also a good idea to always add the last 3 parameters 
to the addEventListener function:
   //the 3rd is important - it makes Flash more forgiving when 
you forget to clean up after yourself.
   //Read Moock's book about Event Listeners (in Chapter 12 I 
think)

   addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true)
  
   }
  
  //You have to have the Event argument for init because it is now 
an Event Handler - setup by addEventListener

   public function init(e:Event):void
   {
   trace('Main2::init()');
   theThumb();
   //We want to start the myThumb clip tweening straight away here.
   doTween();
  
   }


   public function checkFrame(e:Event):void
   {
   //If you do your == comparisons this way round - put any 
constant first, (you can't always do that)
   //your compiler will spot the error when you only put one 
= in - if(counter = 10) is always true...

   //Otherwise it will run happily and not work...
   if (10 == counter)
   {
   doTween();
   counter = 0;
   } else
   {
   counter++;
   trace(counter);
   }
   }

   public function doTween():void
   {
   trace('Main2::doTween()');
   //And 

Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Gustavo Duenas

Keith I don't know what is this for, but surely it looks good to me.
Gus

On Feb 2, 2010, at 6:04 PM, Keith Reinfeld wrote:


beno,

Is this anything like what you are after?

http://keithreinfeld.home.comcast.net/~keithreinfeld/Testing/Main.html

Regards,

Keith Reinfeld
Home Page: http://keithreinfeld.home.comcast.net


___
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


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Steven Sacks

beno gets so much free work out of everyone on this list it's insane.

he's not learning anything because everyone else is doing all his work for him.

and that's exactly how he likes it.

http://slash7.com/2006/12/22/vampires/

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


OT Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Glen Pike

OT

I see your point, but I am a masochist/sucker in some ways - I will help 
often more than is necessary - but yes, I agree beno has got do do his 
homework too - which is what I said in a previous post when I was 
feeling a bit narky - don't we all sometimes ;)


I started helping beno and felt it was only fair to finish my help at a 
suitable point rather than leave him hanging.  I feel I did make it 
clear that there was a limit to that generosity too, so fingers crossed, 
even vampires can be cured if they see the light (although Daybreakers 
was utter sh***)


I am an optimist and maybe beno can be a good AS3 coder one day, maybe 
not, but this also helps me become a better coder by explaining to 
others on every level.


Surely we all get a lot of free work out of you too - by using Gaia.  I 
think you could say it some stuff all goes around somehow.  Do you feel 
drained by Gaia/support some days?   Other days if you help someone out 
and they become better for it does that not give you satisfaction and 
make it worthwhile?


Hopefully that's not too patronising - more of a philosophical question 
to ask yourself.  We may differ totally, but that's okay because at 
least you have a GSOH.


Tired now, bedtime.  Tomorrow my good man :)

Steven Sacks wrote:

beno gets so much free work out of everyone on this list it's insane.

he's not learning anything because everyone else is doing all his work 
for him.


and that's exactly how he likes it.

http://slash7.com/2006/12/22/vampires/

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



--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

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


RE: [Flashcoders] XMLList question

2010-02-02 Thread Merrill, Jason
This is how I would traverse that XML, seems more natural to me to do it
this way:

Given your XML:

var lobby:XML =
  lobby
info
  idDE2/id
  nameAlex/name
  avatar2_1211369175.jpg/avatar
/info
info
  idDE55/id
  nameVasja/name
  avatar55_1232308551.jpg/avatar
/info
  /lobby;

Then: 

var _people:Array = [];
  
for each (var infoXML:XML in lobby.info)
{
var personVO:PersonVO = new PersonVO();
personVO.label = infoXML.name;
personVO.userid = infoXML.id;
_people.push(personVO);
}

where PersonVO is a class that acts only as a Value Object (aka DTO -
data transfer object), i.e.:

package
{
public class PersonVO
{
public var name:String;
public var userid:int;
}
}

This allows typecasting and avoids generic objects among other things
(like using the Vector class in FP10, you can typecast the array of your
value objects - nice).  See info here on DTOs/VOs:
http://en.wikipedia.org/wiki/Value_Objects 

I would also, if possible, recommend changing your XML to this form
instead:

var lobby:XML = xml
items
item id=DE2 name=Alex
avatar=2_1211369175.jpg /
item id=DE55 name=Vasja
avatar=55_1232308551.jpg /
/items
/xml;

Much more compact that way (6 lines of XML vs. 12), fewer characters,
succinct and as the file grows, will result in a much smaller filesize
(and IMO, also easier to read).  In my opinion, you would only need to
break out into child nodes if the data was large enough to warrant it
(i.e. a paragraph or long sentence of text), or there were sub
hierarchies of the data where it made sense to have child nodes.  In all
other cases, I default to using attributes.  But that's just me.

Hope that helps,

Jason Merrill 

Bank of  America  Global Learning 
Learning  Performance Soluions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of
Alexander Farber
Sent: Tuesday, February 02, 2010 5:08 PM
To: Flash Coders List
Subject: [Flashcoders] XMLList question

Hello,

I'm parsing following XML:

var lobby:XML =
  lobby
info
  idDE2/id
  nameAlex/name
  avatar2_1211369175.jpg/avatar
/info
info
  idDE55/id
  nameVasja/name
  avatar55_1232308551.jpg/avatar
/info
  /lobby;

var _people:Array = new Array();

setLobby(lobby.info);

function setLobby(list:XMLList):void {
for each (var info in list) {
var item:Object = {label: info.name, userid: info.id};
_people.push(item);
}
}

- but when I look in the debugger at the elements
of the _people array, then I see that label and
userid members are of type XMLList and not String.

And that is why my string comparisions later in the code do not work.

Am I supposed to call toString() explicitly:

var item:Object = {label: info.name.toString(), userid:
info.id.toString()};

or is there a more natural way?

Thank you
Alex
___
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


Re: OT Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Steven Sacks

I think you made a very good point right here:

 Surely we all get a lot of free work out of you too - by using Gaia.

Yes, what I provided for free benefits more than just one person, it benefits 
the community.  The only person benefiting from free work here is beno.  There's 
nothing to be learned by a third party from the custom files that are being sent 
back and forth to beno.


Also, here's another key thing you said:

 I started helping beno and felt it was only fair to finish my help at a
 suitable point rather than leave him hanging.

This was exactly the guilt trip that beno gave to this list when Kerry didn't do 
beno's work for him.  There was quite a row about this when it happened many 
months ago.  Kerry felt awful and beno let the whole list know just how much 
Kerry let him down and how wrong he was for doing it.


beno isn't meeting anyone halfway.  You should be able to get him started down 
the right path, and if he had a modicum of knowledge or experience, he would be 
able to do it himself, but that's not what's going on.  He's getting you to do 
it soup to nuts for free.  That's not support, that's doing his work for free. 
You're being conned.


beno is always asking for things that are way out of his league and expecting 
people to spend tons of time explaining things to him which eventually ends up 
in people just doing it for him since it quickly becomes obvious he's not going 
to be able to do it himself and it would just take less time to do it than to 
explain it.


You have to walk before you can run, and beno refuses to pay his dues and learn 
anything on his own.  He's a help vampire, nothing more.


All of this happens under the thinly veiled guise of support, and if you don't 
support him, he guilt trips you publicly for letting him down and tells you a 
sob story about how in his country computers have hamsters on wheels for power 
supplies and his hamster is sick and he promised his client he would have this 
done in only two weeks when he didn't know how to do it in the first place.


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


Re: [Flashcoders] XMLList question

2010-02-02 Thread Steven Sacks
As a rule, I only put string values that never contain special characters in 
attributes, otherwise you end up with XML validation errors (like putting 
ampersands in attributes).


Also, I generally put parsing code inside the constructor of the VO class (well, 
I call deserialize() because code inside constructors are interpreted).


public class ValueObject
{
public var foo:String;
public var bar:String;

public function ValueObject(node:XML)
{
deserialize(node);
}
private function deserialize(node:XML):void
{
foo = no...@foo;
bar = node.bar;
}
}

There are exceptions to this rule, but they're rare.

It makes it really easy to share VOs between multiple service classes when the 
parsing logic is contained with the VO instead of each service class (assuming 
that the xml is homogenized).

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


Re: [Flashcoders] XMLList question

2010-02-02 Thread Taka Kojima
I'm siding with Steven on this one.

Beno seems to be the worst offender, but it's not just him. It's quite clear
that he doesn't understand the fundamentals and basics -- that's his main
problem.

He's working off of a very shallow and glib understanding of things, thus
it's a recurring issue where he comes to the list and asks for help whenever
he hits a wall.

Asking for help is not bad, asking for help on questions that you really
should know the answer to and if you don't you should figure it out on your
own, is just lazy. Pick up a book on Actionscript and OOP fundamentals and
then you can start coming to the list to ask for help.


On Tue, Feb 2, 2010 at 5:21 PM, Steven Sacks flash...@stevensacks.netwrote:

 As a rule, I only put string values that never contain special characters
 in attributes, otherwise you end up with XML validation errors (like putting
 ampersands in attributes).

 Also, I generally put parsing code inside the constructor of the VO class
 (well, I call deserialize() because code inside constructors are
 interpreted).

 public class ValueObject
 {
public var foo:String;
public var bar:String;

public function ValueObject(node:XML)
{
deserialize(node);
}
private function deserialize(node:XML):void
{
foo = no...@foo;
bar = node.bar;
}
 }

 There are exceptions to this rule, but they're rare.

 It makes it really easy to share VOs between multiple service classes when
 the parsing logic is contained with the VO instead of each service class
 (assuming that the xml is homogenized).

 ___
 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


Re: [Flashcoders] XMLList question

2010-02-02 Thread Taka Kojima
whoops, sorry wrong thread :)

On Tue, Feb 2, 2010 at 5:38 PM, Taka Kojima t...@gigafied.com wrote:

 I'm siding with Steven on this one.

 Beno seems to be the worst offender, but it's not just him. It's quite
 clear that he doesn't understand the fundamentals and basics -- that's his
 main problem.

 He's working off of a very shallow and glib understanding of things, thus
 it's a recurring issue where he comes to the list and asks for help whenever
 he hits a wall.

 Asking for help is not bad, asking for help on questions that you really
 should know the answer to and if you don't you should figure it out on your
 own, is just lazy. Pick up a book on Actionscript and OOP fundamentals and
 then you can start coming to the list to ask for help.


 On Tue, Feb 2, 2010 at 5:21 PM, Steven Sacks flash...@stevensacks.netwrote:

 As a rule, I only put string values that never contain special characters
 in attributes, otherwise you end up with XML validation errors (like putting
 ampersands in attributes).

 Also, I generally put parsing code inside the constructor of the VO class
 (well, I call deserialize() because code inside constructors are
 interpreted).

 public class ValueObject
 {
public var foo:String;
public var bar:String;

public function ValueObject(node:XML)
{
deserialize(node);
}
private function deserialize(node:XML):void
{
foo = no...@foo;
bar = node.bar;
}
 }

 There are exceptions to this rule, but they're rare.

 It makes it really easy to share VOs between multiple service classes when
 the parsing logic is contained with the VO instead of each service class
 (assuming that the xml is homogenized).

 ___
 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


RE: OT Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Merrill, Jason
Regarding the beno problem.  Yeah, I came here from Flashnewbies a long
time ago, and when I first started, I really didn't even know what 90%
of what anyone was saying.  But I kept listening - after about 6 months
of listening, trying things on my own, reading, trying, experimenting,
reading just about every page of Flash help's documentation, I began to
understand and ask questions.  

Nowadays I consider myself an Actionscript / Flash pro and answer way
more questions than I ask.  Not bragging, but I didn't get to an expert
level overnight, it was a lot of blood, sweat and tears over many years.
Thousands and thousands of hours spent learning about Flash and
Actionscript.  Beno is jumping into Papervision3D at the same time he's
asking how to write a class.  It's a bit like the American Idol tryouts
my uh... wife... is watching in the next room right now.  Some people
need to be more honest about their abilities and take it one step at a
time before jumping into the big pool with the thought they are only one
or two notes away from a Grammy.  

It doesn't mean beno is dumb or can't do it, it just means he can't do
it all at once and needs to make an honest assessment of what to focus
on first.  I think the thing that is irritating people (and why I
haven't been jumping in too much to help) is beno's modus operandi is to
post some code and say it doesn't work - implement some code someone
else writes as a possible solution, then re-post and say it doesn't work
- he may have made some minor tweaks, but it's clear there are a lot of
fundamental principles that are lacking in his understanding, or at
least a lack of critical thinking to get at the logic behind the
problem.  

If you've ever read the Sci Fi book Gateway by Frederick Pohl, the basic
plot, (without spoiling anything if you plan to read it) is that the
people of earth have discovered a huge trove of abandoned but still
functioning alien spaceships which can take them all over the universe.
With these ships, they have the possibility of discovering huge riches,
but they don't know how to operate the controls to the ships, so they
just get in and start pressing buttons.  Some people make it out and
back ok, but some people never come back or never come back in one
piece.  They just keep pressing weird buttons and turning strange knobs
over and over and over and never learn anything, they are only focused
on the end goal, not the mechanics of getting them there.  A small few
make it rich, but many people go nowhere and many others die.

Along with Moock's, it's a great book.  


Jason Merrill 

Bank of  America  Global Learning 
Learning  Performance Soluions

Join the Bank of America Flash Platform Community  and visit our
Instructional Technology Design Blog
(note: these are for Bank of America employees only)






-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Steven
Sacks
Sent: Tuesday, February 02, 2010 8:15 PM
To: Flash Coders List
Subject: Re: OT Re: [Flashcoders] I Must Be Asking This Question
Wrong...

I think you made a very good point right here:

  Surely we all get a lot of free work out of you too - by using Gaia.

Yes, what I provided for free benefits more than just one person, it
benefits 
the community.  The only person benefiting from free work here is beno.
There's 
nothing to be learned by a third party from the custom files that are
being sent 
back and forth to beno.

Also, here's another key thing you said:

  I started helping beno and felt it was only fair to finish my help at
a
  suitable point rather than leave him hanging.

This was exactly the guilt trip that beno gave to this list when Kerry
didn't do 
beno's work for him.  There was quite a row about this when it happened
many 
months ago.  Kerry felt awful and beno let the whole list know just how
much 
Kerry let him down and how wrong he was for doing it.

beno isn't meeting anyone halfway.  You should be able to get him
started down 
the right path, and if he had a modicum of knowledge or experience, he
would be 
able to do it himself, but that's not what's going on.  He's getting you
to do 
it soup to nuts for free.  That's not support, that's doing his work for
free. 
You're being conned.

beno is always asking for things that are way out of his league and
expecting 
people to spend tons of time explaining things to him which eventually
ends up 
in people just doing it for him since it quickly becomes obvious he's
not going 
to be able to do it himself and it would just take less time to do it
than to 
explain it.

You have to walk before you can run, and beno refuses to pay his dues
and learn 
anything on his own.  He's a help vampire, nothing more.

All of this happens under the thinly veiled guise of support, and if you
don't 
support him, he guilt trips you publicly for letting him down and tells
you a 
sob story about how in his country computers have hamsters on 

Re: [Flashcoders] WIRED hates Flash

2010-02-02 Thread Peter B
Now this is interesting too. Wired, through their 'Top Stories' feed (
http://feeds.wired.com/wired/index ) say this:

A Swiss startup has created a sleek video player that looks like
Flash Player and works in multiple browsers, but uses only HTML5 and
web standards.

They then link to a Webmonkey article:

http://www.webmonkey.com/blog/SublimeVideo_Hopes_to_Simplify_HTML5_Web_Video

Which give s a pretty fair round-up of the current issues with video
in HTML5. But still,
Wired are singing the praises of this barely viable solution. So yes,
Wired do seem to hate Flash...

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


Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Bill Napier
Ok, I give, reading beno's posts have become something of a guilty  
pleasure.   Steven's hamster computer comment actually did make me  
laugh out loud.


Dave, I wish that you would just ban beno from the list. Clearly,  
while he is generating a lot of traffic, it's all just OT crap.


As a lurker, I just use this list to populate my google account as a  
repository for Flash coding searches. I use Flash rarely. I spend most  
of my time doing ASP .NET (c#) coding.


If I conducted myself like beno on any list, I would expect to be  
banned and I would deserve to be banned.


--
Bill Napier

On Feb 2, 2010, at 4:47 PM, Cor c...@chello.nl wrote:


That's a buck to me!

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of  
Gustavo

Duenas
Sent: dinsdag 2 februari 2010 22:41
To: Flash Coders List
Subject: Re: [Flashcoders] I Must Be Asking This Question Wrong...

from an artist to another, explain me what are you trying to do in
plain english and maybe the people in the list would start seeing
things your way...I don't know, but when I ask for help (a lot of
times in the past, present and the future) I've always explained what
am I looking to obtain first, then I submit the code for
consideration, that helps me a lot...my two cents.

Gus
call me pussy or moron I use to trace , but if you want to teach me
breackpoints, no problem, i'll bring my sharpest pencil to defend
myself
;)




On Feb 2, 2010, at 1:08 PM, beno - wrote:


Frankly I'm glad things have slowed down. Let me play Devil's
Advocate and
state explicitly I don't want you to do my work for me. I want you
to help
me understand what it is I need to do. This morning, two very kind
people
reached out to help me simultaneously. Their methodology was
completely
different the one from the other. Their attitude was stellar but  
their

delivery beyond what they should have offered. Make_me_work. I'm not
afraid
of working. I like it. I need to learn this for myself.
Suggest...and make
me sweat. As it was, I was doing everything I could to keep up with
the two
of you! Now that things have calmed down, I've had a chance to
review your
suggestions and try to make sense of the vis-a-vis my code.

One lister commented I'm the most expensive programmer on the
planet. I
laughed my a$$ off. It may be true. However, it's equally true I am
sincerely trying my best. Again, I'm an artist, and positively
gifted at
that. (Or, as I would say, I'm really good at listening to the
Muses. I'm
not the artist. They are.) This will be incorporated into my art, so
it's
more than just a revenue generator. But as an artist, I really have
a very
difficult time thinking like a left-brain programmer. Please believe
me when
I tell you I'm doing the very best I can. I would never abuse your
help,
even though it may seem that way to some of you left-brainers. If
you could
walk a mile in my moccasins, you would have an entirely different
perspective on this matter, I assure you.

Lastly, before I get into the code, let me state that the Moock book
should
arrive by Friday. Hopefully I'll be able to answer most of my own
questions
by then, which--believe it or not--is what I would prefer to do. I
don't
want to be the most expensive programmer in the world. I want to
do it
myself, at least as much as I possibly can. I want your respect, not
your
charity.

So, the code. Working with Glen Pike's suggestions of keeping it all
in the
same class, I've refined my code to this:

package
{
 import flash.events.Event;
 import flash.events.ProgressEvent;
 import flash.events.Event;
 import flash.events.MouseEvent;
 import flash.display.MovieClip;
 import com.greensock.*;
 import com.greensock.easing.*;
  public class Main2 extends MovieClip
 {
trace('hi');
public var myThumb:CloseThumb;
private var counter:int = 0;

public function Main2()
{
trace('Main2');
init();
addEventListener(Event.ENTER_FRAME, checkFrame);
}

public function init():void
{
trace('init');
theThumb();
}

public function checkFrame(e:Event):void
{
if (counter == 10)
{
doTween();
counter = 0;
} else
{
counter++;
trace(counter);
}
}

public function doTween():void
{
trace('doTween');
addChild(myThumb);
TweenMax.to(myThumb, .4, {shortRotation:{rotation:60},
ease:Back.easeOut,onComplete:onFinishTween});
}

public function onFinishTween():void
{
removeChild(myThumb);
}

public function theThumb():void
  {
trace('theThumb');
myThumb = new CloseThumb();
  myThumb.x = 365;
  myThumb.y = 355;
   }
 }
}

Notice all the traces I have. Not a single one prints. It would help
me to
know why. The mc CloseThumb does not play, either. What traces is the
following:

at Main2/theThumb()
at Main2/init()
at Main2

I would like to know what that means since I've seen it so many  
times.



Here's Cor's version of separating out a new class called
CloseThumb() and
calling it from the main class. First, the Main2.as:

package
{
import 

Re: [Flashcoders] I Must Be Asking This Question Wrong...

2010-02-02 Thread Taka Kojima
+1 to banning.

Although, I am an active AS3 developer, unlike Bill.

beno generates way too much garbage to have to sort through when I actually
want to look through the topics and see if there is anybody I can help with
my knowledge, or if I can learn anything from the things people have been
discussing.

beno's questions are soo simplistic and quite clearly manifest general
laziness on his part of not actually trying to learn the fundamentals and
not doing proper research and discovery as needed.

He's like a bad framework, way too much bloat at way too high a cost.
Time to part ways, he clearly annoys a lot of people and he doesn't
contribute anything productive to this list, so why keep him around?

- Taka

On Tue, Feb 2, 2010 at 6:41 PM, Bill Napier napier.b...@gmail.com wrote:

 Ok, I give, reading beno's posts have become something of a guilty
 pleasure.   Steven's hamster computer comment actually did make me laugh out
 loud.

 Dave, I wish that you would just ban beno from the list. Clearly, while he
 is generating a lot of traffic, it's all just OT crap.

 As a lurker, I just use this list to populate my google account as a
 repository for Flash coding searches. I use Flash rarely. I spend most of my
 time doing ASP .NET (c#) coding.

 If I conducted myself like beno on any list, I would expect to be banned
 and I would deserve to be banned.

 --
 Bill Napier


 On Feb 2, 2010, at 4:47 PM, Cor c...@chello.nl wrote:

  That's a buck to me!

 -Original Message-
 From: flashcoders-boun...@chattyfig.figleaf.com
 [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Gustavo
 Duenas
 Sent: dinsdag 2 februari 2010 22:41
 To: Flash Coders List
 Subject: Re: [Flashcoders] I Must Be Asking This Question Wrong...

 from an artist to another, explain me what are you trying to do in
 plain english and maybe the people in the list would start seeing
 things your way...I don't know, but when I ask for help (a lot of
 times in the past, present and the future) I've always explained what
 am I looking to obtain first, then I submit the code for
 consideration, that helps me a lot...my two cents.

 Gus
 call me pussy or moron I use to trace , but if you want to teach me
 breackpoints, no problem, i'll bring my sharpest pencil to defend
 myself
 ;)




 On Feb 2, 2010, at 1:08 PM, beno - wrote:

  Frankly I'm glad things have slowed down. Let me play Devil's
 Advocate and
 state explicitly I don't want you to do my work for me. I want you
 to help
 me understand what it is I need to do. This morning, two very kind
 people
 reached out to help me simultaneously. Their methodology was
 completely
 different the one from the other. Their attitude was stellar but their
 delivery beyond what they should have offered. Make_me_work. I'm not
 afraid
 of working. I like it. I need to learn this for myself.
 Suggest...and make
 me sweat. As it was, I was doing everything I could to keep up with
 the two
 of you! Now that things have calmed down, I've had a chance to
 review your
 suggestions and try to make sense of the vis-a-vis my code.

 One lister commented I'm the most expensive programmer on the
 planet. I
 laughed my a$$ off. It may be true. However, it's equally true I am
 sincerely trying my best. Again, I'm an artist, and positively
 gifted at
 that. (Or, as I would say, I'm really good at listening to the
 Muses. I'm
 not the artist. They are.) This will be incorporated into my art, so
 it's
 more than just a revenue generator. But as an artist, I really have
 a very
 difficult time thinking like a left-brain programmer. Please believe
 me when
 I tell you I'm doing the very best I can. I would never abuse your
 help,
 even though it may seem that way to some of you left-brainers. If
 you could
 walk a mile in my moccasins, you would have an entirely different
 perspective on this matter, I assure you.

 Lastly, before I get into the code, let me state that the Moock book
 should
 arrive by Friday. Hopefully I'll be able to answer most of my own
 questions
 by then, which--believe it or not--is what I would prefer to do. I
 don't
 want to be the most expensive programmer in the world. I want to
 do it
 myself, at least as much as I possibly can. I want your respect, not
 your
 charity.

 So, the code. Working with Glen Pike's suggestions of keeping it all
 in the
 same class, I've refined my code to this:

 package
 {
  import flash.events.Event;
  import flash.events.ProgressEvent;
  import flash.events.Event;
  import flash.events.MouseEvent;
  import flash.display.MovieClip;
  import com.greensock.*;
  import com.greensock.easing.*;
  public class Main2 extends MovieClip
  {
 trace('hi');
 public var myThumb:CloseThumb;
 private var counter:int = 0;

 public function Main2()
 {
 trace('Main2');
 init();
 addEventListener(Event.ENTER_FRAME, checkFrame);
 }

 public function init():void
 {
 trace('init');
 theThumb();
 }

 public function checkFrame(e:Event):void
 {
 if (counter == 10)
 {
 

Re: [Flashcoders] WIRED hates Flash

2010-02-02 Thread William Chadwick
Paul,

If I remember correctly, Apple is the little company that has the Mac- it's
like a PC only expensive and the software you use probably doesn't work on
it.

Apple had a good thing way back when and they decided not to let other
companies build their hardware. Now they have a hobby market for their
machine.

They are trying to do the same thing with their phones. They have a great
product. But they are attempting to control their market with a
straitjacket. These tactics will marginalize their new device to a smaller
religiously devoted following- just as happened with the Mac.

Which is probably why Apple's cell phone ...market share fell from 18.1% in
the third quarter to 16.6% (
http://www.billboard.biz/bbbiz/content_display/industry/e3i5b66cf41076535513394892bc43fb243
)

They are making good money- I wouldn't mind making that much money, but they
could be even bigger.

William

On Tue, Feb 2, 2010 at 8:01 AM, Paul Andrews p...@ipauland.com wrote:

 William Chadwick wrote:

 Apple's decision is irritating, but they're going to loose out. Apple is
 the
 one who will suffer.


 They are suffering so badly the appstore is empty, nobody buys iPhones and
 revenue is tiny..  ..I don't think so. Jobs did a smart thing keeping flash
 off the iPhone.

 I really can't imagine why he isn't a Flash supporter..

 Apple is raking the money in via the AppStore.

  William Chadwick

 On Mon, Feb 1, 2010 at 3:19 PM, Bob Wohl bob.w...@gmail.com wrote:



 No, it's written with AS but not compiled to flash. It's all smoke and
 mirrors.

 On Mon, Feb 1, 2010 at 3:07 PM, Gustavo Duenas
 gdue...@leftandrightsolutions.com wrote:


 I don't get it, it says that ipad wouldn't support flash player, but
 recently I read on adobe labs that there is possible in cs5 to make app
 (flash based) for iphone, then is not the same system?

 gus
 On Feb 1, 2010, at 4:36 PM, Henrik Andersson wrote:



 Gerry wrote:


 Flash Player 1. I emailed Tobias and he replied...
 Sorry, but Gordon supports only SWF version 1.0 at this time. Export


 your


 movie to FP1 and it will works great.


 Can you even do that with recent Flash versions?
 ___
 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

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


Re: [Flashcoders] XMLList question

2010-02-02 Thread Alexander Farber
Thank you all! And,

On Wed, Feb 3, 2010 at 2:21 AM, Steven Sacks flash...@stevensacks.net wrote:
 As a rule, I only put string values that never contain special characters in
 attributes, otherwise you end up with XML validation errors (like putting
 ampersands in attributes).


I was actually going to convert to amp; lt; gt; quot;
wouldn't that work for attributes, have you had bad experience there?

I also wonder if russian text (all in UTF8) will keep working ok
in my AS3-program which I convert to XML now...
Right now I have urlencoded records, separated by semicolons.

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


RE: [Flashcoders] XMLList question

2010-02-02 Thread Cor
I always use ![CDATA[My text]] in xml.
Is that a bad habbit?

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Alexander
Farber
Sent: woensdag 3 februari 2010 7:23
To: Flash Coders List
Subject: Re: [Flashcoders] XMLList question

Thank you all! And,

On Wed, Feb 3, 2010 at 2:21 AM, Steven Sacks flash...@stevensacks.net
wrote:
 As a rule, I only put string values that never contain special characters
in
 attributes, otherwise you end up with XML validation errors (like putting
 ampersands in attributes).


I was actually going to convert to amp; lt; gt; quot;
wouldn't that work for attributes, have you had bad experience there?

I also wonder if russian text (all in UTF8) will keep working ok
in my AS3-program which I convert to XML now...
Right now I have urlencoded records, separated by semicolons.

Regards
Alex
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 9.0.733 / Virus Database: 271.1.1/2663 - Release Date: 02/02/10
08:35:00

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