This is a discussion on "Flash help! please!" within the Starting Out section. This forum, and the thread "Flash help! please! are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Flash help! please!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
Flash help! please!
Hi,
I'm new to flash and I'm trying to create a navigation bar with 4 buttons, each with a different URL when you hit them. However, when I put this code in for one of the buttons function goflowers(event:MouseEvent):void { var targetURL:URLRequest = new URLRequest("http://www.trward.com/flowers") ; navigateToURL(targetURL); } flowersbtn.addEventListener(MouseEvent.CLICK, goflowers); |
|
|
|
#2
|
|||
|
|||
|
Re: Flash help! please!
So then what ?!?!
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
#3
|
|||
|
|||
|
Re: Flash help! please!
Doh,
The rest of my post has vanished! Basically, when I put that code on one button it applies to all the buttons and I want different URL for each button! |
|
#4
|
|||
|
|||
|
Re: Flash help! please!
Can you attach ur fla file ?
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
#5
|
|||
|
|||
|
Re: Flash help! please!
Great, thanks
Please remember when looking at it that this is the first time I've used flash! |
|
#6
|
|||
|
|||
|
Re: Flash help! please!
When I test it, it only response to home button not to others. So is this right way ?
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
#7
|
|||
|
|||
|
Re: Flash help! please!
No, that's my problem. I need each button to go to different URL so
homebtn goes to www.trward.com/index.html flowersbtn goes to www.trward.com/flowers.html foliagebtn goes to www.trward.com/foliage.html contactbtn goes to www.trward.com/contact.html But once I've put the actionscript in on the home button, I can't added a different code to the other buttons! Does this makes sense? |
|
#8
|
|||
|
|||
|
Re: Flash help! please!
Use this codes :
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
#9
|
|||
|
|||
|
Re: Flash help! please!
You're a star, thank you so much. I would have been at this for hours!
I didn't realize you put all the coding in at once. I thought each box should have it's own code. Thanks once again! |
|
#10
|
|||
|
|||
|
Re: Flash help! please!
Welcome, change your post to Solved .
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
#11
|
|||
|
|||
|
Re: Flash help! please!
how do I do that?
|
|
#12
|
||||
|
||||
|
Re: Flash help! please!
at the top of the page, thread tools
then select thread solved
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
|
|
#13
|
|||
|
|||
|
Re: Flash help! please!
sorry but there's only 3 options; to print, to email and to unsubcribe??
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sr. Flash Developer > SynCruiser Flash Widget | ipanema | Job Opportunities | 0 | Apr 10th, 2008 23:20 |
| Flash Designer (Central London, Flash, Flash Games, Flash banners, 22K-28K) | CapitalStrategy | Job Opportunities | 0 | Aug 13th, 2007 09:39 |
| Flash Designer (Central London, Flash, Flash Games, Flash banners, 22K-28K) | CapitalStrategy | Job Opportunities | 0 | Aug 13th, 2007 09:04 |
| playing flash within flash with slow internet connection | bejamshi | Flash & Multimedia Forum | 4 | Jan 19th, 2007 02:07 |