Flash :: Persistent MP3 Player Using SharedObject?

Jul 2, 2009

I'm trying to create a persistent MP3 player using SharedObject. Initially I tried using frames and while it worked, frames suck so I continued looking into it.I came to find out about Flash's SharedObject. It seems easy enough but I can't nail down the logic correctly. I've attached a sample .fla for anyone interested to look at. I need the song progress to be stored and retrieved when necessary to keep the same song playing whenever links are clicked within the HTML page.

View 3 Replies


Similar Posts:


Flash - Creating Persistent MP3 Player Using SharedObject

Oct 8, 2010

I'm trying to create a persistent MP3 player using SharedObject. Initially I tried using frames and while it worked, frames suck so I continued looking into it. I came to find out about Flash's SharedObject. It seems easy enough but I can't nail down the logic correctly. I've attached a sample .fla for anyone interested to look at. I need the song progress to be stored and retrieved when necessary to keep the same song playing whenever links are clicked within the HTML page.
Here's a link to the .FLA - [URL]

View 1 Replies

ActionScript 3.0 :: Create A Persistent MP3 Player Using SharedObject?

Oct 8, 2010

I'm trying to create a persistent MP3 player using SharedObject. Initially I tried using frames and while it worked, frames suck so I continued looking into it.

I came to find out about Flash's SharedObject. It seems easy enough but I can't nail down the logic correctly. I've attached a sample .fla for anyone interested to look at. I need the song progress to be stored and retrieved when necessary to keep the same song playing whenever links are clicked within the HTML page.

View 3 Replies

Flash - Persistent Data In Actionscript 3?

Nov 24, 2010

What packages and/or classes do I want to look into when I'm trying to make a Flash program that will run on multiple desktop and mobile platforms and I want to use persistent data?

Edit:I am working on a program that will allow people to study certain texts following a daily study program. The text is different every day, and I want every person to be studying the same thing. I intend to export this to Projectors for Mac/Windows and I would like to allow people to use it on mobile devices as well. Preferably, the program should not require internet connectivity.

View 5 Replies

FLASH :: PHP - Persistent Connection (data Streaming)

Mar 11, 2012

The idea behind is a multiplayer browser game which interacts with a PHP server. Right now it works like this: Every second the browser is doing an ajax call to the php script which checks everything and returns the response. All in all it runs fine, but the problem is that the browser gets overloaded (because of thousands of ajax requests) after a while and it becomes impossible to play anymore. Also the delay of 1+ second is pretty much. My idea is to have a simple flash pixel which will have a 2-way communication with the server. For example:

[Code]...

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 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

ActionScript 2.0 :: Maintaining Persistent Variable In MC

Nov 25, 2003

I using FlashMX to read in a value from an ASP page into a dynamic text box. This works fine.

I then use a motion tween animation to tween into another image, and there I put another instance of the dynamic text box, with the same name, but the value doesn't populate the text box. It's as if it reads the variable into the text box, but if I do anything to the text box, it loses the variable and can't get it back.

Further, if I switch back to the first frame, the value won't populate either, I have to refresh the browser page to repopulate the variable (read the ASP page again.)

Is there a way to maintain this variable throughout the movie, so that I can re-use it?

View 4 Replies

ActionScript 2.0 :: Maintaining Persistent Variable In MC?

Nov 25, 2003

I then use a motion tween animation to tween into another image, and there I put another instance of the dynamic text box, with the same name, but the value doesn't populate the text box. It's as if it reads the variable into the text box, but if I do anything to the text box, it loses the variable and can't get it back.Further, if I switch back to the first frame, the value won't populate either, I have to refresh the browser page to repopulate the variable (read the ASP page again.)

View 4 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

ActionScript 1/2 :: XML.load Making Persistent Connection?

Mar 17, 2010

When we do XML.load on flash application, then we do netstat on the server-side it opens a persistent connection. Im finding out the reason why its doing that, it should be close right away when the xml loading has finished. problem is the connection remains open.

View 5 Replies

Flex :: Insert Persistent Images To A Video?

Sep 19, 2011

Is there a way to convert frames to a video in flex? If I have a video, I want to brand it by adding adding a persistent logo over it. Is it possible?

View 2 Replies

ActionScript 2.0 :: Removing Persistent XML Thumbnail Grid?

Jun 17, 2010

I have a question regarding the following tutorial and an older (inactive?) forum thread based around it:

Adding Thumbnails Tutorial XML and Flash Photo gallery with thumbnails in a grid (2006 - 2009)

I have multiple pages, several with thumbnail galleries, and several without. On the pages with the galleries, everything appears to render correctly. However, when I go from a gallery page to a page without a gallery, the thumbnails don't disappear. Instead, they remain on top of that page's content.

How do I get rid of the thumbnail gallery on non-gallery pages?

Code for the galleries:

Code:
cliparray = [];
columns = 3;
spacex = 100;

[Code]....

View 1 Replies

ActionScript 1/2 :: Changing HTML Content With A Persistent (always Loaded) Navigation SWF?

Oct 23, 2009

I need to develop a site with a navigation SWF file that changes the content of an HTML page, WITHOUT reloading itself and thus losing its current state. What I think I need to do to have smooth transitions, is keep the same swf file loaded, while having it change the page content below it.
 
I have some complex html content to include in the pages that is not supported by the tags available in Flash's dynamic text boxes. I have considered the idea of iframes, but I don't know how to load iframes using flash, or how to use them without refreshing the page.

View 1 Replies

Javascript :: Creating A Persistent Life Counter For A Facebook Game

Mar 20, 2012

i am currently working on a facebook game and i have a problem concerning the integration of a life counter which regenerates over time for a facebook game. The game is a simple Flash/AS3 shooter in which users are competing for the highest score. For monetary reasons every game costs one life and users should only be able to start a new game, if said life counter is >=1. To clear things up, i submitted a link to Popcap's facebook game "Zuma Blitz": ZUMA Blitz I can think of a few ways to do this, but i don't know which is the best/easiest approach. Would it be best to:

[Code]....

View 2 Replies

ActionScript 3.0 :: Creating A Persistent Life Counter For A Facebook Game

Mar 20, 2012

i am currently working on a facebook game and i have a problem concerning the integration of a life counter which regenerates over time for a facebook game.The game is a simple Flash/AS3 shooter in which users are competing for the highest score.For monetary reasons every game costs one life and users should only be able to start a new game, if said life counter is >=1.To clear things up, i submitted a picture of the life counter of Popcap's facebook game "Zuma Blitz":

I can think of a few ways to do this, but i don't know which is the best/easiest approach.Would it be best to:Make it in AS3 with server communication via php?Or do it in JavaScript and communicate the count back to AS3?Another maybe related question is, how do i tell my database that the data from the life counter should be stored when the game is closed (for example by closing the browser).Can i do this from Flash or do i have to apply a html/JavaScript method?

View 1 Replies

ActionScript 2.0 :: Making Externally Loaded Content Of Movie Clips Persistent?

Aug 3, 2009

I'm making a very simple cross-fading slide show of JPEGs loaded from a folder. I'm loading them into movie clips with:

Code:
holder1_mc.loadMovie("images/home_flash/image1.jpg");
holder2_mc.loadMovie("images/home_flash/image2.jpg");

[code]....

View 2 Replies

Flash - Use SharedObject From An External Swf?

Feb 4, 2011

I have a slideshow that everytime you press a button show a new slide. Every slide is an external swf's that is being loaded in to the main swf. Inside every external swf there is a button that redirects you to another web page.What i would like to do is use SharedObject (or something like it) to remember wich external swf that was last shown when the user pressed the button redirecting them to an other page.How do i set the SharedObject in the external swf and then read it from the main swf?

View 1 Replies

Flash :: Set SharedObject Maximum Size?

Mar 8, 2011

Is there a way to set a (large) maximum size for SharedObject on my domain so that I can ask the user to allocate a size greater than 100k one time and not need to ask again, even if data is added?

View 1 Replies

Flash :: Sharedobject Don't Remember Data?

Sep 27, 2011

I have this code for sharedobject:

var mySharedObject = SharedObject.getLocal("republicofcode");
mySharedObject.data.clientID = my_vars.clientID;
mySharedObject.data.question = my_vars.question;

[code].....

View 1 Replies

Php :: Flash - Saving Variable Imported From SQL Using PHP Into SharedObject?

Feb 14, 2010

