Actionscript 3 :: Local Playback Security Setting In Flash For Outside Communication With Inside As-classes?

Dec 14, 2010

I'm using external actionscript files located in the root of my webfolder, but I also want to communicate with another website.

How should I set my Local playback in publish settings? Access Local Only? or Access Network Only?

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Local Playback Security?

Aug 27, 2009

How would I go about checking this setting on a loaded SWF file? For example, I have parent swf A, loading child Swf B. Once swf B is loaded into child A, how do I check child B's local security setting property?

View 1 Replies

Flash :: Php Communication - Multiplayer - Local Works - Another Computer Does Not

Dec 19, 2011

I made swf file that sends id to php, than php collects info from mysql by this id, and returns result, than flash does his work with that result. The problem is here, I will try to explain it as clearly as I can: everything works fine when I do that on the computer that has all the source files and of course xampp running.

[Code]...

View 1 Replies

ActionScript 3.0 :: Flash Audio Playback Security?

Nov 9, 2010

mp3 playback security with Flash player. I am making a mp3 player and don't want to give user access to download the mp3 files from server. But according to Flash player functionality, it's getting downloaded in cache. Also with Firbug user can see the mp3 file path.I would like to have any good suggestion for this development, without streaming server. Is it really possible to secure mp3 files with Flash player? If yes then please let me know your feedback for the same.

View 3 Replies

ActionScript 3.0 :: Setting Communication Between Flash And PHP File?

Feb 4, 2009

I set up something using almost the same exact code as something else I got to establish communication between the flash file and a php file. But for some reason it's not working now. But the other one works, and the code is pretty much the same...

AS3 Code:
submit_btn.addEventListener(MouseEvent.CLICK, submit);
function submit(event:Event):void {
var variables:URLVariables = new URLVariables();
var varSend:URLRequest = new URLRequest("[URL]");
varSend.method = URLRequestMethod.POST;
[Code] .....

Yet every time I try it outputs the error message in the text field and the trace returns a undefined variable.

View 2 Replies

ActionScript 3.0 :: Permit The External Communication: Security.allowDomain

Sep 27, 2010

I have a small problem with the security function. I have made a small banner there post a titel from a RRS feed. The RSS feed coms form extern domain. When I run the banner local it's work out perfect, but online it dosent works I use this code to permit the externe communication: Security.allowDomain([URL]);

[Code]...

View 3 Replies

Actionscript 3 :: Debug Local Flash File With Preloader - Security Error

Feb 26, 2012

I have two Flash files: pre-loader and application.

Pre-loader: (D:ProjectsFlashAppsddedd.fla) is doing basically this:
var mRequest:URLRequest = new URLRequest("http://localhost/flash/dd.swf");
mLoader.load(mRequest);
}

Application file: (D:ProjectsFlashAppsdddd.fla) is the real application and among other things is doing this:

_loader.load(_request); //where _request = "assets/html/style.css".

When debugging the pre-loader, at this point I am getting an error which says:

SecurityError: Error #2148 File SWF http://localhost/flash/dd.swf cannot access local resource file:///D|/Projects/FlashApps/dd/assets/html/style.css.

The application must be loaded by the pre-loader, it won't start when called directly. But apparently, the security settings are preventing such duo from being possible to debug. Normally when it is on a remote server, it is working ok.

What I have done so far to resolve it:

Added crossdomain.xml to my local i:xampphtdocs folder:

> <?xml version="1.0"?>
> <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">

[Code]....

Set File > Publish Settings -> Local Playback Security -> "Use local files only" in both files. It didn't work, so I set it to "Use network only" Also didn't work.

What else can be done to be able to debug these Flash files locally?

View 1 Replies

Flash :: Javascript - Loses Communication When Moved Inside Dom

Sep 2, 2010

Code inside Actionscript:

[Code]...

Actionscript is calling javascript functions from inside just fine, but javascript is not. What is the problem? How to rebind startupload function?

View 2 Replies

Actionscript 3 :: Communication Across Different Classes?

Apr 1, 2010

I always have the trouble that make different classes communicate with each other.

1. using get set methods

2. eventdispatch to dispatch custom event.

Today, I am working on this confused issue again. I still can't get through it.this time what I wanna do is this: I wanna use a button (_zoom) to control a mc (_board) located in different class. Let's me give a simple structure for you:

ProjectAppear.as
|_ _board (mc)
|_ Project.as
|_ _work (mc)
|_ _zoom (mc)

My thought is I add a mouse event listener for _zoom, and then when mouse click it will dispatch a custom event..

View 2 Replies

Actionscript 3.0 :: Communication Between The Classes?

Feb 21, 2008

Im building my first OOP project with classes in AS3, Ive done a lot of tutorials and Im grasping the concepts well. Im just having trouble with the concept of communicating between classes. Whats the best way for a class to talk back to its parent once its instantiated? It seems when your inside a class, you're kinda stuck there as far as scope goes? ie one way street. Or am i missing something? Im used to the days where I was coding on the timeline and could just use this._parent etc. But obviously those days are gone.Or should I not need worry about this If I have planned the structure/heirachy correctly?

View 14 Replies

ActionScript 3.0 :: Direct Communication Between Two Local Swfs ... Socket?

Mar 6, 2012

I have some software developed where I have setup good communcation between some VB software and flash software. Communication is done locally via socket connection. I was hoping I could do the same except with two swfs. Who acts as the host? do I need a host?

[Code]....

View 1 Replies

ActionScript 3.0 :: AVM2 -> AVM1 Communication Bug With Local Connection?

Feb 22, 2010

I am creating a local connection to play an as2 movie, which works.... the first timehah.Observe the link below:http://isokon.net/clientPost/scripts/AVM2_to_AVM1.swf(test the above file by playing the banner, then killing it, then loading a new one and attempting the play method again...)I've tried closing the connection before reusing it, but it says the connection is not open... traces a successful send each time.here is the link to the abstracted FLA: http://isokon.net/clientPost/scripts/AVMCommBug.zip

HTML Code:
var bannerContainer : Sprite = new Sprite();
var connectID : LocalConnection;

[code].....

View 1 Replies

Actionscript 3.0 :: Communication Between Sibling Classes?

Apr 16, 2009

I had a question on OOP and the best practice for how to communicate between classes. If I have a class (SiblingA) where some one clicks something in it and you need to interact with another Class (SiblingB), what is the best method for doing this?

(option1) Should I have a bunch of event listeners in the Document Class that respond to these events? (I thought you wanted a document class to be as small as possible). (option2) Or should I create a separate 'Utility' class that speaks with both siblings to facilitate communication (event handling) between the two (one class with many public static methods). I have attached a diagram to try and help explain this.

Often times these events are dispatched from children of children in sibling classes (ie childOfSiblingA or even its children) Option1 Scenario: A user does something in SiblingA, that dispatches an event to the doc class which listens for it, fires its listener function which calls a (public) method in SiblingB to handle the interaction.

Option2 Scenario: A user does something in SiblingA which calls a (public static) function in Utility class which calls a (public) function in SiblingB to handle the interaction.

I think I am leaning towards option 1 but that would be a lot of dispatching events (child dispatches to parent, dispatches to its parent, dispatches to doc, doc calls child, which calls its child, which... finally does something)

View 6 Replies

ActionScript 3.0 :: Communication Between Variables In Other Classes?

Jul 19, 2011

I need to know how to reference variables in other classes. I have been avoiding this by referencing variables from the Main class, where they are created. But at this point I would like to be able to have the option and it would make me a better programmer.

Say I create a movieclip in the Main.as

Code:
public var Enemy_mc:Enemy = new Enemy();
addChild(Enemy_mc);

[Code].....

How do I do that^ without creating a variable in Main.as and having it check Background.as for variable updates?

Can I do something like "Main.Enemy_mc += 5;" like I can do in Main.as to variables that I have created in Main in other classes?

View 2 Replies

ActionScript 3.0 :: Communication Between Classes And Performing Action

Jun 2, 2009

I don't know how to phrase this, but as you can see my code below I have 2 classes.
1. wp_title
2. wp_date

How can I let wp_date to get the height of wp_title's contentText? Currently I tried tracing wp_title.height from wp_date but all I get was 0, I guess it doesn't get the height after wp_title finish loaded. Currently the classes will perform an action after I resize the stage. I assume if I'm able to get the classes to communicate with each other than I could have 1 main classes to control the actions perform in other class?

Code:
package {
import flash.display.Sprite;
import flash.display.Stage;
import flash.display.StageScaleMode;
import flash.events.Event;
[Code] .....

View 5 Replies

ActionScript 3.0 :: Error# 2025 And Classes Communication Again

Sep 9, 2009

1. I've created a menu which works almost what I want, but after I click a button and roll over to other buttons, it would show error. It show the error at the output panel but everything still working fine

Code:
private function bgGlow(event:Object):void {
//Disable menu below
event.parent.button.visible=false;

[Code]....

View 3 Replies

Actionscript 3 :: How To Change Flash Players Setting To Allow Browser List The Files From Local Folder?

Aug 12, 2011

I need to list the files under a local folder on web browser(flex app). How do i change the properties of flash player so that it will browser list the files?

View 3 Replies

Flex :: Security - Running Application/swf In Local Mode?

Oct 12, 2010

We are using flex for same. (Although I know flex is meant for web application and air application is best suited for desktop clients, but due to some build issues we can't go for air applications). Now according to our use case we required to read file from local file system which is not allowed in flex application due to sandbox policy. To override it we had planned to use it in local mode (i.e. running from local file system instead of deploying in web container). So after running application in local mode it bypasses sandbox policy and allows to read local file. Eventually we requires remote services call (either using web services or blaze ds) also in our application. To avoid sandbox restriction for network access in local mode we are planning to explicitly grant network access permission to our flex application.

View 2 Replies

Flex :: No Active Security Context When Doing LocalConnection Between 2 Local Swf's

Mar 28, 2011

I just dont get it - the swfs are in the same folder, hows that possible?

View 1 Replies

Flex :: Adobe Air Local FLV Playback?

Jul 22, 2009

I'd like to distribute FLV files from my website, however I want a level of DRM control over the files. So far, I've been able to modify the FLV files to contain a 60 character ID at the very front of the file, but I can't figure out how to get AIR to extract the ID and therefore play the file. All I can figure out is using NetStream, but that won't let me skip 60 bytes, and so it thinks the FLV is invalid.

View 1 Replies

Actionscript 3 :: Inside The Library Use Of A Bunch Of Classes/packages - Expose One Of These Classes?

Feb 3, 2012

I am creating a library in AS3. Inside the library I make use of a bunch of classes/packages that need not be exposed to the end user of my lib. I want to only expose one of these classes.

I guess my questions are:

1) How are libraries commonly distributed in AS3?

2) Is there a .jar equivalent in AS3 that developers can include, but will only have access/knowledge of the classes I've declared as public?

View 2 Replies

Professional :: Video Playback Quality Inside X Outside Flash?

Jun 10, 2010

I am loading a h.264 mp4 video (quite big, 2048 x 768) into a flv player. When I test it inside flash (Ctrl + Enter), the video runs really smooth. However, when I publish my .exe (or even a .swf, although I need the .exe),

View 2 Replies

Media Server :: Load Flash Media Playback From Local And Not From Ftp?

Sep 1, 2011

in the standard embed code:
 
[Code].....
 
the player "FlashMediaPlayback" is loaded from remote ftp adobe server.
 
How can I load the player from my local machine?

View 1 Replies

Avoid The Trip To Global Security Panel To Access Local .swf?

Aug 28, 2006

i just want to ask if there's a way to avoid the trip to global security panel to access local .swf?

View 3 Replies

ActionScript 2.0 :: File For Local Playback And It Contains Some Animations?

Oct 15, 2010

Building a flash file for local playback and it contains some animations that I insert as .FLVs. It is set to play full-screen, but when it does, the video gets all jaggy. Is there a smoothing function for video like there is for jpegs? Or any suggestions for another way to approach this?

View 0 Replies

ActionScript 3.0 :: XML Video Flv Playback Online Vs Local Behaviour?

Aug 18, 2009

I used a fantastic XML video tutorial from this site -http:[url]...in a school project here - http:[url].....When I test the site on my local machine everything works fine,but, when I upload it to a web server , clicking on the thumbnails to change the video does not work - except for the first page of videos.

View 1 Replies

IDE :: Save And Playback Recorded Voice On Local Computer?

Jan 17, 2012

I currently creating a standalone language learning application using Flash Professional 8. The application allow users to record and playback their own pronunciation, so that they can compare their own pronunciation with the pronunciation provided in the application for learning. how can I save and playback recorded voice on local computer

View 2 Replies

Professional :: Setting FLV Playback Skin To Null?

Nov 1, 2010

I am trying to create a FLV playback component (in Action Script 3) where the skin hides after the mouse is idle for a certain amount of time.  I've read a lot of suggestions to set the skin to null (in action script)

[Code]...
 
TypeError: Error #1009: Cannot access a property or method of a null object  reference.
 
As far as I can tell, there is no way to toggle visibility of the skin.  The best I can do is turn the SkinBackgroundAlpha to 0, which does remove the background of the skin, but not any of the buttons or bars.

View 5 Replies

Flex - Security Restriction - Save The Results Of A Database Query To A Local File?

Jan 2, 2012

I'm having some trouble getting around a security restriction of flex. Saving a file is apparently an action that can only be invoked upon user interaction. The problem is that after my user clicks on the save button, I need to perform a database query to get the data for the file I want to save.

Because Flex works asynchronous, I have to make the database call and then catch the ResultEvent in a different function. In that function, I no longer have the user's mouseclick event. How am I then supposed to save this file?

[Code]...

View 1 Replies

Professional :: Setting A Poster Frame In The Flv Playback Component?

Jul 19, 2010

I just spent 2 hours scouring the web for the answer. All I'm seeing is a whole lot of "how do you do it" and a lot of "do a google search for it'. I found a tutorial for CS4 that looked promising yet when I tried it in CS5 the damned Preview attribute (or whatever) just sits there looking at me. You're supposed to be able to click on it and choose a frame.  I click and double click and nothing happens.

View 3 Replies







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