-
1. Re: How to link from a button to another page?
JosephLabrecque Mar 24, 2017 5:41 AM (in response to marjoleinp37350879)I'm going to guess that "tipsinfo_btn" does not exist on the same frame you have your code on - so the event listener cannot be added to it.
If your code is at frame 3, for instance, be sure an instance of "tipsinfo_btn" is at frame 3 as well. Even if it exists off-stage on the pasteboard and then shifts into place later on (when you want it visible) that will work.
-
2. Re: How to link from a button to another page?
marjoleinp37350879 Mar 24, 2017 5:51 AM (in response to JosephLabrecque)Hello,
Thanks for your answer! Unfortunately, that doesn't fix it. I have my code on the same frame (but another layer?) as my button.
Any other suggestions?
-
3. Re: How to link from a button to another page?
JosephLabrecque Mar 24, 2017 7:08 AM (in response to marjoleinp37350879)Is it the very first frame? If so- have the instance appear on frame 1 and the code on frame 2. Canvas sometimes needs some breathing room...
-
4. Re: How to link from a button to another page?
marjoleinp37350879 Mar 24, 2017 7:13 AM (in response to JosephLabrecque)No, it's in frame 90 or something. After the other animations are done, my button starts appearing.
-
5. Re: How to link from a button to another page?
marjoleinp37350879 Mar 24, 2017 7:48 AM (in response to marjoleinp37350879)Fixed it... it seems you can't have a bitmap as a button...
But thanks for the help!! -
6. Re: How to link from a button to another page?
JosephLabrecque Mar 24, 2017 9:25 AM (in response to marjoleinp37350879)You can use a bitmap to skin a button - but yeah... you cannot provide an instance name to a bitmap.
-
7. Re: How to link from a button to another page?
ClayUUID Mar 24, 2017 10:32 AM (in response to JosephLabrecque)If you determine the instance name of a bitmap on the stage, you can in fact assign listeners to it.
But yes, it's much easier to just do things properly.
-
8. Re: How to link from a button to another page?
marjoleinp37350879 Mar 24, 2017 11:26 AM (in response to JosephLabrecque)But if I have a bitmap and make it a button symbol, it should work, shouldn't it?
I'm a bit confused about it. For now, I've just made my button a vector and that does the trick.For now, I've just made my button a vector and that does the trick.
But I still don't really get what was going wrong..