Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 21, 2012, 03:49:11 AM
Home
Forum
Documentation
Search
Help
Login
Register
Gaia Framework for Adobe Flash
>
Forum
>
Support
>
Gaia AS3 Support
(Moderators:
Nemo
,
Ramiro
) >
Simple link to a pdf
Pages: [
1
]
« previous
next »
Print
Author
Topic: Simple link to a pdf (Read 222 times)
wrkwrk
Gaia Novice
Posts: 6
Simple link to a pdf
«
on:
September 04, 2011, 01:21:00 PM »
I tried this but it comes up with errors
my_btn.addEventListener(MouseEvent.CLICK, onClick);
function onClick(e:MouseEvent):void{
navigateToURL(new URLRequest("
http://www.test.com/pd.pdf
"), "_blank");
}
This is probably an easy one for you experts
Logged
codeKnow
Gaia Expert
Posts: 319
Re: Simple link to a pdf
«
Reply #1 on:
September 04, 2011, 05:03:42 PM »
what is the error? post the trace out and it would better help give you some direction.....
Logged
wrkwrk
Gaia Novice
Posts: 6
Re: Simple link to a pdf
«
Reply #2 on:
September 05, 2011, 12:54:00 AM »
Im putting my code in override
public function transitionIn():void
1180: Call to a possibly undefined method navigateToURL.
navigateToURL(new URLRequest("
http://www.test.com/pd.pdf
"), "_blank")
;
1180: Call to a possibly undefined method URLRequest.
navigateToURL(new URLRequest("
http://www.test.com/pd.pdf
"), "_blank");
Logged
Nemo
Moderator
Gaia Addict
Posts: 594
Freelancer for hire
Re: Simple link to a pdf
«
Reply #3 on:
September 05, 2011, 02:15:34 AM »
You have to import that methods.
import flash.net.URLRequest;
import flash.net.navigateToURL;
Logged
!
wrkwrk
Gaia Novice
Posts: 6
Re: Simple link to a pdf
«
Reply #4 on:
September 05, 2011, 06:11:28 AM »
hah fantastic it works now, the only issue is it doesnt change pointer to hand like this
It just stays like this
Logged
Nemo
Moderator
Gaia Addict
Posts: 594
Freelancer for hire
Re: Simple link to a pdf
«
Reply #5 on:
September 05, 2011, 06:17:02 AM »
my_btn.buttonMode =true;
Logged
!
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Downloads and Information
-----------------------------
=> * Download Gaia *
=> Lessons, Examples, Tips+Tricks, Mods and Utilities
=> Gallery
-----------------------------
Support
-----------------------------
=> General Gaia Support
=> Gaia AS3 Support
=> Gaia AS2 Support
=> Feature Requests
=> Non-Gaia Questions
-----------------------------
International Support
-----------------------------
=> Deutsche
=> Español
=> Français
=> Italiano
=> Português
=> 日本語
TinyPortal v1.0 beta 4 ©
Bloc
Loading...