Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-29-2008, 05:01 PM   #1
blakefleeg
Registered User
 
Join Date: Jul 2008
Posts: 2
Unhappy confused about external files...

Hi All,

I'd like to preface by saying that I am a novice flash user attempting to edit purchased templates....anyway...what I am trying to do seems pretty easy but everything I try doesn't seem to work.

I have my sited hosted online thru go daddy (www.blakefleegle.com). I am trying to create a button that when pressed (release) opens up a document, my resume. I am playing the flash using a swf file, and not projector (i think that matters).

I've tried using the simple:
on (release) {
getURL("resume.doc", "_blank");
}
with my resume in the same directory as the swf & html...but nothing happens.

Can anyone explain to me how to get this to work!?? It seems like an easy enough thing to do...but then again, i am fairly novice...

Thanks!!

~Blake
blakefleeg is offline   Reply With Quote
Old 07-29-2008, 05:21 PM   #2
AleksandarAndreev
Registered User
 
Join Date: Jul 2008
Location: Los Angeles, CA
Posts: 63
Send a message via ICQ to AleksandarAndreev Send a message via AIM to AleksandarAndreev Send a message via Skype™ to AleksandarAndreev
Default

You should check first to make sure that the template is actionscript2, you can check that. Click on File-> Publish Settings, from there choose Flash and see what is the version of actionscript that the template is using.

If it is as2 than make sure that the event is applied to the button. Add some traces and see if you see them. If you don't it would mean that you haven't put the code on the button or there is something overlapping the button. You could try also to give it name like lets say start_resume_btn and than
start_resume_btn.onPress = function(){
getUrl("my_file.doc","_blank")
}

if it is as3 you will have to make your code in as3 not in as2 using addEventListener and MouseEvent
AleksandarAndreev is offline   Reply With Quote
Old 07-29-2008, 05:31 PM   #3
blakefleeg
Registered User
 
Join Date: Jul 2008
Posts: 2
Default

OK. I checked, and it is using AS2...

I have no idea how to put tracers on the btn... can you explain?

It could be overlapping something. But I;ve used "Bring to Front" so that shouldn't make a difference right?

Also, the btn i created was originally a movie clip that I converted to a btn. I then selected the button and added the getURL....

I don't know if any of that matters, but I figured i'd give you as much info as possible instead of least...

Thx
blakefleeg is offline   Reply With Quote
Old 07-29-2008, 06:29 PM   #4
AleksandarAndreev
Registered User
 
Join Date: Jul 2008
Location: Los Angeles, CA
Posts: 63
Send a message via ICQ to AleksandarAndreev Send a message via AIM to AleksandarAndreev Send a message via Skype™ to AleksandarAndreev
Default

well, you have two options, either to find out what is overlapping, or to create some ugly hack , the first one will take more time but will be much better, the second one will be faster and will not be very good
I attached a class for you that will make your button working. Just attach this class to the movieclip of the button and it will work
Attached Files
File Type: zip HeavyButton.zip (501 Bytes, 36 views)
AleksandarAndreev is offline   Reply With Quote
Reply


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
AS3 Classes without External .AS Files LostInTheCosmos ActionScript 3.0 6 06-29-2008 08:58 PM
Loading external files. VexBlade ActionScript 1.0 (and below) 1 07-27-2006 09:03 AM
advantages of external files and .as pitto ActionScript 1.0 (and below) 3 05-02-2005 08:21 AM
Publish External Files not being accessed casesy Other Flash General Questions 0 03-03-2005 02:00 AM
test streaming not "slowing down" external files? zaar Other Flash General Questions 3 08-11-2001 01:38 AM


All times are GMT. The time now is 11:39 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.