ActionScript 2.0 :: Creating A Link Over A Piece Of Swf?
Oct 2, 2007
I have to make a a hyperlink from selected area over an external loaded swfI load the swf inside of scrollpane, but how can I let the user to create this area as big as he wants and how can I get its position after?
So I've gone through a few different websites looking for a way to make a symbol a link, and I keep running into the same problem. I am using action script 3.For example, I got this code from this page:[url]....[code]......
It makes the symbol (logolink) a link (changed the mouse cursor to a pointer), but it kills my animations and errors out saying (all on line 4...the function callLink line): "expecting leftparen before colon", "expecting identifier before leftbrace", and "expecting rightparen before leftbrace".I tried a few things like adding an unused parameter, and a couple other things (trying to satisfy the above errors), but then I get "call to possibly undefined method addEventListener through a reference with static type Class"
I'm trying to learn how to use xml, and I really like this tutorial http:[url]..My question is how would I write my action script to allow the text (First Name, Last Name, GPA) to open up a link? I wrote this into the xml file & I don't know if it is right. Original Code:
Code: <student first="James" last="Johnson" gpa="3.3" </> My Code:[code]....
I have created a small movie in Flash (.fla file) to sit within a website, but I would like to be able to click on to it at any point and for it to link to a website. What would be the best way in which to do this?
which doesn't work! I just put this in on assuming that flash would pick up the pdf on my desktop but it cannot open the pdf when you click on the link.
im trying to create a button that will (once clicked) go to another .fla file .. can it be done ? searched everywhere can just find out how to create buttons that direct to a URL which i already knw how to do..
full sketch is ive created a flash video intro and at the bottom a button appears "enter" once clicked i need it to go to the main .fla file .
I absolutely love the carousel however in the item description I would like to have html links. I have tried the following: FLASH: theText.html = true; <<< i added this to the main AS code import mx.utils.Delegate; ETC.....
XML: <icon image="icon1.png" tooltip="LimeWire" content="LimeWire is a peer-to-peer file sharing client for the Gnutella network. It is free software released under the GNU General Public License. Limewire was the first file sharing program Java installed <a href="[URL]">orchard</a>."/> I also just added the standard html link into the xml. However all that loads is the background content, the main carousel refuses to load.
I'm doing a site that needs to download an mp3 sample clip from the serverwhen a text link is clicked. The whole site is in Flash and am using MX. Tried the getURL > didn't work. Saw a tutorial here but that oneplays the mp3 file right away. I want the user to be able to save the fileto their hard disk and play it from there.
i understand that you have to have a .zip file usually to force a browser to download the file using the getURL command to the URL of the .zip file. But when i have a link in a pop-up page, it just gives me a error 404 page
so far the AS looks like this
on (press){ getURL(www.troyblank.com/download/beeswax.zip); }
I'm doing a site that needs to download an mp3 sample clip from the server when a text link is clicked. The whole site is in Flash and am using MX. Tried the getURL > didn't work. Saw a tutorial here but that one plays the mp3 file right away. I want the user to be able to save the file to their hard disk and play it from there.
Why creating a text link to a .as hosted on my site creates a 404 error? If I change it to .txt it works fine but I'd really like the user to be able to open the file directly into Flash.
I have a movie that is going to be playing in our onLine Learning Site. I want to include a link to download a few documents, and I just don't know how to do that.I do Not KNOW what the complete HTTP url will be, just the directory path by that I mean, I know the files will be in "VideoFilesHighRes1.MOV" but I don't have access to the complete URL. This isnt a problem when it comes to loading other Flash objects (IE sounds, different clips etc) For some reason I didn't think the "getURL" request was valid in AS 3.0.....
i have a created full flash site and i m ready to upload it on a my server But i want to add a download link to a pdf file in my Site can i just do it by simply adding the following A.S. to the button
a code for creating a simple link between files on my computer using flash cs4? Im trying to link sperate swf files within the folder. Im trying to make a cd and i have 5 sperate swf files that need to link to each other and back to the home page which is also a seperate swf file.
I have created a flash sit in flash pro. On one of my pages i have a bunch of thumbnails that i want to be able to scroll through and click on and have it open another browser window to an html page I have created.I have placed all the button individually in a motion clip, so I can fade them onto the page when I go to it, and I then have selected all the buttons and changed them to motion clips so I can scroll them.
I created an action file and placed it in its own layer in the first motion clip that all the buttons are on.I am getting access of undefined property errors on all the buttons when I debug.Below is what I have written, I hope someone can tell me what I am doing wrong. I am new to this.
// Includes and Imports. import flash.net.navigateToURL; import flash.net.URLRequest;
make a similar menu like this site: [URL] look on the left side, when you click it it goes down and the other items just close and what my boss wants is that when you click something the link changes colors so it will be determined that your on that page my menu consists of a main menu then a sub menu then a sub sub menu
I am using AS2 and I am trying to make a simple 'game' for an assignment for school.I am first trying to make a simplified version of the game, to get some experience before I make the final version. I will try to explain this simplified version:
The player has to drag an object in a big square and then release it. The object resamples 20 liter water. In total the player has to drag 100 liter water to the square, so it has to drag and drop the 'water' object 5 times.
I want some text in screen that says: You still need .
how do you extract something from a piece of string lets say my string is something like mc_empty3 or mc_empty11...how can i get a piece of script to remove piece of it?
I have never done an expandable flash banner before and I am so stumped. An example of what I mean is here (top bwm ad): [URL] The main problem I am having is how do I get that expandable piece to show through like that? If someone could point me in the right direction
I know how to make a basic jigsaw but at the moment i'm trying to create a map of europe jigsaw. Unfortunately with the map taking up the majority of the room there's no space to have all the pieces on screen at once. I had a look for solutions and i found this... [URL] How would i go about making it so that only 1 piece appears on screen until you have placed it?
I have a XML document that I have to hard-code into AS (Yes, I HAVE to). I am trying to assign this xml to a string but for some reason on the xml doc declaration is assigned?[code]...
When I trace out the xmlDoc string I always only get "<?xml version="1.0" encoding="UTF-8"?>"
I have tried putting the whole document in one string surrounded by 's and concatinating the string like above. Why is the string var only getting assigned to the first line?[code]...
Over the course of four nights in April and May of 1941, Belfast was attacked by the German Luftwaffe bombers. Their aim was to destroy strategic targets in the city which were aiding the British War Effort.What I want is for users to be able to select the word 'German Luftwaffe' and then they will be brought to another frame with information on that topic.
Im attempting to make a create your own art work style piece in flash. Ive designed it out so that you first select one of 3 buttons to select which vase you wish to use as a base. However the next set of buttons relate to the colour of that object, so there are 4 options (blue, red, pink and brown) and the user selects one from clicking the appropriate button.
However im strugling to figure out how i would know which of the first options (which vase) the user has selected in the first place. Is there some kind of time line trick or script that i could use to sort this out???