ActionScript 2.0 :: Link To PDF In Another HTML Directory?
Jan 29, 2009
I have my files organized in various directories on the server. If I'm in Directory A, how do I link to a file in Directory B? I know how to drill down into a directory using forward slashes, but I can't recall how to drill back up (or however you say it).
How do I rewrite this so that my button links to the PDF in a separate directory?
on (release) {
getURL("DirectoryA/bio.pdf","blank");
}
How should I change the following code if I want to put my flash object into a directory named "flash/", I tried changing the value to "flash/photo.swf" but it didn't work.
i made a video player with the xml playlist , it's a video channel indeed, it's embed swf in html. but my boss would like me to put a link on the web, when user click the link, it would directly play the specific video inside the video channel. is it possible to do it without server side script but javascript?
I have a 90% all flash-site and when u click news webpage splits up in HTML blended with flash in a page called news.asp
(buttons are in flash and content in asp bellow)When loceted on news.asp and you click... let's say service you go back to index.html with the flash main.swf, but the link has ALSO have to go to label (service) or frame 30 lets say...
I am new to flash and decided to start out using templates to gain a beter understanding. I grabbed a template - that when I went to save it said it was an MX version - once I began to make changes in it re-save and publish it I noticed that some of the elements were missing. I thought it was something I did so I copied the entire directory and just opened the .fla and saved it without making a change and then published it and the items were gone again. I saved it in the same directory only changing the output .swf file and used all of the same html files
My main movie calls loadMovieNum("projects/index.swf", 1); . Therein, the movie index.swf calls loadText.load("projects/projects.html");.
Is there a way to change the working directory so that index.swf can simply call projects.html, without referencing the projects directory? This is particularly useful bc the text file calls a number of links.
I have a scenario that I get an string with html data, this is not just html data it's an email (outlook) saved as an html file and dropped in the string.Now this string needs to be formatted to an html document and should be a clickable link in a datagrid. So when I click on the link, the HTML document should pop-up and should gave me a nice HTML page that is readable for the normal users. I hope it's a bit clear what I want o_0. don't know where to start.
When I have a class linked to a MovieClip in my library and that class takes an argument in its constructor method. That class will compile properly ONLY when it's located in my top-level directory (same dir as the .fla and Document.as files). If I move that class to a deeper directory, say com.place, and update the package statement and symbol link appropriately, the compiler will generate error "1136: Incorrect number of arguments. Expected 0."Create flash project and put a rectangle on the stage. Covert it to symbol and assign it to class TestPanel - or whatever you choose. Also configure the fla so that is uses a Document (Main) class.Create Main.as and TestPanel.as in the same folder. In the Main class, instantiate a instance of TestPanel and add it to the stage. Flash will, predictably, add the rectangle symbol and everything is fine.Now modify TestPanel so that its constructor method takes a Number and have Main.as pass some number to TestPanel.[code]You now get the error: 1136: Incorrect number of arguments.Expected 0.When I move the TestPanel.as into a deeper directory, Flash somehow is looking elsewhere for the base class for Symbol, even though I'm mapping that Symbol to com.place.TestPanel.
I've got a few areas where I'm displaying XML driven content in Flash. I'd like then to be able to have links shown as well so the user can continue to navigate the page. How do I add an HTML link in the XML so that it displays properly in Flash? Does something need to be added to the ActionScript or is it all done in the XML?
HTML Code: function loadXML(loaded) { if (loaded) {
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 have a box and is assigned as a button. In AS2 would be something like this: getURL("urltoload", "target"); But I am doing it in AS3, so I can learn more. I just want to add a HTML link, so when someone clicks on the box, a different page will load in the same browser, no pop-ups.
I'm working on the drop down menu with xml (from this site - [URL]), and I need to link to specific frames in my flash file, but it seems to be in html, is this possible to do?Or if not, I am building this drop down menu by hand and my actionscript looks like this:
//when you initialize your buttons set them to invisible like this stars._visible = false; starsa._visible = false; stars1._visible = false;
[code]....
and this is only from 3 buttons,I have 2 choices but I would like to know the better, more easier route.
what do I need to do if I'm using web_txt.text to load in xml.
but I want to have that be a link from the xml...?
I've been told: web_txt.text.htmlText but that seems like it messing things up and when I put the html tag into the xml file it wont load any of the code under it.
I'll have an swf that I'd like to open up as a popup from an html link. I've been searching the forum, but most similar questions are to go from flash to html.
Is it possible to make a link with a .swf flash file, using swfObject? I would like the entire video to be a clickable link... I'm out of ideas on how to make it happen., on the left thumbnails, do you see how they got a swf object to be a link?Anyone know the principle behind this? How would I do it? It seems like however I lay a div over the flash, my browser will not respond to the click.dit: I cannot make a link directly in the flash file, because 1. I dont have the project file 2. I need to echo PHP code in the link
I have a whole site made with flash, but I don't know how to link the buttons to other htmls. the actionscript is way too confusing. Is there a copy and paste I can use?
I haven't worked with HTML TextFields much, and was wondering if this is even possible. I am working on an events calendar, which when loaded displays a list of the current month's event titles in an HTML TextField. I would like to have these titles be links that when clicked on would call an ActionScript line that would setFocus on the associated date TextField.
say i have a flash file.. which checks the value of a variable... if the value is true then it does something and if the value is false it does something else.... my question is ,,... can i set that variable value... from a link to the html page which has that flashfile embedded in it
i have 5 menu in my website (home, news, about,..) and the news page is built in wordpress. The others is in one flash file (1 swf)..how do i make a link from my wordpress page to my swf (to specific frames in swf, and it's that frames is in a movieclip)
I have a website I would like to run locally in the computer. The website is in flash and links to some HTML pages in the same folder. How do I write the action script button so it opens the HTML page in the same page? Right now I have:
on (release) { getURL("localfile.html"); }
The above code doesn't go to the HTML page that I wanted in the same folder. Do I need a relative path or something? Indicate the folder it is in?
for flash 8 I have created a nice flash site to show some portfolio work. I have all the thumbnails in place but I wanted them to open a new HTML window in the size of the portfolio piece. How is this done and will it be blocked by popup blockers. edit: the html page i want to link to is in the same folder as the flash site.
i have followed a tutorial to build a flash craousel and have had no problems in building that. i wanted to add a html link to a section of the carousel but everything i have tried up to now has failed. All the information is passed through to the carousel from an xml file and everything works fine except for the link.
i have slightly modified the tutorial so i have an extra box on the information page which holds the web address for the site they are looking at in the portfolio. i have the address showing up but i cannot use the text as a link. the box that i am putting it in is a dynamic text box which has been set up with the following settings