I am creating a game which uses the sharedObject to save each players progress locally. It also connects to a central database to create an online scoreboard. When a user inserts a score for the first time a unique ID is sent out of the database to the swf and saved as part of the sharedObject data.Absolutely everything works and the ID is saved to the sharedObject, however when the swf is restarted the ID does not load (even though the other variables saved in the sharedObject do load).I think it may be to do with the way it is formatted, perhaps to do with the XML but I'm not sure.

FLASH CODE
function saveGame(currID:Number) {
gameInfo.data["playername"+currID] = playername;

[code].....

View 2 Replies

Flash :: Setting Initial Position Using SharedObject?

Aug 8, 2011

I have created a simple audio player to play continuously even if the page is refresh it will play continuously.This is my code to store audio position in flash Temp memory

MySharedObject.data.audioPos = mySndChannel.position;
MySharedObject.flush();

MyProblem,When the player starts the sndPosition is null, so it was not playing. If I set some value, when I am refreshing it will not continue from the last position. How can I set the initial position to play from the start?

View 1 Replies

ActionScript 3.0 :: Flash Getting ObjectEncoding Of SharedObject (SOL File)?

Aug 12, 2010

Is there a possibility to find out which objectEncoding was used for a loaded SOL file? (The properity is always defaultObjectEncoding when not manualy set)

View 3 Replies

ActionScript 3.0 :: Flash - Use Sharedobject Into The Document Class Of The .fla?

Apr 10, 2011

Can i use sharedobject into the document class of the .fla?

View 1 Replies

Sharedobject - Creating A Pacman-style Game Using Flash ?

Sep 22, 2010

Creating a pacman-style game using Flash (AS3). There are 3 players competing to eat the most dots. Right now when one player eats a dot, on that player's screen the dot goes away (but only for a second) and appears again in the screen. The other player playing, doesn't see that the dot went away and reappeared.Using hitTestObject, when a player touches a dot, the dot should no longer be seen on the stage. I'm using shared object to create this multi-player game environment. I'm new in using SharedObject and also AS3.

public function PlayerSelect()
{
nc = new NetConnection();[code]....

View 1 Replies

Flash :: Saving Bytecode Of A Class (to SharedObject Or Database)

Mar 11, 2011

NOTE: I want to save the actual bytecode for the AS3 class, NOT an instance of it! A class is being loaded in externally and extracted via a URLLoader and then Loader.loadBytes. A single Class is then extracted out of that Application Domain and used in the project. Now, rather than saving the entire Loader (either via SharedObject or other means of storage) is it possible to "extract out" the bytecode of the needed class and all dependencies, which can then be "injected" back into an empty shell or something to be reused when needed?

View 2 Replies

Flash :: Flex 4.5 IOS Mobile Project: SharedObject Doesn't Seem To Work

Oct 27, 2011

I'm trying to use a SharedObject in a Flex 4.5 mobile project. The SDK I'm using is 4.5.1, and the AIR version is 2.6.0. I'm trying to locally store user credentials for my application using this piece of code:

[Code]...

View 2 Replies

Actionscript 3 :: Flex - Prevent Tooltips From Hiding Persistent Tooltips?

Oct 19, 2010

I'm trying to prevent a custom tooltip from disappearing. I've tried three runs at this, borrowing from the usual suspects: Peter Dehann, MonkeyPatch and others. As you can see from the code below I'd like to stay within the tool tip paradigm and not go to popups.

way to persist a tooltip? The intent here is to have a component which can be cut and paste from.

[Code]...

View 1 Replies

Professional :: Loader Component Works When Publish To Flash Player 7 But Not In Flash Player 8

Jul 5, 2010

My loader component works when I publish to Flash Player 7 but not when I publish to Flash Player 8, why? The publish setting are for ActionScript 2.0 on both.

View 2 Replies

ActionScript 3.0 :: Create A Flash Player To Display Images In Sequence Using Flash Player

Jul 25, 2011

I am trying to create a flash player to display images in sequence using Flash player & ActionScript.  The code below has lots of errors and I can't work them out. I have programmed in other languages and am perfectly aware that something like this.
 
*code*var imageLoader:Loader;imageLoader = new Loader();  // 1120: Access to undefined property imageLoader*/code* 
OR*code*var imageLoader:Loader = new Loader(); // 1046: Type was not found or was not a compile-time: Loder*/code*

[Code]...

View 9 Replies







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