Flash help! please!

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Starting Out

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Feb 4th, 2008, 15:26
Junior Member
Join Date: Jul 2007
Location: cambridgeshire
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
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);
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Feb 4th, 2008, 15:47
Reputable Member
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 434
Blog Entries: 2
Thanks: 7
Thanked 7 Times in 7 Posts
Re: Flash help! please!

So then what ?!?!
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Feb 4th, 2008, 15:56
Junior Member
Join Date: Jul 2007
Location: cambridgeshire
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Feb 4th, 2008, 16:11
Reputable Member
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 434
Blog Entries: 2
Thanks: 7
Thanked 7 Times in 7 Posts
Re: Flash help! please!

Can you attach ur fla file ?
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Feb 4th, 2008, 16:18
Junior Member
Join Date: Jul 2007
Location: cambridgeshire
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Flash help! please!

Great, thanks

Please remember when looking at it that this is the first time I've used flash!
Attached Files
File Type: fla TRwardhome.fla (381.5 KB, 5 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Feb 4th, 2008, 16:53
Reputable Member
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 434
Blog Entries: 2
Thanks: 7
Thanked 7 Times in 7 Posts
Re: Flash help! please!

When I test it, it only response to home button not to others. So is this right way ?
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Feb 4th, 2008, 16:59
Junior Member
Join Date: Jul 2007
Location: cambridgeshire
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Feb 4th, 2008, 17:17
Reputable Member
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 434
Blog Entries: 2
Thanks: 7
Thanked 7 Times in 7 Posts
Re: Flash help! please!

Use this codes :

Code: Select all
function gohome(event:MouseEvent):void {
    var targetURL:URLRequest = new
    URLRequest("http://www.trward.com/index");
    navigateToURL(targetURL);
}
homebtn.addEventListener(MouseEvent.CLICK, gohome);

function goflowers(event:MouseEvent):void {
    var targetURL:URLRequest = new
    URLRequest("http://www.trward.com/flowers.html");
    navigateToURL(targetURL);
}
flowersbtn.addEventListener(MouseEvent.CLICK, goflowers);
and make two others like them and change the button names in the code as function names...
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Feb 4th, 2008, 17:47
Junior Member
Join Date: Jul 2007
Location: cambridgeshire
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Feb 4th, 2008, 17:53
Reputable Member
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 434
Blog Entries: 2
Thanks: 7
Thanked 7 Times in 7 Posts
Re: Flash help! please!

Welcome, change your post to Solved .
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Feb 4th, 2008, 18:00
Junior Member
Join Date: Jul 2007
Location: cambridgeshire
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Flash help! please!

how do I do that?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Feb 4th, 2008, 18:02
unitedcraig's Avatar
SuperMember

SuperMember
Join Date: Oct 2007
Location: Stockport
Age: 17
Posts: 844
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Feb 4th, 2008, 18:39
Junior Member
Join Date: Jul 2007
Location: cambridgeshire
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Flash help! please!

sorry but there's only 3 options; to print, to email and to unsubcribe??
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 19:06.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42