Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 9th, 2004, 11:56 AM
munden munden is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 7 munden User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Button in MC when clicked - OPEN URL?

I have a movie clip that I have put a button into I have told the button that when clicked open url xxx.html

I have dragged the finished Movie clip onto the stage and when I publish it the button in the movi clip opens my browser but does not open xxx.html


my question is how can i get a button in a movie clip that has been dropped onto the main stage to open a specific web page.

All help appreciated

Reply With Quote
  #2  
Old January 9th, 2004, 12:08 PM
binkyboo binkyboo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 114 binkyboo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
is your path to xxx.html correct? show us some code.

Reply With Quote
  #3  
Old January 9th, 2004, 01:11 PM
munden munden is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 7 munden User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Button in MC

the button in the MC has the code below attached to it


on (press) {
getURL("test.html", "_blank");
}

When the movie clip with the button in it has been dragged from the library to the stage, and then published, it opens my browser and not test.html - I have test.html in the same folder as the published swf.

All I am trying to do is create a movie clip with a button in it, that when the MC is dragged from the library to the main stage, published and pressed, opens a specific html file.

Reply With Quote
  #4  
Old January 9th, 2004, 01:16 PM
binkyboo binkyboo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 114 binkyboo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Make sure the extension is html and not htm. Here's an example for ya.
Attached Files
File Type: zip test.zip (4.3 KB, 228 views)

Reply With Quote
  #5  
Old January 9th, 2004, 02:14 PM
munden munden is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 7 munden User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
It is html

It is html - I am wondering if thee has to be some reference to the button in the code - if you make a MC and then drop a button in it, drag it to the stage and when published, see what happens.

Reply With Quote
  #6  
Old January 9th, 2004, 02:15 PM
binkyboo binkyboo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 114 binkyboo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
It works for me. Could you post your example?

Reply With Quote
  #7  
Old January 9th, 2004, 02:47 PM
munden munden is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 7 munden User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
files

fla file

Reply With Quote
  #8  
Old January 9th, 2004, 02:49 PM
munden munden is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 7 munden User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
here it is

here it is
Attached Files
File Type: zip 01_horizontalmenu.fla.zip (6.3 KB, 237 views)

Reply With Quote
  #9  
Old January 9th, 2004, 02:50 PM
munden munden is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 7 munden User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
and the test.html

and the test.html
Attached Files
File Type: html test.html (604 Bytes, 157 views)

Reply With Quote
  #10  
Old January 9th, 2004, 02:56 PM
binkyboo binkyboo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 114 binkyboo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
So when you click on the button it doesn't launch TEST.html? I tried it and it worked for me. I'm at a loss here!

Reply With Quote
  #11  
Old January 9th, 2004, 03:09 PM
munden munden is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 7 munden User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I was using Safari on the Mac

I have just tried it in Explorer and it works fine - I was using Safari on the mac - it does not seem to work on it - you have been very kind and very helpful, many thanks - If anyone has a workround for Safari please let me know

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Button in MC when clicked - OPEN URL?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway