weird navigation issue

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
roddy
Posts: 40
Joined: Tue Mar 04, 2014 7:24 pm

weird navigation issue

Post by roddy » Wed Apr 16, 2014 11:11 pm

I have one card in my stack that wherever you touch/click on the screen, takes you back to the previous card. What would cause the entire screen to become clickable?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: weird navigation issue

Post by Simon » Thu Apr 17, 2014 12:17 am

on mouseUp
in the card script :)

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

roddy
Posts: 40
Joined: Tue Mar 04, 2014 7:24 pm

Re: weird navigation issue

Post by roddy » Thu Apr 17, 2014 12:50 am

Hi Simon,

I don't have a mouseUp command in the card script. I have a 3 button option group on all cards:

on mouseUp
lock screen for visual effect in rect (0,44,1024,678)
set the mgText of group "titleButton" to the mgOptionText of me
go to card the mgOptiontext of me
unlock screen with visual effect push up fast
end mouseUp

I have 3 main cards in the stack.
The 3rd card has Next/Previous buttons that push left/right to start you on a tour.
The "Next" button on card 3 takes you to card 4.
Card 4 is the card that becomes entirely clickable... and it's getting the "push up fast" effect and taking you back to card 3.

Roddy

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: weird navigation issue

Post by Simon » Thu Apr 17, 2014 1:14 am

i guess this would be easier if you posted the stack :)

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

roddy
Posts: 40
Joined: Tue Mar 04, 2014 7:24 pm

Re: weird navigation issue

Post by roddy » Thu Apr 17, 2014 2:07 am

Thanks. Referenced images will be missing...

Click Start after loading, then click Gallery Guide, then click Next to get to the problem card.
Attachments
VisitorGuide.livecode.zip
(161.86 KiB) Downloaded 176 times

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: weird navigation issue

Post by Simon » Thu Apr 17, 2014 2:46 am

Oh you are going to hate me!!!
I fixed it but I don't know why it should make a difference;
2014-04-16_1843.png
Just move the navButtons in between topNavbar and titleButton.

Nope don't know why. but I think those "beforeMouseDown" might have something to do with it.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

roddy
Posts: 40
Joined: Tue Mar 04, 2014 7:24 pm

Re: weird navigation issue

Post by roddy » Thu Apr 17, 2014 3:03 am

omg. i love you. :oops:

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: weird navigation issue

Post by Simon » Thu Apr 17, 2014 3:13 am

I've gone all warm and fuzzy inside :)
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”