Adobe Dreamweaver Forums



Last 10 THreads :         Charts: Gap between Vertical Axis and the chart area (Last Post : flexisawesome - Replies : 1 - Views : 2 )           »          Dragging components (Last Post : hsfrey - Replies : 4 - Views : 5 )           »          Pop up window using AS3 (Last Post : retsnomrev - Replies : 3 - Views : 4 )           »          can a combobox contain two different list seperated byvdivider ? (Last Post : v-Jay - Replies : 2 - Views : 6 )           »          Refreshing xml data in flex (Last Post : PiyushGiri01 - Replies : 2 - Views : 19 )           »          Integrating Captivate with ASP - SQL? (Last Post : bikturisint - Replies : 19 - Views : 131 )           »          Re: IPhone (Last Post : MiLSaN99 - Replies : 0 - Views : 1 )           »          Re: IPhone (Last Post : MiLSaN99 - Replies : 0 - Views : 1 )           »          Re: IPhone (Last Post : MiLSaN99 - Replies : 0 - Views : 1 )           »          Re: IPhone (Last Post : MiLSaN99 - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Director > Lingo
 
Tags:



Reply
  #1 (permalink)  
Old 12-04-2008, 07:14 PM
Dave C
 
Posts: n/a
Diggs:
Default Re: using cast members with case of statement

OK, I see. You can use the case statement and replace the
executeBranchingMenu handler in that example.

------------------------------------------------------
on executeBranchingMenu menuName, commandName
case commandName of
("Item 1, 1") : go frame "Some frame label"
("Item 1, 2") : go frame "Some other frame label"
-- etc
end case
end
---------------------------------------------------------

But there is an even simpler solution that does not require using a case
statement at all. Just name your frame labels "Item 1, 1", "Item 1, 2",
etc and use this. It will save you a lot of unnecessary coding.

---------------------------------------------
on executeBranchingMenu menuName, commandName
go frame commandName
end
-----------------------------------------------


By the way, there is nothing in that example movie that holds the play
back head, so you probably want to add code to do so, otherwise it will
just jump back to the menu. This can be added to the same movie script.

--------------------
on exitFrame
go the frame
end
-------------------


Reply With Quote
Sponsored Links
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 07:35 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk