How do I use the getURL method to work on a movie clip…here is an .fla file for an example of the type of thing I want to happen…
I tried:
on (press) {blah.com );
}
But the movieclip wouldn’t play…
Here is an .fla from Ultrashock that has the same type of thing I have…if anyone could help me out it would be much appreciatted…thanks!
             
            
              
            
           
          
            
              
                system  
              
                  
                    January 15, 2003, 11:35pm
                   
                  2 
               
             
            
              on (rollOver) {
//do this
}
on (rollOut) {
//do this
}
on (release){
getURL("yourFile.html","_self");
}
You can change _self to _blank to open in a new window.
             
            
              
            
           
          
            
              
                system  
              
                  
                    January 15, 2003, 11:56pm
                   
                  3 
               
             
            
              can you show me using that .fla…because I based my code on that…and when i try to do it…every possible way I know…it doesn’t work…
             
            
              
            
           
          
            
              
                system  
              
                  
                    January 16, 2003, 12:36am
                   
                  4 
               
             
            
              actually, i found a way…thanks for the tip!
             
            
              
            
           
          
            
              
                system  
              
                  
                    January 16, 2003,  1:59am
                   
                  5 
               
             
            
              Glad you found a way 
Even though I don’t see why my way didn’t work, works great for me :-\
             
            
              
            
           
          
            
              
                system  
              
                  
                    January 16, 2003,  2:18am
                   
                  6 
               
             
            
              actually, i didn’t find a way…i did a little bit of what you said, because I couldn’t get your way to work either, and i did a little tinkering…and still couldn’t get it…when i did it your way it wouldn’t goto the URL yet, the animation and everything worked…
same thing happened after a scrapped it…and rebuilt it another way.
i’m almost ready to give up on something soooo simple!
             
            
              
            
           
          
            
              
                system  
              
                  
                    January 16, 2003,  2:36am
                   
                  7 
               
             
            
              Well for one, that .fla you posted up top there… it is in slash syntax… which is Flash 4!
I just tested the code on my own movieclip as a button and I got the getURL to work fine.  I am trying to whip up a quick .fla for you.
             
            
              
            
           
          
            
              
                system  
              
                  
                    January 16, 2003,  2:40am
                   
                  8 
               
             
            
              Thanks!  I’m still trying…I know it is old syntax…i’ve just started learning MX, I learned on Flash 4, and Flash 5.
             
            
              
            
           
          
            
              
                system  
              
                  
                    January 16, 2003,  2:48am
                   
                  9 
               
             
            
              Ok, here is the attachment.  Took like 3 seconds to do, so excuse the tackiness 
             
            
              
            
           
          
            
              
                system  
              
                  
                    January 16, 2003,  3:19am
                   
                  10 
               
             
            
              Ok…i did that…how come this doesn’t work…
             
            
              
            
           
          
            
              
                system  
              
                  
                    January 16, 2003,  3:20am
                   
                  11 
               
             
            
              well…it works outside of Flash…AHHH!!  I hate programming…
             
            
              
            
           
          
            
              
                system  
              
                  
                    January 16, 2003,  3:26am
                   
                  12 
               
             
            
              You have to have contents.html in the same directory as your flash file, otherwise it can’t open what it can’t find in Flash.
I just created a lame content.html in notepad and saved it in the same directory, and it works.
And you really sure use on(release)  I find it to be better for links for some reason.