Posts tagged ‘air’

Jun16

Getting Page Title from the <mx:HTML> Component

I recently found out how to get the title (i.e. the contents of <title>) of the current page in an <mx:HTML> component in Flex. Turns out you have to wait for the complete event rather than the htmlDOMInitialize event or the value is not accessible.

<mx:Script>
	<![CDATA[

		private function onHtmlComplete():void {
			var title:String = html.domWindow.document.title;
		}

	]]>
</mx:Script>

<mx:HTML id="html" complete="onHtmlComplete()" />

Every time a new page is loaded this event fires and it is possible to get the new title.

Tags: ,
Posted in Adobe AIR, Flex | No Comments »

Apr22

System Tray Icon and Menu for an Adobe Flex AIR Application

Adobe AIR allows you to set up a system tray icon and context menu for your application. In true AIR & Flex style, this is surprisingly simple to achieve and doesn’t even require a .ico file. Read More »

Tags: , , , , ,
Posted in Adobe AIR, Flex | No Comments »