ActionScript 3.0 :: Get Url Of Page Swf Is Embedded In?
Jun 17, 2009
I've developed a widget that gets embedded in multiple different websites/domains. For tracking purposes i'd like to know where they are.LoaderInfo(this.root.loaderInfo).url and loaderUrl only give me the url of the swf but that is hosted on my site, is there a way without using Externalinterface (as myspace blocks it) to get this info?
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.
I've built a SWF with the top layer being an invisible button. As a test, I simply uploaded the file to the server and clicked it. Here is the URL where the file is located: [URL] When clicked anywhere, it should take you here: [URL] and it does. I sent the SWF to a third party vendor who have placed the masthead at the top of a page: [URL] which its on their server. When you mouse over the image, it appears clickable, but if you click it, no action takes place. It's the exact same file. Why is it working from one place, but not the other?
I was wondering if it is possible to for flash to get the url of the web page that the flash movie is embedded on. I'd like to do this if possible without using javascript.
I am creating a Flash project for a fundraising event and tend to test it every now and again. It is an accordion menu. It is going on a html page. I want the height to be relative to the width and the width to equal 100% of the browser window. When I set the html publish settings, I set it to 100% width & height. Then I embedded a swf using the loadmovie() method. I published it again. Everything seemed to be working OK but when my menu loads with the embedded swf, it goes back to normal size (actual size of project - 450x230).
I decided to try and build a site with AS3 and am regretting it. What used to be simple in AS2 confounds me in AS3. I have an embedded .flv on a page and when I navigate to another page, the video continues to play and in fact will duplicate and triplicate etc. if I go back and forth between pages. What is the code to shut the video off when I navigate to new
I have 100 swf embedded in a page. The swf are various forms of individual audio playbacks.- an swf button that loads an swf into it that has audio on a timeline streamed. AS3 - swf that has streamed audio using scripting so there is no preloading. AS2Since I have 100 and the user could press all 50 at a time and have this giant noise of sounds and bog down their bandwidth. Is there anyway of:- stopping all playing of swfs that has streamed audio using timeline. I guess that could be like a ALL stop frame command??- stop all sounds coming from the streamed audio swf
I have one swf banner which I want it into .aspx page. The website runs ok under http and the banner plays correctly. After we set the website to run under https, the banner stopped to load. I've tried to load this banner via http link from inside https running page. Nothing happened as well.
have a swf file which content a FlvPlayback play to play targeted video. It is working OK when I run published HTML file from flash professional CS5. but when I embedded this flash to asp.net content page using object tag the move will pay but the video controls play and stop with disappear. I listed down the code I sued.
Basically, the user clicks on a button in a Flash movie and the following code is run:
Actionscript Code: var variables_to_send_out:URLVariables = new URLVariables();variables_to_send_out.test1 = "this is a test";var myURLRequest:URLRequest = new
As I am getting more familiar with FMS and understanding it better with the help of the wonderful contributors here on this forum, I am now curious about players.Players such as Strobe and REOPS to be specific.Are players all SWFs that are embedded in a page? I have seen some players here on the Adobe website that are stand-alone smaller windows that appear over the page. How is this done?So Strobe and REOPS...are we talking SWF code that is editable? You can see I am quite new to this. I'm on a roll, however and wish to continue understanding and learning.
Is there any way for a Flash component to look up the URL of the website it is embedded in? For example, if I embed a YouTube video on my website, does Google have any way of knowing who referred to them?
How to find current page url from flash without calling javascript function. I was trying to get the url of the current page where my player has been embeded. I wrote this function.
function getCurrentUrl():String{ var Url:String = ExternalInterface.call("function get_url(){return document.location.href;}"); return Url; }
This function works in firefox and chrome but doesn't works in IE.
I embedded a SWF on a page and have checked it in Dreamweaver by selecting FILE | PREVIEW IN BROWSER. The page works just fine, video plays back and rollover button works perfect. I've then uploaded the SWF,FLV,html page and scripts to my server and when tested, the video wouldn't play. Below are some snapshots, the code and the html link to see if someone can give me a hand on this one.....
I am trying to make a movie swf to load different .swf files but pressing html links in the same page it's embeded. What I got is that links are passing good a variable called 'video' to swf... Using a jscript in html page, and html links as follows:
<script language = "JavaScript"> <!-- function PassFlash(){ window.document.movie.SetVariable("video", "video.swf"); } //--> </script> <a href="#" onClick="PassFlash()">Load this video into flash please!</a>
But I think I didn't build the actionscript correctly.. I can't find the way to make the movie to load a determinated .swf using that variable...If I put a loadMovie (video, "mclipholder") and a stop (); in a frame the variable is not useful because the movie doesn't load. If I add a gotoAndPlay (1) for making the movie loop, the swf loads again and again...I want the main movie to be able to recognize when an html link is pressed (and passes the variable called 'video') and then to load the correct movie....
Is there any way for a Flash component to look up the URL of the website it is embedded in? For example, if I embed a YouTube video on my website, does Google have any way of knowing who referred to them?
I can't figure this out. When I test a URL page with an embedded SWF file (using [URL]) I cannot get the embedded SWF to play more than one or two frames. However, if I upload this same flash-embedded html page, and test it on the WWW, then it seesm to play without a glitch.
I have built a simple twitter feed flash app and it works just fine when accessed directly, but does not work when embedded into the page. I suspect that the answer might be simple, but I just can't find it.
[Code]...
I can't use JavaScript, because I want it to be embedded in my signature on a certain website, and obviously <script> tag is forbidden. EDIT: problem is solved, it's very embarrassing, but like in most cases it was a path error...
I developed a flex website, the web explorer always caches swf file which embedded in HTML. Sometimes I make changes to the flex file, clients computer still view the previous version which stored in cache. How can I force client's web explorer to reload/refresh the swf file?
I know there are ways to invoke javascript inside the html wrapper template for the flex application using ExternalInterface, but is it possible to reference an external html page?
i'm a newbie in Flex/Air. I'm developing an AIR web browser and i want to use a virtual keyboard to write in the HTML pages.it works well when i try to write in a text area, but i don't know how to write in the html page.EXAMPLE:To write in textarea, i just have to call this:textarea.text = event.keyLabel;
If I have a flex swc emebbed in my html page, and the flex swc contains an flex 4 videoDisplay player, which has an option for fullscreen. How do I make the fullscreen work. Because when I click on fullscreen button for the videaDisplay, I get an error: [code]Connect with the people you need to get the job done. Unlike other tools, Cloud Groups lets you work with anyone, whether they're inside or outside the company firewall. Invite them into Cloud Groups to work together on projects, share files, assign tasks or catch up in real-time.
i'm trying to build a flash site and ran into a problem... i have a gallery page with a bunch of page numbers at the top. when you click on one, a movieclip loads of some images coming in.so the problem i'm having is that i made a little animation for when you roll the mouse over the page number (they scale up when the mouse is over, scale back when the cursor moves away)... what it's doing is when you roll over, it goes to a certain frame in the timeline and plays that animation.that's all working cool, but i need it to not do that once it's clicked on. so basically when you actually click on a page number, the over script should stop until you go to another page... here's the code i've written,
function over(event:MouseEvent):void { this.gotoAndPlay(30);} function out(event:MouseEvent):void {[code].....
I am trying to create a "universal" swf that can be embedded in an html page and take input from an xml file. Yet the name of the xml file will not be coded into the swf which would allow xml files of various names to be used.
I'm trying to use as3's loader function thing to load images into a movieclip in my swf.
Sounds simple enough right.
The thing works pretty well by its self. but when embed the thing is embedded an html page, the swf loads up and works fine, but the images don't seem to load, and I can't understand why.
Thought maybe its some sort of navigational issue, well, the swf works fine on it's own in a web browser, even when checked on a web host. The images just don't load up when the swf is loaded up in a web page, its a little wierd, not sure what to make of it.
How do I link a button thats embedded in frame 2 (music page timeline) to a frame in the main timeline ( frame 3= biography page)? Both pages are on the same scene with link buttons embedded in each page independent timeline.
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]
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.