shared-objects

(as3) Sync data between 3 or more identical flash objects on the same page

放肆的年华 提交于 2019-12-24 08:29:12
问题 I have asked something similar before, but never go to the solution I need. So am starting a new stack to not confuse my issues, and to make a little clearer. What I need to do I have multiple flash objects on a html page, they are all identical, and all of them need to be sync'd with the correct time. In its current state, each one queries the timeserver, and gets the time, which works great. BUT what I want to achieve is the first one to load to be the only one that sync's with the time

Sharing shared object between multiple processes

自古美人都是妖i 提交于 2019-12-24 02:13:54
问题 Are shared objects separately loaded for each process or one shared object is shared among them? For example, let's say that some program uses libc.so. Then two processes of this program are launched. Will be this shared object loaded TWO times for each process in their memory area OR will it be loaded somewhere in memory ONCE and mapped in memory of two processes? 回答1: Shared objects are loaded via mmap() with the MAP_PRIVATE flag. This means that these are copy-on-write mappings, they

Properly serializing flash.utils.Dictionary to a SharedObject

五迷三道 提交于 2019-12-23 15:44:16
问题 I have a convenience collection class in my Flex project called HashMap, which is essentially a wrapper around the flash.utils.Dictionary with a bunch of convenience methods and an added (synced) ArrayCollection so that I can pass the HashMap to bindable controls that want an ArrayCollection. That all works fine. What doesn't work fine, I'm finding out just now, is putting that HashMap in a local SharedObject. Registering the class causes it to be stored and come back as the proper type, and

Program can't load after setting the setuid bit on

谁说我不能喝 提交于 2019-12-22 04:48:11
问题 Consider this scenario in which an executable A.bin uses libY.so and libZ.so. A.c, Y.c and Z.c are all written in C. Z.c and Y.c are compiled into respective .so files. This is the directory structure of the files $home/bin/A.bin $home/lib/libY.so $home/lib/libZ.so When I run A.bin as normal user, A.bin runs normally as expected. Note: $LD_LIBRARY_PATH contains $home/lib I changed some code in A.c adding some functionality which needs admin privileges(like binding to a port less than 1000). I

Modify g++ library path

限于喜欢 提交于 2019-12-20 05:50:35
问题 I recently installed gcc 4.9.2 and found a problem when linking with libs. The output for search path: install: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/ programs: =/usr/libexec/gcc/x86_64-unknown-linux-gnu/4.9.2/:/usr/libexec/gcc/x86_64-unknown-linux-gnu/4.9.2/:/usr/libexec/gcc/x86_64-unknown-linux-gnu/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/:/usr/lib/gcc/x86_64-unknown-linux-gnu/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.2/../../../../x86_64-unknown-linux-gnu/bin/x86_64-unknown

AS3 Saving a sharedObject timeline

时光毁灭记忆、已成空白 提交于 2019-12-13 04:34:36
问题 I was hoping someone could offer a simple solution. I am trying to save a 'labeled' frame on the timeline by storing it as a SharedObject. The user can flip between various different backgrounds on the stage by clicking a button - button one corresponds to background one, background 2 corresponds to btn two and so on... For your reference these backgrounds are stored in a sub timeline. Any tips on how to get this to store..? //// ---------------- WINDOW SWAPPER ------------------- this.but

Is there any way to prepare a struct for future additions?

只愿长相守 提交于 2019-12-12 17:13:28
问题 I have the following struct which will be used to hold plugin information. I am very sure this will change (added to most probably) over time. Is there anything better to do here than what I have done assuming that this file is going to be fixed? struct PluginInfo { public: std::string s_Author; std::string s_Process; std::string s_ReleaseDate; //And so on... struct PluginVersion { public: std::string s_MajorVersion; std::string s_MinorVersion; //And so on... }; PluginVersion o_Version; //For

How to display Movie Clip if shared Object is equal to a number AS3

雨燕双飞 提交于 2019-12-12 02:24:12
问题 Hey everyone so what I've been trying ti accomplish with no success is how to display my Movie Clip object named achiev_10 when the nScore which is a number equal to 10. Here is what I have so far in my Shared Object Data. In my Constructor I have this: //Initialize our shared object give it a path to save local data sharedObject = SharedObject.getLocal("GeometryBlast"); if (sharedObject.data.highScore == null) { // checks if there is save data trace("No saved data yet."); // if there isn't

rso between flex and red5. I can create but cant read

落爺英雄遲暮 提交于 2019-12-12 01:46:30
问题 so im still stuck on this that i can create remote shared object but cant read while im notified about changes. im using trunk version of red5, and flex 4.0 with flash builder. in debug i can see that changeLog has name of the changed value of rso, but object itself has undefined value. Currently im working on local windows machine, but tried everything on ubuntu server 10.04 and got the same results. i can connect to the room, create a shared object and all client are notified about that,

Is there a size limit for LocalShared Objects created on Mobile apps (iOS/Android) with AIR?

倾然丶 夕夏残阳落幕 提交于 2019-12-11 12:02:20
问题 For a mobile app project I am caching lot of data for offline use into the app. So far I've been using Classic SharedObjects, storing every data in a couple of fat xmls (as strings in SharedObjects). The images are saved through the FileSystem Class. I'm now wondering if it is good practice or if I should write my xmls in Files rather than Shared Objects. My SharedObject's size is 3.6 Mo. Thanks :) 回答1: In AIR, it is generally recommended (by developers on here and the Adobe forums as well as