Re: [Flashcoders] Recommendation for budget development mac

2008-10-22 Thread David Benman
The other thing to keep in mind is to test early and test often when  
doing cross-platform testing. Keeps you from find bugs at the last  
minute.


Also, when working with a team, its helpful to consider having one of  
your team members work on the mac. Then ongoing testing occurs.


On Oct 17, 2008, at 11:54 AM, eric e. dolecki wrote:


I think that you made a good decision there, for what it's worth.

Eric

On Fri, Oct 17, 2008 at 10:45 AM, Paul Steven  
[EMAIL PROTECTED]wrote:


Thanks for all the advice - I have made a quick decision and  
ordered a Mac
Mini 2 GHZ (Intel one) with an extra gig of RAM. Sounds like this  
will be
sufficient to package my games for the Mac and also provide a  
means for
testing. I do have a 450 mhz G3 in the attic but I thought that  
would be

way
too old to be of any use for my needs.

Cheers

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of  
Ian Thomas

Sent: 17 October 2008 15:17
To: Flash Coders List
Subject: Re: [Flashcoders] Recommendation for budget development mac

On Fri, Oct 17, 2008 at 2:09 PM, David Benman  
[EMAIL PROTECTED]

wrote:
I agree with Ian, though I'd caution going to low-end for testing  
because
then you can get too focused on slowness issues that don't affect  
your

average, target machine.


Sorry - I meant slowest of the current crop, by which I meant Mac  
Mini. :-)


Ian
___
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


_
David Benman
sixredmarbles
One Alewife Center Suite 210
Cambridge, MA 02140
p. 617.492.9668   x120
f. 617.492.9778

Bringing Beauty, Creativity, and Intelligence to Educational Technology
www.sixredmarbles.com
P Please consider the environment before printing this email.

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


Re: [Flashcoders] Recommendation for budget development mac

2008-10-22 Thread Weyert de Boer
Yes, you can also consider to buy a Mac and use VMWare Fusion to test 
under Windows etc.

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


Re: [Flashcoders] AS2 FlashDevelop -- Warning unsupported #include

2008-10-22 Thread ekameleon
Hello :)
If you use MTASC... is normal :)

MTASC dont' support the #include directive, isn't a bug bug a limitation of
MTASC.

See http://www.mtasc.org/ : http://www.mtasc.org/

*#include :*

MMC allows code file inclusion using the #include directive.

MTASC does not allow it.

*Rationale :* Such coding practices are obsoletes with ActionScript2, and
the programmer should keep common duplicated code into separate classes.

For me the #include instruction is important... but not for Nicolas ;)

You can find in OSFlash a patch to transform the mx.* AS2 class and can be
compatible with MTASC ;)

EKA+ :)

2008/10/22 Andrew Sinning [EMAIL PROTECTED]

 In FlashDevelop working with AS2, I get a Warning unsupported #include.
  The warning refers to the line

   #include Version.as

 in mx.transitions.Tween, mx.transitions.easing.Strong and
 mx.transitions.easing.Bounce

 I never use a # in front of my includes, but these are mx files and they
 compile just fine, but what's the deal with the #?

 Thanks!
 ___
 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] AS2 FlashDevelop -- Warning unsupported #include

2008-10-22 Thread Hans Wichman
Hi,

as an alternative you have different options:
- dont use the tween classes, but use the TweenMax series from
greensock. However you are bound to run into other problems using the
mx classes together with FlashDevelop.

I found the following method the easiest, although patching is an option too:
* convert macromedia all classes to intrinsic classes using asigen
* generate an injection swf containing all your mx classes
* set mx= true in mtasc
* fix any errors you still get in your intrinsic copy of the mx
classes (set them as classpath)

greetz
JC

