ActionScript 3.0 :: How To Handle Pathing (local/remote)

Sep 15, 2009

Especially in the case where there's multiple swfs (wrapper & content), and then lots of child classes within the content swf, how do you handle pathing changes between testing locally versus deploying live?I've used a few different methods ('DEBUGGING' Boolean with path variables changing depending on true/false; config.xml file loaded with pathing defined within), but all seem the have weaknesses that make it a real pain to workwith/around....especially when you're using the same swf in multiple places and the pathing is all relative to the HTML page that embeds it. :/

View 4 Replies


Similar Posts:


Flex :: Handle Remote Method Calls Via AsyncToken?

May 25, 2011

So here is the mxml i would like to get working:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[code]....

View 2 Replies

ActionScript 2.0 :: Replacing Remote XML With Local?

Aug 14, 2009

In my html, I have

Code:
var frank = "http://www.deloitte.com/deloitte-ecm-cm-dpm-web/getflash?queryParams=view=dhome/cid=4030faec731c1210VgnVCM100000ba42f00aRCRD";

[code].....

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 2.0 :: BitmapData And Local Vs Remote Images

Feb 27, 2012

I am creating an interactive post-it for an upcoming event that allows for us to tap into a sql database and post tweets, survey answers and images. We've already tapped into the Twitter API and the survey, so those are A-OK.The problem lies within loading the images from a location other than the local interactive board's server.If the image itself is locally hosted, it loads just fine.If the image is hosted elsewhere, the image will not load, even though I have a trace on the URL of said image.I'm loading all tweets, surveys and images through an XML load and all the data is loading properly.I AM loading the image through a smoothing filter so that when the "post-its" are slightly rotated, they are not jagged. Here is THAT code:[code]

This is a two part script where the bulk loads in the image and places it into an empty movieclip, then adds the smoothing filter. The second part is a resizer that automatically resizes the image and keeps the aspect ratio.When I test the flash piece (not embedded in HTML) the thing works 100%.As soon as I put the swf into an html and view it on a web page, the remote images will not load.I'm a bit stumped on why this is, could this be a firewall or security issue? Because I work in a high security firewall environment.

View 1 Replies

Actionscript :: Local Swf Bridge To Remote Swf To Go Around Flash Sandbox

Apr 4, 2011

Goal: to make possible to make requests from flash running on local protocol (widget://, file://, chrome-extension://) without any special permissions on [URL]

Supposed solution: proxy swf file loaded in page with widget:// or file:// or chrome-extension:// protocol which loads into itself swf file located on http server. local swf bridge conects its own external interface to http swf file external interface.

This solution used in youtube movies, so you can embed any youtube movie into local page and it will be shown and played fine;

At the end we can get working soundmanager2 [URL] opened localy (file:// protocol), which can load and play music and video from internet. I need proxy for this version [URL]

Some relative [URL] How do I call a Flex SWF from a remote domain using Flash (AS3) ?

I need this to play music in opera extension (using widget:// protocol) for my project [URL] to let users play music without setting up special permissions

View 1 Replies

ActionScript 2.0 :: Remote SWFs May Not Access Local Files

Feb 4, 2007

I have this situation (simplified):
MC-A.swf opened from local computer (C:/) and loads MC-B.swf which is hosted on a server.
When MC-B.swf is loaded, it tries to access file called "loader.swf" which is also on local computer (C:/).

When it tries to access the "loader.swf" I get the following error message:
*** Security Sandbox Violation ***
Connection to file:///C|/loading.swf halted - not permitted from [URL]
-- Remote SWFs may not access local files.

I read discussions concerning this issue, and as I understood, I could use:
System.security.allowDomain("[URL]");
to solve this problem, but it didn't work.
I wouldn't like to change the loaded file to load it's resources also from the web, since it can find them on the local machine.

View 4 Replies

ActionScript 3.0 :: Remote SWFs May Not Access Local Files?

Aug 18, 2009

lod.load(new URLRequest(str2));how to unload the lod when second time i cal that function.how to over come this (*** Security Sandbox Violation ***SecurityDomain )

View 1 Replies

ActionScript 3.0 :: Remote XML Works, Local XML Brings Error?

Sep 8, 2009

Been given the following actionscript

Code:
package menu
{

[code].....

View 1 Replies

ActionScript 3.0 :: Flash Plays On Local PC But Not On Remote Server?

Feb 12, 2011

I am having no success playing a short FLV through a SWF on my hosted web site. The video plays without problem on my local PC. This problem only occurs with SWF and HTML created with Flash CS5. With Flash CS3 the problem does not occur. The only difference I see between CS5 and CS3 files is this: There is a file called AC_RunActiveContent.js created with the SWF and HTML through CS3. But that file does not exist with the SWF and HTML created through CS5. Since the video plays on my local PC, I assume that AC_RunActiveContent.js is not required for newest version of Flash player. My web host provider assures me that MIME settings are correct and Window 2005 is the operating system. I am at my wits end trying to determine the cause and fix for this problem. Please give me some advice for resolution.

View 3 Replies

ActionScript 3.0 :: Flash Loading Remote Files From Local Swf?

Nov 8, 2011

I have a problem when i try to access the internet from a swf that is run localy.I want to load other swf files from diffrent domains into my main file wich works fine when the swf is on some domain but when i download the file and run it localy it doesn't work.

Can i change the sandbox type from actionscript? Mochi Media does it after enctypting your swf but i don't know how.

View 2 Replies

Actionscript 3 :: LocalConnection Working In Local Browser But NOT In Remote Site

Jan 23, 2010

Really puzzled by the flaky behavior of LocalConnection. Using a debug utility(LuminicBox) that uses localConnection to work.

When the page containing the swf is loaded in a browser locally , localConnection works.

When the identical page and swf are viewed 'live' on a remote site, localConnection fails.

View 3 Replies

ActionScript 2.0 :: Access Local PC Files From Remote Flash Player?

Feb 7, 2010

I have a flash file located on a web server. When it's loaded, I want it to access the user's PC and display some data (such as file directories, files, etc)I know there are security rules about what a flash player can access, but so far all I can seem to find are rules regarding local flash players accessing the internet, but not much on the other way around, or how do go about doing that.

View 0 Replies

Silverlight :: Flash Vs Silverlight On Localhost /local File Permission To Access Remote Webservice?

Mar 30, 2011

In Flash user can give permission to localhost and even local html file to access remote webservice.I fail to see the same thing for Silverlight which is a nightmare for testing on local pc.

View 1 Replies

Published Files Work On Local Site But Not On Remote Site?

Nov 4, 2009

the flash4 published set of files, with a variety of skins tried, works well on the local drive, even when moved to a different folder structure. when index.html is opened on the remote web site, the browser (firefox3 and ie7) displays the player conrols and a rotating horizontal barber pole, green and black, but no flash video.some of the skins i've used are: SkinOverPlaySeekFullscreen.swf, nOverPlayStopSeekCaptionVol.swf and SkinUnderPlay.swf. all work locally but do not play the .flv file on the web site. no problem playing flv movies on the remote web site if the file set is created by dreamweaver.

View 8 Replies

ActionScript 2.0 :: Access Local Swfs Using Remote Swfs?

Jan 5, 2010

Is it possible to access local swfs using a remote swf

View 1 Replies

ActionScript 2.0 :: Flash Scrollbar Gallery - Replace The Rectangular Handle With Own Customised Handle

Feb 6, 2010

I'm creating a scrollbar gallery from a tutorial on this site. Though I've completed the tutorial, and customised the gallery to my own needs, however I'm trying to make a very small change to it - and no matter what I do, keep running into problems. I'm trying to replace the rectangular handle with my own customised handle - a (20 x 20) 'circular' png image that I've imported into Flash, made a graphic and stored in the library (though I understand it can be imported using actionscript, like the other images in the gallery).

[Code]....

View 7 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 2.0 :: Pathing Of Objects - Set The Targetpath?

Jun 29, 2004

When creating custom-objects, is there any way to set it's pathing? The problem is that it seems without a defined targetPath the object's callbacks are ignored.

[Code]...

So, is there any way to set the targetpath? They all seem like read-only to me. One way to fix it perhaps is to place an object on the stage and use the as2 field to define it's class, but I prefer coding everything If i make a movieclip using createEmptyMovieClip, it'll work (trace(this) shows say _level0.some_mc) ), but I want my custom classes..

View 13 Replies

ActionScript 2.0 :: XML Pathing - Load Swf Into Another File It Stops Working

Jan 13, 2005

I have a self file loading images via xml. This is working perfectly. When I load this swf into another file it stops working. I cannot figure out what path to change. This is the what it looks like:

[Code]...

View 1 Replies

ActionScript 2.0 :: XML Pathing - Load Swf Into Another File It Stops Working?

Jan 13, 2005

I have a sef file loading images via xml. This is working perfectly. When I load this swf into another file it stops working. I cannot figure out what path to change.This is the what it looks like:

// LOAD XML PAGE
loadXML("GoXML", "xml/badges.xml", loadpics);
function loadpics() {[code]....

And it doesnt work once I have loaded it into a target clip called "badges.pos"

View 1 Replies

ActionScript 3.0 :: Pathing - 1120: Access Of Undefined Property Topmenu

Aug 26, 2009

I have code that uses multiple button functions within different movie clips, here is a sample of the code in the last frame of the last movie clip:

[Code]....

The path, as I think of it is, Scene1.Content.ContentNewsNetwork. However I am getting errors saying that: 1120: Access of undefined property Content. and 1120: Access of undefined property topmenu. The buttons are contanted in Scene1->topmenu (instance name)-> then each button, is its own button.

View 4 Replies

ActionScript 2.0 :: Dynamic Pathing - Get To Localhost Without Knowing What [user] And [random_name] Are?

Mar 7, 2012

Flash stores .sol file in a location like this: C:Documents and Settings[user]Application DataMacromediaFlash Player#SharedObjects[random_name]localhost folders [user] and [random_name] are dynamic and change from user to user. My question is how can I make it so I can get to localhost without knowing what [user] and [random_name] are? I'm trying to make it so other users of the swf can use it without having to know how to get to their own localhost folder.

View 3 Replies

ActionScript 2.0 :: Pathing Of Objects - Without A Defined TargetPath The Object's Callbacks Are Ignored?

Jun 29, 2004

When creating custom-objects, is there any way to set it's pathing? The problem is that it seems without a defined targetPath the object's callbacks are ignored.Here's an example:

class someClass extends MovieClip {
public function someClas() {
this.onEnterFrame = function() {[code]....

is there any way to set the targetpath? They all seem like read-only to me. One way to fix it perhaps is to place an object on the stage and use the as2 field to define it's class, but I prefer coding everything .If i make a movieclip using createEmptyMovieClip, it'll work (trace(this) shows say _level0.some_mc) ), but I want my custom classes..

View 13 Replies

ActionScript 2.0 :: Assistance With "dynamic" Pathing?

Jan 20, 2009

Need assistance with "dynamic" pathing I encountered a problem in my flash file. What I want to do is, use a For-Loop to set the size for up to 10 different Movie clips at the same time?[code]...

View 2 Replies

Flash :: Execute An External .exe From A Local .swf Using A Local XML Socket Server (C#)

Jan 7, 2012

I'm developing a game add-on/plugin which replaces a built in feature of an online game. The game loads an .swf therefore, my solution also has to be an swf for it to work 'in-game'.

I would like to be able to have the user press a button in the custom .swf I am making - and this would open an external application (amongst other things). I.e. if there was a button that said Notepad, it would open Notepad.exe on the machine.

My initial thinking was that i could have a XML Socket server 'daemon' runnning (c#) , which i could connect to with flash - however, as both the swf and the daemon are local, flash complained and gave this error: "Error #2010: Local-with-filesystem SWF files are not permitted to use sockets."

The only way i know to fix this - is to change the security settings of flash - not very user friendly!

So! Any thoughts on how I could otherwise go about this? I was thinking a custom http server could do the trick (connected with URLRequest) although i'm not too sure.

View 1 Replies

ActionScript 2.0 :: Launching A Local Html File From Local Swf?

Jan 16, 2007

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");
}

[code].....

View 4 Replies

Flash :: Adding A Folder On The Local Network To The List Of "local-trusted" Places

Jul 22, 2011

I have a SWF file located at the local network in the public shared folder that I do not control over trying to read the external file on the local network.

I am currently hitting instead an security violation

Error #2148: SWF file file://....mySWF.swf cannot access local resource file://...config.xml"

I've added the network path where SWF an XML file resides to "trusted locations" via Flash Player Global Settings.

The added network path is successfully displayed at the list of "trusted locations" within Global Settings Manager, but it does not look like Flash Player is able to really parse the local network path as a "trusted location"

FP 10.3.181.23, Win XP

View 1 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

Handle Image Border

Dec 31, 2009

ActionScript for Handle Image BorderLike this???

View 2 Replies







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