mercredi 11 mars 2015

Reload AIR application remove Skin and background image in flex


Vote count:

0




I am working on AIR application. In which i Put refresh button to refresh the application. When User click on Refresh Button following code refresh my application.



protected function onRefreshClickHandler(event:MouseEvent):void
{
var app:WindowedApplication =
WindowedApplication(FlexGlobals.topLevelApplication);

var mgr:ProductManager =
new ProductManager("airappinstaller");

mgr.launch("-launch " +
app.nativeApplication.applicationID + " " +
app.nativeApplication.publisherID);

app.close();
}


Above code works nicely.

Now, Again When application start then skinclass of button and backgroundImage of borderConatiner is not working.



<s:Button click="onRefreshClickHandler(event)"
buttonMode="true" skinClass="skins.ButtonRefresh"/>


And:



<s:BorderContainer width="100%" borderVisible="false"
backgroundImage="@Embed('assets/images/back.png')">


I don't know why this weird things happen.


Is there any solution for that?

Is there any way to restart my application from initialization?

How can i get my skin back when i restart my application?


Thanks.



asked 39 secs ago

ketan

1,715






Reload AIR application remove Skin and background image in flex

Aucun commentaire:

Enregistrer un commentaire