Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Local Exe Can't Load Local Swf's Into It?



Hi!I have created a presentation with Flash that has an exe file which loads swf files to it with loadMovie command.Some of our clients have had problems with this. They can execute the exe file fine, but it doesn't load any of the swf's or other external files into it. All the files are local on users computer on the same folder.At some computers this works fine, so it seems like it is some sort of security thing that an exe file cannot load anything external to it. Has anyone had similar problems?-sumo-



Actionscript 3.0
Posted on: Thu Oct 19, 2006 8:16 am


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Local Runtime Sharing? Local External AttachMovie?
I've been trying and searching through the forums but I think I am searching for the wrong keywords.

Is there ANY way of setting it up so that I can use attachMovie/removeMovieClip on external swf's? I've found these runtime sharing options but I am unable to make much sense of them. What I am creating is something that would always be run locally on a machine and not up on the web.

I want to use this one main 'engine' type of file that loads heaps of different movies into it. All of them swf's. Of course I realise that I could do things the loadMovie way, but it seems in this case like an option not really suitable for what I want to do.

Thanks for any tips

Launching A Local Html File From Local Swf ( Flash 8.)
Hello everyone i am having a problem launching a local html file from my swf. i have a button called print that when clicked it is supposed to open the local html file and print out the content. this is the code i used on the button

on (release){
getURL("folder/folder/file.htm","_self");
}

i also tried scripting it on the time line when that didn't work.

any ideas?
Thanks,
kool

User Defines Local Image And Add It To A Local Swf(CD) ?
I have to run flash (swf) locally, which in my case means a CD.

What I want to do is allow the user to have a browse (local) function and pick an image from his hard disk and use that image to see a flash movie (swf) with his/her selected image in it!

Then after the user watched the movie with his/her photo on it, the user should be able to send this movie in a site(upload it). then naturally the user should be able to see it online at that site as well!

So my questions are how to have a browse function that puts the selected image somewhere I would like it to and then use this image in a flash movie (that will be a game with the photo on it).

And I guess then to send it online I do not really have to publish a new swf with the image in it, I can send seperately the swf (game) and the image file to the server through php? Did i get that right?

So far I know flash 8 has a new class for browsing, but how do I take a file selected from a user locally and use it in the movie again locally? load variable can do that but I should know the name of the file selected and also be possible to even select a local file??

Basically it is for educational movie. It will run from a CD. there will be many interactive exercices. At the end of the section there will be one game that in order to make it more personal I want to allow the users to add their photo at the game. So far everything should take place locally. Then if the user desires should be able to send in a specific site the movie he/she just watched(which means with their photo in it).

ANy ideas how I do that.

Even general ideas will help!

Thank you

Problem With Local File And Local Link
Hi to everybody,

I have installed a new version of flash player (9,0,28,0) and when I open a local file like:
c: estindex.html

When I click into some link that point to some local file like as:
c: est est.htm

I don't obtain nothing the page still remain index.html.

If i put the test directory into some server everithing working fine.
I have tried to change some machine and i have tried some old flash file but still the same!

How can solve it without upload all file everytime into some web server and without install some local web server?

Thanks in advance to everybody for any tips and sorry for my bad english!

John

How Can I Get A Local Path Of The Local Disk With Swf
Since FileReference.download() doesn't download multiple files, I want to download files with php ftp_get by FTP.
I need to pass the local path of the local disk where I can download the files from a remote serveur. How can I get a prompt to have a user choose a folder on his computor (local disk), if any way possible?

Load Local PDF- On Mac
Hia, tricky one here and cant find any reference to it anywhere online.

Just used the ftoolapp.exe method to open a local PDF on windows machines, brilliant- but now need the equivelant for the macs like yesterday-

anyone know of a sloution to opening a local pdf thru flash on a mac??

cheers
jon

Local XML Load
New to Flash and under pressure to get this working ...


Is it possible to show a tree structure of a part of a local file system and load a selected XML file into a variabe?

If so, any scripts would be a great help.

regards
Mark H., AFX

Load Swf From Server Into Local Exe
has anyone loaded an swf from an online server into a locally playing executable? If not with flash MX maybe with some 3rd party software like SWF studio?

Load A Local Xml File?
I am trying to use the FileReference class to allow a user to open an xml file.

the xml looks like this


HTML Code:
<?xml version="1.0" ?>
<level>
<row>0,0,0,0,0,0,1,1,0,0</row>
<row>0,1,0,0,0,0,1,1,0,0</row>
<row>0,1,1,0,0,0,0,1,0,0</row>
<row>0,0,1,0,0,0,0,0,1,0</row>
<row>0,0,1,1,1,0,0,0,0,0</row>
<row>0,0,0,0,1,0,0,0,0,0</row>
<row>0,0,0,0,1,1,1,1,1,0</row>
<row>0,0,0,0,0,0,0,1,0,0</row>
<row>1,1,0,0,0,0,0,0,0,1</row>
<row>0,1,1,1,0,0,0,0,0,1</row>
</level>
this is for a level editor. I want the user to be able to save xml files from this app, and load them back in to start where they left off. I know saving to a file from flash is probably not possible, but opening from flash seems like it should be.

here's the FileReference code I'm using


ActionScript Code:
import flash.net.FileReference;

var allTypes:Array = new Array();
var fileTypes:Object = new Object();
fileTypes.description = "XML (*.xml)";
fileTypes.extension = "*.xml";
allTypes.push(fileTypes);

var listener:Object = new Object();

listener.onSelect = function(file:FileReference):Void {
    trace("onSelect: " + file.name);
    if(!file.upload("http://www.yourdomain.com/yourUploadHandlerScript.cfm")) {
        trace("Upload dialog failed to open.");
    }
}

listener.onCancel = function(file:FileReference):Void {
    trace("onCancel");
}

listener.onOpen = function(file:FileReference):Void {
    trace("onOpen: " + file.name);
}

listener.onProgress = function(file:FileReference, bytesLoaded:Number, bytesTotal:Number):Void {
    trace("onProgress with bytesLoaded: " + bytesLoaded + " bytesTotal: " + bytesTotal);
}

listener.onComplete = function(file:FileReference):Void {
    trace("onComplete: " + file.name);
    trace(file);
    //I NEED THE DATA HERE!!!
}

listener.onHTTPError = function(file:FileReference):Void {
    trace("onHTTPError: " + file.name);
}

listener.onIOError = function(file:FileReference):Void {
    trace("onIOError: " + file.name);
}

listener.onSecurityError = function(file:FileReference, errorString:String):Void {
    trace("onSecurityError: " + file.name + " errorString: " + errorString);
}

var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
fileRef.browse(allTypes);

is it possible to access the data from the selected file using only flash?

thank you in advance!

Load Local MP3 From SWF On Server.
This seems to violate sandbox but is it possible to load a local MP3 from a SWF which is hosted on a server? I have a complicated authenticated web app which loads MP3s at runtime off the server for the administrator only(not regular users). The client is concerned about load time(although minute) caused from loading MP3s off the web server, and if possible wants to load the MP3s off his local machine instead. However, I can't move the entire app local, is has to stay on the webserver for a host of reasons. Is there any workaround to make it possible?

Eyeing up Apollo for the future...

I Want To Load Swf From Local Drive.
Hi Everybody,
Can anybody help me that I'm using preloader as soon as preloader get loaded 100% it should load swf file from local drive. Please tell me how to do this.

Regards,
Jitendra.

Load Local MP3 From SWF On Server.
This seems to violate sandbox but is it possible to load a local MP3 from a SWF which is hosted on a server? I have a complicated authenticated web app which loads MP3s at runtime off the server for the administrator only(not regular users). The client is concerned about load time(although minute) caused from loading MP3s off the web server, and if possible wants to load the MP3s off his local machine instead. However, I can't move the entire app local, is has to stay on the webserver for a host of reasons. Is there any workaround to make it possible?

Eyeing up Apollo for the future...

How To Load Local Files
Hey all,
is it possible to load something thats in you library, as a external movie.
or is it possible to "preload" a external .swf?
thanks

