Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 5th, 2003, 12:58 PM
hollyathome hollyathome is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: san diego
Posts: 2 hollyathome User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Lightbulb x,y variables

i have five movie clips on the same frame that occupy the full stage. below them is the original home page from which they are linked by buttons. additionally, each movie clip has a drop down menu which allows the user to access any clip from inside any other clip.

i've used code using the x,y variables to move one movie off the stage and the other onto the stage as a way to accomplish the toggling back and forth between pages.

the code works sometimes. usually on the first toggle. but by the second are third it seems to flash to the movie that's been moved onto the stage for a millisecond. the movie then disappears and you see the bottom "home page" layer.

there's a "stop" action in each movie clip. what should I do?????

here's my code:

on (release){
_root.promotionalmc._x = -363.2
_root.promotionalmc._y - 376
_root.webmc._x = 402.1
_root.webmc._y = 376
tellTarget (_root.webmc) gotoAndPlay ("play2");{}}

Reply With Quote
  #2  
Old August 5th, 2003, 03:17 PM
1ain 1ain is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Bath
Posts: 26 1ain User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i think the reason you're having htis problem is because when you click your buttons, the movies are repositioned, taking split second to do so but just long enough to see it flash up before you.

one way to combat this might be to use the _visible attribute like so,


// initially set the state of the movies you want to see and which
// ones you want to hide
_root.promotionalmc._visible = false;
_root.webmc._visible = false;


// then do your thing
on (release){
_root.promotionalmc._visible = false;
_root.webmc._visible = true;
tellTarget (_root.webmc) gotoAndPlay ("play2");{}}

let me know if this solves your problem

e

Reply With Quote
  #3  
Old August 5th, 2003, 03:59 PM
hollyathome hollyathome is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: san diego
Posts: 2 hollyathome User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question still having trouble

e

i tried your method, (which works great as an alternative) however, i met with the same results. after a few toggles back and forth, both movie clips disappear leaving a blank background.

as a temporary fix, i've switched the last line of my code to "gotoAndStop" rather than "gotoAndPlay." this works. but i'm worried about what's going to happen in the future when i may need the movie to gotoAndPlay. we'll see.

in the meantime, i'm still puzzled. it's as if, the root movie ignores the "stop" action on the movie clips after a few toggles. any ideas???

thanks for your input.

./h

Quote:
Originally posted by 1ain
i think the reason you're having htis problem is because when you click your buttons, the movies are repositioned, taking split second to do so but just long enough to see it flash up before you.

one way to combat this might be to use the _visible attribute like so,


// initially set the state of the movies you want to see and which
// ones you want to hide
_root.promotionalmc._visible = false;
_root.webmc._visible = false;


// then do your thing
on (release){
_root.promotionalmc._visible = false;
_root.webmc._visible = true;
tellTarget (_root.webmc) gotoAndPlay ("play2");{}}

let me know if this solves your problem

e

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > x,y variables


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway