1) You can't. You can make an ActionScript-only Project and make the initial class subclass Sprite, and the entry point will be the constructor
2) I don't know of any better conversion libraries. Actionscript doesn’t have everything Java has, which is why its VM is smaller
3) I don't understand who you are trying to protect access from. You can load other SWFs into a separate security sandbox, but within a sandbox, the display list is public.
Flex SDK Developer
Adobe Systems Inc.
for question 3:
i just wondering if it is ok or not for better code/validation.....(and it follow the good
information hiding principle?)
if i write the component in actionscript only, i can set the child control with scope modifier
'private' or 'protected'..so that the component user can't just use the dot syntax to gain
access to the child control,
e.g. MyComponent.childControlTextInputBox.value = "A";...
i want to force user to use MyComponent.setInputBoxValue("A")...
(e.g. in this method, i can do some checking/validate before passing to the textbox)
this can enforce the data consistency in my custom UI component...
there is no way to achieve the same effect in MXML?
(e..g <mx:TextInput id="privateChildControl" accessScope="private" .../>)
nobody have idea to restrict the access to mxml children UI compoents from other classes?
or in Flex world, we don't care about the information hiding in UI component?