ActionScript 2.0 :: Share Data Between Different Flash .swfs On A Homepage?
Sep 22, 2004
recently i needed to share data between different flash .swfs on a homepage.. so i tried to use Shared Objects to do so..
sofar its fine.. i tried it .. and as long as the data is stored on my harddisk.. the sharedObject "cookies" work fine.. but when i put the site online.. they simply dont work anymore..
could this have something to do with security settings of the browser used?. doesnt a web browser allow flash to access the harddisk to read and write shared objects..
is there another.. simpler and more reliable way to send data from one .swf file to another..?? (without using php -> my webserver doesnt support this sofar )
View 1 Replies
Similar Posts:
Sep 22, 2004
alright.. recently i needed to share data between different flash .swfs on a homepage.. so i tried to use Shared Objects to do so. sofar its fine.. i tried it .. and as long as the data is stored on my harddisk. the sharedObject "cookies" work fine.. but when i put the site online.. they simply dont work anymore..
could this have something to do with security settings of the browser used?.. doesnt a web browser allow flash to access the harddisk to read and write shared objects.. is there another.. simpler and more reliable way to send data from one .swf file to another..?? (without using php -> my webserver doesnt support this sofar )
View 1 Replies
Sep 24, 2009
Lets say I have two swfs A and B, and at runtime, swf A loads swf B, and I wish to share code between them, to minimize file size and download times.
If swf B has some code (say. com.blah.HelloWorld), I tell the compiler to have swf B's source in swf A's classpath, but only do a compile-time link and not actually compile com.blah.HelloWorld into swf A
This works, and I have tried it, using a the -includes and -externs compiler options.
However, My problem is that I wish to do this the other way. i.e. swf A and B (and potentially swf C) all need com.blah.HelloWorld, but I want com.blah.HelloWorld to be compiled into just swf A, have it as an external reference in swf B ( and potentially C as well.)
I tried doing this using the externs and includes, but I get ReferenceErrors when I do this.
I want to do this without a having a separate rsl, so I can reduce the number of http requests.
View 3 Replies
Jan 4, 2010
I am trying to create a login system where a user would be able to login inside of one flash game on say, [URL], and then that same login data would be preserved for all the games on [URL] and also the games on [URL] and [URL] I am new to shared objects in flash so if anybody knows of a way to do this in either php, as3, html, js (or a mixture of all) then that would be great.
(PS. I would prefer not to use a method that requires a javascript bridge to retrieve cookies as this is impossible for games that are played on game-portal sites where only a swf file is used)
View 1 Replies
Jan 18, 2011
Is there a way I can share sound assets between parent and child swfs?
Currently, I have a parent swf that loads a child swf (and each have preloaders) and some of them have the same sound assets. I would rather only load the sounds once... can I reference a sound even if it 'lives' in another swf?
View 1 Replies
Feb 19, 2012
I work in a theatre and I'm looking to create a seat map that can be shown to members of the public as they book their seats, so they can see where they are going to be sitting. The main problem I've come up against is that the person viewing the application, will not be using it. I need the Box Office clerk to be able to input data, and then the seating plan shows the seats on a second monitor (public facing)
What I thought of doing was to create 2 flash applications and used Shared Objects to pass data from one to the other. In the Clerk application, they would input the seats that are being requested and click Submit (or whatever). In the Public application, these seats would then be highlighted. Ideally, another dynamic image would change to show the view from that general area of seating.
View 27 Replies
Sep 9, 2010
Is there a way to share common .as files with multiple swfs?
View 5 Replies
Dec 21, 2010
I am aware that I can share simple Objects using LocalConnection, but this does not (in my limited testing) appear to work with NetConnection or NetStream.
In short, I wish to have a single SWF that acts as a NetConnection proxy for other SWF files in the HTML page. The client SWFs require direct access to NetStream objects on the proxys NetConnection.
Is this at all feasible, or will each client SWF require its own NetConnection?
I am aware that I could build the entire application in flash and utilize a single NetConnection internally, but this is NOT what I want to do.
View 1 Replies
Aug 30, 2009
Is there any way to exchange data between 2 swf's?
View 2 Replies
Jul 9, 2009
I have a Flex application that I'm working on for a new job. It's sort of a training wheels application -- I'm learning the language, and this isn't an app that needs to talk to a service in order to do its job. There are a few instances of combo boxes throughout the application that share the same set of possible values (say, a selection of states: "In Progress", "Rejected", "Complete") that I want to have use the same data source.
What is the best way to manage this?
View 2 Replies
Apr 26, 2011
I have an application where I'm loading in XML data externally. What i'm trying to figure out is the best way to store this data in my application so that I can pass the relevant XML or data to my custom classes.
Basically I have a navigation and gallery class I have written both of which are instantiated on the document class, I would like to pass them each their corresponding XML. My question is whether I should store or seperate the xml into objects in the document class first, or simply pass each class its own xml node? Is there another/more preferable way to handle XML data between custom classes?
View 2 Replies
Jan 12, 2011
How to share TextArea Component in multiple swfsaylib.swf (has TextArea Componenet)main.swf (Import TextArea Componenet from lib.swf)section.swf (Import TextArea Componenet from lib.swf)
View 1 Replies
Apr 26, 2011
I've been working in as3 for quite a while now, trying various methods of loading in XML and parsing it between custom classes - from storing the XML data using objects, storing it in arrays and then parsing it to my custom classes, or parsing XML nodes directly between their relevant classes. how best to store and parse data from XML throughout my classes.
Should I be extracting it all in the document class first, into arrays or objects, and then parsing the array or object to the relevant class? Or simply parsing the XML node that relates to the class and extracting the data there?I've also heard that looping through XML and storing the data in multi-dimentional arrays before parsing it, is the way to go.. some have also suggested using a separate public data class or singleton class to store all the variable data from xml.. and referencing it globally in each class.
View 3 Replies
Apr 26, 2011
I've been working in as3 for quite a while now, trying various methods of loading in XML and parsing it between classes - from storing the XML data using objects, storing it in arrays, or parsing XML nodes directly between their relevant classes. Should I be extracting it all in the document class first, into arrays, or objects and then parsing the array or object to the relevant class? Or simply parsing the XML node that relates to the class and extracting it there?I've also heard that looping through XML and storing the data in multi-dimentional arrays before parsing it, is the way to go.. some have also suggested using a separate public data class to store all the variables from xml.. and referencing it globally.
View 0 Replies
Jun 23, 2011
I am using a local connection to share data between 2 apps. The receiver has a function that runs every time new data is sent. I need to run another function every time that function runs, how can i do this?
View 2 Replies
Sep 21, 2006
I need to pass and update data from a swf to an embedded loaded swf and between embedded swfs. The easiest way I can see is to put the data in a file (very small amount of data) and read from and write to the file (XML would be OK). However I cannot see how to write a file without firing off a browser window. Reading a file is fine. It is the writing that is a problem. Even cookies or similar would be OK. I can use PHP but going via the server seems OTT.
View 3 Replies
Jul 13, 2011
been looking around for a while for this, searched for it here at as.org, scanning every article and archive I could find from the last 10 years. It just seems like how to do it right is not currently out there. Assuming coding has improved, and all of us are much smarter and more experienced than we were last decade, I bring it up once more.
View 7 Replies
Apr 23, 2009
I'm sorry if this is the oldest flash question in the book, but I created an intro in AS3 and I don't know how to get the movie to automatically go to home page after it plays through. I added a skip button and have that part working, but I don't get the other part.
View 1 Replies
Jun 25, 2009
I have recently created a flash site and I am trying to update my online portfolio. How do I take a snapshot of the homepage of the flash site for my portfolio?
View 2 Replies
Jul 8, 2011
How does one program in AS2/AS3 a "set as homepage" button?
View 1 Replies
Aug 9, 2010
i downloaded a free of use gallery from (this gallery) and i'm trying to load it in my flash site .. now, the gallery works if i open it directly (i open the swf file)when i try to load the external swf file into my siteloadMovie("image_gallery.swf", box);then the movie loads .. the gallery is displayed the message "loading xml file" displays and then when the xml is loaded the message "loading image 1/7" displays and only the first image loads.
once the first image is loaded it will not be displayed (it remains outside of my swf file .. i can see it when i resize the window) and no other images will be loaded.if i open the gallery.sfw file again everything works fine .. the problem is only if i try to load the gallery.swf in another swf ..something must be wrong ..i tryed to opern the gallery.fla file and copt everything directly in my site and the problem remains the same .. only 1 image loaded and not displayed in the gallery
View 3 Replies
Jan 6, 2010
We are revising our company website and I wondered if it considered bad practise to use flash on the home page.This would cause issues for those users who dont have flash installed (and maybe dont want flash)
View 3 Replies
Jul 8, 2010
have only a little question .. :I'm actualy working on Adobe Flash CS5 but i don't really know how it works. Then i donwloaded a flash website on internet and i can modify the main part of it but i have a problem when i'm trying to add a Cbox in my homepage. It's a basic Cbox from Cbox.ws so it's totaly in HTML. I don't know how include it in a part of my pageIt means that i would like display my Cbox on my flash homepage from HTML code
View 4 Replies
Aug 24, 2011
how to pass data between 2 swfs better way then LocalConnection.I tried Localconnection but it seems slow and unreliable.id did test passing array 5000 items 200k bites in total
I sent row by row (on success sent next row).it took me 90 sec to pass data from one swf to another and it failed on second attempt.Is any other way to establish bridge between 2 stand alone swfs?
View 2 Replies
Jun 17, 2008
I'm updating a flash player some other guys built, it's in good shape but the functionality that my client wants me to add seemed easy at first but turned into a *nice* little puzzle. What I'm trying to do is a "reverse" xml load. Reverse because the way I've done it is have flash load an xml and parse it within the swf. But this one is the reverse of that. Basically I have multiple swfs that need to be dynamically populated by one xml file. Each swf (the same .swf) needs different text and images. I can see trying to do it a number of ways but their all leading to dark tunnels I don't know if I can get out of.
View 1 Replies
Sep 15, 2011
I'm struggling shaking my old school AS2 mindset here. I've got a main swf which loads a bunch of subordinate swfs. I need my loaded swfs to see some variables in the main. For instance (example simplified for conversational purposes), let's say I've got a swf loading (we'll say littleSwf), which needs to set its rotation based on a variable (we'll say swfRotation) in the main. The rotation code is inside of the little swf. How does that little swf get told / find out what its rotation number is?
View 2 Replies
Mar 24, 2010
creating an AS3 Facebook share button? I need to be able to customize the title, description and picture.
View 3 Replies
May 22, 2009
I have an AS2 swf that has an array that is updated when a user clicks on items on the screen. The array stores the currently selected items. This As2 swf is hosted by an AS3 swf loaded in using Loader class and a local connection between them is managed by swfBridge. I want to know what the best way for both AS3 and AS2 swfs to share this array is? or how can I call a function in the AS2 (client) swf and return the array to the AS3 (host) swf when it needs to read the items from the array?
View 1 Replies
Jan 20, 2011
i have something like a flv player in my flash site and i load different flvs depending on user interaction. I want to add a "share on facebook" functionality so the videos will be shared on fb in a way similar to youtube sharing. I've serached a lot but there seems to be a lack of documentation on this subject.
View 0 Replies
Jul 30, 2009
I'm using CS3+AS3 and I have a Flash project with a menu, the items in the menu can expand to reveal more items and this is currently done by having each state of the menu in a separate frame, and then doing "gotoAndStop" in this movieclip when buttons are pressed.Perhaps not the best solution, but works very well for this purpose, but as you can imagine, this means that the "same buttons" in "different frames" will do the same thing.All frames were constructed by duplicating the first frame, then moving the buttons around and adding more buttons where needed. So now I set instance names to the buttons in frame #1 and added event-listeners. But when I tested the project, the buttons that had event-listeners in frame #1 also had them in all the other frames. Now this could be an awesome feature, but right now it's more of a huge mystery to me.
ance names in frame #2, but yet they share the same instance. I searched all over the IDE but I could not find any functionality to actually determine what instances are linked, how to link instances or unlink instances. But I do know that two objects share instances when you duplicate them.So my question is, is there no functionality in the Flash IDE to actually make more efficient use of this?
View 1 Replies