954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How can I add a button on a flv embedded intro

I'm attempting to add a skip intro button within the intro. I've tried using methods that have worked with regular animations but they aren't working.

I tried this code with no luck so I'm hoping someone else has something that will work.

monkey_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
    navigateToURL(new URLRequest("http://www.domain.com/"));
}
GReddy4u
Junior Poster in Training
75 posts since Feb 2004
Reputation Points: 10
Solved Threads: 4
 

Your code is working, are you expecting to open in the same window
Sample:

hit_btn.addEventListener(MouseEvent.CLICK,TestURL);
function TestURL(e:MouseEvent):void
{
var serverpath:String="http://localhost/Raja/AS3.0 PHP/TestPHP.php";
var urlrequest:URLRequest=new URLRequest(serverpath);
navigateToURL(urlrequest,"_self");
}


Hope this helps!

rajarajan07
Nearly a Posting Virtuoso
1,447 posts since May 2008
Reputation Points: 167
Solved Threads: 239
 
The class or interface 'MouseEvent' could not be loaded. The class or interface 'URLRequest' could not be loaded.

I was told by someone that since the intro is just an embedded flv that a normal button code for an animation wouldn't work.

Can you look at the intro and maybe it will give you an idea?
joshsonunionsquare dot com

GReddy4u
Junior Poster in Training
75 posts since Feb 2004
Reputation Points: 10
Solved Threads: 4
 

The given embedded flv is your intro right! then its working fine with your skip intro button right!. I want more explanation!!!!

rajarajan07
Nearly a Posting Virtuoso
1,447 posts since May 2008
Reputation Points: 167
Solved Threads: 239
 
The given embedded flv is your intro right! then its working fine with your skip intro button right!. I want more explanation!!!!


At the moment I have a separate skip intro button outside of the intro due to that code not working with an embedded flv as an intro.

I suppose I'll just leave a separate button to skip the intro since the person I'm building this for said that is just as fine.

GReddy4u
Junior Poster in Training
75 posts since Feb 2004
Reputation Points: 10
Solved Threads: 4
 

If you want to use the button within flv, that is not possible! but this is the embeded flv, so you can place the button on the flv while designing, thats enough!!!!

rajarajan07
Nearly a Posting Virtuoso
1,447 posts since May 2008
Reputation Points: 167
Solved Threads: 239
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: