ActionScript 3.0 :: Get The Browser URL - Not The Location Of Swf

Oct 28, 2009

I am having a problem with finding the current URL displayed in the browser.

I have tried..

1. this.loaderInfo.loaderURL.toString()

2. var local:LocalConnection = new LocalConnection();
local.domain

Above two methods returns url of swf location but my requirement is bit different

Finally I have used. ExternalInterface.call('window.location.href.toStr ing');

but ExternalInterface.call('window.location.href.toStr ing'); will not work where JavaScript is disabled hence I would like to know if there are any possible way or hack to do this.

View 4 Replies


Similar Posts:


ActionScript 2.0 :: ScrollTo Browser Window Location (160,0)?

Aug 7, 2004

Using FMX, publishing as low as pos, I followed the lesson on opening new browser window in flash. works great. want to add scollTo (160,0) in this new browser window.add this code to the following open new window code and tell this want to be how to enter it and exactly where to enter ithtml

<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function Launch(page) {

[code]....

View 1 Replies

ActionScript 1/2 :: Make An Object Tween From Its Starting Location To The Location Of A Mouse Click?

Apr 27, 2009

I am trying to make an object tween from its starting location to the location of a mouse click. I have a script, but it has a very annoying ease to it.I would LIKE the object to mantain a certain speed during while traveling from its starting location to the mouse click location.

View 16 Replies

Professional :: Button File Opens In Saved Location / But Won't Open In New Location

Aug 21, 2011

I created a simple button that displays an error messeage: "error opening 'url" when I test the movie, but does play and opens in browser after publishing. However, it won't open in the browser in a different location. I pasted the html code in a web page but it doesn't work there nor opens in the browser in a differnet location from where it was originally published and saved. Why is that?

View 13 Replies

ActionScript 2.0 :: Move MC From One Location (x / Y) To Another Location

Feb 16, 2005

How can I move my MC from one location (x, y) to another location (x1, y1) wirh action script..?.. and I would like to have my motion tween rounded to (x,y) so it will look sharp.

View 8 Replies

Flex :: Make A Flash Browser App That Could Receive Data From Browser Plugin Or Other Windows App?

Dec 18, 2009

in other words, suppose I want to send data, like text, programmatically from a Windows app (such as a browser plugin) to a Flash app running in the browser. Well, conceptually, an example of this might be a Flash instant messenger with a textbox and button "Send"; so let's say I want to be able to programmatically paste the text and press Send or otherwise activate it. That's NOT what I am trying to do here in reality (i.e., no,I am not trying to spam other people's chat rooms or anything)but just an illustration of a similar situation.I can include in it whatever widget or hack that may be necessary.The reason why this problem is arising for me is that AFAIK the SDK that is providing me the data I want cannot be directly accessed from Flash, so I need a way to pipe the data from a regular app into Flash. can I have the Flash app interact with other apps through localhost IP? Or are there draconian restrictions on which server Flash in browser can and cannot interact?

View 1 Replies

ActionScript 2.0 :: Full Screen Browser - Browser Window Is Opening At The Size It Was Last Used?

Apr 14, 2005

I have a standalone Flash projector running off CD. Currently, I use

getURL("http:url....);

to open the page on default browser. Only problem is the browser window is opening at the size it was last used. I like to see it opens full screen.

View 2 Replies

Actionscript 3 - Flex / Flash - Open The Swf In A Browser Window That Doesn't Have The Browser Control Bar Or Menu?

Oct 27, 2010

The title essentially is the question, how do I open the .swf without the browser's control bar junk? and maximize the window?

View 2 Replies

ActionScript 2.0 :: Opening Browser Windows From A Flash Movie With Browser?

Jan 17, 2006

I have a PHP mailer form on my site which needs to be published in action script2 to work, but I also have a script set up to open browser windows of a certain size & location which needs actionscript 1 to work? The PHP mailer form has a "Name" field, "Email" field & "Message" field, theses can all be reset with a button. The button clears off any text in the 3 boxes to wipe them clean. The script on the reset button is:

on(release) {
_root.myForm.formNameField.txt = ""
_root.myForm.formEmailField.txt = ""[code].....

This works fine with section script 2 but not with as1. Does anyone know of a script that resets the .text field on as1 Alternatively is there any way of opening browser windows from a flash movie with browser win controls, eg. centre win, no scrollbars.

View 2 Replies

ActionScript 3.0 :: Detecting Browser Close Event And Send Data To Database / When User Closes Browser Window

May 24, 2010

Trying to detect a browser close event and send some data to the database when the user closes the browser window...but can't seem to get it to work.[code]

View 6 Replies

ActionScript 2.0 ::closing A Browser Window In All Types Of Browser?

Nov 9, 2009

I have looked around for this and haven't found a way that clearly explains how to do this. More often than not the button will close the browser window in one but not another browser.

Is the a simple way of closing a browser window in all types of browser ( Or mainly Firefox, IE and safari on both Mac and PC ) with actionscript?

View 0 Replies

ActionScript 3.0 :: Remote Access Varies From Browser To Browser?

Jul 17, 2010

I created a photo album viewer which grabs an XML file from my web site, and then parses the XML to get the paths to all the photos to be displayed by the album viewer. The code makes use of the URLLoader class to fetch the XML. The problem, though, is that in google Chrome it works-- but in IE8, it doesn't work. For example, the XML code and the image fetching code work seemlessly on Chrome. But in IE8 and in IE6, it seems to not be able to fetch such information.

I've read somewhere that you need a crossdomain.xml file at the root directory of your server. But I'm not crossing any domains! It's all coming from my server where the swf is being hosted!

View 1 Replies

Flash :: Full Browser Detecting Browser Size?

May 8, 2007

[URL].. Anyone know the AS to make it automatically check the size of the browser for the listeners_notice when you resize the browser it works perfectly...but not when it first loads up.

[Code]...

View 11 Replies

ActionScript 2.0 :: Closing A Browser Window In All Types Of Browser?

Nov 9, 2009

often than not the button will close the browser window in one but not another browser.Is the a simple way of closing a browser window in all types of browser( Or mainly Firefox, IE and safari on both Mac and PC ) with actionscript?

View 5 Replies

Java :: Do Websockets Allow For P2p (browser To Browser) Communication

Nov 7, 2010

To clarify when I ask about browser to browser communication I mean without a server in between forwarding message. I would like to implement something like this for a game. If p2p in websockets isn't possible are there similar alternatives?

View 1 Replies

Ajax :: Browser Inside Of A Browser?

Sep 1, 2010

I am not trying to track clicks or anything like other people - I just want to put a browser within a browser that can go back, forward, refresh, accept user-entered URLs, and store bookmarks. Can flash/silverlight/ajax/whatever do this? If so, how?

View 4 Replies

Accessing A Location In One SWF From Another SWF?

Jul 11, 2009

I have a series of swfs that I've connected via loadmovie. This works well with I press the NEXT button, but not the PREVIOUS button. The PREVIOUS button starts at the beginning of the called movie. I need it to start at a specific location. Is that doable? If yes, how? I tried adding the gotoandplay after the call to the swf, but no luck.

View 2 Replies

Get Location With Flash?

Oct 28, 2010

is it possible to show my Town (find by IP) / Town of my Provider in Flash File?

View 2 Replies

ActionScript 2.0 :: CSS Var Location?

Sep 12, 2004

How do you change this code so that it works when the swf timeline its on, is loaded into a movieclip on a main swf stage (_root.loadarea)It works fine on its own but dont when loaded into the loadarea mc.

Code:
var format = new TextField.StyleSheet();
var path = "http://www.kirupa.com/developer/mx2004/code/flash.css";
var quick = "<br><p class='one'>The quick Kirupa jumps over the lazy dog.</p>[code]..........

View 2 Replies

XML Location Change In Flash?

Mar 26, 2009

I have a flash file that calls a XML file to give it commands, such as color etc...

I want to change the name of the XML file, but am not sure how to change it in flash so that the SWF knows where to find the XML.

View 2 Replies

XML Loading Variable Location?

Jun 15, 2010

I have been working with xml sheets to load a menu and in order to load a submenu or to go to a submenu of a submenu, I was wondering if it is possible to load a variable location for an xml.

For example, if I had the variable xmllocation which was a string that said where in an xml a certain menu was, is it possible to use the xmllocation variable for something like this:

( if xml.xmllocation.length() > 0 ) do something;

whenever I tried messing around with it, it would actually go to look for "xmllocation" in the xml instead of check what the string is. So what I guess I am really asking is, is there a way to tell it not to be so literal?

View 2 Replies

ActionScript 1/2 :: Tweening With +/- From A Set Location?

Jun 9, 2009

I know the basics of tweening with action script but I have a picture set in the center of the stage at x = 50.  On a click I would like that picture move - 10 x from that position so it will end the tween at 40.  On a different button I would like to do the oppositie, + 10 x to its current position so if it was at 40 it would be back to the start and if it was at the start it would be at 60.

View 10 Replies

Access IPhones GPS Location?

May 4, 2010

Is there any tutorials out there that would show me how to access the iPhones GPS location?

View 1 Replies

Flex :: Actionscript Get Location?

Nov 19, 2010

How can I get the application itself full path in actionscript?

View 3 Replies

Actionscript 3 :: Get The Geo-location Of User?

Jan 20, 2012

I'm building a small web app in Flash. Is there a solution to get the geo-location of a user?

View 1 Replies

ActionScript 2.0 :: Duplicate MC In Different Location?

Nov 4, 2009

I am trying to duplicate a movie clip several times (to create a wallpaper from a background tile). However I'm running all code from the first frame of the file on the _root level, but the MC I am targeting is nested deeper. I'm sure I'm missing something obvious but I just cannot get the duplicated MCs to stay at the same location is the MC I am cloning!

The clip I want to clone is _root.core.bg.tile I want the duplicates to reside in _root.core.bg with names such as...

_root.core.bg.tile_2
_root.core.bg.tile_3 etc

Here's my code:

ActionScript Code:
function preloader()
{
loadImage(global_path + "assets/images/website/construct/wood-texture.png",

[Code].....

View 2 Replies

ActionScript 3.0 :: Tell If A Location Has A MovieClip?

Oct 24, 2010

I posted this question a few days ago but didn't get a response, so I think perhaps I put it in too specific a context. I thought I'd try again and couch the question in more general terms this time. Unfortunately I can't move on with my work until I get this issue solved!

What I need to do is find a way to see if there is a MovieClip at a particular spot. So, say I have a random point and a bunch of random MovieClips. At this random point, there may be any of the MovieClips or there may not. I won't know what these are in advance. I need the ActionScript to tell me if there is ANY MovieClip at this random spot - and, if there is, what MovieClip it is.

View 3 Replies

ActionScript 2.0 :: GetURL To A Different Location?

Nov 17, 2006

I have most of the basics down in actionscripting. I want to learn a little bit more on if else statements. I have an issue right now that I am pretty sure needs to use the if else statement.

What I have is an FLV playing in a browser. When that FLV is done playing, I want it to getURL to a different location. So basically when the FLV is done it goes to the next HTML page.

I attempted and got this far :

[AS]
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);

[Code].....

View 2 Replies

ActionScript 2.0 :: Using A Variable In A Location?

Mar 3, 2009

I need to use a variable name in a location, for example:

aS_mc.aScreen_mc.aScroller_mc.a1.gotoAndStop(_global.aPicture);

The a1 is what I want to change, I've got a global variable that changes to a1, a2, a3, etc, on another function The global variable I'm using is _global.aChoice

So, I've been looking around, and the only thing I found that I thought my work is

aS_mc.aScreen_mc.aScroller_mc._global[a1].gotoAndStop(_global.aPicture);

But this didn't work either

View 2 Replies

Flash :: IDE - Location - Zoom In And Out Of The Map

Feb 8, 2010

I want to create a map with functions similar to google maps where I can have a slider on the side to zoom in and out of the map, I am a little confused on how I am gonna do this slider :S ... anyone have or tutorials I can take a look at. I used to be a flash developer but havn't done anything in flash for over 2 years.

View 1 Replies







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