ActionScript 2.0 :: External URL Links, Keeping Current Web Address?
Jan 27, 2009
It has been a while since I have used flash, but I am getting a werid error when trying to make external links.
in my action script on my button, I'm putting the script
on (release) {
getURL("www.google.ca", "_blank");
}
which I have always done in the past, but when I upload it and test it, when I click on the link it just add's it to the end of the current URL eg.
[URL]
View 6 Replies
Similar Posts:
Nov 1, 2005
I'm sure this a common Actionscript method, but my websearch on how to do this is turning up no results.
Using MX 2004 I am trying to get the current value of the web address in which the swf is residing and have actions take place based on the HTTP locations.
ie;
var a:String = this.HTTPaddress;
var b:String = this.HTTPaddress;
(have certain actions take place based on above vars.)
View 4 Replies
Aug 13, 2011
Is there a way to access the iphone address book with the current Flex/Air Mobile version?
View 1 Replies
Feb 22, 2011
So I am loading external swf's. These swfs contain a 16 frame image sequence on the stage. When I load the swf's and go to each frame via actionscript, they load into memory and they play fast and smoothly. If they sit on a single frame for a certain amount of time, the rest of the frames are dumped from memory and the image sequence plays slow again until each frame is displayed and stored in memory again. I really want to keep all the frames of these timelines in memory until I choose to unload the swf's manually.
View 1 Replies
Sep 9, 2011
I am leading a team of developers on a project where we create distance learning classes to be attendedby students on the Internet.We created classes in Flash, ActionScript 3 in but I'm facing a big problem.I had an idea to create a kind of "software" using the flash in which my team could be better organized and where I could put (in the animation swf) what they should do that day(todo list).Until then it was all right, I created this software by loading text from the internet and created some php code inorder to edit them easily, even then no problem.[code]...
View 3 Replies
Aug 8, 2011
I am displaying a photo from an external link when called upon from my swf. When the user clicks a button, up pops a corresponding photo in a new browser window. After the photo window has opened, if the user clicks another button the photo browser will update but its no longer in front. I know I need to use the focus() command but cannot figure how to incorporate it into my AS3 code.[code]....
View 3 Replies
Sep 11, 2009
I'm trying to pull an URL from a txt file, but apparently the URL itself contains several "&" signs which are used to separate variables, so now when I click on the link I'll only get the first segment of the link. Is there a way to go around it?
View 1 Replies
Jun 14, 2009
I have a CD and have all my files in it and I want to load them into my flash file, how can I do it?
View 7 Replies
Jul 18, 2011
I'm trying to implement swf address with my website that uses external swfs as the 'pages'.
[URL]
But I haven't been able to find an example file with example code that I can ferret out how to apply this to my website. I've also checked the swfaddress and while there is a link to this:[URL].Also... is it unwise to retroactively work in swfaddress to an already compiled as or should i be starting fresh, knowing that I am going to give unique urls to various buttons, that when clicked, bring up a certain 'page' or external swf?
View 8 Replies
Jul 14, 2009
how to get your logo to appear next to the address of your web site when your website address is typed in,
for example if you look at the website address at the top of the screen you see (logo) [URL]
View 1 Replies
Jun 8, 2010
I am trying to load an external swf (c2) from my current swf c1. On the last frame of c1, I have entered this code
loadMovie("c2.swf", "c2holder");
stop();
c2holder is the movie clip holder inside c1. The problem here is not only is c2 not loading, the stop() is also being ignored and the entire movie loops back to the start. My movie clip nesting is this
h2.swf(loadMovie --->) c1.swf Here I am trying to load c2.swf.
View 1 Replies
Oct 16, 2009
how to preload the current swf file in AS3 ?And is it possible to preload all the code in the current swf?
View 2 Replies
Mar 12, 2009
just been doing it for a couple days, i downloaded a template and have been trying to figure out how to edit the links. It came with a _URLs.txt, but all the links on the menu go to the same link.for example[URL]
View 2 Replies
Feb 16, 2009
I'm new to Action Script 03 and flash in general
I've created a flash movie using Flash cs3 and actionscript03. I linked the movie to a page in my website using
this code type[code]...
View 3 Replies
Feb 3, 2011
I'm trying to create a Flash Carousel in AS2. I've made the Carousel itself, and have got the icon images and tooltips from an XML file using this code:
xml.onLoad = function()
{
var nodes = this.firstChild.childNodes;
[Code].....
I have functions for 'over', 'out', and 'released', and to move the carousel automatically, left or right depending on mouse position.
I was wondering if there was a way you could make each individual icon have an external link that leads to a different place on my website when you click on an icon, where I could specify the link url itself in the XML file?
View 3 Replies
Jul 11, 2008
I have a main file,which loads some external swf files.These external swf files load some html text in dynamic textfields.These html texts also contain links.Is it possible, to link in one of the external swfs,using html?
View 4 Replies
Dec 11, 2010
I've refactored a whole project, splitting the main FLA file into 1 main FLA file and 10+ asset FLA files. Each asset FLA file main stage is empty and has no Document Class associated. Instead, each asset file's library contains a MovieClip linked to an .as class. The loader is first added to the stage, then is told to start to downloading the 10 asset SWF files.
When the download is completed, my application starts instancing the class coming from the asset files. Now, the problem is the following : when I try to access a stage instance from a downloaded clip (for example, a textfield that has been drag&dropped and named via the Flash IDE) , I encounter the #1009 error, saying the stage instance is null...
View 2 Replies
Dec 11, 2010
I've refactored a whole project, splitting the main FLA file into 1 main FLA file and 10+ asset FLA files. Each asset FLA file main stage is empty and has no Document Class associated. Instead, each asset file's library contains a MovieClip linked to an .as class. The loader is first added to the stage, then is told to start to downloading the 10 asset SWF files. When the download is completed, my application starts instancing the class coming from the asset files.
Now, the problem is the following : when I try to access a stage instance from a downloaded clip (for example, a textfield that has been drag&dropped and named via the Flash IDE) , I encounter the #1009 error, saying the stage instance is null.
View 2 Replies
Jan 10, 2011
In stage AA movieClip is there in side AA, BB MovieClip is there. I Load a external Swf file from BB MovieClip . Can i get current lavel from external loaded swf file.
View 3 Replies
Jul 6, 2007
I have a main movie and into it I am loading an external SWF, using loadMovie("myclip", target_mc). I want my main timeline to be able to tell where my loaded movie is, and when the loaded mc (myclip.swf) reaches frame 20, i want my main timeline to do another action (like, start playing a sound). How do I accomplish that? How do I check what is the current frame of the external mc?
View 3 Replies
Nov 25, 2009
I am making a flash site & have the intro & menu as separate swf's.
I want the Menu to load as soon as the intro ends, without having to click any buttons. I have tried...
onEnterFrame = function(){
loadMovieNum("AS_Menu.swf",2);
}
View 2 Replies
Aug 24, 2009
I'm loading html formated text from an external txt file into a masked "createTextField", which was styled using an external CSS file. Everything is fine, except for one strange thing...any links at the beginning of my text file DON'T work...the links towards the bottom of my text file DO work.I have never ran into this problem before.So far, I'm totally stumped.Note: I have "a:hover" and "a:active" properties set via the CSS file.When I rollover the links that aren't working, the anchor rollover properties do change, so there is some recognition going on, but the mouse doesn't change to a hand
View 1 Replies
Apr 30, 2010
In my timeline I have different link hot spots, so that each product will link to a separate web page (externally).I don't think this is going to work:When I upload the Flash file to a server to test, the links show me the 'pointing finger' icon, but when clicked upon it does not even open another web page attempting to follow the link. - that tells me this doesn't work!I need to get this correct for when the final goes live. What am I missing? Should I try the extension? (product01.asp)
View 6 Replies
Feb 2, 2011
I was wondering how you use Actionscript 2, to read a URL/web address in a XML file and when you click a button, or an icon, you are then taken to a page specified in the XML document?
View 2 Replies
Jun 18, 2011
I bought a flash template who uses this code for links in the header
onClipEvent (load) {
num = 2;
_parent.ti1.gotoAndStop(num);
_parent.ti2.gotoAndStop(num);
[Code].....
What I want is to be able to modify the page URL from an external file (xml or txt). I want just an external file, and here, on the AS of the button to modify just the line number of where to get the link from external file.
View 1 Replies
Jan 28, 2009
I understand loading external text into flash through actionscript to produce a quick way to modify text without modifying the flash movie. The problem is being able to create hyperlinks in the external text to navigate within the movie (website). So my question, Is there a way to load external text but with the ability to code links into words or phrases that point to instance names (frames) within the movie (website).
current method
create *.txt file
*.txt loads into .swf file
.swf is called from loader component on main movie.Or is this impossible and the text has to made within the main movie and edited through flash?
View 4 Replies
Aug 18, 2009
I have my parent swf created with the external swfs loading properly.once they are loaded, the links within the externally loaded swf's are not working. Here is the code I am using:
on (release) {
//Movieclip GotoAndStop Behavior
this.gotoAndStop("first");
//End Behavior
[code]....
View 3 Replies
Oct 26, 2004
I want one animation of a content area but i want the menu to run the animation and put in a certain .swf so i can have something like:when u click a button that is suposed to goto Home then it plays a MC that has Home as an external .swf loaded into it and when i click another link like Portfolio it starts that MC over but with Portfolio as an external .swf in it
View 1 Replies
Oct 26, 2004
I want one animation of a content area but i want the menu to run the animation and put in a certain .swf so i can have something like:when u click a button that is suposed to goto Home then it plays a MC that has Home as an external .swf loaded into it and when i click another link like Portfolio it starts that MC over but with Portfolio as an external .swf in it
View 1 Replies
May 7, 2011
How do you load external swf files into your current flash document?
I have made a menu bar with 5 buttons. I want each button to load a new swf outside the current document upon mouse click.
This is the script ive got so far.. But its not loading anything [code]...
View 6 Replies