Newgrounds.com — Everything, By Everyone.

Checking login status…

USERNAME:

PASSWORD:

Logging in…

Logged in as:
.
Logging out…
Inbox My Account Log Out


Forum Topic: *** Security Sandbox Violation ***

(85 views • 4 replies)

This topic is 1 page long.

<< < > >>
Questioning

541-ExE

Reply To Post Reply & Quote

Posted at: 5/31/08 01:56 AM

541-ExE NEUTRAL LEVEL 13

Sign-Up: 10/10/07

Posts: 175

i was trying to download a song on flash, then i got this message:

*** Security Sandbox Violation ***
Connection to "http://www.newgrounds.com/audio/downloa d/Song ID" halted - not permitted from file:///C|/Documents%20and%20Settings/my file.swf

How do i allow the system to do that operation?


None

Coaly

Reply To Post Reply & Quote

Posted at: 5/31/08 02:00 AM

Coaly FAB LEVEL 20

Sign-Up: 08/11/04

Posts: 2,578

Go to publish settings, click the flash tab, and switch access from local files to network files. I think that should do the trick, not sure though.


Questioning

541-ExE

Reply To Post Reply & Quote

Posted at: 5/31/08 02:41 AM

541-ExE NEUTRAL LEVEL 13

Sign-Up: 10/10/07

Posts: 175

thx.

Does anyone know how to load a file in flash with browsing?
Ive figured out how to load a file, but i dont know how to play it.


None

Healthy

Reply To Post Reply & Quote

Posted at: 5/31/08 03:37 AM

Healthy FAB LEVEL 15

Sign-Up: 06/16/07

Posts: 1,016

At 5/31/08 02:41 AM, 541-ExE wrote: thx.

Does anyone know how to load a file in flash with browsing?
Ive figured out how to load a file, but i dont know how to play it.

Can you explain it better? Like im not sure what you mean, do you mean online and play songs? Or what?

BBS Signature

None

541-ExE

Reply To Post Reply & Quote

Posted at: 5/31/08 04:30 AM

541-ExE NEUTRAL LEVEL 13

Sign-Up: 10/10/07

Posts: 175

on (release) {
	import flash.net.FileReference;

	var listener:Object = new Object ();
	listener.onSelect = function (file:FileReference):Void  {
		if (file.type != ".mp3" && file.type != ".wav") {
			trace ("File must be mp3 or wav");
			this._parent.songSelect.text = "File must be .mp3 or .wav";
		} else {
			trace ("Opened a " + file.type + " called " + file.name);
			_root.filename = file.name;
			_root.loadOwnFile = true;
		}
	};

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

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

This loads a file, but it dont do anything with it. What i want it do, is that i either can get the adress, like C://Documents/song.mp3, or upload the song in flash so that i can load it using loadSound


All times are Eastern Daylight Time (GMT -4) | Current Time: 08:52 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!