ActionScript 3.0 :: Link An External SWF?
Jul 12, 2010I've got it all working but atm it opens up in a web browser, does anyone know a way to link to the explorer?
View 0 RepliesI've got it all working but atm it opens up in a web browser, does anyone know a way to link to the explorer?
View 0 RepliesI've re done a couple of pages on my website and as a result of the new design have had to change some of the coding from being on the timeline to being in an external as document linked to my fla. This is significant only because I can link to external pdf.zips no problem on the timeline but I can't seem to translate the code to the external file. Can anyone out there help me out with this (hopefully) simply problem?I'm playing with different variations of this below but I'm constantly getting the 1180: Call to a possibly undefined method navigateToURL.
function onEnglishClick(event:MouseEvent):void {
var request:URLRequest = new URLRequest("http://www.bigredcreativeconcepts.com/UB_Flyer_English.pdf.zip");
[code].....
I have external JPEGs loading into a container. Can I do something to make those external JPEGs that load into the container have links so when they get clicked they go to a website? I'm using AS 2.
View 1 Repliesas we are using in html<a href="#one> abc </a>ref. to<a name=one></a>xyzso that when click on abc, goes to text - xyz.in flash (as2)if we have a button (linked with a html file)and on click - we want to open html and go to directly on text - xyzin which way we have to give link on that button.(whats the idea for this)
View 3 RepliesI am trying to external .pdf files to my flash file. What I want to do is have the user click a button on a given topic and it opens the .pdf in Acrobat. I know that it can be do because I did it in Actionscript 2.0, I just need to know what the code is in Actionscript 3.0.
View 2 RepliesI am trying to external .pdf files to my flash file. What I want to do is have the user click a button on a given topic and it opens the .pdf in Acrobat. I know that it can be do because I did it in Actionscript 2.0, I just need to know what the code is in Actionscript 3.0.
View 5 RepliesSay i have a link, How can i check if its external or not. What i want to do is the following.I have 2 strings: "assets/images/1.jpg" and When the string starts with "http://" it should execute function a. Else it should execute function b.
View 1 RepliesI was thinking can we like directly load an external flv through embed link into a string into an empty movieclip?
View 1 RepliesI followed the tutorial and it works perfect. But I wanna go a step further, how do I link a word in the external text file? It seems that html code <a href="www.me.com">CLICK</a> doesn't show as a link, but exactly as text.
View 1 RepliesI am trying to link some text to an external web site. I am using the following code, but whenever I try to launch the external web site, I get prompted by Adobe Flash Player Security saying that it has stopped a potentially unsafe operation. It then tells me that I need to change my security settings in order to view the website. I am wondering if there is any way around stopping the security check, or is this built into Flash?
Code:
var linkLaunch:URLRequest = new URLRequest('content/web/fuel/project/home.html');
navigateToURL(linkLaunch);
I am using movieclips as buttons and i want to navigate through my website using the movieclips. I am using AS2.
View 1 RepliesI need some code to link a button to an external swf. It seems like an easy thing to do, but I cant find anything on google that directly relates to this issue.(using Actionscript 3.0).
View 3 RepliesHow do I link from my dynamic txt box (html) to an external movieclip (popup). The only thing I found was a
<A HREF="[URL]" TARGET="frame_Name">
What I need is a link/action from my html (AS2);
on (release) {
loadMovieNum("01_mymovie.swf", 9);
}
So, I can't remember and it's not working. I basically want to add this to my text file:
<a href="[URL]" target="_blank">Go here</a>
Which obviously doesn't work. what's the easiest way add HTML tags to a TXT file without changing the way the files being loaded too much?
var filename:String="text/home.txt";
var loaderText:URLLoader = new URLLoader();
var myRequest:URLRequest=new URLRequest(filename);
function loadFile(filename:String):void {
myRequest.url=filename;
loaderText.load(myRequest);}
loadFile("text/press.txt");
have had some trouble coupla weeks finding answers on this - hope i manage to explain myself to get right answer :-)Have a swf file on a website with buttons which each need to link to lightboxes with same class.Now I have following in flash:
DocButt2.addEventListener(MouseEvent.CLICK, DocClick2);
function DocClick2(event:MouseEvent):void{
navigateToURL(new URLRequest ("signup.php?
[code]....
I have purchased an image gallery program that works fine but I am struggling to make a very minor modification. I have asked the author for assistance but previous requests have met with no response so I am also asking my question here. This program has most of its logic in an external AS2 file. I have made some small changes to this file and want to save it under a new name. However, that would also require me to change the reference to the external AS2 file from within the fla file. That's where my problem lies. I can't find any code in the fla that contains such a reference.
If I try to publish an swf without this file in the required location it causes a compiler error thus proving that there must be a reference somewhere to that file. However, doing a search for this AS2 file in the 'current document' when viewing the fla file in Flash CS4 produces no results. Where else could this reference be hidden?
I have a flash intro for my website and I want after the flash is finished to automatically open an external link, how can I make this? This is the index.html:
script>
swfobject.embedSWF('main.swf', 'intro', '100%', '100%', '9','js/expressinstall.swf', {XMLSource:'intro.xml', domain: '*'},
[Code].....
I wanna link a movie clip which has instace name test1 to a external urlI am using a menu list which has main movieclip instance name as 'Primary_Menu'. And inside this main movie clip there are 7 menus (home, about us etc..) each menus are movie clip and has instance names.Below code is written for linking them to respective frames. but i need to give external url for last menu (test1)
Home_MC.logo_btn.addEventListener(MouseEvent.CLICK,ShowHome);
.Primary_Menu.pmenu_btn1.addEventListener(MouseEvent.CLICK,ShowHome);
Home_MC.Primary_Menu.pmenu_btn2.addEventListener(MouseEvent.CLICK,ShowLocation);
[code].....
I purchased a TM AS2 Flash 8 / XML Template. I'm trying to figure out how to create a text link inside my XML content that can link back into the flash movie to a specific MOVIE/FRAME.
I've found where a XML text link can trigger a function (<a href="asfunction:_root.more_click_func,0">), but I can't seem to figure out how to simply go to a specific frame in the flash. I would think that this would be easy. ??? I don't need to do anything dynamic, except load the link exactly as presented in the XML file.
I am currently checking if something is true or false at an external link. What I want to do is, integrate a "failsafe" function, so if the external link should be down I'll display something special. I'm not sure how to do this, but what I had in mind was to define x amount of seconds and if nothing has been received by that time, terminate the call to the link and do something else.
What I currently have is:
ActionScript Code:
var loadContainer:LoadVars = new LoadVars();
loadContainer.onData = function(resp:String){
if(resp.indexOf("true")!=-1){
//true
} else {
//false
}}
loadContainer.load("[URL]")
I want to link this movie clip button I have in my flash header to go to an external site when clicked. I've tried EVERY combo, and watched every video....I'm exhausted. The code sitting in the actions on the movie clip seems like it all needs to stay there except for a link= part...so what do i add to it?
the code there now to start w/o the link part:
onClipEvent (load) {
num = 3;
this.hitArea = this.area;
}
Is there a way to load a link text from an external txt file into a dynamic text field of a flash file?
View 3 RepliesI've followed the tutorial on importing data from an external text file into flash but I need to make the email address active.As per the tutorial the actionscript in the flash file is:
loadText = new LoadVars();
loadText.load("data2.txt");
loadText.onLoad = function() {
[code]......
I amusing the great Kirupa Flash gallery and have tweaked it so that I only am using the thumbnail scroll box to link to external html or asp pages.The xml file all loads correctly, though when I pass the "link" to the getURL the output is the entire XML "link" node.[code]
View 11 RepliesI am currently working with a flash template, the links contained within originally linked to other scenes within the original movie, I have removed the nav and its elements and created a new flash file as I want to use the navigation on a static website, so I want to link the nav buttons to static pages instead of internal pages. See [URL] The code for the current buttons is below, does anyone know how I can doctor the on(release) part so that I can point to a url rather than an internal link?
[Code]...
I am trying to link some text to an external web site. I am using the following code, but whenever I try to launch the external web site, I get prompted by Adobe Flash Player Security saying that it has stopped a potentially unsafe operation. It then tells me that I need to change my security settings in order to view the website. I am wondering if there is any way around stopping the security check, or is this built into Flash?
var linkLaunch:URLRequest = new URLRequest('content/web/fuel/project/home.html'); navigateToURL(linkLaunch);
I have a main fla, which has some buttons on the stage. When you click on a button an external swf loads(using loadMovie method) inside container_mc which is an empty movieclip.
On that specific external swf, I have created an empty movieclip called content_mc which also loads external swfs.
Is it possible to call the content_mc from the main fla? For example when clicking a button of the main fla, how can I point to content_mc which is part of the external swf?
I am trying to load an image into a movieclip and a link for a button from a text file. How would I do this?The text file looks like this:
HTML Code:
&imageURL=http://www.domain.com/images/picture.jpg
&linkURL=http://www.domain.com/link.jpg
With a code like this or something?:
Code:
var photo:LoadVars = new LoadVars();
photo.load("photo_text.txt");
loadMovie("â„‘", carousel.photo.empty);
[code]...
but this didnt work.
Is there a way to load a link text from an external txt file into a dynamic text field of a flash file?
View 3 RepliesI am totally clueless at Action Script. I have no idea how to implement it!
I have created a basic flash ad and I need to insert an action script so when a user clicks on the ad, it opens a new window to an external link.
What on earth do I need to do? I'm not having any luck with tutorials, I cant find a command sequence anywhere.
Do I need to make a Symbol or something?