How To Load A Swf From A Local Drive To Another Swf On The Web
I have a site that has a container .swf that receives variables from a database (i.e
vchAddress=F:flashhandgardsoverviewhandgards_o ver_01.swf) and is supposed to load that local .swf (from a cd) into the container .swf (i.e.
loadMovieNum(_root.vchAddress, 20). Well I added a .cfg file, that allows the user to trust the F: drive, into the WINNT>SYSTEM32>Macromed>Flash>FlashPlayerTrust folder and we can access the local swf through the web when we don't use the container but we can't when we do. Also all this worked fine before Flash Player 8 came out. I don't know if I need to use Flash's localcontenupdater download. I tried it and don't have a clue as to whats going on. Can anyone help?

XML Will Load In Local SWF, But Not In HTML
i'm trying to use an XML slideshow in my flash website. i've gotten the xml to load into a swf and show all the images just fine. then i loaded that swf into another swf (my website) and things are no longer fine. if i 'preview movie' everything still works, but when i open up the html file that i published from the website swf, the images don't show up...

...any ideas?

AIR Load Local Files Into AIR App
I want to load a local file (stored in the applicationStorageDirectory) into my app. Do I make a reference to the file with a File instance and then pull that file in with a URLLoader(new URLRequest(File))?

I'm not clear on how to do this.

How To Load Local Files
Hey all,
is it possible to load something thats in you library, as a external movie.
or is it possible to "preload" a external .swf?
thanks

Load Variables From Local Machine?
Hi
Can any one tell me when I can save txt file on any damm local hd drive then why I cant load them back?
----I have used these actions-----
fscommand("save","c:\mytxtfile.txt")

To get back the var:----
loabVariablesNum("c:\mytxtfile.txt",0)

I get the message "Error opening url"

Thanx if any one can solve this!

Fastest Way To Load Local Variables?
I am looking for the fastest way to load variables from a local file into flash mx. The thing is the variables in the file are constantly updating. I'm not sure if I should use loadVariables, XML.load, or SharedObject.

Any help would be appreciated!

Thanks

External Swf Will Not Load When I Upload It, Only In Local
Hi everyone,
It is an experiment with AC for better understanding as I am fairly new to flash.
I have the following problem.
I am loading into my main movie an external swf and it works fine in local mode but if I upload it its not loading.
I am using Mx2004 prof. but I publish it in ver.6 AC.1.0
The code is as follows:

loadMovie("projects/" + _root.currProj + ".swf", _root.projSwfContainer);
for (i = 1; i < _root.numProjsTotal; i++)
{
projStr = "project" + i;
if (projStr != _root.currProj)
{
_root.thumbs[projStr].gotoAndStop("clear");
} // end if
} // end of for
stop();

Can someone help me with this?
Thanks,
Dragen

[F8] Load Local Variable Outside Of Function
I'm using flash 8, action script 2.0.

I'm using an onLoad function to load an XML file. I have a variable inside that function and I need that value outside of the function. I'm not exactly sure how I can go about this. This is my summarized code. Any help is appreciated.

xmlVideos.onLoad = function(){
var total = xmlVideos.firstChild.childNodes.length;
}

trace (total);

//I realize this trace will not work because "total" is local, but how might I get that variable global? I tried _global with no success.

Thanks in advance

Why Won't My Movie Load In My Local Server?
when I right click it in the IE browser it says: "Movie not loaded."

Load Movie / Local Connection
can anyone see what is wrong with this code . . . .


ActionScript Code:
helpReceiving_lc = new LocalConnection();
helpReceiving_lc.connect("_tickerConnection");
helpReceiving_lc.recievedValue = function(helpSWF){

    if (helpSWF = "helpClassification"){
        if (current != "helpClassification"){
        //  _root.contents.unloadMovie();
            _root.contents.loadMovie("helpClassification.swf");
            current = "helpClassification"
        }
       
    }
    else if (helpSWF = "helpCategory"){
        if (current != "helpCategory"){
        //  _root.contents.unloadMovie();
            _root.contents.loadMovie("helpCategory.swf");
            current = "helpCategory"
        }
       
    }
        else if (helpSWF = "helpAtoZ"){
        if (current != "helpAtoZ"){
        //  _root.contents.unloadMovie();
            _root.contents.loadMovie("helpAtoZ.swf");
            current = "helpAtoZ"
        }
       
    }
        else if (helpSWF = "helpFind"){
        if (current != "helpFind"){
        //  _root.contents.unloadMovie();
            _root.contents.loadMovie("helpFind.swf");
            current = "helpFind"
        }
       
    }
}

and here is the code that I'm using to send the info via localConnection


ActionScript Code:
on (release) {
    {
        ticker_lc = new LocalConnection()
        ticker_lc.send
        ("_tickerConnection","recievedValue","helpClassification")
       
    }
}

Cross Domain Load? It Looks All Local To Me
So I'm getting hefty security issues to pop up. This flash .exe file runs on its own, but pulls from other servers on the network. Its for some internal communications.

My main .swf (my exe) loads in a local file. the local file loads in a flashpaper document. My doc crashes, or I get this...

*** Security Sandbox Violation ***
SecurityDomain 'http://devs/pl/PPT/PPTtest2.swf' tried to access incompatible context 'file:///C|/Documents%20and%20Settings/jmilan/Desktop/pl%5FII%5FFLAs%5Fv2/PPT.swf'
*** Security Sandbox Violation ***
SecurityDomain 'http://devs/pl/PPT/PPTtest2.swf' tried to access incompatible context 'file:///C|/Documents%20and%20Settings/jmilan/Desktop/pl%5FII%5FFLAs%5Fv2/PPT.swf'
*** Security Sandbox Violation ***

(it goes on forever)

I've been looking through tutorials, and trying various things, but I feel that maybe I know too little about this to be making an accurate judgement (none of them are "really working").

I tried the System.security.allowDomain, but I wonder why i need to do this. I use http: because its all local network, but users don't always have permission-- so I haven't been using the direct server names.

Any ideas?

SWF On Local Disk To Load XML From The Internet
This is not for testing purposes.
This is a game that needs to read an RSS XML with news from Yahoo.
So I want this SWF to load the XML data from the site for my clients.
How can I do that?
Please help me on this.

Thanks,
Horea

Load Image From Local Machine
hi there,

long time lurker, first time poster
i wonder if it's possible to load an image to a flash movie from your local hard drive without uploading the image to the server?

eg:
loadMovie("C://yourImage.jpg");

it works fine locally, but once i upload it to the server, the image won't be loaded.

the reason is, i want to build a flash site that allow users to create an e-Card using their own image from local drive. i don't want users to upload anything to the server.


TIA

Load Local Image From Remote SWF
I might be getting into the security issues again, but if I know the path to a local image, can I have a remote SWF load it? ie: through loadClip?

Load A Local Server File?
Hello, i'm totally confused about flash security. My goal is to stream a mp3 from my server's local filesystem (which is not available from the web). I've tried using NetStream, but when I run the compiled swf off my server in a browser I get a security message:

2148 SWF file _ cannot access local resource _. Only local-with-filesystem and trusted local SWF files may access local resources.


Code:
private var musicURL : String = "file:///home/vermin/music/test.mp3";

connection = new NetConnection();
connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
connection.connect(null);

private function netStatusHandler(event : NetStatusEvent) : void
{
switch(event.info.code)
{
case "NetConnection.Connect.Success":
connectStream();
break;
}
}

private function connectStream() : void
{
stream = new NetStream(connection);
stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
stream.client = new CustomClient();
stream.play(musicURL);
}

Local Machine Save & Load
How do I save an XML file to the local machine?

And how do I Load that file?

I know how to do this off a server, but I don't know how to work off the local machine.

Thanks,

Load Images (jpg) To LOCAL DATABASE To Reuse....How? -Thank
Hi all ya!!!
Is there anybody who ever did it once, plz tell me how???
I try to load many images (.JPG original files) to local database
(i mean the database from method as:
Ex:
mydata = sharedobject.getLocal("database");
mydata.data["name"+1]="KoolJ"

or maybe it's managed in a temp folder on local machine).
So if it's ok, i can get the LINK of any imgs from thaz database or the TEMP FOLDER in any time.But now I only load and display one by one time.

Can u help me to solve out this problem???
Thankz 4 reading & focusing!!!

Kool.

Load() XML File From Local Drive (offline App)
I'm working on a Flash (MX04) application that reads out a data.dat file from a USB dongle plugged in the computer. The .dat file is a XML file which contains some info that the application needs.

I've got this working on Mac OS X with this peace of code:

Code:
myXML.load("file:///NONAME/data.dat");
The problem is the application needs to work on a Windows PC.
I've changed the line in (it mounts as a d-drive:

Code:
myXML.load("file:///d:/data.dat");
myXML.load("file:///d:data.dat"); or
myXML.load("file:\d:data.dat");
but none seem to work.
Anyone knows the code I should be using?

tnx, Martijn

Load Local Mc (from Library) Into Container Mc (on Stage)
Depending on a variable, i'd like to load different mc's from my library into a container mc on my stage.
I thought i did this using the loadmovie command and making sure the library mcs were exported for actionscript in the linkage properties...but i'm sure thats toatlly wrong since my movie always expects an external movie/swf.

Here's what i had:


stop();

myVariable = myCombo.getValue();

function setDisplays(){
myVariable = myCombo.getValue();
if (myVariable == "a"){
loadMovie ('music_mc','container_mc');
} else if (myVariable == "b"){
loadMovie ('art_mc','container_mc');
} else if (myVariable == "c"){
loadMovie ('words_mc','container_mc');
}
}

myCombo.addEventListener("change", setDisplays);




Thankful for anyone who can help me fix this...

Cheska

Load Local Files From .swf And Connect To Server
Can someone direct me how I can load local files into my .swf AND be able to connect to a server?
I need to do connect to the server for Flash Media Server.
Is there a directive I can include in the code, or do I just have to run the whole thing in a browser from the server?

I'd normally compile in Zinc (which bypasses the security restrictions) or try it in Air, but the .swf is going to live on a handheld Linux device and Zinc/Air won't compile for this specific OS.

Thanks in advance.

Can Swf In Remote Sandbox Load Local File?
Hi,
does anybody know if it is at all possible to distribute swf on a server which will load data from local computer?
I've been asked to do this for an information kiosk - a client wants swf deployed on server running in fullscreen IE to load videos from a folder on a local machine. (those videos are huge, so they would consume too much bandwitdth if loaded from server). If I have that swf running locally (set up as local trusted file) and I'm accessing it from IE as file:///C:/CFusionMX7/wwwroot/test.swf it works fine, but it doesn't load any video if I access the same local file as http://localhost:8500/test.swf or remote file as http://www.somedomain/test.swf Does anyone has experience with sth similar? Do I simply have to deploy locally or is there some workaround? Thanks.

Load Images From A Local Folder Into A MovieClip
How can I load images from a local folder (this will be an off-line application) or from the asset library into an existing MovieClip placed on the stage?

How Do I Load A JPG From The Local Machine Into BitmapData Class?
Hi All,

I have some code below :

I use the linkage id of jpg's which are present in my library. Is there any way i can use jpg's from the local machine's C drive? Like BitmapData.loadBitmap("C:/xxx.jpg")??

I need to use the pixelDissolve effect and this is done by the BitMap class. And I can find only linkage id reference and no loading from path.



Regards
Roshan Kolar








Attach Code

import flash.display.BitmapData;
import flash.geom.Point;
var sourceBitmapData:BitmapData = BitmapData.loadBitmap("Water");
var myBitmapData:BitmapData = BitmapData.loadBitmap("Pen");
var _mc:MovieClip = this.createEmptyMovieClip("mc", this.getNextHighestDepth());
_mc._x = 125;
_mc._y = 100;
_mc.attachBitmap(myBitmapData, _mc.getNextHighestDepth());
var nRandom:Number;
_mc.onPress = function() {
delete this.onPress;
nRandom = Math.floor(Math.random()*10);
this.onEnterFrame = xDissolve;
};
var nTotalDissolved:Number = 0;
var nTotalPixels:Number = myBitmapData.width*myBitmapData.height;
var nDissolving:Number = 20;
var zeroPoint:Point = new Point(0, 0);
function xDissolve() {
nRandom = myBitmapData.pixelDissolve(sourceBitmapData, myBitmapData.rectangle, zeroPoint, nRandom, nDissolving);
nTotalDissolved += nDissolving;
if (nTotalDissolved>=nTotalPixels) {
delete this.onEnterFrame;
sourceBitmapData.dispose();
}
nDissolving = Math.floor(nDissolving*1.1);
}

Refresh View From Web. Load Data From Local
In the web i set my settings to allow all sites (flash security settings)
My flash load some xml and movie files from server.
When I "Test movie" from Adobe Flash program all is ok! When I open my file from local and from server the data wasn't load. I upload my data to server with any dates (change manually), but I view last viewed screen but before I change it and upload a new file. This problem not linked with browser cache because I saw this page from another machine.
Now 2 problems:
1) Why i don't see change in my file when try from server but saw it when open locally?
2) Why data don't load without Adobe Flash program? (from locally and network)

Load A Local Browse Window With Actionscript
Hello people,

//Basically I want to be able to open a browse window through a swf to open a file in another folder from from the swf.


I understand how to load a *.jpg with the MovieClipLoader in actionscript. However I would like to browse like the Offline viewer does in the download section of Lee's http://www.gotoandlearn.com/ site does with the downloadable *.flv tutorials.

Any insights, thoughts, help appreciated!!!

Local To 'other' Local Coordinates
Hi, I have a clip with twenty points in it.

I am trying to do a point hit test with these and a shape a few clips down - but nowhere near the _root.

I have used local to global before but would really like to just see what the coordinates would be on the other clip.

?? Cheers, M@)

Load Image Into Movie Clip From Local System
hi,

i want to load image in movie clip, but the image is dynamic means user can select (browse) from his local system. but without using scroll pane.

thanks in advance

Flash Player 8 Wont Load Xml...all Files Local...
hello flashers,

I am using flash 8 to make a flash 7 swf

in the swf I load an XML file.
all the files are on my local machine.
when i test the movie in flash, no problem.
when i test the exported swf in flash player 7, no problem.
when i test the exported swf in flash player 8, it calls the:

function loadXML (loaded) {}

function, but fails.

Ive tried to put at the top:

System.security.allowDomain("*");

