ActionScript 3.0 :: SharedObject Not Displaying Saved Information?

Sep 19, 2009

I'm using AS3 in timeline. I can't make a SharedObject display saved information. I have several frame labels (parte1, parte2... parte20). On parte8 I have a movie clip (whole_master), which contains three children movie clips placed on a separate frames (level_1, level_2, level_3). I would like to save the level of a game a user ends up with or exits the game. Then, we user returns and be able to go to the level he/she was playing.PROBLEM: The movie clip is on frame parte8, which isn't the first frame. However, when the user re-starts the game, the Shared Object should be read on frame 1.[Code].....

View 0 Replies


Similar Posts:


ActionScript 2.0 :: Reloading Saved SharedObject Vars

Nov 2, 2009

I'm now able to create a .sol file which stores the variables required to continue a game where a player left off.

Now, I don't know how to retrieve the saved information back into the game.

I'm using Flash MX.

Here's my situation:

The game stores six vaiables when a button is pressed:

SaveFile = SharedObject.getlocal("gameinfo");
SaveFile.data.str = player.str;
SaveFile.data.fir = player.fir;
SaveFile.data.end = player.end;

[Code].....

Now, I have a button, named "LoadButton_bt", which, when pressed, I wish to have the game load the saved variables in "gameinfo.sol". The tutorial on the web site by Jesse Stratford doesn't explain how to retrieve the data from a .sol object. I'm sure there's a simple code to accomplish this. Can someone help me with the script?

Remember, I'm a novice non-programmer who just managed to learn this much by self-education and research and asking questions like this which probably have obvious answers to pros like you guys, so talk down to me!

View 0 Replies

Data Integration :: SharedObject Saved On Hard-drive

Oct 22, 2006

I've created a SharedObject on My Computer, saved it in a movie, and ran the movie again and data came up well enough.My problem is, I want to delete the SharedObject saved on my hard-drive. I currenly have Flash 8, and Flash MX 2004 uses the .sol extention, but I can't find the SharedObject anywhere on my computer. With the release of Flash 8, did they change the SharedObject file extention? Is there a way to set up the path to which SharedObjects should be saved in your script file? The second parameter of the getLocal() method, stores a URL. Is that the same as a directory on your computer?

View 3 Replies

ActionScript 3.0 :: SharedObject - Save User Information And Score

Dec 16, 2009

I'm working on a project using AS3 and timeline coding. How to save user information and score. When I run the movie and complete form and answer quiz questions, information is displayed on closing section, but it doesn't save.

Here are the main sections by label:
// SECTIONS
Introduction (labeled "intro") -- contains directions
Information (labeled "inf") -- collects user information
quiz-questions (25 questions -- from q1 to q25) -- presents questions
closing (labeled "closing") -- displays user information plus score on quiz.

Here is the code by section
// SECTION INTRODUCTION
Section "intro" --- I have one button that goes to "inf" section
stop();
intro_bt.addEventListener(MouseEvent.CLICK, gotoInf);
function gotoInf(evt:MouseEvent): void{
[Code] .....

View 2 Replies

ActionScript 3.0 :: SharedObject Not Displaying Dynamic Text

Aug 23, 2009

I'm trying to figure out how to save input text using dynamic text boxes.I have two input boxes (box1 and box2) where user types first and last name. Two dynamic text boxes (box3 and box4) that will save user's first and last name.I can trace name and last names but not able to display dynamic text and save text from input boxes.[code]

View 3 Replies

Data Integration :: Filtering Displaying Dynamic Information

Jan 5, 2009

I want to create a Flash file so a user can check boxes to filter what images are displayed--the (unfiltered) images would come from an XML file. Or, a MySQL database if that's easier. Is this possible? If so, how?

View 3 Replies

ActionScript 2.0 :: CS3 - Pulling Information From A Database And Simply Displaying It In Text Field - Flash And IE7

Mar 19, 2010

Got a client that says that Flash ( a panel that is pulling information from a database and simply displaying it in text field.) is not working in IE7. I told them that this is impossible as Flash is completely crossbrowser compatible. Am I missing something?? Is it a possibility?

View 2 Replies

Media Server :: SharedObject.NoAccess Error When Trying To SharedObject.getRemote?

Feb 18, 2012

I've installed developer version of Flash Media Server 4.5 and trying to get remote object, but no matter how I call my object all i get is this error .I've rad configuration guide and it told me that I should set StorageDir for shared objects, enable RPC (<RPC enabled="true">) and allow shared object (<Allow>users</Allow> in <RPC> - <SharedObject> tags)

View 1 Replies

ActionScript 1/2 :: Getting Information From XML Information Sent To Flash File From The Socket Server

Jul 5, 2009

I'm kinda noobish when it comes to getting information from XML information sent to my flash file from the socket server. OK so for example the server sends me this:

[Code]...

I want to get the name of the user and the X and Y position! Is there a way I can get this information without a load of fuss from functions and other junk remember im kinda noobish.

View 1 Replies

Flash - Obtain System Information Or Cpu Information Using Adobe Flex?

Feb 11, 2011

I want to build a program built around my pc specs. Is there a way to access such information as how much ram I have or how much cpu usage is being consumed, etc.?

View 2 Replies

ActionScript 3.0 :: SharedObject Error: Error #2134: Cannot Create SharedObject?

May 9, 2011

Gives me this error:

Error: Error #2134: Cannot create SharedObject.
at flash.net::SharedObject$/getLocal()
at as3_shared_objects/showVar()

[code]....

View 2 Replies

Professional :: Last Changes Not Saved?

Sep 12, 2011

I have an issue with Flash CS 5.5When creating content and publish the swf and then save the fla file , all seem fine.When closing the fla and reopen it later, the last changes I made are not saved??This happens NOT every time.At first I thought it was me that I didn't save the document before closing, but no this really happens!
  
Menno
 
running Win7x64,  24 GB Ram,  GTX 580

View 20 Replies

Professional :: Cannot Publish A Saved Document In CS4

Feb 28, 2009

I only get this error when publishing in CS4 ''The parameter is incorrect' if I save the document. I really like saving my work,

View 9 Replies

Movie Won't Play Once It's Saved Or Published?

Jun 10, 2009

I am testing Flash CS4 at the moment, but something is wrong with it. What I did hundreds of times in CS3, here it just doesn't work.I used Adobe Media Encoder to make F4V from AVI. Then I imported that file to flash (load external video with playback component). Then I previewed it (ctrl+enter) and everything was fine, but once I saved (or published) it, the movie didn't play anymore. There was just background and no movie nor playback component.I tried encoding that file to FLV, even for older flash versions (I have the newest one installed), but that didn't help.

View 5 Replies

Increase Size Of Movie When Swf Saved?

Sep 3, 2009

How do you increase the size of an entire movie into an actual swf file? I note that increasing the stage size increases the "frame" that the movie opens in, but does not increase the size of the movie itself. I find a lot of stuff on the internet about sizing a flash movie using html embedding, and perhaps that is what I need...but what I really mean is change the size of the whole movie before it is saved as an SWF and within Flash itself. Is there a simple way to do this? I mean, once you have the movie in place but have simply not saved it to SWF yet. Again, I note that cghanging "size" on document properties enlarges the frame that the movie opens in but not the movie itself.

View 4 Replies

Professional :: Resizing Flas That Were Saved For A Cd Rom?

Mar 26, 2010

I have a client who has a Flash project that was used for a cd rom. The flas are 1000 x 1043. I need to know the best way to be able to save the entire presentation for the web. I already tried re saving the flas publishing in percentage that doesn't work. If I make the actual stage smaller the mc's and all dimensions would have to be made smaller manually am I correct.

View 1 Replies

Flash :: Pro V 11.5 Won't Load Graphics From Saved Fla

Aug 23, 2011

I have downloaded the latest flash pro cs5.5 package and installed it on 3 different windows XP machines and I get the same bad result.  This is Flash Pro 11.5.0.325 on XP SP3.

I made a small slideshow swf consisting of two jpeg images and nothing else. No music or other bells or whistles.Just 2 images converted to symbols, some keyframe/tween definitions with altered alpha channels.The slideshow runs perfectly and as I expect.

I save the slideshow as a .fla file.I need to add some more functionality from this plateau to show that the product can do what we need to the boss.

When I later load this .fla file, I don't see my graphics on the stage anymore. I right-click on the images and click on the option in the dialog to update the images. I see that the white stage now has the image I expected. When I close the dialog that lets me update the image flash pro abends and I get the crash dialog from microsoft.

Why can I make this slideshow and have it run perfectly, save it successfully (so I think) and then it won't load properly or let me work on it after one save?I have downloaded the latest flash pro cs5.5 package and installed it on 3 different windows XP machines and I get the same bad result.  This is Flash Pro 11.5.0.325 on XP SP3.

I made a small slideshow swf consisting of two jpeg images and nothing else.  No music or other bells or whistles.Just 2 images converted to symbols, some keyframe/tween definitions with altered alpha channels.The slideshow runs perfectly and as I expect.

I save the slideshow as a .fla file.I need to add some more functionality from this plateau to show that the product can do what we need to the boss.

View 3 Replies

ActionScript 3.0 :: Import A Saved Class?

Oct 14, 2011

if I created a customized class and I saved it as a "*.as" file, and now, I want to create a new "*.FLA" project and to use inside the "FLA" project at my customized class. how do I import my class into this project?

View 8 Replies

Flash :: SIFIR Does Ot Work When Saved In CS4

Jul 13, 2010

I am trying to use (sIFR) version 3, revision 419 When i test the defaults SWF files( that came whit the package ), it works fine. But when i edit with my own fonts, it does not work properly. Is there any issue, or something that i must to do?

View 1 Replies

ActionScript 3.0 :: Saved File Is Not Same As Original

Oct 30, 2008

i have files (.pdf, .doc or whatever) that i have to save from a CD projector to the user's computer.My problem is that the saved file is not the same as the original.[code]

View 4 Replies

ActionScript 3.0 :: Record More Than 2-3 Seconds And Then Listen Saved Mix?

Oct 27, 2011

check this code: [URL]

Try to record more than 2-3 seconds and then listen saved mix. Mixed sound is distorted after couple of seconds of recording Wav encoder is working ok...

View 1 Replies

Fash :: Professional - CS4 Preloader Does Not Work When Saved CS5

Jun 7, 2010

I just started working CS4 and finished my firest simple web page([URL]), nearly the way I wanted. Having little or no action code experience, I did what I could. Then CS4 was upgraded to CS5. When I opend the CS4 project and saved it to CS5 (making it irreversible), the preloader that worked in CS4 did not work in CS5.

View 2 Replies

ActionScript 3.0 :: Drag And Drop TextField (Saved As SWF)

Jul 2, 2010

I am trying to drag and drop a text field. So I have created a text field, and saved it as a swf. I then load it in using xml and the loader class. When I go to pick it up, I get the error
TypeError: Error #1034: Type Coercion failed: cannot convert flash.text::TextField@10d59b51 to flash.display.Sprite. at GalleryNew_fla::MainTimeline/pickUp()[GalleryNew_fla.MainTimeline::frame1:81]

It is specifically pointing to
function pickUp(event:MouseEvent):void {
getPosition(event.target);
stage.addChild(event.target as DisplayObject);
Sprite(event.target).startDrag(true);
}

View 7 Replies

Professional :: Signature Preferences (AIR) Are Not Saved In The Fla File?

Jul 17, 2010

- I create a new fla file in Flash CS5 Professional,- I go to publish settings and select AIR2 as the target- I click the Settings button on the rightThese settings are supposed to be saved with the fla file, since all of them are related to the project.Application name, icons, files to include, etc, are all preferences related to the fla file of which you are editing the settings.However, when you go to the "Signature" tab and select a digital certificate to sign the air application with, this setting will NOT be saved into the file.Instead, whenever you publish ANY air application, it will use by default the lastcertificate you have used, even if you used it to publish _another_ application.That is absurd, because this is a tab within the "publish settings" and all publish settings are specific to a fla file.

View 2 Replies

Media Server :: FLV Files Are Not Getting Saved At The Particular Location?

May 16, 2011

FLV files are not getting saved at the particular location mentioned in the application.xml file on FMS. Instead we are getting log in the log folder and instance which is joined to the FMS in the http folder on the FMS. Is their any way to find out why we are not getting saved those files at that location?

View 2 Replies

AS :: Flex - Loading And Setting Saved Value For A Menu?

Jan 24, 2012

I have a simple popup menu in flex, a mx Menu, and I use e Menu.initMenu to create the menu relying on an XML List defined as the data provider.The menu has check box items, and every time I call a load(values:Array) function in the class which contains the menu's instance, I want to check the relevant items.

View 1 Replies

ActionScript 2.0 :: Prevent SWF From Being Executed When Saved Or From The Cache?

Jan 18, 2005

Is there any ways to prevent the swf from running when someone tries to save the swf out from the website or from the Internet cache, retrived the swf and execute it?

I heard there is some codes to prevent it from happening, either to look for a web address or something.

View 1 Replies

ActionScript 2.0 :: Generate A Jpeg In Flash That Can Be Saved

Sep 27, 2007

Does anyone know how to generate a jpeg in Flash that can be saved, printed and sent via e-mail?

View 1 Replies

ActionScript 2.0 :: Load A .mp3 File Saved In A Database?

Feb 18, 2009

I have a flash audio player, and need to load a .mp3 file saved in a database. How can I do that?

I put the swf in the php file; I tried to insert some parameters, but nothing happens. I�m lost...

The connection in the php file is ok. I can see the data from the database.

View 2 Replies

IDE :: Red Dots Appearing On Saved Image (GIF File)?

Mar 21, 2009

I made a small .GIF file to show my abilities to my friend and what I can do but when I save it and I open it up on my desktop little red dots appear on the image. I go to import>movie file(to save as an animated gif.) then the red dots appear on the image.

View 1 Replies







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