urlrequest

Flex 3 - how to support HTTP Authentication URLRequest?

自古美人都是妖i 提交于 2019-11-26 09:29:16
问题 I have a Flex file upload script that uses URLRequest to upload files to a server. I want to add support for http authentication (password protected directories on the server), but I don\'t know how to implement this - I assume I need to extend the class somehow, but on how to I\'m a little lost. I tried to modify the following (replacing HTTPService with URLRequest), but that didn\'t work. private function authAndSend(service:HTTPService):void{ var encoder:Base64Encoder = new Base64Encoder()

What is the most robust way to force a UIView to redraw?

﹥>﹥吖頭↗ 提交于 2019-11-26 04:36:36
问题 I have a UITableView with a list of items. Selecting an item pushes a viewController that then proceeds to do the following. from method viewDidLoad I fire off a URLRequest for data that is required by on of my subviews - a UIView subclass with drawRect overridden. When the data arrives from the cloud I start building my view hierarchy. the subclass in question gets passed the data and it\'s drawRect method now has everything it needs to render. But. Because I don\'t call drawRect explicitly