Saving and loading plugin's settings by using SDK APIs.

Hi All.
I am trying to save and load plugin's settings, ex. dialog setting values and strings.
OS platform is windows XP.
First I programmed the way of using *.ini file.
But that not appropriate for Macintosh.
So, I like to know common way by using SDK's APIs.
Development env. is VS2008 and Ai CS5 SDK.
Thanks.

Use AIPreferenceSuite (AIPreference.h)

Similar Messages

  • Saving and Loading specific properties of an Image

    Hey everyone. I'm currently in the process of developing a game which allows you to customize the color (hue) of your character via a slider. What I would like to happen is: Upon clicking either Accept or Play, it will save the current hue of the image, navigating back to that page will load what was previously saved (hue), as well as when starting the game, it will replace the standard graphic with the previously saved image.
    Below is the code I have right now that pertains to the image with a basic non-functioning properly saving and loading code:
    import flash.events.KeyboardEvent;
    // open a local shared object called "myStuff", if there is no such object - create a new one
    var savedstuff:SharedObject = SharedObject.getLocal("myStuff");
    Accept.addEventListener(MouseEvent.CLICK, SaveData);
    PlayBTN.addEventListener(MouseEvent.CLICK, LoadData);
    function SaveData(MouseEvent){
               savedstuff.data.username = Sliders.Dino.MovieClip // changes var username in sharedobject
               savedstuff.flush(); // saves data on hard drive
    function LoadData(event: MouseEvent)
               if(savedstuff.size>0){ // checks if there is something saved
               Sliders.Dino.MovieClip = savedstuff.data.username} // change field text to username variable
    // if something was saved before, show it on start
    if(savedstuff.size>0){
    Sliders.Dino.MovieClip = savedstuff.data.username}
    What I have above is only saving the actual image, which is inside a movie clip names Sliders.
    Below is the Class I am using that associates with the slider that changes the hue of "Dino".
    package
              import flash.display.Sprite;
              import fl.motion.AdjustColor;
              import flash.filters.ColorMatrixFilter;
              import fl.events.SliderEvent;
              public class Main extends Sprite
                        private var color:AdjustColor = new AdjustColor();
                        private var filter:ColorMatrixFilter;
                        public function Main():void
                                  /* Required to create initial Matrix */
                                  color.brightness = 0;
                                  color.contrast = 0;
                                  color.hue = 0;
                                  color.saturation = 0;
                                  /* Add Listeners function */
                                  addListeners();
                        private final function addListeners():void
                                  colorPanel.hueSL.addEventListener(SliderEvent.CHANGE, adjustHue);
                        private final function adjustHue(e:SliderEvent):void
                                  color.hue = e.target.value;
                                  update();
                        private final function update():void
                                  filter = new ColorMatrixFilter(color.CalculateFinalFlatArray());
                                  Dino.filters = [filter];
    Overall what I'm asking for is: How do I get it to save the current hue of an image by clicking a button, and then having that previously saved image be loaded upon reloading or clicking a button? To me, it doesn't seem like it should be too hard, but for some reason I can not grasp it.
    Thanks in advance for reading this and for any assistance you have to offer!

    This is the Class that you told me to use:
    package
              import flash.display.Sprite;
              import fl.motion.AdjustColor;
              import flash.filters.ColorMatrixFilter;
              import fl.events.SliderEvent;
              import flash.net.SharedObject;
              public class Main extends Sprite
                        private var color:AdjustColor = new AdjustColor();
                        private var filter:ColorMatrixFilter;
                        private var so:SharedObject;
                        public function Main():void
                                  color.brightness = 0;
                                  color.contrast = 0;
                                  color.saturation = 0;
                                  so = SharedObject.getLocal("myStuff");
                                  if (so.data.hue)
                                            color.hue = so.data.hue;
                                  else
                                            color.hue = 0;
                                  update();
                                  addListeners();
                        private final function addListeners():void
                                  colorPanel.hueSL.addEventListener(SliderEvent.CHANGE, adjustHue);
                        private final function adjustHue(e:SliderEvent):void
                                  color.hue = e.target.value;
                                  so.data.hue = color.hue;
                                  so.flush();
                                  update();
                        private final function update():void
                                  filter = new ColorMatrixFilter(color.CalculateFinalFlatArray());
                                  Dino.filters = [filter];
    And this is the FLA Code:
    import flash.events.KeyboardEvent;
    // open a local shared object called "myStuff", if there is no such object - create a new one
    var savedstuff:SharedObject = SharedObject.getLocal("myStuff");
    Accept.addEventListener(MouseEvent.CLICK, SaveData);
    PlayBTN.addEventListener(MouseEvent.CLICK, LoadData);
    function SaveData(MouseEvent)
              savedstuff.data.username = Sliders.Dino.MovieClip;// changes var username in sharedobject
              savedstuff.flush();
              // saves data on hard drive;
    function LoadData(event: MouseEvent)
              if (savedstuff.size > 0)
              {// checks if there is something saved
                        Sliders.Dino.MovieClip = savedstuff.data.username;
              }// change field text to username variable
    // if something was saved before, show it on start
    if (savedstuff.size > 0)
              Sliders.Dino.MovieClip = savedstuff.data.username;

  • Just installed PS 13 elements and loaded pictures into organizer. after using PS editor now organizer is not reloading. I keep getting error message saying organizer unexpectedly quit, do you want to reopen.  When I click on it to reopen it doesn't and I

    just installed PS 13 elements and loaded pictures into organizer. after using PS editor now organizer is not reloading. I keep getting error message saying organizer unexpectedly quit, do you want to reopen.  When I click on it to reopen it doesn't and I get the same message again.  I rebooted computer, still did it,  I uninstalled and reinstalled the program and I am still getting the same error message.  This is on Mac OS with yosemite.  Any Ideas Please!!!

    Thread 8:
    0   libsystem_kernel.dylib         0x00007fff9219f4de mach_msg_trap + 10
    1   libsystem_kernel.dylib         0x00007fff9219e64f mach_msg + 55
    2   com.apple.CoreFoundation       0x00007fff97717b34 __CFRunLoopServiceMachPort + 212
    3   com.apple.CoreFoundation       0x00007fff97716ffb __CFRunLoopRun + 1371
    4   com.apple.CoreFoundation       0x00007fff97716858 CFRunLoopRunSpecific + 296
    5   com.apple.AppKit               0x00007fff8e85533b _NSEventThread + 137
    6   libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    7   libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    8   libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 9:: cr_scratch
    0   libsystem_kernel.dylib         0x00007fff921a4136 __psynch_cvwait + 10
    1   com.adobe.CameraRaw           0x000000012122478b 0x120c28000 + 6277003
    2   com.adobe.CameraRaw           0x00000001211ad48b 0x120c28000 + 5788811
    3   com.adobe.CameraRaw           0x0000000120fad001 0x120c28000 + 3690497
    4   libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    5   libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    6   libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 10:
    0   libsystem_kernel.dylib         0x00007fff9219f4de mach_msg_trap + 10
    1   libsystem_kernel.dylib         0x00007fff9219e64f mach_msg + 55
    2   com.apple.CoreFoundation       0x00007fff97717b34 __CFRunLoopServiceMachPort + 212
    3   com.apple.CoreFoundation       0x00007fff97716ffb __CFRunLoopRun + 1371
    4   com.apple.CoreFoundation       0x00007fff97716858 CFRunLoopRunSpecific + 296
    5   com.apple.CoreFoundation       0x00007fff977ccef1 CFRunLoopRun + 97
    6   com.adobe.ols.library         0x00000001235ebc86 OLSHTTPTransaction::Execute() + 4166
    7   com.adobe.ols.library         0x00000001236174f9 OLSServiceTask::PerformMessageExchangeServerPOST(OLSAutoRefPtr<OLSElement> const&, OLSAutoRefPtr<OLSElement> const&) + 1849
    8   com.adobe.ols.library         0x000000012360958a OLSServiceTask::PerformMessageExchangeServer(OLSAutoRefPtr<OLSElement> const&, OLSAutoRefPtr<OLSElement> const&) + 1834
    9   com.adobe.ols.library         0x000000012361626c OLSServiceTask::ProcessUnhandledMessageList(OLSAutoRefPtr<OLSElement> const&, OLSAutoRefPtr<OLSElement> const&, OLSAutoRefPtr<OLSElement> const&, OLSMessageOrigin) + 1804
    10  com.adobe.ols.library         0x00000001235c885c OLSClientSession::ProcessUnhandledMessageList(OLSAutoRefPtr<OLSElement> const&, OLSAutoRefPtr<OLSElement> const&, OLSAutoRefPtr<OLSElement> const&, OLSMessageOrigin) + 124
    11  com.adobe.ols.library         0x00000001235c6921 OLSClientSession::ProcessMessageList(OLSAutoRefPtr<OLSElement> const&, OLSAutoRefPtr<OLSElement> const&, OLSMessageOrigin) + 2593
    12  com.adobe.ols.library         0x0000000123608d3a OLSServiceTask::ExecuteStateMessageExchangeServer() + 426
    13  com.adobe.ols.library         0x00000001236010cc OLSServiceTask::ExecuteInternal() + 1196
    14  com.adobe.ols.library         0x000000012361b22e OLSTask::Execute() + 350
    15  com.adobe.ols.library         0x000000012361c874 OLSWorkerThreadTaskManager::ProcessTasks(OLSTaskThread*) + 1300
    16  com.adobe.ols.library         0x000000012361b454 OLSTaskThread::Run() + 36
    17  com.adobe.ols.library         0x000000012363fd88 OLSThread::ThreadProc(void*) + 54
    18  com.apple.CoreServices.CarbonCore 0x00007fff9c7108dc PrivateMPEntryPoint + 58
    19  libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    20  libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    21  libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 11:
    0   libsystem_kernel.dylib         0x00007fff921a475a __sigwait + 10
    1   com.adobe.ElementsOrganizer13 0x000000010dce1a84 0x10cc7e000 + 17185412
    2   com.adobe.ElementsOrganizer13 0x000000010dce5d15 0x10cc7e000 + 17202453
    3   libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    4   libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    5   libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 12:: com.apple.NSURLConnectionLoader
    0   libsystem_kernel.dylib         0x00007fff9219f4de mach_msg_trap + 10
    1   libsystem_kernel.dylib         0x00007fff9219e64f mach_msg + 55
    2   com.apple.CoreFoundation       0x00007fff97717b34 __CFRunLoopServiceMachPort + 212
    3   com.apple.CoreFoundation       0x00007fff97716ffb __CFRunLoopRun + 1371
    4   com.apple.CoreFoundation       0x00007fff97716858 CFRunLoopRunSpecific + 296
    5   com.apple.CFNetwork           0x00007fff8fcfac80 +[NSURLConnection(Loader) _resourceLoadLoop:] + 434
    6   com.apple.Foundation           0x00007fff90df190a __NSThread__main__ + 1345
    7   libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    8   libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    9   libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 13:: com.apple.CFSocket.private
    0   libsystem_kernel.dylib         0x00007fff921a43fa __select + 10
    1   libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    2   libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    3   libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 14:
    0   libsystem_kernel.dylib         0x00007fff921a4136 __psynch_cvwait + 10
    1   com.adobe.ElementsOrganizer13 0x000000010dce02fd 0x10cc7e000 + 17179389
    2   com.adobe.ElementsOrganizer13 0x000000010cd34e19 0x10cc7e000 + 749081
    3   com.adobe.ElementsOrganizer13 0x000000010dce5d15 0x10cc7e000 + 17202453
    4   libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    5   libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    6   libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 15:
    0   libsystem_kernel.dylib         0x00007fff921a4136 __psynch_cvwait + 10
    1   com.adobe.ElementsOrganizer13 0x000000010dce02fd 0x10cc7e000 + 17179389
    2   com.adobe.ElementsOrganizer13 0x000000010cd34e19 0x10cc7e000 + 749081
    3   com.adobe.ElementsOrganizer13 0x000000010dce5d15 0x10cc7e000 + 17202453
    4   libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    5   libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    6   libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 16:: JavaScriptCore::BlockFree
    0   libsystem_kernel.dylib         0x00007fff921a4136 __psynch_cvwait + 10
    1   libc++.1.dylib                 0x00007fff8fb2ad2e std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 126
    2   com.apple.JavaScriptCore       0x00007fff99593aaa JSC::BlockAllocator::waitForDuration(std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000l> >) + 170
    3   com.apple.JavaScriptCore       0x00007fff993828f4 JSC::BlockAllocator::blockFreeingThreadMain() + 84
    4   com.apple.JavaScriptCore       0x00007fff9937814f WTF::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    6   libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    7   libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 17:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x00007fff921a4136 __psynch_cvwait + 10
    1   libc++.1.dylib                 0x00007fff8fb2ac95 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47
    2   com.apple.JavaScriptCore       0x00007fff99382f1b JSC::GCThread::waitForNextPhase() + 171
    3   com.apple.JavaScriptCore       0x00007fff99382d78 JSC::GCThread::gcThreadMain() + 88
    4   com.apple.JavaScriptCore       0x00007fff9937814f WTF::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    6   libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    7   libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 18:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x00007fff921a4136 __psynch_cvwait + 10
    1   libc++.1.dylib                 0x00007fff8fb2ac95 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47
    2   com.apple.JavaScriptCore       0x00007fff99382f1b JSC::GCThread::waitForNextPhase() + 171
    3   com.apple.JavaScriptCore       0x00007fff99382d78 JSC::GCThread::gcThreadMain() + 88
    4   com.apple.JavaScriptCore       0x00007fff9937814f WTF::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    6   libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    7   libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 19:: JavaScriptCore::Marking
    0   libsystem_kernel.dylib         0x00007fff921a4136 __psynch_cvwait + 10
    1   libc++.1.dylib                 0x00007fff8fb2ac95 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47
    2   com.apple.JavaScriptCore       0x00007fff99382f1b JSC::GCThread::waitForNextPhase() + 171
    3   com.apple.JavaScriptCore       0x00007fff99382d78 JSC::GCThread::gcThreadMain() + 88
    4   com.apple.JavaScriptCore       0x00007fff9937814f WTF::wtfThreadEntryPoint(void*) + 15
    5   libsystem_pthread.dylib       0x00007fff974c1268 _pthread_body + 131
    6   libsystem_pthread.dylib       0x00007fff974c11e5 _pthread_start + 176
    7   libsystem_pthread.dylib       0x00007fff974bf41d thread_start + 13
    Thread 0 crashed with X86 Thread State (64-bit):
      rax: 0x00000000000000b0  rbx: 0x00006080000b4460  rcx: 0x00007fff52f7da08  rdx: 0x00007fff52f7d8c0
      rdi: 0x00006080001d31a0  rsi: 0x0000000000000000  rbp: 0x00007fff52f7d860  rsp: 0x00007fff52f7d830
       r8: 0x00007fff52f7d9d8   r9: 0x00007fff52f7d9a0  r10: 0x0000000000000000  r11: 0x0000000110825b90
      r12: 0x00007fff52f7d9a0  r13: 0x00007fff52f7e0e8  r14: 0x00007fff52f7d8c0  r15: 0x00006080000b4460
      rip: 0x0000000110825ba6  rfl: 0x0000000000010206  cr2: 0x0000000000000000
    Logical CPU:     1
    Error Code:      0x00000004
    Trap Number:     14

  • I used to shoot video in my Powershot S3 IS (MVI_.AVI) and load it into iPhoto, I used quicktime pro so I could convert it for emailing to family members.  That was when I was running Leopard now with Mt. Lion nothing works.  Videos do not open at all?

    I used to shoot video in my Powershot S3 IS (Format MVI_.AVI) and load them into iPhoto, I used quicktime pro so I could convert for emailing to family members.  That was when I was running Leopard now with Mt. Lion nothing works.  Videos do not open at all.  Any simple suggestions, I am not real keen on iMovie Productions and not real certain how they compress for emailing attachments.  Something simple here that I am missing?  Thanks so much.  I am a grandpa trying to share with family members far away (quickly & simply).

    I am surprised that Apple did not build a converter into Mt. Lion.
    Apple does have a converter built into Mountain Lion. It is call "Quicktime." However, in order to use this converter, you must first make sure the compression formats are playback compatible with QT. Basically, there are three levels of QT compatibility. The lowest is "Playback." These file can be played by QT but may not be conversion or edit compatible with QT. The second level is QT "Conversion" compatible. These files are playback compatible and can be converted to other compression formats using QT. "Edit" compatible media files are "Fully" compatible with QT since the can be played, converted and/or edited by QT. The main problem here is that AVI is a "legacy" file format that has not been officially supported by Microsoft for more than 11 years when it was replaced by Windows Media multimedia file/compression formats. Many of the original compression formats used in AVI files have never been transcoded for the Mac platform, use beyond system 9, or use beyond PPC platforms. In addition, some commonly used AVI codecs are proprietary or use non-standard (hybrid) profile and level combinations. In short, there is little wonder that Apple has been distancing itself from this outdated file type as it re-writes and upgrades its own QT structure to support more standardized, more scalable, more modern high definition file types and compression formats. It is really unfortunate that users continue to use this outmoded file type simply because it is freely available, easy to use, or they are simply too lazy to move on to a more modern or more efficient file types and/or compression formats.
    I tested Wondershare Video Converter Ultimate for the Mac, which seems to be the "state of the art".  I may be purchasing a new camera which might create a whole new set of variables.  This program seems to cover all bases and is great for novices.
    There are many third-party apps available if you wish to search for them. Many are even available in the App Store. Most do their job well and it is usually a matter of personal user preference as to which is best.
    HandBrake seems more suited to folks with more experience and knowledge.
    I mentioned Handbrake primarily because it is free and easy to use when you employ the included conversion presets options. (The TV options can normally be used for almost any situation depending on the source file and output requirements.) It is also excellent for more experienced users, but has a somewhat limited choice of output options as it does not access the user's system QT codec component configuration.

  • Saving and Loading variables in a .txt file (Offline)

    I'm working a software we've done with Flash, but we'd want
    people to be able to save the variables they selected. We need them
    to be able to save the value of about 10 variables in a file on
    their desktop, and then be able to load that file again.
    Is it possible to do that without having to use php or stuff
    like that (that's why we want to make it an offline applications so
    we don't have to use php to be able to save files).
    I know Actionscript looks a lot like Javascript and with
    Javascript it's really easy to do, but all the saving functions are
    blocked in Flash for security reasons.
    If anyone knows how to do that, to simply save and load a
    .txt file, please let me know. If it would be possible also to
    change the .txt to whatever else it would be even better. The file
    can still be opened in Notepad but at least it looks a bit more
    professionnal to have our own extension. Again in Javascript or
    with a .bat file it's really easy to save variables to whatever
    type of file, even to non existing types, it simply creates a text
    file with an unknown ending.
    Thanks!

    I found a page that explains in a really easy way how to
    communicate with Javascript if the flash object is contained in an
    html page, but I couldn't find any page explaining how it works if
    it's not in an html page. On our side, before using the software
    we're creating we'll convert it to a .exe. How can we call a
    Javascript from that .exe since we can't incorporate the Javascript
    in the container since there isn't really a container... Is there a
    way to link to a Javascript (.js) that would be in the same folder
    as the .exe? Or would there be a way to incorporate the Javascript
    right into the .exe?
    Let me know if any of you have a solution for that.
    Thanks!
    http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00000342.html#wp126566

  • Saving and loading images (png) on the iPhone / iPad locally

    Hi,
    you might find this helpful..
    Just tested how to save and load images, png in this case, locally on the i-Devices.
    In addition with a SharedObject it could be used as an image cache.
    Make sure you have the adobe.images.PNG encoder
    https://github.com/mikechambers/as3corelib/blob/master/src/com/adobe/images/PNGEncoder.as
    Not really tested, no error handling, just as a start.
    Let me know, what you think...
    Aaaaah and if somebody has any clue about this:
    http://forums.adobe.com/thread/793584?tstart=0
    would be great
    Cheers Peter
        import flash.display.Bitmap
         import flash.display.BitmapData
        import flash.display.Loader   
        import flash.display.LoaderInfo
        import flash.events.*
        import flash.filesystem.File
        import flash.filesystem.FileMode
        import flash.filesystem.FileStream
        import flash.utils.ByteArray;
        import com.adobe.images.PNGEncoder;
    private function savePic(){
        var bmp =  // Your Bitmap to save
        savePicToFile(bmp, "test.png")
    private function loadPic(){
         readPicFromFile("test.png")
    private function savePicToFile(bmp:Bitmap, fname:String){
           var ba:ByteArray = PNGEncoder.encode(bmp.bitmapData);
            var imagefile:File = File.applicationStorageDirectory;
            imagefile = imagefile.resolvePath(fname);
            var fileStream = new FileStream();
            fileStream.open(imagefile, FileMode.WRITE);
            fileStream.writeBytes(ba);
             trace("saved imagefile:"+imagefile.url)
    private function readPicFromFile(fname:String){
            var imagefile:File = File.applicationStorageDirectory;
            imagefile = imagefile.resolvePath(fname);
            trace("read imagefile:"+imagefile.url)
            var ba:ByteArray = new ByteArray();
            var fileStream = new FileStream();
            fileStream.open(imagefile, FileMode.READ);
            fileStream.readBytes(ba);
            var loader:Loader = new Loader();
            loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onPicRead)
            loader.loadBytes(ba);   
    private function onPicRead(e:Event){
        trace("onPicRead")
         var bmp:Bitmap = Bitmap(e.target.content)
         // Do something with it

    Are the movies transferred to your iPhone via the iTunes sync/transfer process but don't play on your iPhone?
    Copied from this link.
    http://www.apple.com/iphone/specs.html
    Video formats supported: H.264 video, up to 1.5 Mbps, 640 by 480 pixels, 30 frames per second, Low-Complexity version of the H.264 Baseline Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; H.264 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Baseline Profile up to Level 3.0 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats.
    What are you using for the conversion? Does whatever you are using for the conversion include an iPod or iPhone compatible setting for the conversion?
    iTunes includes a create iPod or iPhone version for a video in your iTunes library. Select the video and at the menu bar, go to Advanced and select Create iPod or iPhone version. This will duplicate the video in your iTunes library. Select this version for transfer to your iPhone to see if this makes any difference.

  • How should we be going about creating and saving and/ or exporting our ODC files using Excel 2013 for use in Project Server 2013 Online?

    Hi I need your guidance on how I should go about setting up my Excel 2013 reports so that others in our Project Online 2013 environment can access and updates these reports of mine.
    My questions are as follows:
    I presume I need to create and save my ODC files in a PWA > Data Connections folder.  I have English and French users in our environment.  Do I need save them twice?  Once in the French and again in the English Data Connections folder?
     Likewise for the Excel file? 
    How should I go about creating my ODC files within Excel?  By default, the ODC files are being created on my PC's > My Documents > My Data Sources folder.  I presume I need to get them saved or exported to the PWA > Data Connections
    folder. So, How should I be going about creating and saving and/ or exporting the ODC files???
    FYI...My oData Feeds that I wish to use and join in this particular Excel file are as follows:
    https://cascades.sharepoint.com/sites/pwa/_api/projectdata/AssignmentTimephasedData01T00:00:00'
    https://cascades.sharepoint.com/sites/pwa/_api/projectdata/Projects()?$select=ProjectId,ProjectName,CAS_Classification,CAS_PCO,CAS_IT_Department,CAS_Program,CAS_SubProgram
    https://cascades.sharepoint.com/sites/pwa/_api/projectdata/TimeSet()?select=TimeByDay,TimeDayOfTheWeek$filter=TimeByDay ge datetime'2014-10-19T00:00:00'
    https://cascades.sharepoint.com/sites/pwa/_api/projectdata/Resources()?$select=ResourceId,ResourceName,Programs,Supplier,Source,Role,CostType
    Thanks in advance,
    \Spiro Theopoulos PMP, MCITP. Montreal, QC (Canada)

    Thank you Guilaume.  May I ask you to help clarify a bit more for me?  If I have to do it for both languages (the reports and ODC files), do I simply copy the same ODC files from e.g., the English to French folder in PWA (Odc files)?  Or does
    that defeat the purpose?  Or, do I need to create a new set of oData Feed Connection files with a French version of Excel 2013 and save them to the French Data Connections folder in PWA?  Do I need to have a French version of Excel 2013 to create
    French ODC files and ultimately French based reports and/ or vice versa?
    I did notice that the following oData metadata command from within a browser produces different results (ie., English versus French metadata returned) depending on who runs it (i.e., French or English user, etc).  As you can see I am a bit confused.
     Any help you can provide would be greatly appreciated.
    https://XXXXX.sharepoint.com/sites/pwa/_api/projectdata/$metadata
    \Spiro Theopoulos PMP, MCITP. Montreal, QC (Canada)

  • I am getting lots of spam and dont know what settings to use

    Hi All
    I am not the greatest on my Mac but I am getting a lot of spam and not sure what settings I should apply to try and reduce the amount of spam I receive.
    Kind Regards
    Ian

    Whatever email client you are using, the spam settings are always found in the client's Preferences.  Some say Junk Mail while other may say Spam. 

  • Saving and loading serialized objects (StreamCorruptedException)

    Hello,
    I am relatively new to Serialization (coming to that, a bit new to Java too) and I am having a problem with the following:
    I am saving a number of serialized objects (all of the same class) in a file using the following way (the method is called multiple times to save a list of TeamMember objects):
    Note: TeamMember is a custom class.
    public void addTeamMember(TeamMember p) {
                outputStream = new ObjectOutputStream( new FileOutputStream( "team.dat", true ) );
                outputStream.writeObject( p );
                outputStream.flush();
                outputStream.close();
                outputStream = null;
    }Then I'm trying to retrieve the objects from the file and display them. The method used is the following (it will loop through the file until found or it throws an EOFException. Is using the EOFException good practice to search through the entire file?):
    public TeamMember getTeamMember(String id) {
            TeamMember currentMember = null;
            try {
                boolean found = false;           
                inputStream = new ObjectInputStream( new FileInputStream( "team.dat" ) );
                while ( !found ) {
                    currentMember = (TeamMember)inputStream.readObject();
                    if ( currentMember.getId().equals( id ) )
                        found = true;
                } // end while
                closeInputFile();
                return currentMember;
            } // end try
            catch ( EOFException e ) { // end of file reached
                closeInputFile();           
                return null;
            } // end catch
            catch ( IOException e ) {
                closeInputFile();
                System.err.println( e.getMessage() );
                return null;
            } // end catch
        }Now as a test, I am adding 3 members with IDs 1, 2 and 3 respectively. Then I am calling getTeamMember three times with the different IDs. With ID "1", it works fine. When I give it ID 2, it gives an IOException with message "StreamCorruptedException: invalid type code: AC".
    While tracing the program, I've seen that it always gives me that error when reading past the first object saved in the file.
    Am I saving the objects in a wrong way, or reading them is done incorrectly?
    Any help is much appreciated.
    I hope I was clear enough, and that I posted in the correct forum.
    Thanks in advance.
    Andrew.

    If that is so, might you hint me for a work around?
    I want to append objects in a single file, then be able to find and read an object from the file.
    Thanks again.
    Andrew

  • Liquify Cursor disappears when Saving and Loading Mesh (CC 2014.2.2)

    Hello.
    I'm using Photoshop CC 2014.2.2 for Mac on a perfectly built hackintosh (Yosemite, i7-4770K, GTX770, Intuos5 L, 32Gb RAM, 2 monitors).
    The arrow cursor disappears randomly when dragged over the Save Mesh or Load Mesh dialogues. It's not that the arrow cursor disappears completely. Actually, instead of switching from liquify cursor to arrow cursor as it should, it stays a circle and I can see it behind the save/load mesh window. In order to make the arrow appear in front of the save/load mesh, I have to move it out of it, and carefully move it back in. If I drag the save/load mesh window to an area of the screen clear of the liquify filter window or to my second screen, the problem goes away.
    Also, when liquifying, the cursor is a little laggy, like at a low frame rate and behind my pen. I can liquify with no problem, but I can't remember if this is the way the liquify cursor behaves now that the it is GPU accelerated.
    All these problems go away if I disable "use graphics processor", but that's a no go for me. I have tried both OS X Default Graphic Driver and NVIDIA Web Driver, but it makes no difference.
    Any ideas?
    THANKS!

    I've noticed it happens particularly when the arrow touches any of the text input fields, among other ways I haven't identified yet. The save mesh and load mesh are the only dialogs across Photoshop on which this problem happens.
    Notice that the blue cursor drawn by me is where the cursor should be, and note that the liquify cursor can be seen behind the open mesh dialogue. In this case I have to draw the cursor outside of the open window, and drag it back in making sure I don't touch the search field.

  • Saving and loading control properties

    Quick question,
    Does anyone know of an "easy" way to save and load pre-defined appearences or "skins" for controls and indicators?
    I had hoped LV 8.0 did this in the property explorer, but having just checked it out, it doesn't seem to.
    I basically want to be able to define the appearance of indicators (XY
    graphs particularly) based on calling up either ini files or otherwise.
    I want to avoid writing a cumbersome cluster-based read and write
    routine for each and every type of control (Split into classes of
    course, but still.....)
    Shane.
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

    Thanks tst
    I will add the link to my labview folder.  The property saver will be a useful feature and would be a great method to have added to all gi objects, like Gobject->SaveState(file) and Gobject->LoadState(File), this could be polymorphic and also include versioning information and even allow for some metadata about the object.  Here you could make skins of a vi and it would save all the objects in a standard form.
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • How to speed up my saving and loading of a psd. file?

    Hi.
    My laptop's 1 TB hdd recently crashed and I replaced it with a 500 GB ssd and Photoshop loads now from 10-12 sec since i re installed Photoshop cc.
    Unfortunately, the time it takes to save and load psd files has increased dramatically (I'm comparing it to how it was with my normal hdd). It also, sometimes freezes a bit and then after about 10 sec it unfreezes.
    I have looked online for help, but have been unable to find anything that could really help me (or it just went over my head, as I am not very tech savvy).
    Any help would be greatly appreciated.
    If this has been discussed before, can someone please post the link for me.

    The rule of thumb I follow to figure out scratch space says to figure on 50 to 100 times the size of your largest file ever multiplied by the number of files you have open.  I have seen the scratch file exceed 800 GB once, an admittedly rare occurrence, but it often exceeds 200 GB when stitching large panoramas and the like.
    As an example—and stressing that I'm aware that others have even more scratch space than I do—I keep two dedicated, physically separate hard drives as my primary and secondary Photoshop scratch disks and a lot of GB free on my boot drive for the OS.  I also have 16 GB of RAM installed.
    Additionally, if you only have a single HD, i.e. your boot drive, you'd need it to be large enough to accommodate both the swap files of the OS as well as Photoshop's scratch.

  • Need help in JAXP - saving and loading of XML

    i am new to JAXP so dunno how to write the codes to save and load a hub project to and from an XML stream ...so can any one help by posting some codes to guide me alonr... will be grateful to u...this is wat i have done ,can anyone help to complete it ..thank...urgently
    import java.util.*;
    public class Testvector
         private Vector m_vProcess;
         String strProjectName;
         public static void main(String[] args)
              TestVector pThis = new TestVector();
              pThis->WriteToXML(m_vProcess);
         public TestVector
              strProjectName ="Project1";
              m_vProcess = new Vector();               
              m_vProcess.add("Process1");
              m_vProcess.add("Process2");
         public void WriteToXML(Vector vProcess)
              //JAXP
              //write project element with attribute name
              //iterate through all the elements in vector m_vProcess
              //write process elements with name.
    <?xml version='1.0' encoding='utf-8'?>
    <!-- project -->
    <project>
    <!-- process -->
    <process type="all">
    <name>1st</name>
    </process>
    </project>
    can any one help?

    Choose Xerces2.4 to serialize the DOM object is an option.
    javac XercesTest.java -classpath xmlParserAPIs.jar;xercesImpl.jar;.
    java -classpath xmlParserAPIs.jar;xercesImpl.jar;. XercesTest test.xml
    below is the source file: XercesTest.java
    //JAXP
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    //APACHE SERIALIZE FUNCTION
    import org.apache.xml.serialize.*;
    class XercesTest
    public static void main(String[] args) throws Exception
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder builder = factory.newDocumentBuilder();
    Document doc = builder.parse( new File( args[0] ) );
    File f = new File( "copy_of_"+ args[0] );
    OutputFormat format = new OutputFormat("xml","UTF-8",true ) ;
    FileOutputStream fout = new FileOutputStream( f );
    XMLSerializer ser = new XMLSerializer(fout, format );
    ser.serialize( doc );
    maybe it's helpful
    land

  • How to get the current data and time of SCOM server via SCOM SDK (API) calls?

    Hi,
    I need to read the current date and time of SCOM server via SOM SDK.
    Is there a class in SDK that provides this info ?
    Thanks,
    satheesh

    To get time and date of Alerts of SCOM, You can use following command let "get-scomalert"
    Also, You can refer below links
    http://blog.tyang.org/2013/02/21/using-scom-2012-sdk-to-retrieve-resource-pools-information/
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question, please click "Mark As Answer"
    Mai Ali | My blog: Technical

  • Remove hidden text using SDK api

    HI Guys,
    I am new to SDK and would like to know if there is an API to remove hidden text functionality the one that described here. I need a separate .Net library on top of Acrobat SDK that could remove all hidden data from pdf and save it.
    Please point me to an example or documentation where to start from, if it can be done?
    Thanks,
    Andrey

    I have found in sdk api the following method:
    PDWordFinderAcquireVisibleWordList()
    "Finds all words on the specified page that are visible in the given optional-content context" what does it means 'visible'? it is related with the 'heuristic' Acrobat uses to show 'hidden text'?
    It is not clear also the 'PDOCContext ocContext' parameter this method uses.
    Thanks

Maybe you are looking for

  • How to install from hard disk

    i have the mac os x tiger on my hard disk , but no startup disc due to the fact that i had to reinstall my os while repartioning my drive. my question is how do i make a startup disk, or choose to install from the hard drive spot?

  • How to convert sap script to pdf and send it as email attachment

    hi, my requirement is to convert a standard sales order form to pdf and send it as email attachment. get me some sample code for the same thanks in advance

  • Displaying images stored in the database

    Hi, I'm saving image files (bmp, jpg, gif) in the database as binary data (I'm using SQL Server). Then, I have to retrieve this file and show the image in a JSP. I'm using Struts 1.1, SQLServer and weblogic. How can I do this? Thanks

  • How do I improve Airplay mirroring? (iMac to AppleTV)

    Airplay Mirroring was working great, and then the display quality really went down.  Text used to be quite clear, but now it's almost unreadable.  Nothing had changed with my setup, so I'm not sure why this is happened. Things I've tried: 1. moving m

  • Display change material price for a customer ?

    Hello, Could you please show mw which transaction used for displaying and changing the material price for a customer ( Based on period) Thanks,