On Wed, Oct 22, 2008 at 5:58 PM, Ian Thomas [EMAIL PROTECTED] wrote:
 This is because MTASC, the compiler used by FlashDevelop, doesn't
 support #include.

 See here:
 http://www.mtasc.org/#comparison

 HTH,
   Ian

 On Wed, Oct 22, 2008 at 4:51 PM, Andrew Sinning [EMAIL PROTECTED] wrote:
 In FlashDevelop working with AS2, I get a Warning unsupported #include.
  The warning refers to the line

   #include Version.as

 in mx.transitions.Tween, mx.transitions.easing.Strong and
 mx.transitions.easing.Bounce

 I never use a # in front of my includes, but these are mx files and they
 compile just fine, but what's the deal with the #?

 Thanks!
 ___
 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


[Flashcoders] Ann. class: 3D Interactive UI, Papervision w/ Flex for Games and more- hands on

2008-10-22 Thread Vic Cekvenich
In SF on 11/20.
more info at: http://papervision.proj.com :

A 10 hour bootcamp in Flex to learn 3D using Papervision. Taught by
professional trainer Vic Cekvenich.

We will cover hands on labs from scratch:

* Setting up the SDK
* Warm up: 2D Motion
* 3D Primitives
* 3D Math
* Materials
* Make a complex objects (Collada)
* Interactions
* Shadows/Reflection
* Flash 10
* Calling a remote (web java/data ) service
* and more.


This is an intensive all day class stressing techniques useful for gaming
and traditional 3D. You will walk out comfortable creating simple 3D games
or a Rich UI Web site.

You must provide your own laptop, over 1 GB ram recommended. Power will be
provided for each laptop. We will mail you class prep materials on a usb
stick 10 days before the class. You will also have support after the class.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Recommendation for budget development mac

2008-10-22 Thread eric e. dolecki
I am hearing the Mac Mini might be discontinued (as of right now). Not sure
if that change your mind about one.

On Wed, Oct 22, 2008 at 10:52 AM, Weyert de Boer [EMAIL PROTECTED] wrote:

 Yes, you can also consider to buy a Mac and use VMWare Fusion to test under
 Windows etc.

 ___
 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] AS2 FlashDevelop -- Warning unsupported #include

2008-10-22 Thread Andrew Sinning

Thanks for all the input on this topic!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AS3 - Code problem, can anyone help?

2008-10-22 Thread FlashDev
Hi Guys

Im trying to write a little piece of code to stop the submit button of a form 
be active until the form fields have been completely filled in, its a really 
simple for consisting of 1 form field and 1 checkbox, ive had a go at writing 
some code of my own but for some reason flash quits on export. 

Whats wrong with my code?
What do you think could be causing it to crash?

here is my stab at it...

submit_btn.useHandCursor = false;
submit_btn.mouseEnabled = false;

submit_btn.addEventListener(MouseEvent.CLICK, submit_btn_CLICK); 
this.addEventListener(Event.ENTER_FRAME, ENTERFRAME);

function ENTERFRAME(ev:Event):void
{
if((mobileNumber.text != ) || (mobileNumber.text != NaN) || 
(mobileNumber.text != undefined)  (terms.selected != false)){
submit_btn.useHandCursor = true;
submit_btn.mouseEnabled = true;
}else{
var frame:int = 0;
trace(EnterFrame+(frame+));
}
}
function submit_btn_CLICK(ev:Event):void
{
var url:String = formSubmit.php;
var request:URLRequest = new URLRequest(url);
var variables:URLVariables = new URLVariables();
variables.mobile = mobileNumber.text;
request.data = variables;
request.method = URLRequestMethod.POST;
try {
navigateToURL(request, _blank);
}
catch (err:Error) {
trace(err);
}
}

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


[Flashcoders] Is there a quick way to convert back to AS2?

2008-10-22 Thread Lord, Susan, CTR, DSS
I know this seems like a backwards question... but my client has
requested (300 plus fla's later) that we revert our code back to AS2.  I
was wondering if there was a quick way to do this.  When I ran my first
piece in AS2 and it was searching for the event class. I was wondering
if there was a quick way around this... like somehow incorporating the
event class into an AS2 piece or will this piece completely have to be
rewritten?

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


Re: [Flashcoders] AS3 - Code problem, can anyone help?

2008-10-22 Thread Paul Andrews

I'm surprised if it compiles.

First look: trace(EnterFrame+(frame+)); should at least be 
trace(EnterFrame+(frame++));


Try that. I'd be tempted not to use enterframe at all and validate on 
submit.


Paul


- Original Message - 
From: FlashDev [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 22, 2008 8:32 PM
Subject: [Flashcoders] AS3 - Code problem, can anyone help?


Hi Guys

Im trying to write a little piece of code to stop the submit button of a 
form be active until the form fields have been completely filled in, its a 
really simple for consisting of 1 form field and 1 checkbox, ive had a go at 
writing some code of my own but for some reason flash quits on export.


Whats wrong with my code?
What do you think could be causing it to crash?

here is my stab at it...

submit_btn.useHandCursor = false;
submit_btn.mouseEnabled = false;

submit_btn.addEventListener(MouseEvent.CLICK, submit_btn_CLICK);
this.addEventListener(Event.ENTER_FRAME, ENTERFRAME);

function ENTERFRAME(ev:Event):void
{
   if((mobileNumber.text != ) || (mobileNumber.text != NaN) || 
(mobileNumber.text != undefined)  (terms.selected != false)){

   submit_btn.useHandCursor = true;
   submit_btn.mouseEnabled = true;
   }else{
   var frame:int = 0;
   trace(EnterFrame+(frame+));
   }
}
function submit_btn_CLICK(ev:Event):void
{
   var url:String = formSubmit.php;
   var request:URLRequest = new URLRequest(url);
   var variables:URLVariables = new URLVariables();
   variables.mobile = mobileNumber.text;
   request.data = variables;
   request.method = URLRequestMethod.POST;
   try {
   navigateToURL(request, _blank);
   }
   catch (err:Error) {
   trace(err);
   }
}

Thanks
SJM
___
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] AS3 - Code problem, can anyone help?

2008-10-22 Thread jonathan howe
But he wants the button to be disabled until it passes validation. Maybe
it's okay to do it the dirty way instead of assigning 4 different listeners
to each of the validated fields but... I guess I would still have a
single validation function that is called onchange of the various entry
fields.

On Wed, Oct 22, 2008 at 5:12 PM, Paul Andrews [EMAIL PROTECTED] wrote:

 I'm surprised if it compiles.

 First look: trace(EnterFrame+(frame+)); should at least be
 trace(EnterFrame+(frame++));

 Try that. I'd be tempted not to use enterframe at all and validate on
 submit.

 Paul


 - Original Message - From: FlashDev [EMAIL PROTECTED]
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Wednesday, October 22, 2008 8:32 PM
 Subject: [Flashcoders] AS3 - Code problem, can anyone help?



 Hi Guys

 Im trying to write a little piece of code to stop the submit button of a
 form be active until the form fields have been completely filled in, its a
 really simple for consisting of 1 form field and 1 checkbox, ive had a go at
 writing some code of my own but for some reason flash quits on export.

 Whats wrong with my code?
 What do you think could be causing it to crash?

 here is my stab at it...

 submit_btn.useHandCursor = false;
 submit_btn.mouseEnabled = false;

 submit_btn.addEventListener(MouseEvent.CLICK, submit_btn_CLICK);
 this.addEventListener(Event.ENTER_FRAME, ENTERFRAME);

 function ENTERFRAME(ev:Event):void
 {
   if((mobileNumber.text != ) || (mobileNumber.text != NaN) ||
 (mobileNumber.text != undefined)  (terms.selected != false)){
   submit_btn.useHandCursor = true;
   submit_btn.mouseEnabled = true;
   }else{
   var frame:int = 0;
   trace(EnterFrame+(frame+));
   }
 }
 function submit_btn_CLICK(ev:Event):void
 {
   var url:String = formSubmit.php;
   var request:URLRequest = new URLRequest(url);
   var variables:URLVariables = new URLVariables();
   variables.mobile = mobileNumber.text;
   request.data = variables;
   request.method = URLRequestMethod.POST;
   try {
   navigateToURL(request, _blank);
   }
   catch (err:Error) {
   trace(err);
   }
 }

 Thanks
 SJM
 ___
 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




-- 
-jonathan howe :: 404.434.2321 :: 180 High St Apt 26 Portland, ME 04101
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Is there a quick way to convert back to AS2?

2008-10-22 Thread Glen Pike

Hi,

   The AS2 event mechanism is slightly different - there is not really 
an Event type - you just get an object with a type string and a 
target property.


   In AS2, Events don't bubble either...

   You might be quicker / easier to persuade your client that AS3 is 
the way forward - not sure of the reasoning here, but surely the 
benefits of AS3 outweigh the downsides, erm, what downsides apart from a 
learning curve and the ability to cause memory leaks easily :)


   If you want your classes to dispatch events you will need them to 
implement the EventDispatcher API - With AS2, I used to create a class 
which extended MovieClip, then implemented the EventDispatcher mixin 
bit - look in the Components Reference.


   See the stuff below, although someone else may have written a nice 
framework / set of classes to implement events a bit more - check out 
osflash.org


   HTH

   Glen


/**
*
* Class: EventDispatcherForm - implements the EventDispatcher mixin to allow
* subclasses to easily dispatch events.
*/
import mx.events.EventDispatcher;

class com.glenpike.common.view.EventDispatcherForm extends MovieClip
{
  
   function EventDispatcherForm ()

   {
   EventDispatcher.initialize(this);
   }
  
   public function addEventListener(event:String, listener):Void {}
  
   public function removeEventListener(event:String, listener):Void {}
  
   public function dispatchEvent(eventObject:Object):Void {}
  
}


Then in my classes which dispatch events:

class com.glenpike.sasanim.view.RolloverButton extends EventDispatcherForm
{
  
   //...

   function onRelease ()
   {
   if(mEnabled) {
   //...
   dispatchEvent( { type: release} );
   }
  
   }

}

Then my lazy function in the parent clip which contains lots of buttons, 
but I could not be bothered to refer to them all by name for adding 
listeners..:
class com.glenpike.common.view.Page extends EventDispatcherForm //Also 
dispatches events

{
function setUp() {
   for(var btn in this) {
   if(this[btn] instanceof 
com.glenpike.sasanim.view.RolloverButton) {
   this[btn].addEventListener(release, 
Delegate.create(this, btnClick));

   }
   }
}
function btnClick(evt:Object) {
   trace(Override me **);
}
}

Lord, Susan, CTR, DSS wrote:

I know this seems like a backwards question... but my client has
requested (300 plus fla's later) that we revert our code back to AS2.  I
was wondering if there was a quick way to do this.  When I ran my first
piece in AS2 and it was searching for the event class. I was wondering
if there was a quick way around this... like somehow incorporating the
event class into an AS2 piece or will this piece completely have to be
rewritten?

Thanks!
Susan 
___

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] Is there a quick way to convert back to AS2?

2008-10-22 Thread Paul Andrews

How can anyone know how much effort is involved?

It'll depend on how your code is written. What is sure is that it'll be a 
ton of work.


Why does your client want to revert to AS2?

If they insist you'll just have to charge accordingly.

I reverted an AS3 video/slide player to AS2 and it was a PIA because the 
code was close to what it should be but had so many differences because the 
classes involved had changed between AS2 and AS3. It'd probably have been 
easier to dump the AS3 code and start from scratch.


I'd probably do everything possible to not go back. Try and educate you 
client that it's a huge amount of work and one day they'll still want to go 
forward to AS3.


Paul

- Original Message - 
From: Lord, Susan, CTR, DSS [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 22, 2008 10:11 PM
Subject: [Flashcoders] Is there a quick way to convert back to AS2?


I know this seems like a backwards question... but my client has
requested (300 plus fla's later) that we revert our code back to AS2.  I
was wondering if there was a quick way to do this.  When I ran my first
piece in AS2 and it was searching for the event class. I was wondering
if there was a quick way around this... like somehow incorporating the
event class into an AS2 piece or will this piece completely have to be
rewritten?

Thanks!
Susan
___
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] AS3 - Code problem, can anyone help?

2008-10-22 Thread sebastian

Assuming the form is also in the same flash file:

I see no reason to use 'Event.ENTER_FRAME'

Just have the other parts of your code 'activate' when you click the 
'submit' button.


Sebastian

jonathan howe wrote:

But he wants the button to be disabled until it passes validation. Maybe
it's okay to do it the dirty way instead of assigning 4 different listeners
to each of the validated fields but... I guess I would still have a
single validation function that is called onchange of the various entry
fields.

On Wed, Oct 22, 2008 at 5:12 PM, Paul Andrews [EMAIL PROTECTED] wrote:


I'm surprised if it compiles.

First look: trace(EnterFrame+(frame+)); should at least be
trace(EnterFrame+(frame++));

Try that. I'd be tempted not to use enterframe at all and validate on
submit.

Paul


- Original Message - From: FlashDev [EMAIL PROTECTED]
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wednesday, October 22, 2008 8:32 PM
Subject: [Flashcoders] AS3 - Code problem, can anyone help?



Hi Guys

Im trying to write a little piece of code to stop the submit button of a
form be active until the form fields have been completely filled in, its a
really simple for consisting of 1 form field and 1 checkbox, ive had a go at
writing some code of my own but for some reason flash quits on export.

Whats wrong with my code?
What do you think could be causing it to crash?

here is my stab at it...

submit_btn.useHandCursor = false;
submit_btn.mouseEnabled = false;

submit_btn.addEventListener(MouseEvent.CLICK, submit_btn_CLICK);
this.addEventListener(Event.ENTER_FRAME, ENTERFRAME);

function ENTERFRAME(ev:Event):void
{
  if((mobileNumber.text != ) || (mobileNumber.text != NaN) ||
(mobileNumber.text != undefined)  (terms.selected != false)){
  submit_btn.useHandCursor = true;
  submit_btn.mouseEnabled = true;
  }else{
  var frame:int = 0;
  trace(EnterFrame+(frame+));
  }
}
function submit_btn_CLICK(ev:Event):void
{
  var url:String = formSubmit.php;
  var request:URLRequest = new URLRequest(url);
  var variables:URLVariables = new URLVariables();
  variables.mobile = mobileNumber.text;
  request.data = variables;
  request.method = URLRequestMethod.POST;
  try {
  navigateToURL(request, _blank);
  }
  catch (err:Error) {
  trace(err);
  }
}

Thanks
SJM
___
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


[Flashcoders] Passing text between SWFs

2008-10-22 Thread Alan Neilsen
Can somebody please help a dummy. I am trying to pass user input text (user's 
name) from a parent SWF to a child SWF. Poste9 has told me I can use:



ldr1.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHandler);



public function completeHandler(event:Event) {

MovieClip(event.currentTarget)._parent = this;

}



Thanks Poste9, but I don't know where/how to use that. I assume I need to put 
this code in a package (that's what the Flash help tells me), but I am not sure 
how to do that and how to refer to the package. Can somebody please explain the 
steps I need to follow to pass user input text from one SWF to another.

Alan Neilsen


This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3 - Code problem, can anyone help?

2008-10-22 Thread Ashim D'Silva
I don't know why its crashing but:

I don't see what your frame++ is doing because you reset it to 0 right
before anyway, so you should keep getting EnterFrame 1 anyway.
Secondly, your else should also carry code to disable the Submit button, so
that if someone fills things in and then deletes it the button will disable
again.

I would recommend individual onChange listeners though, since you only
really have two things to check; it better than running a continuous
EnterFrame.

That's all I got,

Ashim

2008/10/23 sebastian [EMAIL PROTECTED]

 Assuming the form is also in the same flash file:

 I see no reason to use 'Event.ENTER_FRAME'

 Just have the other parts of your code 'activate' when you click the
 'submit' button.

 Sebastian


 jonathan howe wrote:

 But he wants the button to be disabled until it passes validation. Maybe
 it's okay to do it the dirty way instead of assigning 4 different
 listeners
 to each of the validated fields but... I guess I would still have a
 single validation function that is called onchange of the various entry
 fields.

 On Wed, Oct 22, 2008 at 5:12 PM, Paul Andrews [EMAIL PROTECTED] wrote:

  I'm surprised if it compiles.

 First look: trace(EnterFrame+(frame+)); should at least be
 trace(EnterFrame+(frame++));

 Try that. I'd be tempted not to use enterframe at all and validate on
 submit.

 Paul


 - Original Message - From: FlashDev [EMAIL PROTECTED]
 To: Flash Coders List flashcoders@chattyfig.figleaf.com
 Sent: Wednesday, October 22, 2008 8:32 PM
 Subject: [Flashcoders] AS3 - Code problem, can anyone help?



 Hi Guys

 Im trying to write a little piece of code to stop the submit button of a
 form be active until the form fields have been completely filled in, its
 a
 really simple for consisting of 1 form field and 1 checkbox, ive had a go
 at
 writing some code of my own but for some reason flash quits on export.

 Whats wrong with my code?
 What do you think could be causing it to crash?

 here is my stab at it...

 submit_btn.useHandCursor = false;
 submit_btn.mouseEnabled = false;

 submit_btn.addEventListener(MouseEvent.CLICK, submit_btn_CLICK);
 this.addEventListener(Event.ENTER_FRAME, ENTERFRAME);

 function ENTERFRAME(ev:Event):void
 {
  if((mobileNumber.text != ) || (mobileNumber.text != NaN) ||
 (mobileNumber.text != undefined)  (terms.selected != false)){
  submit_btn.useHandCursor = true;
  submit_btn.mouseEnabled = true;
  }else{
  var frame:int = 0;
  trace(EnterFrame+(frame+));
  }
 }
 function submit_btn_CLICK(ev:Event):void
 {
  var url:String = formSubmit.php;
  var request:URLRequest = new URLRequest(url);
  var variables:URLVariables = new URLVariables();
  variables.mobile = mobileNumber.text;
  request.data = variables;
  request.method = URLRequestMethod.POST;
  try {
  navigateToURL(request, _blank);
  }
  catch (err:Error) {
  trace(err);
  }
 }

 Thanks
 SJM
 ___
 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




-- 
The Random Lines
My online portfolio
www.therandomlines.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Passing text between SWFs

2008-10-22 Thread dr.ache

Hi Alan.

In the same class / at the same position where you load your child 
movieclip.

One line below your loadClip method call.


Alan Neilsen schrieb:

Can somebody please help a dummy. I am trying to pass user input text (user's 
name) from a parent SWF to a child SWF. Poste9 has told me I can use:



ldr1.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHandler);



public function completeHandler(event:Event) {

MovieClip(event.currentTarget)._parent = this;

}



Thanks Poste9, but I don't know where/how to use that. I assume I need to put 
this code in a package (that's what the Flash help tells me), but I am not sure 
how to do that and how to refer to the package. Can somebody please explain the 
steps I need to follow to pass user input text from one SWF to another.

Alan Neilsen


This message is for the named person’s use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or; lost by any mistransmission. If
you receive this message in error, please immediately delete it and all
copies of it from your system, destroy any hard copies of it and notify
the sender. You must not directly or indirectly, use, disclose,
distribute, print or copy any part of this message if you are not the
intended recipient. GOULBURN OVENS INSTITUTE OF TAFE and
any of its subsidiaries each reserve the right to monitor all e-mail
communications through its networks. Any views expressed in this
message are those of the individual sender, except where the
message states otherwise and the sender is authorised to state them
to be the views of any such entity.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal

#
___
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