MX scripting question

This is a discussion on "MX scripting question" within the Flash & Multimedia Forum section. This forum, and the thread "MX scripting question are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 14th, 2007, 10:06
New Member
Join Date: May 2007
Location: kingston
Age: 25
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
MX scripting question

ive been building a flash menu for a multi page html site. in order to get the flash animation to load up in different frames for different pages ive included the following coding in the first frame of the flash animation:

if (firstItem == 1) {
gotoAndStop("from 1");
} else if (firstItem == 2) {
gotoAndStop("from 2");
} else if (firstItem == 3) {
gotoAndStop("from 3");
} else if (firstItem == 4) {
gotoAndStop("from 4");
} else if (firstItem == 5) {
gotoAndStop("from 5");
} else {
stop();
}

Then ive determined the variable firstItem in dreamweaver - in each
page, selected the flash menu and in the properties window, where it says
the name of the file: menu_09.swf, added the following: ?firstItem=1
with 1 being any number between 1-5 according to the number of menu
items. so in the page where i want the 4th item opened, ive written:
menu_09.swf?firstItem=4

altho this has worked as far as getting the flash animation to load up where i want it to it now keeps looping because the page is on a constant refresh for some reason that i dont understand.

any thoughts....

(have attached the flash file)
Attached Files
File Type: fla menu_11.fla (52.5 KB, 7 views)
Reply With Quote

  #2 (permalink)  
Old May 14th, 2007, 12:44
Reputable Member
Join Date: May 2006
Location: NC, USA
Age: 16
Posts: 355
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to MrMadison Send a message via MSN to MrMadison Send a message via Skype™ to MrMadison
Re: MX scripting question

Under your publish settings in flash, set the loop to none. If looping is the problem...Or your actions are weird...
Reply With Quote
  #3 (permalink)  
Old May 18th, 2007, 02:35
Multimedia Specialist
Join Date: Apr 2007
Location: Arizona
Age: 25
Posts: 666
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Sgaspar11
Re: MX scripting question

Still on my honeymoon and I don't have flash on the crap-top...so the actual PAGE is refreshing? Or is the flash causing the page to reload because it is running through each frame over and over?

try putting a stop(); on frame 2,3,4,5, etc. That might take care of it. (again, I cannot see the flash file at the moment)

Cheers,

Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
Reply With Quote
Reply

Tags
script

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
life scripting alexgeek Webforumz Cafe 17 Aug 26th, 2007 16:26
Flash scripting acrikey Flash & Multimedia Forum 7 Aug 11th, 2007 01:14
scripting help berjoe Flash & Multimedia Forum 5 Oct 3rd, 2006 16:55
Add-Favourites scripting metoks Classic ASP 0 Sep 10th, 2006 18:48
PHP scripting help please D3mon PHP Forum 9 Jun 14th, 2004 20:06


All times are GMT. The time now is 01:33.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs 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 43