ActionScript 2.0 :: Flash MX - How To Get The Current URL
Dec 15, 2002
I m making a flash application which will be loaded on different web sites. I have to get some data from ASP & when user exits from the application have to send back the data to another ASP.My problem is how to send & retreive data from ASP & FALSH MX.Second problem is how will i find the current URL from which my application is loaded.
I am having a problem with my flash not showing up in browsers without current flash player. I tried to use the following script but it did not work.I am just trying to make it to where if someone doesn't have flash it takes them to a flattened non flash page.
<SCRIPT LANGUAGE=JavaScript1.1> <!-- var MM_contentVersion = 6;[code].....
I'm dealing with multiple hard to find/small/transparent elements within nested MovieClips in Flash CS5. Is there no outline window where I can get to an element through a tree format vs having to look around on the stage? The closest thing I've found is the Movie Explorer window, but it doesn't go any deeper than the scene level? But what about symbols with their own timelines?
What's the sanest way to achieve something along the lines of this.gotoAndStop(this._currentframe)?
What I want is that Flash re-loads the current frame as if I was using gotoAndStop (which does nothing if it is given the current frame as target frame).
Is it possible for a flash file to retrieve the current url from the browser and populate a dynamic text field with that url?So say my swf is embedded at [URL]I have a dynamic text field in my swf labeled myText What actionscript would be needed for that myText field to recognize the url and populate with [URL]?
Using SharedObject.getLocal I can get access to what appears to be an infinite number of files simply by using unique identifiers in the method call; What I want to know is how can I retrieve a list of all active files or shared objects that have been saved for my current domain.
I'm trying to write a save game mechanism that allows you to save your game (potentially many megabytes) so using a single shared object seems like it might cause performance issues however if I use multiple objects I'm not sure how I'd find out what has been saved without using an object just to specify the id's of the other saves - then my question becomes what happens if this "header" object is removed or deleted - how can the player access the other files?
A snippet from the flash docs:
Local disk space considerations. Local shared objects have some limitations that are important to consider as you design your application. Sometimes SWF files may not be allowed to write local shared objects, and sometimes the data stored in local shared objects can be deleted without your knowledge. Flash Player users can manage the disk space that is available to individual domains or to all domains. When users decrease the amount of disk space available, some local shared objects may be deleted. Flash Player users also have privacy controls that can prevent third-party domains (domains other than the domain in the current browser address bar) from reading or writing local shared objects.
For instance, if I have an ordered set of objects [a, b, c, d, e] with their tabIndex property correctly assigned, and the focus is currently on object c, I want to change the focus so that:
a) Nothing is focused; b) Next time I press tab, object a gets focused.
stage.focus = null solves (a), however it remembers the current index causing object d to be focused when tab is pressed.
I need to know the available screen space in my current AIR app, but when I use stage.nativeWindow.width and stage.nativeWindow.height, I get the size of the window including the title bar. I'd like to know the "inner size", so excluding the title bar. How do I do this?
I am making a small game in flash, I would like to track scores but I cant figure out how to call the current username from joomla using actionscript. (creating the game in flex3)
I'm using SWFObject to embed Flash Videos. Is there a way to get notified as soon as the user hits some specific time marks of the embedded video? I.e. get a notification from the Browsers Flash Plugin?
My goal is to change the page content at specific times of the embedded video.
I'm trying to sync video with content. I can use cuepoints in Flash CS5 for that, or I can use FLVplayercaptions to sync video with caption. Is there a way to know the current time of playback?
I have a small flash tidbit that is basically used like a menu. It scrolls through the thumbnails left and right, when clicked the pages navigates to the appropriate location. However, the flash movie jumps back to the beginning of the movie. Is there anyway I can get it to stay in the same spot when the page is changed? I tried using iframes, but this did not work out, it had the same result. ref:[URL] to see the problem scroll the images to the right and select 'wall boarder buddy' (fourth image from the left) this takes you the page and the flash resets to its original position.
Some of my flash buttons do not work in FlashPlayer 10 but work in 10.1 So I wanted to alert a user to upgrade to the most current flash player 10.1 if he/she has 10 and visits my website. What is the best way to do it? My entire site is done in Flash and I am using AS3.
I was able to gather info on how to test and display users OS and FP version. However this info is "dormant" it is just being displayed on the screen.Does anyone know how to make an alert message to upgrade to the current Flash Player if a user runs the lower version?
Is there a statement in AS3 that will return current class and/or scope? I'd like to use that in trace statements so that I know the exact location of a trace.
I have a game made by Flash CS5 ActionScript3. I want to create a button in the game where I can save the current timeline of the game. For example, I stopped at frame 5 and save the game. So when I load it, I should instantly return to frame 5.
I'm looking at making some PHP Flash shortly to replace my current website, http://www.mathsnotes.com. I was thinking about allowing users to download a standalone version, i.e. the SWF file or an EXE file. My question is: Will the PHP still work, or is it parsed by another entity, e.g. the users browser?
Also, I wanted to add a live news feed - So is it possible to have flash check every frame ( like a _root.onEnterFrame() = Fucntion{ ... ) the mysql database to look for anything with a timestamp less than say, 5mins, and then display it? Or does PHP require a user to do something like "Update News"?