constrainRectangular and ios?
Moderators: heatherlaine, kevinmiller, robinmiller, malte
constrainRectangular and ios?
how might i use constrainRectangular inside of ios. i just really need a push in the right direction?
Re: constrainRectangular and ios?
With AE 4 this should work out of the box. Doesn't it?
set the constrainRectangular of btn "myButton to 100,200,200,300
TouchStart / end / mouseDown / up need to be passed in the controls script though.
Hope that helps,
Malte
set the constrainRectangular of btn "myButton to 100,200,200,300
TouchStart / end / mouseDown / up need to be passed in the controls script though.
Hope that helps,
Malte
Re: constrainRectangular and ios?
i got it working in livecode but it will not work in the simulator. and i was under the same impression i thought i worked out of the box. what else could be the problem? when i open the stack i tell it to start using animation engine? is that the proper way to deal with it in ios?
Re: constrainRectangular and ios?
A few things to check:
How did you include AE into your iOs project?
Are you sure it is present and in use? (LiveCode fails silently on start using if the stack is not present)
To check this:
make a button:
If ae is listed there and it is still not working, please do make sure you are using the latest version (constraining on mobile devices has been introduced with ae 4. Any version below 4 will not work properly on iOs devices)
Best idea is to make animationEngine a substack of the stack you build your app from. To do so open the messagebox and type:
then in your mainStack at stack level add the following script:
Please let me know if that worked for you.
All the best,
Malte
How did you include AE into your iOs project?
Are you sure it is present and in use? (LiveCode fails silently on start using if the stack is not present)
To check this:
make a button:
Code: Select all
answer the stacksInUse
Best idea is to make animationEngine a substack of the stack you build your app from. To do so open the messagebox and type:
Code: Select all
set the mainStack of stack "animationEngine" to "nameOfYourStackHere"
Code: Select all
on startUp
-- this is important for iOs, as otherwise the engine may get confused who is the defaultstack
start using stack "animationEngine"
end startUp
All the best,
Malte
Re: constrainRectangular and ios?
yea i have already done all of that. one question? when i answered stacks in use the stack that i had created didn't show up is that right? also i just ran a aemoveto and it worked? so everything seems good except for the constrain? and i am running version 4.
Re: constrainRectangular and ios?
that is rather strange. Could you send me a copy of the stack for investigation? mail: revolution@derbrill.de
All the best,
Malte
All the best,
Malte