Actionscript 3 :: Obtain URL That Flash Movie Is Embedded On?

Jan 13, 2010

today I'm trying to get the URL where my Flash movie is sitting on.

I found a similar question here, which was answered with a link to Flash's LoaderInfo method, but I'm not sure I'm using it correctly as the textField in my test movie here: [URL] does not display the URL

Updated! WORKING CODE

All I needed was this: stage.loaderInfo.url :)
package {
import flash.display.Stage;

[Code]....

View 3 Replies


Similar Posts:


Apache :: Possible To Obtain The Domain Where Flash App Is Embedded?

Jan 12, 2010

The company I work for has their own Flash based video player and the question I get from our execs is "Can we tell what website our player is embedded on?"At first, I hypothesized I could use Apache mod_rewrite, extract the HTTP_REFFER, and append it to the end of the requested URL. So as the browser gets http://.../viewer.swf, I could slap on ?However, I don't think our CDN will cater to our htaccess file. Plus, mostly all the access_log entries show a dash rather than the domain.So I'm casting this question our here to see if I catch any ideas or solutions. Currently, everything points to 'not possible'.

View 5 Replies

ActionScript 2.0 :: WSDL - Movie Web Sites Obtain There Info?

Apr 16, 2005

how movie web sites obtain there info?? Check out this link to see someone elses app that gets movie times and stuff.. its actually macromedia dev central... intsall it.. and check out movie times.. [URl] I am curious about building one of these movie apps myself..

View 1 Replies

ActionScript 3.0 :: Get URL From Embedded Flash Movie?

Aug 27, 2008

I have a thumbnail scroller app built with AS3 on my website homepage. I have the class files but would like to know of any quick workaround to make the embedded Flash movie clickable without reworking the AS3 files. What I would like to do is if you click on a thmbnail or anywhere in the movie, the "portfolio" page loads. I asume this would use javascript?

View 1 Replies

Actionscript 3 :: Get/obtain Variables From URL In Flash?

Apr 27, 2010

So I have a URL that I need my Flash movie to extract variables from:

example link: [URL].. I need to get the aID and the bID numbers.

I'm able to get the full URL into a String via ExternalInterface

var url:String = ExternalInterface.call("window.location.href.toString"); if (url) testField.text = url;

Just unsure as how to manipulate the String to just get the 1234 and 5678 numbers.

View 2 Replies

Flash :: Obtain The Name Of The Current Function?

Jan 19, 2011

I want to get the name of a function from inside that function. e.g.:

function blah() {

I want to get the string "blah" here, from the function's name
}

Or at least the Function object?

View 4 Replies

ActionScript 3.0 :: Obtain Flash Variables From Url?

Sep 14, 2011

How to obtain flash variables from a dynamic URL generated from a back-end server programming like asp.net ?

I need to obtain the variable and its value from the URL that is being generated from an aspx page.

View 1 Replies

ActionScript 2.0 :: Flash Obtain The Effect?

Dec 10, 2003

I want my flash to obtain the following effect.There are two buttons and a dynamic text box in my flash.The two buttons are start and end button. When you click the start button,you will find the random data in the dynamic text box changing constantly until you click the stop button.

View 3 Replies

Css :: "Minimize The Flash Movie Size By Limiting The Glyphs Embedded In The Movie" In SIFR3 To Improve Rendering Speed

Jan 28, 2010

What does this mean? "Minimize the Flash movie size by limiting the glyphs embedded in the movie" in sIFR3 to improve rendering speed What is the meaning of "limiting the glyphs embedded in the movie"?

View 1 Replies

ActionScript 3.0 :: Stopping A Embedded Movie In Flash?

Jan 20, 2010

I have created a flash header that has an embedded video and it will not stop looping.

[URL]

The Video is in the TV

It plays once with the sound then it loops without the sound it picks up the stop command on the second run.

View 1 Replies

Professional :: Embedded A Flv Into A Flash Movie Timeline

Jun 9, 2011

I am trying to embedded an flv into a flash movie timeline that runs at 12fps.My source avi is 60 seconds in duration. However using cs3 video encoder with the frame rate set to 12 fps results in an flv that uses up 1440 frames of my timeline.In fact any frame rate selected always results in an flv of this frame length? Assuming that I need the flv to be 720 frames total (60 seconds * 12 frames), and not twice that duration as that would still have to be played at 24 fps. I undertand that there is a relationship to the original fps the movie was shot in (in this case 24fps) but will/does the encoder not produce an flv with the frame rate altered to match my timeline fps?  or do you basically have to use a camera that shoots the original avi at 12fpsto get it to play in 12 fps timeline?? 

View 4 Replies

ActionScript 3.0 :: Embedded Flash Movie Not Working In IE 6 / 7

Feb 10, 2009

I have an embedded flash movie that runs an AS function that runs a javascript function on the html page when you push a button. However, it only works in Firefox, Safari and Chrome. Is there a workaround for IE 6 & 7?

My javascript is:
Code:
Select all<script>
navArray = new Array();
navArray["home"] = "../index.aspx";
navArray["about"] = "../about.aspx";
navArray["contact"] = "../contact.aspx";
[Code] .....

My actionscript is:
Code: Select allimport flash.external.ExternalInterface;
function homeLink(e:MouseEvent){
ExternalInterface.call('navigate', 'home');
ExternalInterface.call('window.close()');
}

View 2 Replies

Actionscript 3 :: Best Way To Obtain Geocode For Location In Flash

Mar 9, 2010

In the advanced search page you can specify 'near' a specific location and this 'near' parameter shows up clearly in the query string.However, Twitter does not support the use of 'near' in the public search api.Apparently you need to supply a geocode value.Can anyone suggest the best way for obtaining a geocode in Flash?

View 1 Replies

ActionScript 2.0 :: Control Sound Of An Embedded Flv In A Flash Movie?

Oct 3, 2005

Is there a way to control the sound of an embedded flv in a flash movie? I haven't seen any tutorials on controlling the sound volume for an embedded video vs. netstream.

View 5 Replies

ActionScript 2.0 :: Flash Dynamic Text In Embedded Movie?

Dec 18, 2009

I have main timeline and then have a small movie clip in which there is a dynamic text box and my actionscript.

Code:

myVars = new LoadVars();
myVars.load("http://preview.domain.co.uk/inc/loadVars.php");
myVars.percentage

[code]....

but when I play the movie it doesn't work. However if I move the dynamic textbox onto the main timeline along with my actionscript it works.

View 1 Replies

Actionscript :: Flash Dynamic Text In Embedded Movie?

Dec 18, 2009

I have my movie in the main timeline and then have a smaller clip in which there is a dynamic text box. In that smaller movie I have some actionscript

myVars = new LoadVars();
myVars.load("http://preview.domain.co.uk/inc/loadVars.php");
myVars.percentage

[Code]....

but when I play the movie it doesn't work. However if I move the dynamic textbox onto the main timeline it works.

View 1 Replies

PHP :: Control Embedded Flash Movie Playback In HTML

May 1, 2010

I am using an embedded flash movie in my web page. I would like to show some alerts on the page when the movie has played for x seconds, pause the movie while the user views and dismisses the alert and start playing the movie again after that (or the user can press the play button, not important). The important parts being - the app being able to find out if x secs worth of movie has played, pausing the movie then and showing an alert. Is this possible using a php/javascript code within the web page? Or will I have to do this within the flash movie itself?

View 1 Replies

Open Maximized Window From Embedded Flash Movie?

Apr 8, 2009

I have a html file with a flash movie-menu embedded into it. I'd like one of the buttons to open an external html page strictly in a new maximized window. It does not matter if the new window has toolbar or not. I want it to open a new maximized window (not the full screen thing) onclick.

View 1 Replies

ActionScript 3.0 :: Possible To Obtain The Mouse Position Out Side Of Flash?

Mar 30, 2010

i have an eye. instance name: "eye1". it follows the mouse around just great using the following code...

Actionscript Code:
stage.addEventListener(MouseEvent.MOUSE_MOVE,eyesFollow);function eyesFollow(e:MouseEvent):void  var a1 = mouseY - eye1.y; var b1 = mouseX

[code]....

View 17 Replies

Flash :: In AS3, Obtain Visible Size Of Loaded SWF That Contains A Mask?

Aug 23, 2010

I'm using UILoader to load SWF files which I have no source for. These SWF files were created in AS2. They use masks. Width and height return unmasked values.

I'm trying to find the visible width and height of the clip so I can scale it properly.

For example I want a SWF to fit within a 50x50 space. The visible SWF is 65x65 (but I don't know this) and the unmasked size is 100x100. If I set the width and height of the loaded movieclip to 50x50, Flash scales the clip based on the unmasked portion, and I get a clip scaled much too small. Keep in mind I have no control of the SWF content, so I can not override width/height, or get mask size.

View 2 Replies

Flash :: Obtain And Push JSON Data Into Arrays?

Sep 13, 2010

so I have a JSON link that contains a couple of nodes (not sure what you call them in JSON) that I need to put into arrays in ActionScript, but I'm still having trouble trying to trace out all the specific node content.I found a similar question here, but the fix just showed how to trace out the entire JSON file (which shows up in my output window as [object Object],[object Object],[object Object],...)first node: {"captions":[{"content":"[hello world] ","startTime":0,"duration":4000}

My code:

private function onCaptionsComplete( event:Event ):void
{
//var jsonObj:Object = JSON.decode(event.target.data);[code].....

captions: undefined

TypeError: Error #1010: A term is undefined and has no properties.What I would like to be able to do is put the content data into the captionsContent Array, and the startingTime into a startingTime Array, same with the duration data.

View 1 Replies

Jquery :: Click On Flash Movie Embedded In A Webpage And Remove It From DOM?

Apr 10, 2012

I have a flash movie embedded on a webpage, it's an intro of sorts, when the movie has finished it removes itself from the DOM but I also want this functionality on flash movie click.so far to remove it after it's finished playing I'm using[code]but it never gets called. I also tried adding the click event to the body and it worked everywhere but not over the top of the flash movie.

View 2 Replies

ActionScript 2.0 :: Detect When Embedded Flash Movie Has Been Resized By JQuery?

May 6, 2010

I need to be able to detect when JQuery resizes the embedded movie so I can trigger a function in my Flash movie. I created a function which detects if Stage.width or Stage.height has changed but this only works when I resize the window after pressing Ctrl+Enter in Flash Pro and not on the webpage.

View 4 Replies

Server Side :: Flash Mx And Php - Obtain Information About The Users Of Sites?

Jan 3, 2003

I have been trying for a few days to obtain information about the users of sites. No success so far.In flash I am using:

loadVariablesNum("mailPHP.php", "0", "POST");

My php code is:

PHP Code:

<html>
<body>
<?php
$mail_to="northls@nbkayaking.com";[code].....

I know I have made an arseup somewhere.

View 14 Replies

Javascript :: Setting Focus To An Embedded Flash Movie/HTML Embed Element?

Dec 26, 2009

Is there a way to set focus to the embed HTML element using JavaScript? Test case: embedded YouTube videos on a page.

I have no control over the embedded Flash element. So, is there a way to set focus on it by using only JavaScript?

I read somewhere that calling the element.focus() method works only in IE. I need a browser-independent way that works in Chrome/Firefox.

View 3 Replies

ActionScript 3.0 :: Flash - Select And Highlight A Specific Row On The Datagrid In An Embedded Swf Everytime The Movie Loads

Dec 29, 2009

I am trying to select and highlight a specific row on the datagrid in an embedded swf everytime the movie loads. I am using flash cs3 and actionscript 3 , published on flash player 9. anyone done anything similar? Did quite a bit of searching none of the methods actuall seemed to work.

View 1 Replies

Javascript :: Gain Access To An Embedded Flash Video's Parameters That Is Embedded On A Site You Don't Own Via A Browser Extension?

Jan 2, 2011

I'd like to gain read only access to the following parameters of embedded Flash videos located on sites that I do not own through my own custom browser extension/add-on:

Time location of playback head (so I can display the current time in the browser extension via HTML5/JavaScript) Frames (so I can make capture them to an image file, save it and display image in browser extension) Original Dimensions in pixels (so I can display the original video dimensions via JS/HTML5 in browser extension)

Is this possible by using Javascript and HTML5 from a browser extension?

Would I have to use something like the SWFObject Javascript API [URL]

View 1 Replies

Flash Won't Load When Embedded But It Works On The Published Embedded Html?

Nov 11, 2009

I made a flash mp3 player and it works fine in any other test pages. but when i embed it onto my site it just shows blank. what do i do? my site is [URL] and the flash player i tested here [URL] and it plays. What im i doing wrong? i tryed everything. right now i just got it in a iframe but i dont want that iframe.

View 1 Replies

ActionScript 3.0 :: Play Movie Clips Embedded Inside A Movie Clip On The Main Timeline?

Dec 6, 2009

I have my flash document set up in the following way: On the main timeline I have my buttons that I want to play movie clips embedded inside a movie clip on the main timeline.However, when I click each different button, the current movie clip stops playing and then the movie clip corresponding to the button plays.

I want them all to be able to play at once. So for example you push button 1 and the alien plays, but half way through you could click button 2 and the alien clip would keep playing, but also the helicopter clip would begin to play as well.Here is the code I have so far:

building_btn1.addEventListener(MouseEvent.CLICK, alien);
building_btn2.addEventListener(MouseEvent.CLICK, helicopter);
function helicopter(e:MouseEvent):void {[code]......

View 1 Replies

Flash :: Program An Html Page To Move To A New Web Page On User's Clicking An Item Of An Embedded Movie?

Nov 21, 2011

Let me ask how to program an html page to move to a new web page on user's clicking an item of an embedded flash movie? But , in detail, I actually want to do a little different thing. I want that the parent html page remains there ,instead I want a child html frame has a new page after user's clicking the list item of the embedded flash movie.

View 2 Replies







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