Actionscript 3 :: Shared Objects Not Working Correctly In Flex - Mobile

Apr 11, 2012

I have a very simple test going with shared objects in flex with mobile I have a person class.

package
{
import flash.display.MovieClip;

[Code]....

If I clear out the so it show the [object Person] again, but comment out get the ,,,

Can shared objects even store an array of objects properly. It is the same with the persistanceManager I believe.

View 1 Replies


Similar Posts:


Flex :: Understanding Remote Shared Objects?

Oct 20, 2009

I have 2 questions about remote shared objects in Flex/ActionScript3:1) If I connect to a remote shared objects, but do not handle the SYNC event, will the shared object still receive data from the server? ie. will the server still broadcast data to this client ? This is what I expect

View 2 Replies

Flex :: What AMF Servers Support Remote Shared Objects

Mar 29, 2010

I'm planning on building a Flex based multiplayer game, and I'm researching what will be required for the server end. I have PHP experience, so I started looking at ZendAMF.

Now in this game, I'll need the concept of rooms, and real time updates to clients in those rooms, so it looks like I'll be using remote shared objects (correct, yes?). I'm not seeing where ZendAMF can support this.It seems to indicate that ZendAMF isn't going to do what I want. WebORB for PHP seems to be the only PHP based solution that does messaging, but on that page it doesn't mention "real-time" next to it like the Java based ones below it do.

View 3 Replies

Flex :: Storing Instances Of Classes In Shared Objects

May 26, 2010

Is it possible to store instances of a class in a cookie or in shared objects.

Basically in my application I have an object "Diagram" that the user can create. If they hit save, I want to store the current instance as a cookie and allows them to reload it later.

Alternatively, I could see about getting them to store the saved version on the hard disk. But even then, all I want to save and retreive is my actionscript object.

I've tried storing the object to SharedObject.data.diag, but when I try to retrieve the object from the cookie doing SharedObject.data.diag as Diag returns null.

View 1 Replies

Flex :: Know If The User Allows Storage Of Local Shared Objects (LSO)

Nov 25, 2010

There is a small feature I have implemented that makes uses of the Local Shared Objects to work properly.

I wish to be able to help the user self-diagnose if he is unable to use the said feature because he refused access for this computer to writing local shared objects and give him instructions to work around the issue if it applies to him.

I'm looking for something similar to the muted property of the Microphone class [URL] or the Camera class.

View 1 Replies

Flex :: Clear Shared Objects When Browser Closes Abruptly?

Jun 7, 2011

How to clear the shared objects when user closes the browser abruptly?If the user opens the same application in two tabs, and user tries to close any one of the tab, we have to listen only the closed tab event.

View 1 Replies

Php :: Flex - Login System Not Working Correctly?

Feb 23, 2011

I wrote a login system using flex and php, but for some odd reason the php echos back both "true" and "false". why this is happening?

?php
echo "<?xml version="1.0" encoding="utf-8"?>";
//include("connect.php"); // used for your connection to the database.

[code]....

View 1 Replies

Flex :: Flash Shared Objects Storage Location Changing Occasionally?

Feb 15, 2011

When running a flash application that I run locallyie I get to it from a browser but with a file pathNow, most of the time the shared objects are stored in%APPDATA%MacromediaFlash Player#SharedObjectsXXXX#localWithNetBut occasionally, it reverts and thinks this application is running on localhost%APPDATA%MacromediaFlash Player#SharedObjectsXXXXlocalhostwhich means all previous saved settings are gone.I'm wondering if anyone knows how flash decides if the application is infact localhost or localWithNet (local with Network access)

View 4 Replies

Flex :: Flash Shared Objects Storage Location Changing Occasionally

Jul 3, 2011

When running a flash application that I run locally i.e., I get to it from a browser but with a file path
file:///C:/Projects/test/bin-debug/Main.html#

Now, most of the time the shared objects are stored in
%APPDATA%MacromediaFlash Player#SharedObjectsXXXX#localWithNet

But occasionally, it reverts and thinks this application is running on localhost
%APPDATA%MacromediaFlash Player#SharedObjectsXXXXlocalhost
Which means all previous saved settings are gone.

How flash decides if the application is infact localhost or localWithNet (local with Network access). Rebooting can sometimes make it revert, but I've also had it stay localhost for a few days then revert.

View 1 Replies

Actionscript 3 :: Understading Flash / Flex Shared Objects And Hashing Technique

Jan 24, 2012

I was trying to observe how some of the top browser game makers are implementing the asset management and also study their animation techniques. So I was trying to crack my browsers cache and share-object paths to peep into the assets.What I have noticed is that all the files are hashed or encrypted with unreadable names and all of them have .sol extension example somethingbigandunredable.png.sol or somethinglesebigandhugtring. swf.sol and so on.I thought they are just suffixed with .sol and just removed the .sol and tried to open the png but its neither showing the previw nor opening in the browser. Same with the swf file.So I was wondering if there is any way to peep into their assets. I am aware of swf decompiler tool (currently using) which can extract only the unecrypted swfs.

View 1 Replies

ActionScript 3.0 :: Loading Shared Object Correctly?

Sep 28, 2009

I have simple slideshow set up where the user presses a button(forward or back) and the image changes. I used a sharedObject to save each frame, so when the page is refreshed/reloaded, the swf loads back to the image it left off on... thats the idea anyway.However, instead of just loading the previous frame when the page is refreshed, it loads frame 1, and i have to click my "next" button, which then jumps to the slide that should have loaded in the first place. I dont know why this is happening..I'm using Sothink SWF Quicker.. so heres the .sqf[URL]

View 1 Replies

How Does Working With SQLite Databases Work In Flex 4.5.1 For Mobile Applications

Jun 26, 2011

How does working with SQLite databases work in Flex 4.5.1 for Mobile applications,I'm looking to create a general class that I can reuse. For now I only want it to handle queries and return results or fault events.Also, I am unsure if I should be using Synchronous or Asynchronous connections for mobile devices.

View 1 Replies

Android :: Flex DropDownList Working Weird In Mobile Devices?

Jul 15, 2011

I try to use spark DropDownList Controller for flex mobile project but its not working properly. Is there any alternative solution available?

View 2 Replies

Flex :: Mobile Gesture Event : Slide Between 2 Views Like Google+ Mobile?

Mar 23, 2012

I would like to move (right or left according the current view) between 2 views when I move my finger on the mobile screen; for example with Google+ mobile application, in profil section, you can change the view just on move your finger on the screen, and the offset and the moving speed must be checked before change complete view.

View 2 Replies

Flex :: Mobile Supports Native Mobile Features?

Jun 27, 2011

Does flex mobile supports In-App purchases, push notification etc that can run on all supported mobile platforms (iOS, Android, Blackberry playbook).

View 2 Replies

Flex :: Get List Item Selection Working When Using A Png Mask In An Item Renderer In A 4.5 Mobile App?

Jun 10, 2011

I'm creating a mobile app in which I need to show a calendar with months at the top. The months are part of a component that extends from SkinnableDataContainer (and has some custom scrolling/behaviour - which is why I did'nt use a spark list). I need the months to be shown as a 'trapezium' shaped tab and so I'm using a png image as a mask in the item renderer for the component.

When the mask is not applied, it all works well - the months render, the list/data container selection works when I click on a month and so on.When the mask is applied, it renders well, scrolling and everything else seems to work well - but when I click on a month, nothing happens visually. And from the trace statements in my code, it appears list item selection is not changing. Looks like mouse clicks are not working.

Code:

public class TopCalendarMonthRenderer extends LabelItemRenderer {
[Embed(source="/assets/trapezium_alpha.png")]
private static var TrapeziumMask:Class;
private static var trapeziumMaskInstance:BitmapAsset;

[code]...

View 1 Replies

Flex :: Inserting Objects Into Database From App Not Working?

Mar 1, 2012

I am trying to make a mobile app that inserts information into a database and while I have it pulling information and I have created my services, when I use the standard create service that Flash Builder 4.6 automatically makes, it just does not insert anything at all into the database.

Now, as far as I am concerned, this should then be writing to the database the items of SesID, Lat and Long using the created service token, but when I do this, nothing has entered into the database at all.

View 1 Replies

ActionScript 2.0 :: How To Use Shared Objects

Feb 28, 2006

I had been wondering how to use shared objects for a long time and thanks a million to this mini-tut:url...I know how. The only thing is it says that to clear a shared object, you must type (used in his example) [code]but what if i wanted to delete a certain block of data on it, for example I have the shared object user.And i don't want to delete all of it, but just one block of data (specifically user.data.doc)[code]

View 5 Replies

Using Same Shared Objects Across Multiple FLAs?

May 4, 2010

I am creating a small game for a project im doing it is only ten levels long but I wish to include feature such as saving etc. I have one some research on Shared Objects and it seems to be the best method. The idea I wish to execute is to have at the end of a level after reaching the levels goal have a piece of code that runs and saves that the next level has been unlocked. This seems relatively simple. However i have done things awkwardly i think, instead of creating the whole game within a single fla. each level is a seperate file, eg. level1.fla, level2.fla etc. Is it possible to use the same shared object across multiple .fla's?

View 3 Replies

ActionScript 1/2 :: Flash Log In From With Shared Objects?

Jul 10, 2009

So i want to create a flash log in and registration form for my flash game. THis game is played on your local PC not in the internet and i am using AS 2.0. So on the registration from i want to have two input text fileds: username and password. When you click on register the data from those fields to be saved as Shared Object and then on the log in when you type something in the log in fields (again two fields : username and password) the data that you wrote in those fields to pass trough the saved data as shared objects and if those two are the same then the log in is successfull if i want the movie to go on a certain frame whare it says access denied.

View 5 Replies

ActionScript 3.0 :: Shared Objects: Trying To Get A Grip?

Dec 1, 2009

I am reading the official Adobe PDF, Flash_as3_programming and am trying to get a grasp ofthe creation and use of Shared Objects. While the text does explain a lot, I am not understandingshared object store. When a .swf file is embedded in a web page, the shared object store wouldbe on the web site that hosts the .swf file? Is this a directory that contains files? How would an.swf file loaded into a client browser access these if they are on the remote host of the web site?

View 5 Replies

ActionScript 2.0 :: Scoreboard With Shared Objects?

Sep 7, 2010

I've done this flash scoreboard with shared objects.but what i can done is it will replace the 1st score in my scoreboard, it won't have 2nd, 3rd, 4th and etc...the script i used is:

ActionScript Code:
submit_btn.onPress = function()
{

[code].......

View 0 Replies

ActionScript 2.0 :: Persistent Shared Objects?

Jan 9, 2004

i'm overwriting the original SO each time i save to it here are my proto functions:

Code:
interfaceClass.prototype.saveLSO=function(){ //saves color set vars to local shared object (cookie) on disk
this.myN="gamecookie"; //name of cookie file
trace("saveLSO");[code]....

i know i should do some kind of test, but the way to do it eludes me.

View 2 Replies

Flash - Display Objects Not Aligning Correctly

Jan 6, 2010

I am aligning my display objects in the middle. stage.stageWidth/2. for some reason, they are aligning further off to the right of the screen. I haven't altered anything but the stage width in flash. Has anyone heard of this problem? Again, I haven't done anything except widen the screen and adjust the height.

My focus point on the display object is top left. So it aligns perfectly when set to 0,0
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.stageWidth = 300;

View 2 Replies

Java :: BlazeDS Not Mapping AS Objects Correctly?

Mar 25, 2011

I have 2 java classes that are the same (imagine the getters and setters):

class ScheduledEvent {
private String eventName;
private List<eventValues> values; [code]....

Now there is a reason why there are two classes that are the same.When something is "scheduled", I should get the ScheduleEvent object and when an event is started, I should get the StartEvent object.And depending on the object I get back, I do different things.My problem is that, on the backend, it will send me the ScheduleEvent object, but once it got to the flex side (via BlazeDS), it becomes a StartEvent....

At first, I thought it's because these two events have exactly the same variables, so I tried changing ScheduledEvent by adding a dummy variable (String foobar) but that didn't seem to make a difference.

EDIT: I'm using BlazeDS messaging system.That's why I am not using "one java method call to one responder" approach. So, in the message.body, I should be getting ScheduledEvent but I keep receiving StartEvent. I'm wondering if it's because the two objects have the same property and BlazeDS doesn't know how to map them correctly... I even put a break point in the java service layer, to make sure that the appropriate object is being sent back and it is... But by the time BlazeDS serializes and deserializes it to the flex side, it is now a StartEvent.

View 1 Replies

ActionScript 2.0 :: Losing Shared Objects On Update?

May 25, 2009

I just recently made an online game and was asked to implement saving features. Everything works fine but a single detail... When I update the swf (right now I have a new version with corrected bugs) people are gonna lose all their saved data !

Is there a way to use the same shared objects over multiple swf ? Or simply to keep them over the version change ?

View 1 Replies

ActionScript 2.0 :: Flash 8 - Scoreboard With Shared Objects

Sep 2, 2010

I've done this flash scoreboard with shared objects. But what I can done is it will replace the 1st score in my scoreboard, it won't have 2nd, 3rd, 4th and etc...

The script I used is:
submit_btn.onPress = function(){
//create a new sharedObject called 'userName'
var mySharedObject:SharedObject = SharedObject.getLocal("userName");
var mySharedObject2:SharedObject = SharedObject.getLocal("userScore");
//assign (data) the sharedObject (mySharedObject) a var called 'name1', which has the value of whatever is in textField 'save_txt'
[Code] .....

I want to have each higher score goes to the scoreboard, so will have 10 highest score in my scoreboard. Here is my attached file in CS5 format.

View 4 Replies

ActionScript 3.0 :: Sharing Shared Objects Between Swfs?

Sep 15, 2010

Anyway, Im currently making a flash game in a group as part of a university assignment. We have made several sections to this game in different swf files and need them to all be able to access the same sharedObject. Is this possible? At the moment, the two seperate swf's im using both have the same name for the object, so we assumed this would mean it would work between the two?

View 1 Replies

ActionScript 3.0 :: Shared Objects Accessed By Different SWFs?

Jan 25, 2011

how I can make a shared object be able to be accessed by different SWFs on the same server.

View 5 Replies

Flash :: Get All Shared Objects For Current Domain?

Aug 5, 2010

Using SharedObject.getLocal I can get access to what appears to be an infinite number of files simply by using unique identifiers in the method call; What I want to know is how can I retrieve a list of all active files or shared objects that have been saved for my current domain.

I'm trying to write a save game mechanism that allows you to save your game (potentially many megabytes) so using a single shared object seems like it might cause performance issues however if I use multiple objects I'm not sure how I'd find out what has been saved without using an object just to specify the id's of the other saves - then my question becomes what happens if this "header" object is removed or deleted - how can the player access the other files?

A snippet from the flash docs:

Local disk space considerations. Local shared objects have some limitations that are important to consider as you design your application. Sometimes SWF files may not be allowed to write local shared objects, and sometimes the data stored in local shared objects can be deleted without your knowledge. Flash Player users can manage the disk space that is available to individual domains or to all domains. When users decrease the amount of disk space available, some local shared objects may be deleted. Flash Player users also have privacy controls that can prevent third-party domains (domains other than the domain in the current browser address bar) from reading or writing local shared objects.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved