Hi,
I've created a stack made up of several cards, but clicking in a blank area or anywhere that is not a button or a link takes me back to the first card. I inported a video and this won't play. Clicking it only takes me to the home card.
Why does it do this and how do I stop it?
Thanks.
Omar
Clicking anywhere takes me to the mainstack.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Hi Omar,
Apparently, you have a script somewhere, similar to
Where do you have this script?
Best,
Mark
Apparently, you have a script somewhere, similar to
Code: Select all
on mouseUp
go cd 1
end mouseUp
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Hi,
I have this sort of script for every button on each card. But When I click outside any button it takes me back. I've checked all of the card and stack scripts and there's nothing. I haven't made any.
There is one thing that might be causing it.
I have an image that I use as a banner, and that is a hyperlink to the first card. As it is grouped it appears on every card, but it shouldn't make the whole card a hyperlink should it?
Omar
I have this sort of script for every button on each card. But When I click outside any button it takes me back. I've checked all of the card and stack scripts and there's nothing. I haven't made any.
There is one thing that might be causing it.
I have an image that I use as a banner, and that is a hyperlink to the first card. As it is grouped it appears on every card, but it shouldn't make the whole card a hyperlink should it?
Omar
Hi Omar,
Apparently, you accidentally edited the script of the group rather than the script of the image. The hcBehavior of the group is probably set to true. As a result, all card messages are also sent to that group before they arrive at stack level and when you click on the card, the group gets a mouseUp message, which executes its script.
You should be able to solve it by moving the group script to the script of the image object.
Best,
Mark
Apparently, you accidentally edited the script of the group rather than the script of the image. The hcBehavior of the group is probably set to true. As a result, all card messages are also sent to that group before they arrive at stack level and when you click on the card, the group gets a mouseUp message, which executes its script.
You should be able to solve it by moving the group script to the script of the image object.
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode