ActionScript 3.0 :: Link To External PDF In External As File?
Oct 20, 2009
I'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");
I 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.
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");
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 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.
Does any know how to load a XML into a Flash file using FlashVar?
I have these lines that load my XML data from a folder called XML
var url:String = "xml/TEST.xml"; var req:URLRequest = new URLRequest(url); var uLdr:URLLoader = new URLLoader();
[Code]....
I would like to use FlashVar to enter the "xml/TEST.xml"; portion so I can keep reusing the SWF file and only have to enter a FlashVar in the HTML to point to the data. I have some users that are not Flash programmers and it would be easy for them to past the HTML and only have to change the FlashVar line to point to their XML file, as opposed to having to get me to hardcode it everytime.
I followed the tutorial [URL] 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.
I have a dynamic textfield called neighName on my Flash stage. I also have a movieclip that I call a region on my stage. When I mouseover the region, I want a word to display in a little popup *and* I want some text to display in my textfield. I have an external .as file for handling the region. I can make the code "see" my region, but I can't seem to make it see my textfield, although no errors are being thrown.
I managed to load in an external swf file okay however, I need to be able to remove it when the user clicks a link to go back to the homepage. Below is my code: Code: Select allstop(); var imageRequest:URLRequest = new URLRequest("gallery.swf"); var imageLoader:Loader = new Loader(); imageLoader.load(imageRequest); addChild(imageLoader); home_link_btn.addEventListener(MouseEvent.CLICK, homeLink); [Code] ..... I assumed it was as simple as removing the child but it still remains. I get no compile errors or anything.
I got my HTML embedded in my flash file, finally!But now I want some parts of the text that is in the HTML file to link to a specific label in flash itself.What variable can I use for this? or even a Href link?
I am using in AS3 "External Interface ". When I call the JS function that is on the same page as swf everything works fine.
I added a link in the html page to an external JS file, when I move the JS function to the external JS file the website crushes.
I would prefer to have all my JS functions on an external file so I can use them in the future in other project and it also makes it easier for me to update the site.
how to call a JS function that is on an external file from AS3?
Structure: There is 1 main file that loads external SWF files depending on what is clicked on.One of the external SWF files loads its text from external text files. This works fine when viewing the SWF applet on its own. But when viewing as a whole site, the text doesnt appear. Very annoying.I made that particular SWF on my mums computer running Flash MX 2004The flash file itself uses the Scrollbar component from MX.Could someone tell me why the text doesnt load in this scenario? It runs fine on its own, just not as an external SWF.
How can I replace text loaded from an external file with text from another external file? Using setInterval and calling the .load from a function or something? In the example below I'm calling an external text file, could this also work with an .xml file with cycling through the children?
If you load an external swf into a movie and this external file references "_root", does "_root" reference the root of the external swf or the swf that contains the external file?
I've managed to piece together a flash website with my limited as3 knowledge. The text is loaded from external text files and styled with an external css file.
It's working perfectly in Firefox and Explorer but it only works SOME of the time in Safari (on my mac).It's hit and miss. Sometimes it styles the text sometimes it doesn't.
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.
as 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)
I 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.
I 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.
Say 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.
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?
Code: var linkLaunch:URLRequest = new URLRequest('content/web/fuel/project/home.html'); navigateToURL(linkLaunch);
I 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).