Even though I am NOT loading anything outside of my local machine, just incase.

If this is a security issue, how do I resolve it?

My code:

System.security.allowDomain("*");
System.security.allowInsecureDomain("*");

function loadXML (loaded) {

if (loaded) {

//load some stuff
play();

}else {
//failed
}
}

//load folder for appropriate content:
System.useCodepage = true;

product_xml = new XML();
product_xml.ignoreWhite = true;
product_xml.onLoad = loadXML;

//product_xml.load(loadPath);
product_xml.load("bann_config.xml");

stop();

Thanks!

Sebastian.

(Rather Urgent) Can't Load Page In Iframe On Local Computer
Hi guys

I'm having a problem with flash/javascript/iframes. I have a flash banner that is positioned at a fixed position on the bottom of the screen. When I press a button on the banner, the page (which is an iframe) should change.

I got it to work using javascript. But it only works on the Internet. On my local computer it doesn't work. No error, nothing. Please mind that it is a task for school (for my exams) so it should work only locally.

Check out: http://www.arckodrazen.com/neher and click on "Vanille", the page should change.

My codes:

Actionscript:

Code:
mc_vanille_over.onRelease = function(){
getURL("javascript:test();")
}
javascript:

Code:
<script type="text/javascript">
function test(){
frames['mainframe'].location.href = 'vanille.html';
}
</script>
Iframe:

