ActionScript 3.0 :: Access Local SharedObject Set By MOVIE1 By MOVIE2?

Nov 12, 2009

I have a website where under a single domain (and in a single folder on a web server) - two flash movies are stored: MOVIE1.SWF and MOVIE2.SWF Is it possible to access local SharedObject set by MOVIE1 by MOVIE2? What I do:

[code].....

View 3 Replies


Similar Posts:


ActionScript 3.0 :: When Open Movie2.swf It Will Automatically Load Movie1.swf?

Nov 19, 2010

My first movie is in AS1: movie1.swf is its name and it only contains a button, releasing it, it loads hello_world.swf  in the _root. The code is:
 
btn.onRelease = function(){_root.loadMovie(hello_world.swf)};
 
It works fine if i open the movie alone, a problem comes when I load it from this other movie called movie2.swf (which is in AS3). The load script in this second movie is:
 
var i =new Loader();
i.load(new URLRequest(movie1.swf));
MovieClip(root).addChild(i);
 
when i open movie2.swf it will automatically load movie1.swf, which looks fine, but now its button doesn't work.Maybe it isn't logic to keep the AS1 in the first movie, but I really want to keep it as it is (cause I would have to change dozens of them,) i really want this AS3 and AS1 communication.

View 4 Replies

ActionScript 3.0 :: Error #2148: Only Local-with-filesystem And Trusted Local SWF Files May Access Local Resources

Jul 4, 2010

I'm trying to load a local xml file:

xmlLoader.load(new URLRequest("../xml/xmlData.xml"));

But I'm getting this security sandbox violation:

#2148: Only local-with-filesystem and trusted local SWF files may access local resources.

I don't get this error when I embed the XML file directly with the EMBED metadata tag.

View 3 Replies

ActionScript 3.0 :: Accessing Local SharedObject(stored In HDD) From Website?

Jul 25, 2009

Is there a way that i can access Local SharedObject using a swf from the net.

For example, i have a .swf that creates SharedObject running locally on my desktop computer.. But when i'm somewhere else, i need to access some of the shared objects in my desktop, is that possible?

View 4 Replies

Recovery - Flex: Recover From A Corrupt Local SharedObject?

Mar 29, 2012

My Flex app uses local SharedObjects. There have been incidents of the Flash cookie getting corrupt, for example, due to a plugin crash. In this case SharedObjects.getLocal will throw an exception (#2006).

My client wants the app to recover gracefully: if the cookie is corrupt, I should replace it with an empty one. The problem is, if SharedObject.getLocal doesn't return an instance of SharedObject, I've nothing to call clear() on. How can I delete or replace such a cookie?

[Code]...

View 2 Replies

ActionScript 3.0 :: Avoid Showing Local Storage Dialoge Box For SharedObject?

Nov 17, 2010

I'm doing a small webapp where I want to use a fairly small amount of Local Storage for SharedObjects.The challenge is to cater to all visitors, including those that might have turned down their local storage allowance to 0 bytes (inactivated).Now, what happens is that the first flush method call triggers the local storage dialog box.In the case that the user has inactivated local storage, I don't want to ask them to raise it - instead I want to avoid using SharedObjects for the remainder of the session.I haven't found a way to test for the capacity of the local storage. What I can find is the size property of the SharedObject class. This doesn't work however as it only reports a size greater than 0 if there has already been an object written to this application domain.

View 0 Replies

Actionscript 3 :: When Does Local SharedObject Triggers Event Handlers Added Via AddEventListener

Jan 26, 2012

Could someone explain when does local SharedObject triggers event handlers added via addEventListener?I have tried and it doesn't trigger, after flushing.For example i have two object.swf both in separate browser tabs.I'm adding data inside object.swf on one tab and want event to be triggered in object.swf from another tab.Is it possible with native functionality and without remote type of SharedObject?Ofc i could write infinite loop and check local storage for changes, but it's the last solution i would like to implement.I was reading docs and played with example over there, but it doesn't trigger event, even if it is added before flushing.[code]

View 1 Replies

ActionScript 2.0 :: SharedObject Usage - Access Stored Value From Another Swf?

Nov 21, 2006

I'm using a shared object in my project...and that's saving a value too....the code looks like this...

Code:
userLang = SharedObject.getLocal("lang");
if(userLang.data.lname != undefined)[code].....

and this value is storing into the local system.the problem happening when i tried to access the stored value from another swf...thats not accessing the value..is there any alternatives to access this stored value from another swf?

View 3 Replies

Javascript :: Access An Local Image (not In App Workspace) From A Local HTML File (in App Workspace)

Mar 12, 2011

I have a HTML box and load a local html file from the project. In this HTML file I use jquery and I want to load an image from my user directory. I see the image from my user directory but jquery doesn't works. I get this error:

[Code]...

But if I load an image from the app workspace, everything works fine (I see the image and Jquery works). Is this a policy problem? The error says that is a "null object reference" problem, but this can't be true...

View 2 Replies

Flash :: Access Local Access Database From It (or AIR)?

Nov 13, 2009

Is it possible for Flash or possibly Adobe AIR to have access to a local Access database?

I will have either a Flash EXE or AIR application running on a local PC (WinXP). The PC will also have a local Access database. I need my Flash application to get the data from this Access database. How would I do this?

I doubt it can be done with Flash or AIR alone (someone prove me wrong or right), but is there an option for some middle-man application to access the data base and send it on to Flash? How would this work?

Or could I read the MDB file into Flash and parse it myself? is there a library for this?

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 :: Tell A Movieclip Button To Check To See If Movie1.swf Is Loaded?

Feb 10, 2011

How would you tell a movieclip button to check to see if movie1.swf is loaded, and if movie1.swf is loaded go to and play the frame in movie1.swf? If movie1.swf is not loaded, I don't want movie1.swf to go to and play.

View 1 Replies

Start From A Label In A Scene From Movie2.swf?

Jun 15, 2009

I have 2 SWF (swf1 and swf2). I want to load swf 2 into 1, but getting it start on a label or a particular frame.

I use this to load SWF 2

Code:

on(release){
loadMovie("movie2.swf",0);
}

How do i target it to start from a label in a scene from movie2.swf?

View 1 Replies

ActionScript 2.0 :: View The Variable To Flash In Movie1.swf On Dynamique Field

Sep 26, 2004

From level 0 : I load a movie with loadMovieNum("movie1.swf", 1);movie1 calls : loadVariablesNum("add.php", 0, "POST");the file add.php looks up for a variable in a data base and returns it to flash.[code]it is impossible to view the variable_to_flash in the movie1.swf on the dynamique field VAR: variable_to_flash on loading the movie1.swf to level 0 , it is possible to view the variable_to_flash in the movie1.swf on the dynamique field VAR: variable_to_flash.how can I view the variable_to_flash in the movie1.swf on level 1?

View 1 Replies

ActionScript 2.0 :: CS3 Relative Paths - Can't Seem To Make Movie2.swf Communicate With Movie3.swf

Mar 22, 2009

My situation is this I have 4 movies which load each other, meaning: movie1.swf loads movie2.swf which loads movie3.swf which loads movie4.swf movie3.swf communicates with movie2.swf though the _parent path and it works. but i can't seem to make movie2.swf communicate with movie3.swf since movie2 is _parent i assumed movie3 is a _child...but it does not work so my question is what do i replace _child with?

PHP Code: _child.mc.gotoAndStop("subM" + no); ps: would apreciate it if u could tell me a bit about levels ex: _level10/_level0 what do they mean and how can i tell on what level i have something

View 1 Replies

Access Local Variable From Another Class?

Apr 11, 2010

How to access a local variable from another class? I have this powerup class that changes the speed value of the enemy in enemy class(it's a game). For instance, if player hits the powerup it changes the local variable 'speed's value inside enemy class.

View 3 Replies

Publish A SWF With Local Access Permissions?

Nov 22, 2011

We have been purchased a training course made with Flash. When we received the course (a SWF file with external files inside a "data" directory, images, videos, etc), we realized that it was necessary to explicity give permissions to Flash Player to access the content in the CD drive. We think that is not a good idea to distribute a CD where the user have to do "extrange things" to make it work.
 
So, we talked with the developer and he sent us an .EXE file with the course, that obiously works fine (al the content in the CD is readed without user interaction), but it only works in Windows machines.
 
The question is: is it possible to publish an SWF that can access to the CD content without user interaction? We are almost sure that the answer is "yes" because we have a lot of "magazines" cds with SWF files that load the contents from CD (text and images) and they work perfectly "as is".

View 1 Replies

ActionScript 3.0 :: Access To Local Directories?

Apr 4, 2009

just wondering how AS3 can do this. I'm writing in Flash CS3, I just need to know the length of a directory which is in the same location as the flash file. For example there is

/flash/flash.swf

and then

/flash/images/

and I need to know the length of /images

View 7 Replies

ActionScript 3.0 :: Local File Access Isn't Possible

Jun 16, 2009

I've written a SWF in FlashDevelop (using the open Flex stuff) and use it to load up a bunch of image files.

[Code]...

Now, this works fine in the debugger environment with, say, funcA("test1.jpg"), but when I try and copy the files into another directory, I get security errors, something about it not being 'Local with trusted' or some such. I assume local file access is possible via Flash if the SWF is on the harddrive too, right? I did try adding a Security.allowDomain("*"); to see if that made a difference, but seems not. If local file access isn't possible, do I have to find a server to copy everything onto even for just testing stuff?

View 1 Replies

ActionScript 3.0 :: Can't Access Non Local URLs?

Apr 21, 2010

Ok this one has confused me since I touched flash and AS3.0. 90% of the time, when I am trying to access a URL, or connect to anything on the internet through AS3, it doesn't work and tells me that it can't find the URL, or w/e I am trying to access. When I upload it to a server, any server, it works fine, but testing it from within the IDE, it doesn't, maybe 10% of the time it might actually work. I don't get this? How come it can't access these external connections while trying to run it locally?

View 1 Replies

ActionScript 2.0 :: Access Local Webcam Using Flash App?

Oct 3, 2009

I can access local webcam using Flash app but I wanna use as public so anyone can access via local network to be able to open the viewer, but this script only uses a local cam to the computer

localCamera = camera.get ();
camview.attachVideo (localCamera);

Is there a way to get the server ? , to output a file that a viewer can access else where on the LAN?

View 2 Replies

ActionScript 3.0 :: AIR FileSystem - Get Full Local Access?

Dec 22, 2010

Here's a way to read/write anywhere on any local or mapped hard drive with AIR. (Coded for non-Flex):


Code:

import flash.filesystem.*;
var _drive:File = null;
var _stream:FileStream = null;

[code]....

File.GetRootDirectories() returns an array of File objects (the root of each drive, mapped or otherwise). You then compare the name of the drive (C:, D:, E:, etc) to the first two characters of the fileName variable. If you find a match, you use that File object (_drive) to resolve the full path of the file you want to open.

View 5 Replies

Flash :: FDT Flex And Cannot Access Local File

Jan 23, 2010

I am using FDT for Flex development and when I compile, and it tries to access a flv file, I get the error "cannot access local file". This is obviously a security sandbox thing.Now I tried adding crossdomain.xml to the root and it still makes the same error. I know somehow I need to add to my project use-network=false, but i cant for the life of me work out where the flex compiler additional arguments area is. I know in eclipse how to do it, but with the slightly modified FDT, i havent got a clue

View 1 Replies

Flash :: Air Remote External Swf Can Not Access Local Apk?

May 4, 2011

I'm developing an android file by using flash cs5 air extention. I know the basic crossdomain policy and server to server connections. And I searched many pages but there is no solution about this.

My "container.apk" loads "external.swf" from the server.. And I want to be able to reach the variables and functions in "container.apk" from "external.swf". But I can't reach any function on my container (application file .apk) from my external module swf (remote file).. I mean, I'm trying to reach container.apk's functions from the loaded swf. Like when a button clicked on "external.swf" it should effect a function in "container.apk".

Also here are some error codes that I'm getting ;

[Code]...

View 1 Replies

ActionScript 3.0 :: Allow Access To Both Local And Network Files?

Jul 27, 2009

The reason Ordinarily I would just host everything on the server, the swf file and images and serve them out using something like apache. However, we're working with an embedded device with hardware limitations. So we thought we could avoid this by hosting the images locally on a cd.But Flash player moans about the security settings. I know a way to overcome this would be to give the user instructions to change the global security settings- hence allowing both network and local access. But we feel that this would be too much to expect the end user to do.We want our model to work out of the box so to speak. Or as best as possible.

View 1 Replies

ActionScript 2.0 :: Access Local Files From Website

Oct 25, 2010

without explaining why, I need to run a flash slideshow from a live web page and it is for a photo exibition: The problem is that the slideshow, while running on a love site, must read the image files from the local computer that it is browsed from. If the computer is always the same and the files are in the same directory when it was developed, how would I tell flash that the files are not on the server, but on the local computer?

View 1 Replies

ActionScript 3.0 :: Access Both Network And Local Files?

Jul 13, 2010

Is it possible to access both network and local files, flash player 9/10?

Here is the situation:

I have an SWF which runs locally on the client's machine.

It communicates, via XML socket, to a C++ server.

It also needs to read some configuration files from the local file system...

c:config.xml <---> test.swf <---> C++ server

So I need the SWF to be fully trusted, as if it was ran from the Flash IDE.But I can't tell my clients to set it to be fully trusted using Adobe's Global Security Settings Panel

What I can do is alter my C++ server code, somehow granting permissions to the SWF.

View 3 Replies

ActionScript 3.0 :: Flash CS5 / Air 2 - Local File Access

Sep 30, 2010

I have a Flash project that plays FLVs from (http://) sources and it works fine when I publish it as AIR 2. I want to save and access my FLVs locally, but I can't seem to get it to work. I don't know if it is a matter of the correct path syntax, I'm also not sure what an Air app sees as a relative path. This is what it looks like for http:
stream.play("[URL]")
How do I make this local?

View 1 Replies

FLVPlayback Skin Doesn't Work On Local Access

Oct 13, 2009

I want to play a video, for it I decided to use a FLVPayback with a skin, and it works very well when I test it in Flash CS4, also when i called it from my server with the "network access" only preference. But when i embeded into a html... it plays the video but the skin does´t shows up.

here is my code:
 
package
{
import fl.video.FLVPlayback;
import flash.display.Sprite;
import flash.display.*;3

[Code].....

View 1 Replies

Flex 3:: Connect To A MS Access 2007 Local Database

Nov 14, 2011

How do I connect Flex3 to a MS Access 2007 local database? Could you provide some example code for a login page using username and password and validating it?

View 2 Replies







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