Login | Register | FAQ

how do you create a link to a html page in actionscript?

+ Post a reply

1, 2

how do you create a link to a html page in actionscript?

by Mermaid7 » Wed Nov 17, 2010 11:14 am

I want to create a html link in actionscript of a flash movie file but i don't know how.

I have created an image slideshow in flash and want to be able to link each image through to a html page as i have incorporated the image slideshow into my website. When the user clicks on an image in a slideshow i want them to be directed to another html page.

Is this possible?

User avatar


  • Posts: 4
  • Joined: Thu Oct 28, 2010 11:02 am

Re: how do you create a link to a html page in actionscript?

by lacroixz » Wed Nov 17, 2010 6:03 pm

Try adding:

'<script type="text/javascript" src="js/swfscript.js"></script>' and at the item's location this:

<div id="..">
<p>In order to view this object you need Flash Player 9+ support!</p>
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player"/>

Hope it helps,

Think I misunderstood you, and I've got no idea how to link images in a flash object. Goodluck tho!
User avatar


  • Posts: 74
  • Joined: Wed Oct 27, 2010 9:26 pm

Re: how do you create a link to a html page in actionscript?

by num1student » Sat Nov 20, 2010 6:28 am

Hope this works but beware that you would have to specify actionscript 2.0 or 3.0. There are differences in the syntax of both and it is not backward compatible unfortunately.

