Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Really Easy Question, GetURL 1

Status
Not open for further replies.

Wazz

Technical User
Joined
Aug 12, 2002
Messages
209
Location
GB
Afternoon,
I have a flash movie and would like to link from it to a php page that I have on a seperate web site. Am I right in using the command getURL.

When I do use it, it doesnt drop the domain name im in so i end up with the following effect


Where am I going wrong?

Thanks in advance !!

Wazz
 
cheers matey.. i will give it a try!

Cheers
Chris
 
That should actually be...
Code:
my_btn.onRelease = function(){
    getURL("[URL unfurl="true"]http://www.mysite.com");[/URL]
}

Regards,

cubalibre2.gif
 
Cheers for the update, However I cant make either of them work! When I use the code you posted oldnewbie, I get the following response,
Scene=Front Page, Layer=Buttons, Frame=1: Line 1: Statement must appear within on handler
mbl.onRelease = function(){

Yes.. I know its a poor name, but in this instance my button is called mbl.

What have I done wrong in order to get this error,

Thanks
Wazz
 
make sure that you have the code in the main timeline and not attached to the button
 
Only thing I can think of is that "mbl" is not really the instance name of your button on stage, or that it's nested in some other movie clip, thus an error on path.

But the error you're reporting, would be because you're trying to apply this code on the button itself. That's not the way to do it if you're defining a function...

If your button is on stage and has an instance name of "mbl", the first frame actionscript should be something like the following...

stop();
mbl.onRelease = function(){
getURL("};

If rather than defining a function, youwant to apply the action on the button itself, than try...

on(release){
getURL("}


Regards,

cubalibre2.gif
 
This is waht the code should look like...
Code:
stop();
mbl.onRelease = function(){
    getURL("[URL unfurl="true"]http://www.flashkit.com/";);[/URL]
};
If rather than defining a function, youwant to apply the action on the button itself, than try...
Code:
on(release){
    getURL("[URL unfurl="true"]http://www.flashkit.com/";);[/URL]
}

Regards,

cubalibre2.gif
 
Nope! Again...

This is waht the code should look like...
Code:
stop();
mbl.onRelease = function(){
    getURL("[URL unfurl="true"]http://www.flashkit.com/");[/URL]
};
If rather than defining a function, youwant to apply the action on the button itself, than try...
Code:
on(release){
    getURL("[URL unfurl="true"]http://www.flashkit.com/");[/URL]
}

Regards,

cubalibre2.gif
 
Arrrrr... Yes I was applying the code to the button.

I will try it tonight.
Thanks everyone!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top