Old 07-02-2009   #1 (permalink)
Registered User
 
stiney51's Avatar
 

Join Date: May 2006
Location: Maine, USA
Posts: 656
Blog Entries: 16
Images: 7

Battle Wins: 3 (rank: #12)
Simple Flash Help Needed (AS2)

I have a banner I'm working on with a simple flash animation that needs 5 buttons with hyperlinks. Everything is done, but for some reason I can't get the buttons working.

Each button has its own instance and a test of the simple buttons in flash works fine.

I added the following AS to each button (naturally different html links for each). Which from what I read should be all I need. Obviously not:

on (release) {
getURL("http://www.playersbench.com/prod.ihtml?pid=4075","GET");
}

The final test of the movie has all animation working and the initial up state of each button, but there is no functionality on the button itself.

Any suggestions on where to start trouble shooting?
stiney51 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2009   #2 (permalink)
MacAddict
 
synthetic's Avatar
 

Join Date: Dec 2006
Location: Ohio
Posts: 1,358
Blog Entries: 18
Images: 195

Battle Wins: 3 (rank: #12)
what is the "GET" you have at the end of the getURL statement? I think that is your problem. This is normally reserved for "_blank", "_parent", "_top" etc. I think or that is what I follow my links with to determine the window of the link. Otherwise... should be fine as long as the AS is attached to actual button and not a frame
__________________
-Dean aka Synthetic Tone

My FeaturePics Pics | My Dreamstime Pics | My Photoblog
synthetic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2009   #3 (permalink)
Just unleashed!
 
unleash's Avatar
 
Pinboliada Champion! Tournaments Won: 1

Join Date: Jul 2005
Location: Inbetween
Posts: 2,610
Blog Entries: 10
Images: 20

Battle Wins: 1 (rank: #35)
Im not sure, but I think you want to do it like this:

Set up an AS layer (the top layer for all I care) and type in the following script:

btn1.onRelease = function(){
getURL("http://www.playersbench.com/prod.ihtml?pid=4075");
};

Do this for every button you have (first button = btn1, second button is btn2 and so on). And make sure your buttons have the instance names you use in the action script. (so the instance name of the first button must be btn1).

Than you can delete all the code you had per button, and it should work

If this doesnt help, PM me the file and ill have a look at it!



PS:Try synthetics way first cause I think that is the problem too, if not so try this...
__________________
Ads are the cave art of the twentieth century.

That what doesn't destroy us, makes us stronger.
unleash is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2009   #4 (permalink)
Registered User
 
stiney51's Avatar
 

Join Date: May 2006
Location: Maine, USA
Posts: 656
Blog Entries: 16
Images: 7

Battle Wins: 3 (rank: #12)
sent Unleash a response, but now a different (related problem). The issue of the buttons apparently wasn't as much the problem in the code, but there appears to be some glitch in the hit state. I'm at a loss, the buttons were created from simple text with a glow over & down state. The hit state I tried with the same text and even tried with a rectangle, but in each case the button doesn't work unless the mouse is about 15 pixels to the right of the text.

Anyone else seen this happen?
stiney51 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2009   #5 (permalink)
MacAddict
 
synthetic's Avatar
 

Join Date: Dec 2006
Location: Ohio
Posts: 1,358
Blog Entries: 18
Images: 195

Battle Wins: 3 (rank: #12)
Stiney... if you post me a link to your fla... I will have a look at it for you and make them work and post you link to corrected fla this eve unless you rather have Unleash take a look at it.

its easy to get one little think out of whack and mess it up much like forgetting a character in HTML coding
__________________
-Dean aka Synthetic Tone

My FeaturePics Pics | My Dreamstime Pics | My Photoblog
synthetic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2009   #6 (permalink)
Registered User
 
stiney51's Avatar
 

Join Date: May 2006
Location: Maine, USA
Posts: 656
Blog Entries: 16
Images: 7

Battle Wins: 3 (rank: #12)
Got the ghosted thing removed somehow, but have been back trying to get the links to work again.

It's as if it's not recognizing the text as buttons (this currently only has 1 button mentioned in the AS because I want to get 1 working before worrying about the rest):

http://stinehour.com/10ksickick.zip
stiney51 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2009   #7 (permalink)
Registered User
 
stiney51's Avatar
 

Join Date: May 2006
Location: Maine, USA
Posts: 656
Blog Entries: 16
Images: 7

Battle Wins: 3 (rank: #12)
I sent it off to Unleash, but if anyone can take a look and give feedback maybe I will learn something here. :-)
stiney51 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2009   #8 (permalink)
MacAddict
 
synthetic's Avatar
 

Join Date: Dec 2006
Location: Ohio
Posts: 1,358
Blog Entries: 18
Images: 195

Battle Wins: 3 (rank: #12)
change the text in your buttons to "static" and not dynamic. I also just drew a box for the hit where letters should be (may not be needed but good practice) and it works. I can send you the corrected one here in a bit (though I didn't have your font and you might have to go back in and replace font if I send corrected... not sure)... at work and get ready to leave right now and will be home in couple of hours
__________________
-Dean aka Synthetic Tone

My FeaturePics Pics | My Dreamstime Pics | My Photoblog
synthetic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2009   #9 (permalink)
Registered User
 
stiney51's Avatar
 

Join Date: May 2006
Location: Maine, USA
Posts: 656
Blog Entries: 16
Images: 7

Battle Wins: 3 (rank: #12)
No need to post it... the dynamic text thing obviously was the issue. Appears to be working correctly now. Thanks Synth & Unleash.
stiney51 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07-02-2009   #10 (permalink)
MacAddict
 
synthetic's Avatar
 

Join Date: Dec 2006
Location: Ohio
Posts: 1,358
Blog Entries: 18
Images: 195

Battle Wins: 3 (rank: #12)
Quote:
Originally Posted by stiney51 View Post
No need to post it... the dynamic text thing obviously was the issue. Appears to be working correctly now. Thanks Synth & Unleash.
no problem... glad I could help
__________________
-Dean aka Synthetic Tone

My FeaturePics Pics | My Dreamstime Pics | My Photoblog
synthetic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FLASH] Simple Flash Preloader Jacorre Tutorial Submission 3 01-22-2007 10:07 PM
[Flash] Simple Gallery AirGuitar Tutorial Submission 3 08-12-2006 06:03 PM
Little asp help needed with simple quiz script developed by Scrowler greer HTML / PHP / ASP / JS 1 01-18-2006 11:55 PM


All times are GMT +1. The time now is 07:00 AM.

Powered by vBulletin Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1

Design & Content © BioRUST 2008 :: PRIVACY STATEMENT :: LEGAL INFORMATION :: ADVERTISING MEDIA KIT