ActionScript 3.0 :: Local Connection To Swf Loaded On Native Window?
Aug 7, 2011
I have 2 swfs loaded that use a local connection to communicate, they work fine when loaded on the same window but when I load them on separate windows it gives me the following error.
ActionScript Code:
Main Thread (Suspended: SecurityError: Error #2070: Security sandbox violation: caller file:///C:%5CUsers%5CSiggy2xc%5CAdobe%20Flash%20Builder%204.5%5CMass%20Media%20CG%5Cbin-debug%5Cswf%5Canimation%5CTest.swfcontrol cannot access Stage owned by app:/Mass_Media_CG.swf.)
View 0 Replies
Similar Posts:
Oct 6, 2011
I have a Adobe Air app (AS3, not Flex) that has 2 windows. When I click away from them onto another desktop program, I get an "Deactivate" Event (as you would expect).When I click on say Window#1 I get an "Activate" Event (as you would expect).But when I go from Window#1 to Window#2, I get nothing. And I believe this is because the Air application is still the active program, Just a Different Window.
But I have the need to know when I go from 1 window to another.The horrible solutions I have come up with so far is to have an onEnterFrame and check if the current window is the active window. But I would much prefer to do it a much better way that such a hack.I have gone though Stage, NativeApplication and Native Window Events and none of them do what I need. Can anyone point me to another Event I may have overlooked?
View 1 Replies
Jan 3, 2012
I'm developing a multi monitor fullscreen application with Adobe Air 2.6. I can create a window for every monitor, and put those windows to fullscreen.
theWindow.stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
The problem comes when interacting with those windows. If I click the window on the main monitor (the one with the dock and menu bar) no problem, but when I click any other window the system menu bar becomes visible. I've tried resizing the main window to match the monitor size and moving it to a negative coordinate but it always stays behind the bar. Is it possible to do this in Air?
View 1 Replies
Jun 30, 2009
I'm trying to add an event listener to a window that pops up (to the whole window) that will close that window when clicked on. Basically it's your typical about window that would be found in any program by hitting help, then about this program. I am using no chrome on it so I'd like to just be able to click it and have it close.
On a less important note I'd like to center the window on the stage when it pops up. Right now I'm just using the x and w properties to get it close to center on my monitor but obviously that won't work for everyone. Below is the code I've tried. No luck whatsoever. Window pops up but stays up if I click it. Any help as always would be AMAZING!
[Code]...
View 10 Replies
Jul 17, 2011
How do I load an external swf into an external window? I'm using the following code, it works if i add the swf to the original window's stage but not if i add it to the new window's stage.
[Code]...
View 9 Replies
Jul 13, 2011
I used the following code to create a new window using ActionScript 3 with AIR 2.6, but I am unsure of how to put anything in the window.
ActionScript Code:
import flash.display.NativeWindow;
import flash.display.NativeWindowInitOptions;
[code].....
View 1 Replies
Mar 8, 2011
my application launches with the stage size of 1000 x 500, 2:1 aspect ratio. the native window has system chrome, which will always be a little taller by a few pixels.how is it possible to only permit a native window to resize proportionately in order to always maintain the 2:1 aspect ratio of the stage?[code]
View 1 Replies
May 27, 2011
I have a Native Window in Flex AIR. Let's say the window doesn't have a focus. It is inactive. Is it possible to find out when mouse is over such window? The window is always in front. I heard that it is possible by checking stage.mouseX in ENTER FRAME handler.
View 2 Replies
Jan 25, 2012
I'd like to create a window witch is not allow to move. Is it possible.
View 3 Replies
Feb 21, 2012
In my Flex (Flash Builder 4) Air application, I have a spark window and have set the close="" event handler (also tried the 'closing' event) to a method that pops up an alert confirming if they want to close the window. This worked fine in my normal browser based app as a TitleWindow, but now that it's an Air app with a native spark window, it's not working. I never see the alert dialog, and if I debug trace, it does in fact go in to my close handler method, but visually I can see the window is already gone from the screen. In an AIR application, how do you add a confirmation dialog for when they click the "x" to close the window?
View 1 Replies
Nov 10, 2009
I want to create the following: Suppose I have 2 swfs open in an HTML doc. The first sfw has 3 buttons: red, green, blue. When I hover over these buttons, I want the words "red", "green", "blue" to appear respectively in the second swf.
I found out that I can use "local connection" to to this, but it's too advanced for me.
View 1 Replies
Dec 29, 2010
Basically, I need some help from mac users. I've made a portfolio site at: URL... and I'm using the 'Local Connection' function for communication between the thumbnail menus and the displayed images.However, I discovered that this wasn't working on macs... and after some digging, I found out that I should add the statement:[code]So, I added this, but I have no way to test whether it's now working or not as I don't have access to a mac. Is it right?
View 3 Replies
Oct 12, 2010
i have a very complex object, i wanted to pass on the object from AS2 to AS3 through Local connection. Looks like it doesnt accept more than 40k. Right now i am splitting the object and merging from AS3. i knew this is not so efficient enough. Is there any way i can share the object without splitting or any efficient way to achieve this.
View 3 Replies
Feb 27, 2010
Is it possible to connect to the same Local Connection more than once?
What if I have a Flash signature with same flash movie on the page 3 times and I click on the button on the first movie. Can the other 2 movies do the same action the first movie is doing?
I thought thats what LocalConnection was for but when the second movie tries to LocalConnection.connect it says the connection is already connected.
View 3 Replies
Jan 30, 2009
I am really getting stuck with the 'Local Connection' action script vibe. All the tutorials show adding text from one swf and it appearing in another, but to this day i still cannot find a way of rolling over a button and it triggering the rollover on a button in anther swf.
My theory is that if it is possible to add text to another swf...surely connecting buttons is possible..
View 4 Replies
Sep 20, 2010
We're loading a AS2 SWF into a AS3 Container. Then we want the AS2 SWF to run a function in the AS3 container...Is this possible without a local connection?
View 2 Replies
Feb 2, 2010
I have 3 Flash banners on 1 page that run through a synched animation together. At the end of the animation, there is a replay button in each of the 3 banners. I want the replay button when clicked in any of the banners to call a replay function in all 3 banners. Is there any easy way to do this? Using localconnection?
The banners are already using a local connection for the syching of the animation, if that helps.
View 3 Replies
Feb 2, 2012
I am using 2 swf movies to comminicate text like in the following example[URL]it all works well, accept, the text dosn't scroll up in the recieving movie. How would i make it do that?
View 1 Replies
Jan 10, 2009
I need to check to see if the connection is already open, and if so, remove it so I can reconnect (sending a new variable on the new connection).[code]...
View 9 Replies
Jan 29, 2009
In AS2, and creating a local connection between two swfs, what do the commands "comeBack" and "section" do?What's there place in the process?[code]...
View 1 Replies
Nov 22, 2010
I want to be able to pass the mouse click / evt with local connection[code]...
View 1 Replies
Aug 5, 2011
When I try loading 2 swfs that use a local connection to communicate I get this error
ActionScript Code:
SecurityError: Error #2070: Security sandbox violation: caller file:///C:/Users/Siggy2xc/Adobe Flash Builder 4.5/Mass Media CG/bin-debug/swf/controlPanels/animation/Test.swf cannot access Stage owned by app:/Mass_Media_CG.swf.
[Code].....
How can I allow the 2 swfs using a local connection to communicate?
View 0 Replies
Oct 9, 2006
I have three swf's using local connection to communicate. Basically a top and bottom navigation communicating with a main module. All this works fine and looks a little like this:
Top_Nav:
[AS]
Actions.LINKFunction = function(){
outgoing_lc = new LocalConnection();
[code]....
As I mentioned this all works fine. Where I am having trouble is that there is one link that takes the user to an eCommerce area of the site that lacks the main module. It only has the top and bottom navigation. So the navigation is basically broken once the user heads to this area. By putting a getURL into the top nav function I can easily get back to index.html, but I can't figure out how to send the functions once the page has loaded. Basically looking for a way for the functions to execute after the new html page has loaded. So the user hit's the LINK button, the page index.html is loaded along with the three swf's and instead on the default movie's loading in the main-module, the functions in the main module corresponding to LINK are run.
View 1 Replies
Mar 24, 2007
Ive used local connection before, it always comes up as a bit fishy, but the best reulst i got was following the emaple in the help file, but it only works when the files are online, and i need the receiving/listening SWF to be online..and the sending should be able to work both from localhost and a domain,
[Code]...
The following example sends a string to the previous SWF file and displays a status message about whether the local connection was able to connect to the file. A TextInput component called name_ti, a TextArea instance called status_ta and a Button instance called send_button are used to display content
[Code]...
LocalConnection objects can communicate only among SWF files that are running on the same client computer, but they can be running in different applications--for example, a SWF file running in a browser and a SWF file running in a projector.
View 4 Replies
Feb 16, 2011
How do I open a new window as hidden? (note the visible="false")
<s:Window xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
showStatusBar="false"
resizable="false"
visible="false">
If I declare a window this way, and then call this.open(false);, the window will quickly open and then hide, and then be reshown when I actually display it, I want to do this to be able to load content and fit the window to that size before showing it.
View 1 Replies
Mar 22, 2010
I have an mp3 player(AS3) loads in external mp3. I am trying to attach the flash local connection script to the mp3 script so that I can have the mp3 pop up in a smaller browser and it be controlled by the main homepage.
here is an example, [URL] select track 4, you will see it starts playing but also another small window pops up but its behind the main browser. this is then controlled with a 'Stop' and 'Play' function on the main home page.
thats what I am trying to create:
ok;
I have an example working for the flash local connection where you can drag a ball and it also moves in the smaller pop up window, see here: [URL]
So I have that working and I have the mp3 working, but I need to put both togther and cross over the flash local connection script and incorporate into the mp3 script.
What is the best way for me to send script information, I don't want to flood the thread with AS. You can download the flash lconnection files and the mp3 player from here!
[URL]
View 7 Replies
Jan 4, 2012
I have got Flash CS5 and i create AIR desktop application. I would like to create and edit sql lite local air database. I know i should use SQLStatement and sqlConnection. Could someone give me any advice about doing that. Maybe some tutorial or something what let me to do that.
I don`t know should i create that database sql lite file earlier and include it to air project or should i create that database in dynamic way by as3? How can i get and edit data from this database? How can i save that local database if it included in air project (i would like to that database file would be inside of air project)?
View 4 Replies
Feb 2, 2011
How do i send a text file between air applications using local connection?Sender AIR
private var conn:LocalConnection;
public function init():void
{
[code]......
View 2 Replies
Jun 7, 2011
I am creating a local app that is going to be a swf file. Is there anyway to check if the user has internet while they are using my app. I tried this, it works great if testing the movie from flash, however, It does not work when running the swf file independently. I'm guessing this is because it is strictly intended for air app.[code]...
View 3 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