[flexcoders] Barcode component for Flex2

2007-03-06 Thread fritzdimmel
Hi!

I got the Barcode component from Antonio I. Aguilar J. and ported it to
Flex2.
The component is able to draw type 128C barcodes.

I add three files here, for Barcode generation (Barcode.as -- the
drawing component itself, BarcodeGenerator.as -- the generator component
which invokes Barcode.as with some parameters, BarcodeExample.mxml --
just a example application, which shows, how to create Barcodes).

Barcode.as

package {
 /**
  * Barcode.as
  * Class to generate barcodes
  * At this version, just type 128 barcodes could be generated
  *
  * @author Antonio I. Aguilar J., Friedrich Dimmel
([EMAIL PROTECTED])
  * @version 2007.02.22
  */

 import flash.display.Shape;
 import flash.display.Sprite;

 public class Barcode extends Sprite {
 private var whiteColor:uint = 0xFF;
 private var blackColor:uint = 0x00;
 private var i:Number;
 private var barWidth:Number=1;
 private var codeString:String = ;

 public var barHeight:Number = 50;
 public var code:String = 0;

 public function generateBarcode():Shape {

 var C128:Array=new Array();
 C128[0]=11011001100;
 C128[1]=11001101100;
 C128[2]=11001100110;
 C128[3]=10010011000;
 C128[4]=10010001100;
 C128[5]=10001001100;
 C128[6]=10011001000;
 C128[7]=10011000100;
 C128[8]=10001100100;
 C128[9]=11001001000;
 C128[10]=11001000100;
 C128[11]=11000100100;
 C128[12]=10110011100;
 C128[13]=10011011100;
 C128[14]=10011001110;
 C128[15]=10111001100;
 C128[16]=10011101100;
 C128[17]=10011100110;
 C128[18]=11001110010;
 C128[19]=11001011100;
 C128[20]=11001001110;
 C128[21]=11011100100;
 C128[22]=11001110100;
 C128[23]=11101101110;
 C128[24]=11101001100;
 C128[25]=11100101100;
 C128[26]=11100100110;
 C128[27]=11101100100;
 C128[28]=11100110100;
 C128[29]=11100110010;
 C128[30]=11011011000;
 C128[31]=11011000110;
 C128[32]=11000110110;
 C128[33]=10100011000;
 C128[34]=10001011000;
 C128[35]=10001000110;
 C128[36]=10110001000;
 C128[37]=10001101000;
 C128[38]=10001100010;
 C128[39]=11010001000;
 C128[40]=11000101000;
 C128[41]=11000100010;
 C128[42]=10110111000;
 C128[43]=10110001110;
 C128[44]=10001101110;
 C128[45]=10111011000;
 C128[46]=10111000110;
 C128[47]=10001110110;
 C128[48]=11101110110;
 C128[49]=11010001110;
 C128[50]=11000101110;
 C128[51]=11011101000;
 C128[52]=11011100010;
 C128[53]=11011101110;
 C128[54]=11101011000;
 C128[55]=11101000110;
 C128[56]=11100010110;
 C128[57]=11101101000;
 C128[58]=11101100010;
 C128[59]=11100011010;
 C128[60]=1110010;
 C128[61]=1100110;
 C128[62]=0001010;
 C128[63]=1010011;
 C128[64]=1011100;
 C128[65]=1001011;
 C128[66]=1001110;
 C128[67]=1101100;
 C128[68]=1100110;
 C128[69]=1011001;
 C128[70]=1011100;
 C128[71]=1001101;
 C128[72]=1001110;
 C128[73]=1110100;
 C128[74]=1110010;
 C128[75]=1110010;
 C128[76]=1100101;
 C128[77]=0111010;
 C128[78]=1110100;
 C128[79]=1000010;
 C128[80]=1010000;
 C128[81]=1001000;
 C128[82]=1001000;
 C128[83]=1000100;
 C128[84]=1000100;
 C128[85]=1000010;
 C128[86]=0100100;
 C128[87]=0010100;
 C128[88]=0010010;
 C128[89]=1101100;
 C128[90]=1100110;
 C128[91]=0110110;
 C128[92]=1010000;
 C128[93]=1010000;
 C128[94]=1000100;
 C128[95]=1001000;
 C128[96]=1000010;
 C128[97]=0101000;
 C128[98]=0100010;
 C128[99]=1011100;
 C128[100]=1001110;
 C128[101]=1110100;
 C128[102]=0101110;
 C128[a]=1110100;
 C128[b]=1001110;
 C128[c]=1011100;
 C128[A]=1101100;
 C128[B]=1101001;
 C128[C]=11010011100;
 

[flexcoders] Re: Saving image data to shared objects

2007-02-21 Thread fritzdimmel
Hi.
I've managed to store binary objects in the SharedObject.
We're transferring the image now Base64Encoded which Flex recognizes
as ByteArray! This can be stored in the SharedObject.

But I can't figure out, how to assign this data to an image.

Any hints?

Thx,
Fritz

--- In flexcoders@yahoogroups.com, thatstephen [EMAIL PROTECTED]
wrote:

 
 If you see my post 64776, you'll see that I have tried  to store 
 binary data in shared objects and found it is not possible. There is
 no way to do this, the only way to do this is to create some form of
 application to sync images stored locally with your server and call it
 as needed using a 'fscommand'. 
 
 There may be something in Apollo that can help and also I believe an
 application like Zinc might help you.
 
 
 --- In flexcoders@yahoogroups.com, fritzdimmel fritz.dimmel@ wrote:
 
  Hi.
  We're developing a occasionally connected client with Flex 2.0.
  
  We need to get some images when online and to store them in a
  sharedobject. But when I do this, in the SharedObject is just the
  information about the image, but not the image (binary data) itself.
  
  How can I do this?
  Is there a way to access the binary data from the image to save it?
  
  We really need this feature, is there anybody who has an idea?
  
  Thanks a lot!
  Fritz
 





[flexcoders] Re: WebService base64Binary

2007-02-21 Thread fritzdimmel
Has anybody been able to do this?
I need exacte the same thing!

Thanks
Fritz

--- In flexcoders@yahoogroups.com, John Starfire [EMAIL PROTECTED] wrote:

 I don't really know how to deal with an image, encoded with
 base62Binary, that I receive from a webservice (e.g.
 http://www.webservicex.net/barcode.asmx).
 
 Is there a chance that I can decode it using Actionscript?
 
 Thanks for your help!
 //Jo





[flexcoders] Saving image data to shared objects

2007-02-15 Thread fritzdimmel
Hi.
We're developing a occasionally connected client with Flex 2.0.

We need to get some images when online and to store them in a
sharedobject. But when I do this, in the SharedObject is just the
information about the image, but not the image (binary data) itself.

How can I do this?
Is there a way to access the binary data from the image to save it?

We really need this feature, is there anybody who has an idea?

Thanks a lot!
Fritz



[flexcoders] Re: Validator: disable active validator

2007-02-08 Thread fritzdimmel
Hi,
   I've got the solution now. I'll post it, if someone needs it in the
future:
In general: I've a ArrayCollection validators where I put all my
validators in (when I create them (dynamically)).

On creation of my FormItems (i.e. a TextInput called editor), I add
the following two EventListeners:
editor.addEventListener(Event.CHANGE, validateForm);
editor.addEventListener(Event.CHANGE, turnOnOneValidator);


Then my ActionScript functions for validation:

/**
  * validates all form elements. in allValid all return values from each
validation are boolean combined
  * (if a single element returns false, everything is false
  */
internal function validateForm():Boolean {
 var result:ValidationResultEvent = null;
 var allValid:Boolean = true;

 for(var i:Number=0; ivalidators.length; i++) {
 result = validators.getItemAt(i).validate();
 if(result.results != null) {
 allValid = false;
 result = null;
 }
 }
 return allValid;
}

/**
  * disables all validators
  * simulates a ValidationResultEvent with VALID for each control (all
red borders will disappear)
  */
internal function turnOffValidators():void {
 for(var i:Number=0; ivalidators.length; i++) {
 validators.getItemAt(i).enabled = false;
 var evt:ValidationResultEvent = new
ValidationResultEvent(ValidationResultEvent.VALID);
 validators.getItemAt(i).source.validationResultHandler(evt);
 }
}

/**
  * enables all validators
  */
internal function turnOnValidators():void {
 for(var i:Number=0; ivalidators.length; i++) {
 validators.getItemAt(i).enabled = true;
 }
}

/**
  * turns on a specific validator (the one from event.target)
  * if there's a control changed and the input won't validate, it should
be marked with a red border,
  * event if the entire form has disabled validators
  */
internal function turnOnOneValidator(event:Event):void {
 for(var i:Number=0; ivalidators.length; i++) {
 if(validators.getItemAt(i).source == event.target) {
 validators.getItemAt(i).enabled = true;
 }
 }
}

I hope, this may help someone too :-)

You've to play around, when to enable and disable your validators, but I
think, you'll get this!

Bye,
Fritz
--- In flexcoders@yahoogroups.com, fritzdimmel [EMAIL PROTECTED]
wrote:

 Hi.
 I've a form who's creation time is very long (complete dynamically).
 With this form I want to edit several datasets. If one dataset doesn't
 validate correctly and I want to edit another, or, let's say, create a
 new dataset (with empty values!) I don't want to have that any
 TextInput has a red border.
 I want to validate a new dataset when the save button is clicked.

 Do you understand?

 Thanks,
 Fritz


 --- In flexcoders@yahoogroups.com, maunger maunger@ wrote:
 
  Hey Fritz, what's the 'timing' on this?
 
  I mean, under what conditions do you want to disable the validation?
 
  Mitch
 
  --- In flexcoders@yahoogroups.com, fritzdimmel fritz.dimmel@
wrote:
  
   Hi!
   I've a form with many controls (TextInputs, ...) to validate.
   Everything works fine but I can't figure out, how to accomplish
this:
   I have, let's say, a TextInput, and the validation for this
returns
   false. The textinput gets a red border.
   Now I want to have a possibility to disable the validator
temporarliy.
   So that the red border disappears until I'm re-enabling the
validator.
  
   How can I do this?
   By setting Validator.enabled to false the red border (+ the error
   message) still exists.
  
   Thanks for any hints!
  
   Fritz
  
 




[flexcoders] Validator: disable active validator

2007-02-07 Thread fritzdimmel
Hi!
I've a form with many controls (TextInputs, ...) to validate.
Everything works fine but I can't figure out, how to accomplish this:
I have, let's say, a TextInput, and the validation for this returns
false. The textinput gets a red border.
Now I want to have a possibility to disable the validator temporarliy.
So that the red border disappears until I'm re-enabling the validator.

How can I do this?
By setting Validator.enabled to false the red border (+ the error
message) still exists.

Thanks for any hints!

Fritz



[flexcoders] Re: Validator: disable active validator

2007-02-07 Thread fritzdimmel
Hi.
I've a form who's creation time is very long (complete dynamically).
With this form I want to edit several datasets. If one dataset doesn't
validate correctly and I want to edit another, or, let's say, create a
new dataset (with empty values!) I don't want to have that any
TextInput has a red border.
I want to validate a new dataset when the save button is clicked.

Do you understand?

Thanks,
Fritz


--- In flexcoders@yahoogroups.com, maunger [EMAIL PROTECTED] wrote:

 Hey Fritz, what's the 'timing' on this?
 
 I mean, under what conditions do you want to disable the validation?
 
 Mitch
 
 --- In flexcoders@yahoogroups.com, fritzdimmel fritz.dimmel@ wrote:
 
  Hi!
  I've a form with many controls (TextInputs, ...) to validate.
  Everything works fine but I can't figure out, how to accomplish this:
  I have, let's say, a TextInput, and the validation for this returns
  false. The textinput gets a red border.
  Now I want to have a possibility to disable the validator temporarliy.
  So that the red border disappears until I'm re-enabling the validator.
  
  How can I do this?
  By setting Validator.enabled to false the red border (+ the error
  message) still exists.
  
  Thanks for any hints!
  
  Fritz
 





[flexcoders] Prevent focus Out in editable datagrid, if validator says invalid

2006-11-08 Thread fritzdimmel
Hi!
Is it possible to not let a user leave a editable column in a datagrid
with a custom textinput with a validator, to focus out (leaving the
edit mode).
If the user has to input a number and there's a NumberValidator, how
can I prevent letting the user leave the textinput?

Thanks,
Fritz




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Re: Use a Popup as itemEditor in Datagrids

2006-10-31 Thread fritzdimmel
Hi!
I was thinking similar to you, but I didn't get it out, how to
implement this.
How can I react on the itemEditBeginning event within the component.
E.g. I've a Canvas as itemEditor. I could open the window on
initialize. But: how can I then put some values to the popup? Within
the canvas I just have the data object, which only gives me the
values of the current row in the datagrid. for the popup this may be
enough (more or less) but when the popup is closed, how can I dispatch
the itemEditEnd or something like that for the grid, without having
further information?

Can anyone please show me some lines of code, how to implement this?

Thanks,
Fritz

--- In flexcoders@yahoogroups.com, Michael Labriola [EMAIL PROTECTED]
wrote:

 
 My first thought:
 
 I would probably write a simple component that serves as an 
 itemRenderer. From within that component I would be to launch a 
 modal popup window from the itemEditBeginning event. Ensure that you 
 pass the row and the dataGridColumn (much like a labelFunction) to 
 the new popup. Have it do whatever it is that needs to be done.
 
 Then listen for the popup to close and manually handle the update to 
 the collection through the renderer by listening to itemEditEnd.
 
 This is just a high level thought. There are some other details, but 
 the concept would probably work with a bit of tweaking.
 
 --mike
 
 --- In flexcoders@yahoogroups.com, fritzdimmel fritz.dimmel@ 
 wrote:
 
  Hi!
  I'm searching for a solution, to use e.g. a popup-window as 
 itemEditor
  in a flex datagrid. Using a Textinput, NumericStepper, 
 Checkbox, ...
  is quite easy, but I want to have a little bigger (in size)
  component. Now I have the problem that, when I use a custom Panel
  component as itemEditor, that it will be trapped within the 
 datagrid's
  dimensions.
  
  Is there another way (which I haven't found by now) to use a popup 
 as
  datagrid item editor?
  
  Thanks!
  Fritz
 






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Use a Popup as itemEditor in Datagrids

2006-10-30 Thread fritzdimmel
Hi!
I'm searching for a solution, to use e.g. a popup-window as itemEditor
in a flex datagrid. Using a Textinput, NumericStepper, Checkbox, ...
is quite easy, but I want to have a little bigger (in size)
component. Now I have the problem that, when I use a custom Panel
component as itemEditor, that it will be trapped within the datagrid's
dimensions.

Is there another way (which I haven't found by now) to use a popup as
datagrid item editor?

Thanks!
Fritz




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 



[flexcoders] Aborting operations

2006-08-07 Thread fritzdimmel
Hi!
What I want:
I want to create a custom AS class, named TimeoutManager. This class
then executes some tasks from my app, but if one task needs longer
than a specified timeout (via Timer class /
TimerEvent.TIMER_COMPLETE), it should stop the task.
I only found an attribute requestTimeout for mx:WebService, but how
can I do that more generally?

Does anybody has any hints?

Thanks in advance.

Fritz






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Layers or sth like that...

2006-01-03 Thread fritzdimmel
Hi!
I want to do the following:
I have a component which creates a Canvas. Into this canvas are loaded
different other Canvas' from another component.
In my main app file, I want to make another canvas of a smaller size
in which the custom component are loaded in, and I only want to see
the things from my component which are within my main-app-canvas.
But this doesn't work. I always see anything.

How can I do this? Do I use the wrong component? Would it be better to
use something different from canvas?
Is there something like layering?

Thanks for your answers,
bye,
Fritz





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





[flexcoders] Re: 1st flex 2 project, startup problems

2005-12-17 Thread fritzdimmel
Hey! At first: a big thank you, I'm gonna try to get this work on
monday at my office!

Well: I can't tell you exactly what I want to do, I just wanted to
know how that stuff works. I already knew the creationComplete things.
I wanted to know, how to use the Flash Events.
Finally I have to port a running Flash application to Flex2. Because
it doesn't really work (at least for me), to use the existing swf in
Flex (I read from some issues with AS2 / AS3...) I try to port the
entire app.
Or: do you know a better method to integrate an existing flash-app
into Flex2? I tried to put the entire Flash app into a swc file and
use this with Flex2 but I didn't get it to work :(
Perhaps somebody has some hints how to do this (but I think that's the  
same problem with AS2 / AS3...).

PS: The Flash App is built with MX2004.

Thanks,
bye,
Fritz


--- In flexcoders@yahoogroups.com, Jeff Tapper [EMAIL PROTECTED] wrote:

 Fritz -
 
 this is easily enough done, but before showing you how to do that,
can you 
 tell us why you want it in onEnterFrame?  I suspect that the 
 creationComplete event is a more appropriate solution to what you
are trying.
 
 Here is the code you asked for:
 ShowAlert.as
 =
 package {
  import mx.controls.Alert;
  import mx.core.UIComponent;
  import flash.events.Event;
 
  public class ShowAlert extends UIComponent{
  public function ShowAlert(){
 
this.addEventListener(enterFrame,showAlertBox);
  }
  public function showAlertBox(event:Event){
 
this.removeEventListener(enterFrame,showAlertBox);
  mx.controls.Alert.show(frame entered);
  }
  }
 }
 
 main.mxml
 =
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml;
xmlns=* 
  ShowAlert /
 /mx:Application
 
 If this is all you want, it can be done more simply as:
 Main.mxml
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application
  xmlns:mx=http://www.macromedia.com/2005/mxml;
  creationComplete=alert.showAlert()
  ShowAlert2 id=alert /
 /mx:Application
 
 ShowAlert2.as
 =
 package {
  import mx.controls.Alert;
  public class ShowAlert2 {
  public function showAlertBox(){
  mx.controls.Alert.show(drawn once);
  }
  }
 }
 
 
 
 
 At 09:54 AM 12/16/2005, you wrote:
 Hi.
 At first: thanks for your replies, they sound quite useful.
 But:
 Could anybody of you be so kind and show me, how to write an AS3 class
 and a MXML file which does the following:
 The mxml file should be the main file.
 
 The MXML file should invoke the AS class and the AS class should show
 an alert box onEnterFrame and then delete onEnterFrame.
 
 I hope somebody can show me how this works, I can't do it :(
 
 Thx,
 bye,
 Fritz
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: 

http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txthttp://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives: 

http://www.mail-archive.com/flexcoders%40yahoogroups.comhttp://www.mail-archive.com/flexcoders%40yahoogroups.com

 
 
 
 
 SPONSORED LINKS

http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQWeb

 site design development 

http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHwComputer

 software development 

http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQSoftware

 design and development

http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjwMacromedia

 flex 

http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIwSoftware

 development best practice
 
 
 --
 YAHOO! GROUPS LINKS
 
 *  Visit your group 
  http://groups.yahoo.com/group/flexcodersflexcoders on the web.
 *
 *  To unsubscribe from this group, send an email to:
 * 
 
mailto:[EMAIL PROTECTED][EMAIL PROTECTED]

 
 *
 *  Your use of Yahoo! Groups 

[flexcoders] 1st flex 2 project, startup problems

2005-12-16 Thread fritzdimmel



Hi!I want to start a net flex2 project.What I want to do is is to have some mxml files and some as classes.The main app should be a mxml.I've: (mymxml.mxml)?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*"  mx:Label id="myLabel" text="no Text" /  mx:Button click="myLabel.text = myAs.myCounter" //mx:Applicationand: (myAs.as)package { // import Object.Number; import flash.display.MovieClip; import flash.util.*;  public class myAs extends MovieClip {  public var mc:MovieClip;  public var myCounter: Number = 0; public function myAs() {   mc. {myCounter = myCounter + 1;   }  }   }}When I hit "run" in Eclipse, the app comes. But when I click the button I'll get the message:ReferenceError: Error #1069: Property myCounter not found on class myAs and there is no default value at mymxml/___Button1_click()What I finally want to do is to bring some AS code from Flash to Flex. But I know, this will get a long way Thanks for you help,byeFritz






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.