ActionScript 2.0 :: Grabbing URL Of Current Page?

Jan 14, 2010

I am building a flash component to be embedded on an html side - the flash will include buttons to 'share' - i.e. on facebook, twitter, etc. I want to be able to grab the URL of the page and put it into the coding on the button.

Currently the button says:
tweetbtn.onRelease = function() {
getURL("http://twitter.com/home?status=Check Out This Company at www.thiscompany.com",

[code]......

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Grabbing Text Off Of A HTML Page?

Sep 16, 2009

I'm not sure if you able to do this or not. But basically I want to be able to grab text off a website (not the one the SWF is hosted on).

I have several sites from which I am making small amounts of money online.. I want to make a small app that loads the URL and searches the pages for the spot where the money is listed, then add them all up to shorten me having to consistently check each. The app could refresh loads, say every 30 seconds or so. Is there a way to do that?

Another example would be to make a text box in flash that displays the headline of an article on CNN.com

I did the like with loading XML from other pages, but what I want to do just involves grabbing any said text from a site.

View 2 Replies

ActionScript 3.0 :: Stop Sound On Current Page When Going To Previous Page?

Oct 19, 2010

I'm working on a pretty basic interactive children's book. I have it set up so that each page has audio relating to that specific page. Going forward, there is no issue with sound overlapping from the current and next pages. Going backward, however, there is an issue with sound playing on both the current and previous pages. How do I stop this?

Here is the script I'm using-

ActionScript Code:
stop();
import flash.events.MouseEvent;

[Code].....

View 3 Replies

IDE :: Open A Page Without Closing The Current Page?

Jan 8, 2009

I bought one of those templates, and i was able to get around most of the stuff. But one last thing that I have issue with is that there is an AS2 script for a button, where you can change the page that you want to be updated. But every time that I click that button, it opens the new page. but then if I use the same button in the new page, and click on it, another page will open and that current page will get closed.

[Code]...

View 1 Replies

ActionScript 3.0 :: Get The Value From The Current Page Url?

Jul 28, 2010

I need to get the value from the current page url, (the value is sent by javascript)?

View 4 Replies

ActionScript 2.0 :: Get Current URL Of Page Swf Is On From Browser Bar?

May 23, 2010

I need to sitelock a swf to All of the sitelock solutions I've found only lock the domain that the swf loads from, which means a user can still copy the source code of the page and load the page locally and alter the swf params (since the swf still loads from the same url

View 1 Replies

Actionscript 3 :: Flex - Get URL Of Current Page?

Sep 15, 2009

How do I determine the URL of the current page from within Flex?

View 7 Replies

Flex :: Get The Current Page No. In Paper?

May 16, 2010

there is no tags on flex paper. so make tag on flex paper.

How do i get the page number in flex paper. I want to add some events when page is changed.And i also want some events on particular some pages. so i need that current page number which is viewing by the user in flex paper.

View 2 Replies

Actionscript 3 :: Get Current Page's URL Into Flash?

Jul 13, 2010

Is it possible to get page URL into flash ?

Without using ExternalInteface.call('window.location')

trace(this.loaderInfo.url) simply return URL from where flash was loaded.

View 2 Replies

ActionScript 3.0 :: Calculate Current Page Set?

Aug 17, 2009

I have built a pagination gallery and am having some trouble calculating the current set of pages from the current page (and whether it is the last set and if so does the last set have a full set or less than a full set).[code]...

View 2 Replies

Make The Button/link For The Current Page?

Aug 4, 2009

I have managed to create some buttons movie clips and understand how to link pages. The only question i have is how do you make the button/link for the current page highlight so the user can know what page they are on? Is there a way to have a current page indicator in flash as you can do with html/css?

View 2 Replies

Professional :: Highlighting Of The Link On The Current Page?

Jan 28, 2011

this is the first time I have used flash pro.I just edited the menu and everything works perfectly except for the highlighting of the link on the current page. If im on the home page, home is correctly highlighted. However after that it skips the next button (about). So when I am on the about page the next button (events) is highlighted.

View 4 Replies

Button In Flash To Print Current Page?

Jul 25, 2006

I want to print the current page (web page) when user clicks on a button.

View 14 Replies

Actionscript 3 :: Set Current Page Dynamically In Flexbook?

Oct 8, 2011

I am using a Flexbook which contains 2 BorderContainer. The code is shown below

<controls:FlexBook id="book" x="20" y="20"
width="100%" height="100%" horizontalCenter="0"
animateCurrentPageIndex="true"
showCornerTease="true" animatePagesOnTurn="true"

[Code]...

This code shows page1 as current page. I want to show the BorderContainer (id= page2) as my current page dynamically on a button click. I tried setting currentPageIndex = 1, but I get a blank page by doing this.

View 1 Replies

ActionScript 2.0 :: Highlighting Current Page In Navigation?

Dec 14, 2006

I want to highlight the current page in my navigation.

I have the code below (duplicated for each button on the page) which changes the colour of the text in the nav when you rollover and then back when you rollout. I'd like to have the text stay on the rollover colour if it is the current page.

I've been messing around with variables and have added the bit onto the onRelease function which displays the "page" variable in a dynamic text box. This works fine, but I'm now stuck on how to use this variable, everything I've tried hasn't worked.

I can understand the principle of what I want to do as I can do it in PHP or CSS. I need some kind of conditional statement, for example (in laymans terms):

if page equals 1 then make text colour red or if page equals 2 then make text colour red and so on...

Code:
var up = "0xC5B9B3";
var over = "0xC6006F";
_root.nav.button_1.onRollOut = function() {

[Code]....

View 2 Replies

ActionScript 2.0 :: Link Won't Open In Current Page?

Jul 31, 2008

whenever I put a link in Flash to another URL, the page always opens in a separate window. How do I change this?

View 1 Replies

ActionScript 3.0 :: Disable The Button For Current Page Only

Jun 12, 2009

I currently creating a website which content some pages. example of homepage and aboutpage.I want to make it as below.

If the user clicks the 'home_mc' button i want it to disable to the content cant be loaded twice. If the user clicks 'products_mc' i want 'home_mc' to be enable again, and then disable 'products_mc'.This to prevent user to currently reading on homepage when click on the home_mc button again will cause the homepage animate in again.

but i still cant figure out how to make it. can we use some code like

if(nextPage == currentPage)
{
//disable the mouseEvent listener of the currentTarget button?
}

[Code].....

View 7 Replies

ActionScript 3.0 :: Copy Current Page URL In Clipboard?

Apr 15, 2010

how to copy current page's URL in clipboard on Right-click menu like they do in in2media website? Also I noticed that they incorporated Back and Next options in their Right-Click menu.(Is that possible only by using Flash?)

I already use SWFAddress in my project for DeepLinking and I am aware of the ContextMenu class.

View 2 Replies

Professional :: How To Add Zoom And Save Current Page Info

Apr 9, 2010

Any way to work with .swf files exported from InDesign (with page curl effect in tact)? I'd like to add a zoom feature, and need the ability to keep track of the currently viewed page.

View 5 Replies

ActionScript 3.0 :: Find Out Current Page Url From Embedded Player

Jun 14, 2010

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.

View 0 Replies

ActionScript 2.0 :: How To Hold OnRelease State When On Current Page

Jun 15, 2007

I have a button that animates when you rollover and animates when you roll off. Let's say it is my home button. But I don't know how or what code to have so that my home button stays paused or stopped at the end of my rollover animation when the movie clip page associated with the button is currently displayed. And then if I click on another button like the 'About Us' button to make the 'about us' page load, to have my home button stop being highlighted when the home page is not displayed anymore.

So far this is my button code:
home_mc.onRollOver = function () {
home_mc.gotoAndPlay ("_on");
} home_mc.onRollOut = function () {
home_mc.gotoAndPlay ("_over");
}

View 2 Replies

Flash :: Get To Continue Playing From Current Frame When Page Is Changed

May 12, 2009

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.

View 12 Replies

ActionScript 3.0 :: Maintain The Hover State Of A Button While It Is In It's Current Page?

Aug 8, 2010

I have this code about navigation using movieclip buttons. I just made the currently selected button disabled when it is in the current page but I just cant figure out on how to maintain it in its hover state (It keeps on returning to its normal state).

Here's the code I've written on the first frame on the main timeline(scene1), I have 4 buttons namely mcButton1, mcButton2, mcButton3, mcButton4 and 4 labeled frames, page1, page2, page3 and page4.: 

var page:String; 
var btnArray:Array = [mcButton1, mcButton2, mcButton3, mcButton4];var pageArray:Array = ["page1", "page2", "page3", "page4"];

[Code].....

View 3 Replies

ActionScript 3.0 :: If Statement - When I Click One Of The Buttons, I Want The Current Page To Fade Out?

Jul 11, 2009

I have setup some nav buttons on my website. When I click one of the buttons, I want the current page to fade out, and I don't want the other page fading in until the first one is gone. This means I need a statement to go along with each button so that they all get rid of the current page, and don't fade in their respective pages until the first one is gone. Here is my current code:

buttons_mc.about_mc.addEventListener(MouseEvent.CL ICK,disappear);
buttons_mc.about_mc.buttonMode = true;
buttons_mc.about_mc.useHandCursor = true;[code]...

So, what do I need in order for this to all function correctly, once "home_mc" has reached its final frame?

View 5 Replies

ActionScript 3.0 :: Disabling Menu Button For Current Page Using Flashvars?

Nov 22, 2009

So I know Flashvars uses a lot different methods in AS3 because of the loader classes and all that. How do I disable the button and make it only display the second frame to the button corresponding to the page that the user is currently on?I've called a variable in the HTML document using query string (or I could use Flashvars just as easy if that makes it easier) called "currentPage" and on each page in the HTML give it a page name.I know how to grab the variable from the HTML into a text field in the SWF (see this tutorial) but I'm having trouble manipulating my menu buttons.

View 0 Replies

ActionScript 2.0 :: Make A Button That Makes The Current Page Homepage?

Aug 10, 2005

how can make a button that makes the current page my homepage? im 99% sure there's Javascript involved and I've tried writing it my self P.S if its, I got one button to work (adding to favorites),

View 5 Replies

ActionScript 2.0 :: SWFs + GetURL + Current Page Indicator On Nav Button?

Aug 8, 2006

I have a .swf file containing a navigation bar and also an animation. I was going to use getURL on the nav buttons so that a different html page would launch onRelease. The animation in the swf file that contains the nav buttons plays as soon as the swf is loaded and there's also a movie clip in the file which continues its animation even after the file has loaded and played. As each of the nav buttons are pressed and the correct html page loads, I don't want the entire swf file to reload and therefore play the entire animation again as it did on the home page, but instead I just want it to appear as though it's already loaded but I do want the separate movie clip in the swf file to continue to play. Is there any way to make this happen?

Also, I wondered what code I'd need to make the current page nav button appear in a different state to all the other buttons to make a "you are here" effect.

View 3 Replies

Java :: Enable Intranet Users To Take Screenshot Of The Current Page Via The Browser?

May 22, 2011

Is it possible to create a screenshot from the current page the user is on? (It's for an Intranet enviroment).

I know this is not possible with JavaScript alone, but is it possible with Flash or maybe an Java applet?

I have been searching around but I couldn't find anything.

View 3 Replies

ActionScript 3.0 :: Flex - Browser Stay On Current Page In SWF File After Pressing F5

Feb 18, 2011

I've embeded my swf file in .net application and after navigating to some pages in swf file and pressing f5 or refresh, its navigating to starting page of swf file and browsers path always shows the same path (main.aspx page) in which I am embedding the swf file. After navigating to some pages in swf file also it shows the sam path. So its refreshing the aspx page and giving the starting page. How can I control the browser to stay in current page of swf file.

View 9 Replies

ActionScript 3.0 :: Grabbing A XML Value?

Jul 13, 2011

I am tasked with trying to do a slideshow of sorts, and I need to pull the filename of the slide from an xml file and display it, as well as display the appropriate slide notes in a text box.

the xml file they gave me is formatted as below, and with my current code (also below) I'm able to (trace) list all the file names, but I am missing how to address the filename on just one slide � say, slide 1, so I can then load it into a loader.

here's my code

Code:
import flash.net.URLLoader;
import flash.events.Event;
import flash.net.URLRequest;

[code]....

View 1 Replies







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