|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
is your path to xxx.html correct? show us some code.
|
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
Make sure the extension is html and not htm. Here's an example for ya.
|
|
#5
|
|||
|
|||
|
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.
|
|
#6
|
|||
|
|||
|
It works for me. Could you post your example?
|
|
#7
|
|||
|
|||
|
files
fla file
|
|
#8
|
|||
|
|||
|
here it is
here it is
|
|
#9
|
|||
|
|||
|
and the test.html
and the test.html
|
|
#10
|
|||
|
|||
|
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!
![]() |
|
#11
|
|||
|
|||
|
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
|
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Button in MC when clicked - OPEN URL? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|