How to make links from Flash to any URL using Actionscript 3.0
Code: Select all
// URLRequest variable(where to navigate)
var pageOnAnySiteURL:URLRequest = new URLRequest("services.html");
// Navigation function
function pageOnAnySiteDown(event:MouseEvent):void {
   navigateToURL(pageOnAnySiteURL, "_blank");
// Our button event listener to fire off that event when button is clicked in FLash
pageOnAnySite_btn.addEventListener(MouseEvent.CLICK, pageOnAnySiteDown);

Reference video tutorial information that code was taken from here:
User avatar


  • Posts: 5
  • Joined: Thu Nov 18, 2010 7:19 am

Re: how do you create a link to a html page in actionscript?

by frnkjfrsn » Wed Dec 15, 2010 2:50 am

I am a beginner in this html language. This is the useful thread for me. I am also facing the same problem with actionscript. But after reading this thread I can understand about the link creation for actionscript.
User avatar


  • Posts: 5
  • Joined: Tue Dec 14, 2010 11:26 am

Re: how do you create a link to a html page in actionscript?

by michelsmith » Fri Dec 17, 2010 8:33 am

I haven't used it often, but theres an undocumented actionscript function called ASFunction. You can use it with an A HREF of HTML enabled text to call a function that exists within the ActionScript.
User avatar


  • Posts: 1
  • Joined: Fri Dec 17, 2010 8:26 am

Re: how do you create a link to a html page in actionscript?

by techbabyboy » Wed Jan 12, 2011 5:06 am

This seems to be a problem for beginners to Flash, and I thought I'd address it. When building a Flash-navigated site, you need to link one page to another through the flash interface, just like you would a <a href="otherpage.html">my link</a> in HTML/XHTML.

Once you've created your button on the page, you can link the button very simply. Right-click it, and select "Actions" from the menu. This will open the ActionScript editor, in which you can right ActionScript code. Don't worry. It's not detailed to put this link in.
Make sure you are in Expert Mode, by clicking the arrow in the upper-right hand corner and selecting "Expert Mode". Now type the following code into the editor.

on (release) {

The button you created will now go to that link when the mouse clicks it. The getURL function has a prototype that is like this:

getURL(url [,window [, method]])

The window and the method are optional parameters. The url define the resource you want to access. This could be an absolute address, such as "http://www.somesite.com/" or relative to the page that contains the flash movie such as "myotherpage.htm". The window parameter defines the window that you want the url to load in. This could be one of the following:
"_self" - Targets the window that the movie is in.
"_new" - Opens url in a new window
"_top" - Only useful in a framset, targets the top frameset
"_parent" - Targets parent window in a framset
"myWindowName" - where "MyWindowName" refers to the name of a frame in a frameset

windows 7
User avatar


  • Posts: 2
  • Joined: Wed Jan 12, 2011 4:50 am

Re: how do you create a link to a html page in actionscript?

by cellry » Fri Jun 29, 2018 3:10 am

seen nfl jerseys the floor michael kors bags of giants jerseys the Qi hollister online Yan, really understand vans shoes the relojes true burberry outlet store meaning of vans schuhe life swarovski online shop is dull. rayban Simple life, lac jersey indifferent attitude ferragamo shoes at all times maintain a friendly rolex watches get along with adidas online shop people, and soccer shoes outlet people bulls jerseys friendly, and longchamp sincere people, fivefingers grateful michael kors handbags life. Those reflections breakdown montre homme of the past, puma online shop have oakley sunglasses cheap flown in coach outlet the baptism of steelers jerseys the breeze, despite the barbour jackets infinite philipp plein beauty fitflop shoes of the scenery, michael kors outlet online sale but just parajumpers parkas passing through a utah jazz jersey time of prada handbags life. Thanks for eyeglasses stores pain, timberland outlet let adidas shoes us toms shoes outlet learn cheap nfl jerseys perseverance, learn to let redskins jerseys go, coach bags outlet thanks nike shoes to kate spade bags those who have mont blanc pens appeared, either hurt atlanta hawks jerseys or give, toms shoes outlet we thomas sabo should celtics jersey all be grateful, if hollister co you do ray ban outlet not adidas sneakers have thomas sabo jewellery these experiences and frustrations, we north face backpacks would not have today.When the north face outlet the milwaukee bucks jersey light from zapatillas nike the fingers glide hastily, reebok leaving burberry outlet store us is to air jordan retro move toms shoes outlet on, salomon schuhe only experienced, lost rayban too, will know gucci shoes store better how timberland to dolphins jerseys cherish guess bags and have nike soccer shoes a long champ life there oakley sunglasses are nike air max too jack wolfskin outlet online many skechers womens shoes emotions nike running we celine outlet need to swarovski australia face, or fidget spinner that nike air max most unforgettable guciheaven outlet people kate spade outlet do ray ban pas cher not accompany polo ralph lauren you to the adidas superstar finish, valentino outlet but the edge hermes belt to nike air max thea edge to, ralph lauren we can oakley frogskins not nike fu?ballschuhe grasp air max 90 or detroit pistons because red bottom someone left, will understand, everything lacoste shirts is longchamp handbags original air max thea set polo outlet store number, panthers jerseys the louboutin shoes other is to let hilfiger outlet you know a true religion jeans women lot true religion jeans outlet of chi flat iron things can mcm bags not the north face force burberry outlet a kate spade lot nike huarache of coach factory outlet online people You converse shoes can ralph lauren outlet not bcbg max stay reebok outlet strong, all the people michael kors and barbour jackets things, allow them coach factory outlet to kate spade handbags faint, ray ban sunglasses faint to polo ralph lauren go. air max Bring dsquared2 outlet a dsquared2 smile, ipad mini cases let bottega veneta go pandora jewellery australia of juicy couture outlet the washington wizards jersey memory burberry of hogan sito ufficiale those new balance outlet pale, minnesota timberwolves jersey the pain of swarovski jewelry those uggs outlet who north face canada give it falcons jerseys leave to michael kors outlet online bring in saints jerseys quiet good years, bravely cheap oakley forward.Many times, we do coach shop not thomas sabo uk need to look up to someone puma shoes outlet else's happiness, pandora bracelet in true religion outlet fact, nike.dk everyone has their birkenstock deutschland own happy christian louboutin outlet life, each givenchy shoes outlet individual tommy hilfiger outlet definition of ray bans happiness is different, iphone 4s cases maybe hugo boss outlet online when belstaff jackets outlet you're the tory burch handbags envy of raiders jerseys others, omega watches others nfl jerseys also in envy packers jerseys you, everyone alive, there prada tracksuits is toronto raptors jersey the meaning of true religion outlet existence, oakley sunglasses good nike air force love yourself, learn bcbg max azria to release rolex watches themselves in quiet hogan mens shoes good oakley sunglasses outlet years, do not push yourself too tired, nike running shoes indifferent montblanc learn, hoodies store learn joy, prada outlet happiness pandora charms will hilfiger online shop be ready north face jackets around around asics you, toms outlet online let those years blew woolrich womens jackets away disturbed longchamp outlet mind haze, airmax in a polo ralph lauren calm time, the experience of azcardinals jerseys years of michael kors handbags quiet beauty.Beauty of life, it is converse outlet not how babyliss flat iron much you ray ban wayfarer get, coach outlet online but whether you new balance can ugg australia be satisfied, michael kors uhren contented people often true religion easy michael kors outlet to tommy hilfiger online be mizuno running shoes happy, michael kors v?skor beauty polo ralph lauren outlet online of life adidas yeezy shoes is coach factory online that you armani outlet online do not have hollister much cheap michael kors wealth, but nike air huarache whether you coach outlet sale have fred perry outlet a bills jerseys healthy ray-ban sunglasses body, toms outlet the beauty ralph lauren outlet online of nike running shoes life under armour shoes is jordan shoes not broncos jerseys that replica rolex how swarovski crystal beautiful your polo ralph face, replica watches but polo ralph lauren whether colts jerseys you air jordan shoes have seahawks jerseys a good heart. los angeles lakers There is lions jerseys a soccer shoes beauty in life, the United nba jerseys States true religion jeans men is incomplete, texans jerseys not because nike store uk perfection is uhren shop valuable, but chi hair because timberland boots you bengals jerseys are not nike roshe run perfect burberry outlet store in philipp plein clothing order ray bans to adidas zx flux reflect coach usa different values, believe in rolex yourself, tory burch you ralph lauren are red bottom shoes irreplaceable.Been cheap jerseys yearning nike air max is burberry online shop a oakley sunglasses quiet woman, tommy hilfiger like new balance exposure to the vikings jerseys quiet secluded hollister co In air max 2014 one chrome hearts rings scene, like longchamp flowers in nike.se the morning, burberry sale like against nj jerseys the window, cheap ray ban feel levis jeans the ralph lauren polo warm michael jordan sun, environment, nike tn healthy personality abercrombie and stone island psychological burberry outlet online development and harmonization pandora canada in polo outlet line nike.com with cheap michael kors the oakley sunglasses age timberland outlet characteristics.We can not control belstaff womens jackets the weather, but we can mizuno change the mood; michael kors we hermes outlet can ny jersey not change the under armour outlet face, cheap jerseys but moncler mens jackets we pandora charms can show michael kors handbags a beats by dre headphones smile; nike schoenen we pandora charms can air max not mcm handbags control others, but we can burberry control their own; cheap jerseys we christian louboutin shoes can not jimmy choo outlet change indiana pacers jersey the burberry sale environment, but we can rams jerseys change their ray ban sunglasses own; ray ban wayfarer we can handbags outlet not louboutin predict tomorrow, north face jackets but ralph lauren online shop we marc by marc jacobs can supra shoes use hermes birkin bag today; replica watches we can sacramento kings not determine the jaguars jerseys length of life, but we ferragamo can coach outlet store control versace its nike air max width.Heart can michael kors outlet online not tolerate ralph lauren factory store others, coach outlet usa in fact, hurt ralph lauren polo their own; all rayban day complaining about suns jersey fate, as 49ers jerseys real versace outlet efforts. Create ferragamo shoes a good life c&amp;c beanies needs a good oakley sunglasses outlet attitude, polo ralph lauren maintaining dansko shoes outlet harmonious tommy hilfiger canada interpersonal designer handbags relationships burberry outlet online need a jets jerseys good attitude, the achievements purses and handbags of the tods womens shoes future swarovski crystal needs of longchamp handbags the future nike mercurial vapor good converse chucks attitude, let us the north face start from ourselves, every sunglasses for women moment of every day bears jerseys is toms.com changed salvatore ferragamo from gafas oakley the barbour womens jackets start, coach outlet online for lacoste the achievements christian louboutin of their own bright future.I hornets jersey sat in titans jerseys the coach bags outlet fall of cheap jack wolfskin arms, okc jerseys in chargers jerseys memory michael kors bags of that swarovski field in cavaliers jersey the michael kors shallow autumn blooming, Cantabile north face outlet poetic browns jerseys aesthetic and marc by marc jacobs solitude. skechers outlet --InscriptionShallow nike air max autumn purses and handbags cool earthI'm buccaneers jerseys with you cheap jerseys face to face. nike free run Watching this longchamp taschen season coach usa of prada shoes full and honest.But polo ralph lauren outlet I barbour jacket outlet do not know that nike air max looking first cowboys jerseys zero howling 76ers jerseys Araara. michael kors purses Me and you, ecco shoes outlet run in red bottom the memphis grizzlies jersey opposite direction, calvin klein outlet missed the season.GAO is still houston rockets the ray ban zonnebril sky air max 2014 is still nike huarache landing leaves. cheap shoes Lie oakley sunglasses sadness lined michael kors australia unfeeling.I nba jerseys know spurs jerseys I rolex replica unload easton bats heavy nfl jerseys tonnages coach bags outlet of love asics outlet in this autumn. northface Only orlando magic jersey for nike free 5.0 the abundance and enrichment of oakley sunglasses the oakley sunglasses cheap season. michael kors outlet online sale But unexpectedly, such ray ban uk as asics gel going veneta through a difficult michael kors journey.After all, I was nike factory homeless nike roshe run from outside adidas.se the season, north face such as wrinkles prada outlet sounded bare dre headphones hillside dre beats tracts roshe run of g by guess age michael kors uk spots. vans outlet Withered michael kors outlet almost to cruelty.As if skechers canada there has miami heat never been lonely in barbour mens jackets the www.tommyhilfiger.nl sky burning a lot ralph lauren of roshes engulfed my soul wreckage.Behind cheap nba jerseys the years, ed hardy clothing is nike roshe run still warriors jerseys in giuseppe zanotti the text of ravens jerseys the fendi bumps, michael kors outlet online and I ferragamo have nike roshe run nothing coach black friday to rows jordan shoes of a new orleans pelicans jersey list ray ban outlet of adidas superstar stories.I fred perry polos try to want cheap oakley sunglasses to patriots jerseys go farther, ralph lauren outlet online in faraway pandora places, replica watches do cheap jerseys a pull birkenstock taschen deutschland farewell.Shallow hollister clothing autumn dreamDo cheap basketball shoes not cheap oakley sunglasses always mcm handbags in my birkenstock words to find my shadow, hollisterco how juicy couture could jordans for sale I let myself do word in retro jordans the new balance shoes puppet?Every burberry handbags outlet expression, are adidas nothing gucci store but a eagles jerseys tea polo outlet online millet oakley style. It coach factory outlet online seems michael kors I links of london charms Fall ray ban occhiali in love moncler women jackets with new balance this text, converse sneakers even hopeless.Do not nba jerseys underestimate this denver nuggets jerseys shallow mcm backpack autumn, cheap oakley sunglasses I prada caressed its temperature, it seems hogan to have touched mbt womens shoes those easton bats who have Hermès Pas Cher past. With you, supra footwear with jordan retro me, nike store I could burberry not oakley bear nike shoes throwing this nike free thread warmth.I always believe belstaff mens jackets that lunette ray ban I do giuseppe zanotti sneakers not chiefs jerseys have a portland trail blazers jersey biting jimmy choo affair, as a mcm handbags blooming blooming, deep mavericks jerseys and shallow
User avatar


  • Posts: 98
  • Joined: Fri Jun 29, 2018 1:02 am

Re: how do you create a link to a html page in actionscript?

by vergar » Sat Apr 20, 2019 11:11 am

User avatar


  • Posts: 192052
  • Joined: Tue Apr 16, 2019 2:34 pm

Re: how do you create a link to a html page in actionscript?

by vergar » Sun Jun 23, 2019 5:11 am

User avatar


  • Posts: 192052
  • Joined: Tue Apr 16, 2019 2:34 pm

Re: how do you create a link to a html page in actionscript?

by vergar » Sun Jul 28, 2019 1:06 am

User avatar


  • Posts: 192052
  • Joined: Tue Apr 16, 2019 2:34 pm

+ Post a reply

1, 2