开发者

ActionScript dynamic classes

开发者 https://www.devze.com 2023-01-10 14:44 出处:网络
Could anyone give me a good use case 开发者_运维百科for ActionScript dynamic classes? Because it really looks like a bad pratice, for me, in every case.Anything that uses Proxy must by extension be d

Could anyone give me a good use case 开发者_运维百科for ActionScript dynamic classes?

Because it really looks like a bad pratice, for me, in every case.


Anything that uses Proxy must by extension be dynamic. I use Proxy fairly regularly; for example, here's a replacement syntax for ExternalInterface using Proxy.


URLVariables, for example.

You could store the data in a dictionary / object / array too, but you don't gain much in this case, I think, and you cut down some boilerplate.


Well you could use an Object object, but using a dynamic class ensures that it is typed. That's the way I see it, and it's the only reason I would use them. What Juan Pablo is saying is a good reason too.

0

精彩评论

暂无评论...
验证码 换一张
取 消