Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > Flash Development
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 09-07-2009, 11:40 AM
  #1
wildrooms
Novice (Level 1)
 
Join Date: Sep 2009
Posts: 1
iTrader: (0)
wildrooms is an unknown quantity at this point
Unhappy flash button help

Help my flash buttons on my site for navigation open each page in a new tab. I don't want new tabs to open. The code I have used in flash is

blue.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.wildroomsmediadesign.co.uk/portfolio.html/"));
}

blue is the name of my button. I think I need to add self or parent or something bu don't know where? Thanks!!!!
wildrooms is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 09-18-2009, 05:49 PM
  #2
shintashi
Novice (Level 1)
 
Join Date: Sep 2009
Posts: 5
iTrader: (0)
shintashi is an unknown quantity at this point
_self = same window, _blank = new window;

is what i use in AS2. It might work like this:


blue.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
function mouseDownHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.wildroomsmediadesign.co.uk/portfolio.html/", " _self"));
}

or if you have a frame, you might swap out "_self" with "_myframe" or "framename" or whatever it is you named it. Flash cannot open a website into a movie clip or itself, but it can open a website into a targeted frame (I think).
shintashi is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart
 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 03:00 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.