Skip to content

Instantly share code, notes, and snippets.

@shallaa
Last active December 30, 2015 02:39
Show Gist options
  • Save shallaa/7764418 to your computer and use it in GitHub Desktop.
Save shallaa/7764418 to your computer and use it in GitHub Desktop.
네이버 라디오 로그인 처리
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="400" height="364"
showStatusBar="false"
creationComplete="onCreationCompleteApp()">
<fx:Script>
<![CDATA[
/**
* add creation complete handler
*/
private function onCreationCompleteApp():void
{
html.addEventListener( Event.LOCATION_CHANGE, onLocationChangeHTML );
html.location = "[로그인 페이지]";
}
/**
* html location changed
*/
private function onLocationChangeHTML( event:Event ):void
{
// login complete
if ( html.location == "[로그인 성공 페이지]" )
{
html.location = "[네이버 라디오 페이지]";
}
}
]]>
</fx:Script>
<mx:HTML id="html" width="100%" height="100%" horizontalScrollPolicy="off"
verticalScrollPolicy="off">
</mx:HTML>
</s:WindowedApplication>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment