ActionScript 3.0 :: Accessing Web-locations From Local Swf Or Exe

Sep 20, 2010

I want to make such flash file, which would contact web content without asking an user to add the file in the allow list on adobe web-page, is it possible to make it without help of other programing languages?

View 4 Replies


Similar Posts:


ActionScript 3.0 :: Accessing Local Variable (Never Declared Before)

Apr 24, 2009

I work with FlashDevelop, Flex SDK and FP10 debug. I am able to access a local variable (xcorner) which is never declared before, at the condition that it must be declared after... in an "if" for instance. If I remove the declaration of xcorner, within the if, errors occur at compilation, but otherwise it works.

PHP Code:
public function pushShape2Pool(name:String, sh:Shape, rotAngle:Number = 0):int{
[...]
// xcorner is NEVER declared before !!!
coordSprites[0] = new Rectangle(xcorner, 0, globalBmp.width, globalBmp.height);
trace("xcorner=" + xcorner); // display 0
xcorner += globalBmp.width;
[Code] .....

View 7 Replies

ActionScript 3.0 :: When Accessing Local File From Loaded Swf

Jul 9, 2009

I have the following problem when loading a swf file. I have content.swf file located at [URL]. The contetn.swf access a file settings.xml located in the same dir. I load it like this:

_settingsURLRequest = new URLRequest( "settings.xml" );
_settingsLoader = new URLLoader();
_settingsLoader.load( _settingsURLRequest );

Now I have another file loader.swf located at another domain [URL]. The loader.swf file loads content.swf but content.swf search for the settings file at domain2 not domain1. I know that I can use absolute address when loading the settings file but I'm loading a lot of files and I prefer another solution. Is there a way to specify that content.swf should always search for settings.xml in its own domain no matter the fact that its being loaded from onother file in onother domain?

View 2 Replies

ActionScript 3.0 :: Accessing Local SharedObject(stored In HDD) From Website?

Jul 25, 2009

Is there a way that i can access Local SharedObject using a swf from the net.

For example, i have a .swf that creates SharedObject running locally on my desktop computer.. But when i'm somewhere else, i need to access some of the shared objects in my desktop, is that possible?

View 4 Replies

Flex :: Accessing Video Content Over Local Network?

Jun 17, 2011

I am having a strange issue in my flex app. I have a Video element that loads an FLV file from the same directory as the SWF app. If I move my SWF and FLV to a local directory on my computer and load the SWF in my browser, the video plays without any issues. However, if I move the same collection of files (SWF, FLV, HTML) to a network share, the video no longer loads.

[Code]...

In my netStatusHandler() callback I get an event status of: NetStream.Play.StreamNotFound.

Again, I only have this issue when loading content from a network share.

View 1 Replies

IDE :: Accessing Local Shared Object From Diff SWFs

Jan 19, 2009

I am facing a problem in accessing Local shared object from 2 diff. swfs. Let me explain the scenario clearly.I am developing a radio widget (in maindomain.com for ex)which has a button to open a html page (placed in contentserver.com) as a popup with specific wt and ht. The html page loads the same SWF file of radio widget from "maindomain.com", means whatever changes we do for the SWF in maindomain will be reflected automatically in the popup also.Here where the problem is:

1. Say I am playing radio station "A" in main window and added this station to favourite list (which is done by storing in Share object). So when i open the popup its reflect there.

2. Now when i change radio station "A" to "B" in the popup and added "B" to favourites and closed the popup.

3. When I refresh the main window, I can get both "A" and "B" in fav, as expected.

4. But if without refreshing in main window when I changed to some new station "C" and then open the popup, it has got only radio station "A" in the fav list.

I am pretty sure this is because of Sharedobject.flush(). The thing I am wondering is, why the station "B" which is also pushed to sharedobject when added to favourite is getting deleted when I flush() the SO.?I googled many forums but not satisfied solution for this. Even I tried to get the Sharedobject.getLocal("SO","/") every time before using data in it. but no use.Is it a Flash limitation accessing LSO from diff SWF?

View 4 Replies

ActionScript :: Annonymous Functions Accessing Local Variables [Flex 3.5]

Jun 8, 2010

I am having a situation with my actionscript/flex front end.

[Code]...

I am expecting to have 3 Alert windows containing A, B and C. But the actual result is 3 alert windows all showing C

View 1 Replies

ActionScript 3.0 :: Prevent Loaded Swf File From Accessing Local Network Files

Nov 2, 2009

I am creating a web page that allows users to upload their own swf files to my web page, which are then used by the main web page as components. This creates a security issue though because I don't want the uploaded swf files to access other files on the server.

when the main webpage starts, it loads whatever third party swf files the user specifies. Is there a way for my main web page to change the security settings of the loaded swf so that the loaded swf is treated like it was loaded from another domain? Or is there another way I can provent these uploaded swfs from accessing local files on the server.

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

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

Zooming To Certain Map Locations?

Oct 27, 2009

how to zoom into(hence zooming the map outward) set locations on a map, yet only those locations. I have a script which will zoom to your mouse location and also if I set the specific x and y, but still zooms when clicking on any other spot.

how do I zoom to only a set location and nothing else within a map/image.

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

ActionScript 2.0 :: Interactive Map And Key Locations

May 25, 2009

I'm doing a project in flash. What I'm trying to do is have an interactive map and have key locations you can click to view a popup and using xml call in data such as thumbnails, images and information. I've also created a scroller so when you click the arrows the map scrolls left to right except I want to make it so that when you click the arrow right for example when the map gets to the far right edge the arrow greys out (to signify that you can no longer move to the right) It's complicated to explain so here's the assets in a zip file: [URL]

View 3 Replies

ActionScript 2.0 :: Make Locations On A Map?

Feb 24, 2003

I am getting ready to start a new project that about club located all over the world. I would like to make a map that locations pop-up on dynamically, like on

View 8 Replies

ActionScript 2.0 :: Two Icons Are In Different Locations?

Jun 18, 2010

there are two icons that become visible when a mc is selected, a small crosshair and a small circle. Sometimes they're in the same place, sometimes not. I understand the small crosshair is the origin, where all transforms originate from, but what's the circle, and what does it mean when the two icons are in different locations?

View 2 Replies

Flash Map - Rollover Lights Up Locations?

Apr 20, 2009

I have a map, which dots for locations, and a list on the right of place names. I want to rollover, say, Paris and the dot over central/northern France glows (expands, flashes, something... I know that would be in the movie over France).
So my question is, if the buttons on the right are the parts that mouseover (and will change colour, like good web links should) how do I get the dots on the map to change when the name is rolled over?

View 2 Replies

Unable To Change File Locations

Oct 7, 2009

I made a flash-file that will load a file externaly (http://.../locus.f4v). When I publish that flash file it renders a locus.swf, locus.index and a SkinOverAllNoFullNoCaption.swf (skin).When I upload everything works fine. But to easily manage all of my video's I can't have them lying arround and would like them in a folder. So I create a folder locusvideos. I change all the links in the html-file to locusvideos/... .swf but it just shows an empty page.so where are all the files at? locus.html (is in the most top folder)

/locusvideos/locus.swf
/locusvideos/SkinOverAllNoFullNoCaption.swf

and the video-file is still on the same place.

View 5 Replies

ActionScript 3.0 :: Video Source From 2 Locations?

Feb 1, 2010

I need pointing in the right direction with a random question.I need to change my Flash player to take on adverts at the beginning or end of playing the desired video.Is there anyway to do this by supplying the player with 2 separate videos?For example, at the moment I use this within my player:

<script type="text/javascript"> var s1 = new SWFObject( "/flash/FLVClipEditor.swf?" + new Date().
getTime(),

[code].......

View 7 Replies

Actionscript 3 :: Set Dynamic Locations In An Image?

Feb 17, 2011

I want to set different locations in an Image, and when I mouse over the location it needs to shows something('box' or 'x' nd 'y' position of the location). How can i achieve this.?

View 3 Replies

Actionscript 3 :: Button Only Working In Certain Locations?

Mar 23, 2012

Here is the code:

var abutton:AButton = new AButton; //Where AButton is a button defined in my library
addChildAt(abutton, numChildren);
abutton.addEventListener(MouseEvent.CLICK, attack);

It doesn't want to work when certain movie clips are underneath it, but I don't want to make it more complicated by switching to another screen. Is it possible to make the button work with movieclips underneath?

View 1 Replies

ActionScript 2.0 :: Put MC's Randomly In One Of Four Fixed Locations?

Nov 5, 2006

I am making a small game, and I have four movieclips and four fixed locations (fixed xy locations like x=86 and y=181).After every round of the game I want the movieclips to be randomly in one of the four locations.However my Actionscripting skills don't have a clue how I could do this efficiently.

View 5 Replies

IDE :: Changing The BitmapData.rectangle - X And Y Locations

May 2, 2009

I'm trying to take a 'snapshot' of a movieclip that i've got on the stage with "BitmapData" and then starting a "draw()" command on it. I'm able to get it drawing.. however.. it only takes the things from (0,0).( the upper left corner of the movieclip. Doing a trace on "BitmapData.rectangle" gives me it's X and Y coordinates .. and it's width and height..

How do I change the X and Y locations of the BitmapData for it to start the drawing from? As I have some stuff on the negative side of x.

View 1 Replies

ActionScript 3.0 :: Tween Parent In Regards To Child's Locations?

Jul 21, 2010

I am working to tween a map of US States to center over and zoom on a specific state once clicked on.I know that I'd want the new x,y of the US States to be something in regards to the difference between its registration location and that of the child clicked uponThe tricky part I am finding is that the coordinate space of the children is specific to that of the container (parent)

View 2 Replies

Media Server :: Broadcast To Multiple Locations?

Jan 28, 2011

Trying to output to multiple servers - tried launching multiple window of FMLE-but get an error message with the second broadcast attempt.

View 1 Replies

ActionScript 2.0 :: Replace The Locations.swf With One Of My Scene Names?

Nov 5, 2004

I have a scene with 3 buttons on it. I would like to be able to click the button and move on the to a specified scene. Will the following code work or do I need to used something else?

on (release) {
_root.contents.loadMovie("locations.swf");
}

Can I replace the locations.swf with one of my scene names or do I need to find another piece of code?

View 3 Replies

ActionScript 2.0 :: Load SWFs With Random Y-locations?

Aug 23, 2005

How would I write the following in ActionScript...

- I have 2 external SWFs I want to load. Their height will change over time as I add more content to each SWF.

- I want to load one SWF, then directly below it, load the other SWF.

- The X-location and width of the SWFs should never change.

How would I code something that loads an external SWF, checks the Y-height of it, then loads another SWF below it?

View 9 Replies

ActionScript 2.0 :: Changing Object Locations Of MovieClip

Aug 23, 2006

I need to move a movie from let's say '_root' and put it into '_root.source.pages.ph' on level 0 in the current state that it is in....is there anyway you can do this using actionScript? DuplicateMovie starts the movie over at frame one and doesn't delete the old movie and swapDepths require the movie to have the same parent.

View 2 Replies

ActionScript 3.0 :: Function Call From Multiple Locations?

Jan 19, 2008

I have noticed that calling a function from a mouse event requires just that event as a parameter in the function declaration function doSomething (evt:MouseEvent):void{} I would like to call the same function from different places like so

function doSomething ():void{
trace("doSomething")
}

[Code]....

View 6 Replies

ActionScript 3.0 :: Using An Array To Hold The Locations Of Photos?

Jan 31, 2009

i can't seem to figure this one out as it has to do with arrays and i sorta understand them but haven't needed them for anything practical until now, im making a photo gallery i don't want to bother learning how to do it through XML , not as of yet at least, so im just using an array to hold the locations of my photos, I tested my code by just using a single path as the URLRequest and it worked great, so i made an array and replaced the single path with the array and the location of the path in the array that i want it to start with. Thats where the problem is, i get

[Code]...

View 14 Replies

ActionScript 3.0 :: Create A Flash Which Will Have Multiple Dots To Indicate Locations?

Jan 13, 2010

I am trying to create a flash wich will have multiple dots to indicate locations, on mouseover to these dots a panel will appear on the right hand side showing some related information.

View 1 Replies







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