Code:
<iframe name="mainframe" src="madagascar.html" scrolling="no"></iframe>
So, how do i solve this Internet vs Local issue?

Security Issue - Trying To Load A Local Flash File
We have a web application that is trying to load a local flash (.swf) file. The web site is on a central server, but accesses a file on the user's c: drive.

The security model changed with flash 8 to disallow this (by default). It works file if you put a webserver on the local machine and refence it using http://, but if you just refer to c:filename.swf, it fails. The Adobe website has an article on this, but we cannot get it to work. We must be leaving something out. Has anyone done something like this?

AS3 - Unable To Load Local XML File Due To Security Error
Hi,

I am trying to create a simple SWF in AS3 that will read some data from a local (i.e. on my machine) XML file but when I try to load the file using a URLLoader object and a URLRequest object, a security error is thrown and I am unable to open the file.

Eventually I will post this SWF on a web server and the XML doc will also be on the same web server, not on my local machine, but I wish to run it on my machine for testing/development purposes.

note: I am compiling this AS3 SWF with the Flex 2.0.1 SDK mxmlc.exe AS3 compiler as I do not have Flash CS3.

>>

It appears the problem is that the Security.sandboxType property is being set to:localWithNetwork
whereas I really want it to be set to:localTrusted
>>

Having read through the ActionScript 3 security docs, I have tried to modify the mms.cfg file but this file does not exist anywhere on my system!

