Usage of generated Actionscript proxy enum from C# -


Sorry, if the title is not clear - feel free to edit how this phrase is.

I have a web service written in C # and it uses an angle. When I am consuming this webservice with Flash, I got flex proxy classes - which generate an enumen called ActionScript. My problem is that I do not know how to use this generated action script.

C # enum:

  public enum ImageType {none = 0, Png = 1, Jpg = 2, GIF = 3} Action script generation proxy class (not changed) Public class imagetize {public function imaging () {} [inspectable (category = "generated value", assessed = "none, PNG, JPG, GIF", type = "String")) Public Type _ Image Type: string; String (public) string (): string {return_image type.stustring (); }}  

Action Script Use Example (that is how it should work in my brain):

  var imgType: ImageType = ImageType.Png; // This does not really work though  

Note: The code is only an example, but the structure is the same.

How do I use this image type anman?

Does not support AS3 enumeration. I am not immediately sure what the meaning of this generated proxy class is, but it is not going to give you much more anman behavior.

You have to do the following:

  var imgType: ImageType = new imageType (); ImgType._imageType = "Png";  

I know that you have said that you can not change the generated class, but if you want to create your own computational classes, then along with links to official documents, See the following questions on the blog post. Implementing a Custom Ink:


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -