Adobe Air is very smiller than Zinc App - Reposition and Resize not working?

Hello guys, i have found and readden nice solution like NativeWindow was saved positions and sizes If i close Adobe Air App and i open again like NativeWindow was moved and resized. It is very simple working. And it works fine. 100 % Good! But how does it work with Zinc App because it doesn't work for positions and sizes. How do i fix? I have upgraded code from FileSerializer.as With mdm.Script:
package
  import flash.events.Event;
  import flash.net.URLRequest;
  import flash.net.URLStream;
  import flash.utils.ByteArray;
  import mdm.Application;
  import mdm.FileSystem;
  import mdm.System;
  public class FileSerializer
  public static function WriteObjectToFile(object:Object, filename:String):void
  var fileExists:Boolean = mdm.FileSystem.fileExists(mdm.Application.path+filename);
  var outByte:ByteArray = new ByteArray();
  outByte.writeObject(object);
  if(fileExists == false)
  mdm.FileSystem.saveFile(mdm.Application.path+filename, "");
  mdm.FileSystem.BinaryFile.setDataBA(outByte);
  mdm.FileSystem.BinaryFile.writeDataBA(mdm.Application.path+filename);
  private static var stream:URLStream;
  public static function ReadObjectfromFile(filename:String):Object
  var fileExists:Boolean = mdm.FileSystem.fileExists(mdm.Application.path+filename);
  if(fileExists == false)
  var obj:Object;
  stream = new URLStream();
  stream.addEventListener(Event.COMPLETE, function(evt:Event):void
  obj = stream.readObject();
  stream.close();
  stream.load(new URLRequest(filename));
  return obj;
  return null;
That is improved to mdm.Script and it saves sometimes.
And i have create UserPref.as
package
  public class UserPref
  public var zincForm:String = "MainForm";
  public var zincType:String = "sizeablestandard";
  //public var zincSWF:String = "MainApp.swf";
  public var zincPosX:Number;
  public var zincPosY:Number;
  public var zincWidth:Number;
  public var zincHeight:Number;
And i create MainApp.mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
  xmlns:mx="library://ns.adobe.com/flex/mx"
  layout="absolute" applicationComplete="applicationCompleteHandler(event)" creatingComplete="creationCompleteHandler(event)">
  <fx:Script>
  <![CDATA[
  import mdm.Application;
  import mdm.Event;
  import mdm.Forms;
  import mdm.mdmForm;
  import mx.events.FlexEvent;
  private var up:UserPref;
  private var form:mdmForm;
  protected function applicationCompleteHandler(event:FlexEvent):void
  mdm.Application.init();
  this.up.zincPosX = this.form.x;
  this.up.zincPosY = this.form.y;
  this.up.zincWidth = this.form.width;
  this.up.zincHeight = this.form.height;
  FileSerializer.WriteObjectToFile(this.up, "pref.zup");
  mdm.Application.onAppExit = function (appevt:flash.events.Event):void
  mdm.Application.exit();
  mdm.Application.enableExitHandler();
  protected function creationCompleteHandler(event:flash.events.Event):void
  this.up = FileSerializer.ReadObjectfromFile("pref.zup") as UserPref;
  if(up) {
  mdm.Application.onFormReposition = function(rpevt:mdm.Event):void
  this.form.x = up.zincPosX;
  this.form.y = up.zincPosY;
  mdm.Application.onFormResize = function(rsevt:mdm.Event):void
  this.form.width = up.zincWidth;
  this.form.height = up.zincHeight;
  }else
  this.up = new UserPref();
  ]]>
  </fx:Script>
  <fx:Declarations>
  <!-- Platzieren Sie nichtvisuelle Elemente (z. B. Dienste, Wertobjekte) hier -->
  </fx:Declarations>
</mx:Application>
And i recompile with Zinc Studio 4.0.22 than i try reposition and resize with Zinc Window than i close since saved files and i open again. But why does it not reposition and resize?
How do i fix? Can somebody help me?
Thanks best regards Jens Eckervogt

I little more searching and I found the answer. Check it out here:
http://forums.adobe.com/message/2879260#2879260

Similar Messages

  • App store and Safari not working after Time Machine restore to new hardware.

    I just had to install a new hard drive to my mid 2010 imac.  I restored with time machine.  I cannot find the original OS disc.  Upon restoring it appears there is a problem with the webkit framework as Safari, App store, and Skype all freeze upon clicking on them and after bouncing, they never open.  Chrome is working.  What do I do?

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen. Click the Clear Display icon in the toolbar. Then take one of the actions that you're having trouble with. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • App World and Facebook not working !!!

    After Updating the OS - My Facebook and AppWorld is not working giving the error ' You do not have sufficient wireless coverage or you connection to the wireless network is turned off ' - App World ........... " You are currently on a service plan that does not support his application . If you want to use this application , Please contact your service provider to Upgrade your Data Plan ' - Facebook ......... But my phone is connected to a working Wifi - Twitter App and Browser are working well
    Regards Eree - Follow me on Twitter - Facebook - Google+
    For More visit My Blog
    Solved!
    Go to Solution.

    Ereeamazing wrote:
    Not Connected
    No BBM services on the device.. a quick search of the forums here would have told you that, since you're "Super Contributor" you should know how to search for the forums for other resolved issues same as you're experiencing.
    On your BlackBerry device, go to:
    1. On OS5 devices: Options > Advanced > Host Routing Table > Menu > Register.
    On OS6 devices: Options > Device > Advanced > Host Routing Table
    2. Resend your service books from your carrier BIS site:
    From your handheld device:   http://www.blackberry.com/btsc/KB15402
    Go to the Personal Email Set Up icon and log in. Then under Help!, select Service Books, then select Send service Books.From your desktop PC:  http://www.blackberry.com/btsc/KB02830
    North American Carriers - scroll down to select your carrier
    WorldWide Carriers - Find your carrier on the list
    3. With the BlackBerry device powered ON, remove the battery a few seconds and then reinsert the battery to reboot. This reboot, even if you have already done this, is often needed to install the service books.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Iphone 6 App Audio and Ringer not working...

    I'm completely stumped.... for some odd reason the audio in my phone stopped working for the mentioned applications, also the keyboard makes no noise while texting. However, it works just fine in youtube, music, and netflix for example. The ringer music works in settings while selecting it, but not when someone calls. I've checked all the settings (volume and ringer in max), restarted the phone, and tried different game applications, and still nothing.... Please help! I don't wish to go to warranty unless I know for sure its a hardware defect.... and I can't afford to continue missing calls.... my service provider is Sprint and I have the most recent version of iOS 8 in case that helps.
    Your help is appreciated, thank you!
    PS. A little out of topic, but ever since I owned the phone since October Siri doesn't recognize music playing (What song is this?), she always says "No music is playing" no matter how hard I've tried.

    IOS 8.1 comes out tomorrow if upgrading to that doesn't work you can try downgrading back to IOS 8.0

  • Problem with Expose and Adobe AIR application -can't click on app in Expose

    I just installed a new Adobe AIR application called TwitterLocal. The app was working fine until I accidently hit some keyboard shortcut and the application window disappeared. I figured I accidently assigned the window to some other "space," however I do not have SPACES turned on. Furthermore, when I select EXPOSE, I can now see the content of the application's window, however if I click on the app (which takes on that grey-highlight appearance when you mouse over it) the desktop returns to its normal position. I can see via the top status bar that the app is currently selected, but I cannot access the app window.
    Is there any way to send an app that was "sent" to expose back to the normal desktop? I've tried rebooting and even uninstalling/reinstalling the app but it is still lost in expose.
    Any thoughts on this would greatly be appreciated.

    Solution was to change display to lower resolution, then the Adobe AIR app TwitterLocal became visible on the standard desktop and I was able to click on and move the app window towards the left of the desktop. Once I switched the resolution back, everything was ok.

  • The file to download the app for Android is not working from my phone--it says that the file isn't there. However it does see the one for the Iphone (even though it can't use it). I'm very computer literate and am pretty sure the problem is on your end.

    The file to download the app for Android is not working from my phone--it says that the file isn't there. However it does see the one for the Iphone (even though it can't use it). I've tried it multiple times and continue to get the same message: "NOT FOUND The requested item could not be found". I also tried through the Market application on the phone but ended-up with the same result.
    I'm very computer literate and am pretty sure the problem is on your end. If this is the case then no one can download the app. I considered that perhaps because it's still in Beta that it was removed due to some other type of software issue. I would really like to use Firefox on my new Droid (2.0); when with this be available?

    Firefox will not appear in the Market for most phones with incompatible hardware. You can check if your phone is supported here:
    https://wiki.mozilla.org/Mobile/Platforms/Android
    Even on some supported devices, a bug in the Market software prevents Firefox from showing up. This may be related to the fairly recent Android Market app update. If you go to Settings/Applications/Market and choose "Uninstall" you can uninstall the update, and then search for and install Firefox from the marketplace.
    Or, if you have a supported phone, you can download the app directly by typing this address into your phone's browser: http://bit.ly/fxbeta3
    (Note: To download the app directly for an AT&T phone, you will have to search for instructions on "sideloading" the APK file, since AT&T disables the option to install from non-Market sources.)

  • Cross app copy and paste stoped working with 5.1 any suggestions?

    After over the air upgrade to 5.1 on Verizon cross app copy and paste stopped working. Copy in one app no past option in the other.  I have tried power cycling to no avail. Any suggestions prior to restoring the phone with iTunes?

    Having the same problem. AT&T iPad.  No help from anyone yet. :-/

  • I have many apps that that do not work, i have ios 7....is resseting iphone tottaly will help ?, I have many apps that that do not work, i have ios 7....is resseting iphone tottaly will help ?

    I have many apps that that do not work, about more than 50% of what idownload from appstore will not even open, i have ios 7....is resseting iphone totaly will help ? thanx

    YOU CAN'T.
    If you upgrade your phone you can only upgrade to iOS 7 and that is it.  You can only ever update to the lastest available software, which in this case is iOS 7.  You either upgrade to this or not at all because you can't upgrade to anything else.

  • My iPhone adobe reader for iOS6 is stuck in update state and will not complete updating any ideas?

    My iPhone 4 adobe reader for iOS6 is stuck in update state and will not complete updating should I uninstall and reinstall the app?

    The update process is handled entirely by iOS and unfortunately, there isn't anything the Reader can do during this process to prevent "stuck updates". Generally, we don't recommend uninstalling unless you have to because uninstalling will delete all of the PDF's in your documents!
    Here are some steps that work for most users:
    1.       Make sure wifi and/or cellular data are turned on       
    2.       Test to be sure your internet connection is working by opening safari and browsing to a website (like www.adobe.com).
    3.       Single tap the app’s icon on the home screen and it will pause the download. Now go back to the iTunes Apps store, switch to the “Updates” screen and click “Update” to resume the download.
    4.       If this doesn't work,  go to Settings -> iTunes & App Stores and tap the Apple ID to sign-out. Restart the iPad, go back to Settings -> iTunes Apps Store and sign-in. Tap the waiting icon to update the app.
    Please let me know if this helps!

  • My Ipod touch 4th generation is not working, its frozen, ive tried everything and its not working, its just frozen on an app and i really really need HELP!!!

    My Ipod is frozen!!! Its a 4th generation and its frozen on an app, Ive tried everything like holding down the lock screen and stuff and its not showing the red thing to slid to shut it down....This is my only thing to use to contact my friends and its not working, i dont have a phone and i cant get one, so this is the onlything i have.....PLEASE HELP!!!

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • I am trying to download xfinity tv go app. I can not find it in my App Store and can not download it from the comcast website. All I get is a blank screen in the App Store. My Apple ID is associated with a Canadian address. How can I find the app?

    I am trying to download xfinity tv go app. I can not find it in my App Store and can not download it from the comcast website. All I get is a blank screen in the App Store. My Apple ID is associated with a Canadian address. How can I find the app?

    Its possible the App is not available in the Canadian store if the link doesn't work for you.
    https://itunes.apple.com/us/app/xfinity-connect/id320788270?mt=8

  • I got a few free app before and did not download them completely how can i remove them from my account forever

    i got a few free app before and did not download them completely and dont want to do this
    but they stay in my download list and start automatly when i connect to itunes store and going to crazy me
    how can i remove them from my account for ever
    please help me

    Try Here  >  https://discussions.apple.com/thread/4074945?tstart=0

  • HT1904 How can I get a refund for apps in the apple App Store that do not work and are not what they said they wer

    How can I get a refund for apps in the apple App Store that do not work and are not what they said they wer

    You've tried deleting and redownloading them and seeing if they then work and tried contacting the developers ? If you have and they can't/won't help then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • My imac is running mountain lion and last night i downloaded maverick. in midst of installing it it said a powerPC app microsoft word would not work so i canceled the install for the time being. my questions is  if i choose to finish installing maverick

    my imac is running mountain lion and last night i downloaded maverick. in midst of installing it, it said a powerPC app microsoft word would not work so i canceled the install for the time being. my questions is  if i choose to finish installing maverick does that mean i will nevver be able to access word documents stored on my desktop? or do the word docs automatically convert to pages or what? i am so confused. would i be better off just sticking with mountain lion and send the maverick install to the trash? hoping someone will be able to answer my question though i am afraid the response is likely to be just stick with mountain lion so you can keep using word. i had been looking forward to maverick but it seems pretty drastic to not have access to microsoft word anymore by switching to maverick. hope someone has an answer so i can have the best of both worlds so to speak!

    thanks for your response Csound1 on the peninsula ... if i go ahead and install maverick and then download LibreOffice or OpenOffice will i then be able to access old microsoft word saved documents on my deskstop through those two free alternatives? i am not that knowledgeable about these things so i am not sure if you are saying i will just be able to use libreoffice or openoffice for creating new documents or whether i can access the saved microsoft docs? are they transferred to OO or LO or what and if editing of the old word docs is needed can i do that through the OO and LO programs or apps (see i am not even sure if i am using the correct vocabulary!) hope you can answer this as quick as the first question, so i can decide to stick with mountain lion and trash the maverick install or proceed with maverick install and hoppe that my microsoft word docs are still accessible through OO or LO or adding to myquestion will pages on maverick be able to open the old word documents? thanks again!

  • I want to play candy crush on Facebook and it says i need latest version of adobe flash player, i downloaded it and it still doesn't work. i uninstalled and re installed and still not working. what is wrong? what do i need to do,

    i want to play candy crush on Facebook and it says i need latest version of adobe flash player, i downloaded it and it still doesn't work. i uninstalled and re installed and still not working. what is wrong? what do i need to do,

Maybe you are looking for

  • Path to the element in xml structure

    Hi, I have a input schema and I want to find out the exact path of one of the element of that schema. Schema uses some namespaces. I want the path of element which I can use in the inline xslt to reach upto that element. XPATH of element(TDLINE) in m

  • APEX collection headings

    Hi, I made my example into an application belongs to another user of this forum (hope he doesn't mind) at page 2, because in my workspace didn't work, don't know why. Here is my question: Why after navigate in interactive reports headings are disappe

  • ICC profile problem?

    Having a bit of an issue with .png files. It happens randomly, but recently I've been seeing it a lot lately. Most .png files I see while browsing the web of with the preview program itself will show random colored lines with a shadowed out image (th

  • How do I make "open link in new tab" go back to the second line after "open"?

    I've newly upgraded to FF4.0 but I'm so used to opening new tabs by right-clicking a link and choosing "open link in new tab" instinctively by moving down a notch and clicking it as the second selection. FF4.0 new has it as the first option. Is there

  • [SOLVED] Emesene isn't working as expected anymore (upgrade related ?)

    Hello, Yesterday, I used emesene, it was working perfectly well, and today it isn't anymore: It's very laggy, I can't talk to anyone because the GUI is just a grey box which doesn't show conversations windows, of the list of contacts anymore. This mo