How to make flash movie as html link
<a>embed tag</a>
not working?

Any ideas?

Recommended Answers

All 7 Replies

0 down vote

if you want to link a piece of flash to a web site simply in the .fla . Insert a new layer , name this layer a (for actionscript/actions) . Inside type the following, say the thing you wanted someone to click on was a button which you named ,as a movie clip * mcbutton * :

mcbutton.onRelease = function:void () {

Wasim Ullah Sulehri

0 down vote

This will work in Actionscript 3

you need to use the navigateToURL() command which requires a URLRequest. Add a mouseclick event listener to the stage and in the function that is called in the event listener call the navigateToURL() command, passing the URLRequest of the url you want it to link to.

// add the click event listener to the stage
stage.addEventListener(MouseEvent.CLICK, onClickHandler);
//define the onClickHandler function to go to the url
  function onClickHandler(evt:MouseEvent):void{
      navigateToURL(new URLRequest(""));

Wasim Ullah Sulehri

I cant edit the flash files. that is my requirment.
Can we achive this through html?
Basically what i want is the video slider like youtube use to have – where the video playing is at top and underneath it in small boxes are the other videos. There is also an arrow to the right and to the left where you can scroll through the other videos at the bottom and if you select one it will start playing up above in the larger area.

I have done some research and finally finds a slider similar to youtube but that is for images. If i changes it to videos i cant make them link

I hope you understand my problem?

Load an external Flash file and link that in Flash. Like this:


Member Avatar

That needs flash. You can link to the flash file like so:

<a href="">Link text</a>

or you can embed it in the page:

<object width="500" height="400">
<param name="flash_thing" value="your_flash_file.swf">
<embed src="your_flash_file.swf" width="550" height="400">

just google it and you find lots of ideas from here ....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.