ActionScript 3.0 :: Multiple Frame Labels - Shared Object Not Working

Sep 13, 2009

I'm working on AS3 on main timeline. I have 20 frame labels parte1 to parte20. On parte1 I have a preloader and SharedOject code. The preloader works fine. On parte8 I have a movie clip (whole_master), which contains three frame levels (g_level_1, g_level_22, and g_level_33). Each frame contains a level of a game. My sharedObject doesn't work.

Code:
//Saving data
var so=SharedObject.getLocal("learningGames", "/");
so.data.whole_master=whole_master;so.data.g_level_1=whole_master.g_level_1; so.data.g_level_22 =whole_master.g_level_22;so.data.g_level_33 =whole_master.g_level_33;
//testing if shared object exists
[Code] .....

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Loading Multiple SWF Using Loader Class And Frame Labels

Mar 22, 2009

I've been loading multiple SWF using the loader class and Frame Labels. I get this error script when clicking my drop down menu buttons:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at ZimIndex7_fla::mcMenu_5/buttonClick()[ZimIndex7_fla.mcMenu_5::frame1: 6]

View 1 Replies

ActionScript 3.0 :: Using Database To Send Multiple Movieclips To Different Frame Labels

Jul 22, 2011

I have code to send a movieclip to a frame label which works just fine, but I want to pull the frame labels from a database for multiple movieclips and send them to different frames.. the following works :-
 
tab1.gotoAndStop('Roleplay');
 
but once in a loop, I'm having problems... is it down to the syntax ?
 
for (i = 1; i <= 4; i++) {
var currentTab:String = "tab" + i;        var currentTag:String = event.target.data["tag" + i];
[currentTab]gotoAndStop(currentTag);
}

View 1 Replies

ActionScript 2.0 :: Shared Object Not Working?

May 5, 2005

Does anyone knows why the output is "undefined"?:

mySo = SharedObject.getLocal("kookie");
myButton.onPress = function(){
mySo.data.nome = "dados de utilizador";

[code]....

View 2 Replies

ActionScript 1/2 :: 1 Shared Object For Multiple SWF?

Sep 21, 2009

I have 2 ways of accessing info in my course files (SWFs): text-only and audio playback. I'd like to use shared object to store the user preference so it remembers the setting when navigating between screens. It stores info file but each file creates its own shared object.
 
for example:
<path to the swf>page1.swfcoursename.sol
<path to the swf>page2.swfcoursename.sol
<path to the swf>page3.swfcoursename.sol
 
Since it writes and reads the SOL file of its own folder, the user setting isn't remembered when switching pages.

View 3 Replies

ActionScript 2.0 :: Shared Object Not Working On Server

Apr 17, 2006

I have followed the tutorial on Shared Objects with possitive results, and have found answers in the forums, only thing is, as soon as I get my files on the server VERY strange things start happening. (Locally there is no problem) I have two files in the same folder (on the server and locally)

[Code]...

View 5 Replies

ActionScript 2.0 :: Shared Object To Save Multiple Data

Dec 3, 2011

I am new to ActionScript. I am designing a calendar with schedule just like outlook calendar. I have 30 or 31 small text boxes for each month. I would like to save data in the text boxes so that data remains in that even when the file is closed. I used the following code and it works fine.

[Code]....

My question is, I have totally more than 360 text boxes for 12 months. How can I save all data using shared object? I tried loop, Array and function with the above code. But it did not work. You can also tell me if there is any other way to save data using PHP MySQL or ASP? If so how to do that?

View 9 Replies

ActionScript 2.0 :: [FMX] - Creating Shared Object Arrays For Multiple Users?

Aug 26, 2004

I am creating a computer game with a save game function which outputs the contents of an array to a shared object, so that users don't loose their place.However, I wish for this to work with multiple users, and realise that to do this I need a new seperate "folder" within the shared object being created for each new users data array.I know it must be something like....

// Define the shared object using a "sublevel" for each users data array...
_root.savegame.sublevel = sharedobject.getLocal("savegame"; "/");
// somehow dynamically change "sublevel" to the contents of the var "currentUser" as defined when the user logs in when the game loads up.

OR...

//Define the shared object but using a variable title for the actual SO...
_root.savegame = sharedobject.getLocal("savegame_currentUser", "/");
//with that "currentUser" being dynamically substituted for the contents of the var "currentUser" which is defined when the User logs in when the game loads up.

View 4 Replies

Flash :: IDE - Media Server - Get Multiple Users To Control One Shared Object

Nov 19, 2009

i am trying to develop a multiplayer game using the flash media server. Currently i can get multiple users to control one shared object but i need to have 2 users controlling seperate shared objects on the same stage.

[Code]...

View 1 Replies

ActionScript 3.0 :: On Entering First Frame, Get Shared Object Values, Enter Into Variables

Apr 7, 2011

I am trying to create an AS3 Fla to score a quiz's results. The quiz is a separate swf that stores its results to a shared object ("G1"), and both the quiz swf and this new scoring swf would reside on the same website.
 
I've tried scripting the AS3 in the new scoring Fla but I keep getting error messages.
 
So far, here's what I have that doesn't work.

[Code]....
 
The goal is to open the scoring swf, populate some variables with the values from the SO, then (not yet tried in the script) apply some if/else conditions to show specific results based on scores.

View 3 Replies

Media Server :: Write Remote Shared Object Sequentially When Multiple Users Are Connected?

Mar 31, 2010

I am using FMS3 and Flash CS3 (actionscript2) in a Flash based whiteboard application. Multiple users can join this whiteboard. I want to save chat text and drawing in same sequence as live time. I am using persistant remote shared object to save these data. But when i try to replay these data its not showing in same squence as live . I am generating unique slot for chat and drawing but still same error occuring.

View 8 Replies

ActionScript 2.0 :: Multiple Conditions - An Object Will Go To A New Frame If Multiple Buttons Are Pressed?

Aug 12, 2009

i have an if statement, an object will go to a new frame if multiple buttons are pressed

PHP Code:[code].....

now i want it so that if one condition is met the mc will goto frame 2, if 2 conditions are met, frame 3 and if 3 conditions are met, frame 4.i know i could do this with a lot of if statements but i have a lot of movie clips to use this code on, so is there any way to write an if statement that will trigger different options if multiple conditions are met?

View 4 Replies

ActionScript 2.0 :: Shared Object Not Working - Output Is "undefined"

May 5, 2005

Does anyone knows why the output is "undefined"?:

mySo = SharedObject.getLocal("kookie");
myButton.onPress = function(){
mySo.data.nome = "dados de utilizador";
mySo.flush();
trace(mySo.nome);
}

View 2 Replies

ActionScript 3.0 :: AIR Shared Object Shared Between Flash & AIR?

Mar 13, 2009

I created a very simple experiment to attempt to access the same shared object in Flash Player and AIR.

A Flash SWF creates a local shared object.

A AIR application (being tested from CS3 or installed) opens the same shared object.

The data does not persist. Is this theoretically possible?

View 1 Replies

ActionScript 1/2 :: Multiple Button Actions Not Working In Frame

Oct 10, 2009

In the first frame of an fla I have the code below, only the functions in red works. When rolling over the second only the first function in blue works but the mouse freezes when attempting to rollout (green). But if I remove the code from the first frame and code each seperate button the functions work.

Any reason for this
stop();
btn_shopping.onRollOver = function () {
gotoAndStop(2)_root.main_mc.gotoAndStop(1065);
} btn_shopping.onRollOut = function () {
gotoAndStop(1)_root.main_mc.gotoAndPlay(162);
} btn_pen.onRollOver = function () {
gotoAndStop(3)_root.main_mc.gotoAndStop(1066);
} btn_pen.onRollOut = function (){
gotoAndStop(1)_root.main_mc.gotoAndPlay(283);}

View 2 Replies

ActionScript 1/2 :: Navigate From Btn Of Mc_B To FRAME Of Mc_A Using Frame Labels?

Jul 28, 2009

Im using Flash MX (the pre-02004 version) to design a photo portfolio that will be distributed on CDs to potential clients.Its broken up into subject galleries, each of which is its own movie clip.The pages of those gallery movie clips are all separate movie clips, too, regardless of whether they contain single images or layouts of images. Frame labels with stop codes separate each gallery_mc.

Within each gallery, previous and next buttons allow page-to-page navigation.From the last page of gallery_A_mc (e.g.), I can to go to the first page of gallery_B_mc by using the following ActionScript:

on (release) {
this._parent.gotoAndStop("gallery_B_FrameLabel");
}[code]....

Id think that this should make it go to frame 5 of gallery_B_mc,which is on the gallery_B_ FrameLabel, but it doesn't make it go anywhere.

on (release) {
this._parent.gotoAndStop("gallery_B_mc", 5);
}

Also doesnt make it go anywhere.

View 7 Replies

ActionScript 2.0 :: Frame Labels And Frame Numbers?

Feb 19, 2002

For example if I wanted an action to occur untilt the movie hit the frame label I would ideally be able to do somethign along the lines of:

do {
play ();
} while (_currentFrame != "label name");

This does not seem to work, but I am hoping that this is close to something that willObviously, I can put an action to stop the clip in the labeled frame, but I only want it to stop there under certain conditions . . .

View 2 Replies

ActionScript 3.0 :: Using Frame Labels Instead Of Frame Numbers?

Mar 2, 2012

I am building a large project that could be subject to change during it's construction, I am stressing out a bit because I am relying on the timeline to go foward and backward through the structure, (as well as user having the ability to use a menu to go where ever they want). So apart form the menu that specifies where to go, there is a forward and back button using next and previous frame to go forward and backwards.

So, what if after building a large section of this, the client wants to put in an extra page? this will upset all of my navigation (OR if I put the extra page at the end of the timeline the menu will work fine but the forward adn backwards buttons wont work properly) So should I be using frame labels instead of frame numbers? (How do I do this gotoAndStop(?) Or is there some other way I should be approaching this? like having a variable to keep track of page number instead of frame numbers?

View 5 Replies

ActionScript 3.0 :: Different Frame Labels Are At Frame 1?

Apr 13, 2010

I added some actionscript 3 to an app with 5 repeated sets of animations each beginning with a different frame label. The different frame labels are at frame 1, 31, 61, 91, and 121. Here is the actionscript.

[Code]...

View 2 Replies

Use Frame Labels Instead Of Frame Numbers?

Mar 1, 2012

I am building a large project that could be subject to change during it's construction, I am stressing out a bit because I am relying on the timeline to go foward and backward through the structure, (as well as user having the ability to use a menu to go where ever they want). So apart form the menu that specifies where to go, there is a forward and back button using next and previous frame to go forward and backwards.

..  So, what if after building a large section of this, the client wants to put in an extra page? this will upset all of my navigation (OR if I put the extra page at the end of the timeline the menu will work fine but the forward adn backwards buttons wont work properly)
 
So should I be using frame labels instead of frame numbers?  (How do I do this gotoAndStop(? );)Or is there some other way I should be approaching this? like haveing a variable to keep track of page number instead of frame numbers? Use frame labels instead of frame numbers?

View 5 Replies

ActionScript 3.0 :: Save Visual Object Data In Shared Object?

Jan 22, 2011

I'm using a loader for people to use to upload their own images for a background, and I want it to remember the image the next time they come to the page, so is there any way to save the loader data in a shared object? I haven't tried just using something like

Code:
sharedObject.data.dataName=loader

because I assume it doesn't work that way.

View 9 Replies

ActionScript 2.0 :: Labels/ Buttons Not Working

Jan 1, 2010

I've got a movieclip which contains 4 buttons and 4 labels.

The buttons work but once you've been past a label it won't go back to a previous label so it's just linear.

I'm using the following coding:

Buttons: arrow1, arrow2, arrow3, arrow4. And the labels are the same for each.

ActionScript Code:

PHP Code:

arrow1.onPress = function() {
gotoAndStop("arrow1");
};
arrow2.onPress = function() {

[Code]......

View 2 Replies

ActionScript 2.0 :: Labels/ Buttons Not Working?

Jan 2, 2010

I've got a movieclip which contains 4 buttons and 4 labels.

The buttons work but once you've been past a label it won't go back to a previous label so it's just linear.

I'm using the following coding:

Buttons: arrow1, arrow2, arrow3, arrow4. And the labels are the same for each.

ActionScript Code:
arrow1.onRelease = function() {
gotoAndStop("arrow1");

[Code].....

View 1 Replies

ActionScript 3.0 :: 20 Labels Gotoandstop Not Working?

May 19, 2010

I have Scene 1 and in it, I have 20 frames all labeled with their unique names.I have 20 buttons to click that takes me to different labeled frames. So far so good..... until..... the moment when some of the buttons don't work. I can't repeat the same code e.g.

en_top_entert.addEventListener(MouseEvent.CLICK, myEntert);
function myEntert(curEvt:MouseEvent) {
gotoAndStop("enEntert");

[code].....

View 2 Replies

Navigate Among Frame Labels?

Sep 15, 2009

I use scrollbar at the bottom of the timeline to go to different frames. This is slow if I have thousands of frames. I wonder if there is a similar interface like the Actions window for labels on timeline. I mean you can see all the scripts at left pane and be able to go there directly by clicking on anyone on the list. I would be nice if you can see all your labels in a menu and click to go there directly (I believe Director has that). Maybe I can put some dummy script in different label and then I can use Action window to travel to there.

View 2 Replies

ActionScript 2.0 :: Go To Frame Labels Of A MC?

Nov 19, 2003

I have a button on the main stage, and a movieclip "qccontent". When the user presses the button, I am trying to check if the MC is on a specific frame label. The MC starts on a stopped frame labeled "closed".

Right now, each time the button is pressed, it currently goes and plays the label "closemenohit". It is not reading the first part.

[AS]
on (release) {
if (_root.qccontent._currentframe("closed")) {
_root.qccontent.gotoAndPlay("openme");

[Code].....

View 2 Replies

ActionScript 2.0 :: AttachMovie Function Not Working - Omitting Labels

Feb 10, 2009

The lineholder code below draws tickers on an axis for every 12th data point. It should also attach a year label every 12th data point. For this I have tried to use attachMovie. I've used it before and it's worked fine, but this code draws the line and omits the label (gives no error).

Code:
for (var a:Number = startPoint; a<_root.dataPoints[0].length; a++) {
if (b==12) {
//should attach date label
var myYear:MovieClip = _root.attachMovie("mc_dateLabel","mc_"+a,_root.getNextHighestDepth(),{_x:500, _y:300});
[Code] .....

View 1 Replies

ActionScript 3.0 :: Using Frame Labels As Variables?

Apr 1, 2010

I have a Flash project with several labeled frames. The user will be doing a lot of moving about those frames, so I wanted to simplify my navigational interface code-wise. There are six buttons, I have attached functions to them like so:

Actionscript Code:
topnavbt.addEventListener(MouseEvent.MOUSE_DOWN,lookUp);function lookUp(event:MouseEvent):void { 

[code]...

...instead, I get "TypeError: Error #1034: Type Coercion failed: cannot convert "skylights" to flash.display.FrameLabel."

I can't seem to wrap my head around what these errors are saying, but I'm sure there's a simple solution I'm missing. I think I just don't know how to define the frame label correctly.

View 2 Replies

Preload Movie At Different Frame Labels

Aug 16, 2009

I've got a preloader file for a website which loads my main movie into an empty movie clip. I need to create different versions of the loader which load the same main movie but at different frame labels (each frame label is a section my site- about, contact etc.) Here is the relevent part of the actionscript for my preloader. I can't seem to get it to load to, for example, frame 3 which is a label called "credits"

[Code]...

View 5 Replies

Flash - Link To Frame Labels

Apr 21, 2010

I have a mainMovie clip that consist of different movie clips. Inside of my mainMovi I have another movie clip that is called "Menus" this where all my navigation is but the frame labels are inside the mainMovie.

[Code]....

View 1 Replies







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