I do, however, have the following Flash Player security files:C:WINDOWSsystem32MacromedFlashFlashAuthor.cfg
C:Documents and Settings[MyUserName]Application DataMacromediaFlash Player#SecurityFlashAuthor.cfg
And in both of these files the only setting is:LocalSecurityPrompt=Author
>>

My AS3 code is:
...

// main class
public class OpenXMLFileSample extends TopLevel
{
public function OpenXMLFileSample()
{
// add the stage in TopLevel to the display list
stage.addChild( new Output( stage ) );

// load the XML doc
var _urlMenu:URLRequest = new URLRequest( "xml/menu01.xml" );
var _ldrMenuXMLFile:URLLoader = new URLLoader();

// try to open the XML doc
try
{
_ldrMenuXMLFile.load( _urlMenu )
}
catch( error:SecurityError )
{
Output.trace( "A SecurityError occurred when trying to open the XML menus doc." )
}

} // end constructor: Main

} // end public class

...
Which when run, outputs:
"A SecurityError occurred when trying to open the XML menus doc."
is output.

>>

My Flash Player settings are :flash.system.Capabilities.version
WIN 9,0,28,0 on XP Pro
flash.system.Capabilities.localFileReadDisable:
false

flash.system.Capabilities.isDebugger:
true

flash.system.Security.sandboxType:
localWithNetwork
>>

1) Does anyone know how to fix this problem ?

2) Is it unusual not to have a mms.cfg file ?

Local Time Of My Country And Local Time Visitor
Dear all,

For a client's website in Holland, I would like to display the current Dutch date and time and I want to show for instance American visitors their local time.

Could anyone help me by providing the code for the Dutch time (as I know how to display the local time of my visitors)?

Thank you very much!

Michiel Schenkius

How To Load An Image Directly From A User's Local Hard Drive,not From Server
Hi Forums

how to load an image directly from a user's local hard drive,not from server, and into flash. is it possible to do without using any server side scripting languages.if any one have an idea about this please help me.....

Thanks in advance
Samprakash

Cgi - Local
Hi All,
Can somebody explain the meaning and use of cgi-local and how can i make a form in flash which contains information like survey. Can somebody tell me how to do it pls. Please explain this things (if possible treat me as a new flash user and dont know the cgi-local and form thing)for me.

Local So Help
hello i am useing shared objects and i would like to tranfer info in between two different files. i beleive it is in the call up function and not finding the right file because thery are named different but are on the same level on my web page. i am using this function to call up the SO

accessSO = SharedObject.getLocal("mycookie")

this works great to save with the same flash file but i can't get it to work with different ones.

macromedia says it stored them by what the file is saved as but how would i open one that is not what the file name says.
well hope you guys understand. thanks. Pat

Local Url... Sorry But I Had To Ask
Ive made a MC which loads another MC when pushing a button. And it works fine when it is on my computer, but when i put on the internet it won't work. I'm using this command:
on (release) {
_root.hm.txt.gotoAndStop(10);
loadMovie("shootteacher.swf",0);
}
my site is in danish but here it is:
http://www.myg-ind-heaven.suite.dk/d...hjemmeside.swf

Copyright © 2005-08 www.BigResource.com, All rights reserved