Reducing app weight & global background
Hi! I am making a 62 pages ebook about animals & plants; 1024 x 768 size. Each page will have between 4 - 8 illustrations of about 400 x 400 (they will appear one on top of another, as layers..) I compose each page in Photoshop and the import it to interact builder. Given that the background will be the same for every page; I thought on importing it just once and making it global, to reduce app weight. But I have some doubts:
1- is it possible to convert a background element, imported within a psd file; into a global element (global background not clickable)
2- Although I have deleted all the graphics in the pages I had made, to leave the pages blank again, the app size didn't changed in the info pannel... I cleared cache also, but it marks still 38,72 Mb... how can I effectively delete elements in order to reduce app weight?
3- Does interactbuilder makes any compression on images imported? My psd source files are 5 -10 Mb big each; so for a book of 60 pages it makes 300 - 600 mb size app... isn't that too much? how could I reduce the app weight? (I am working with 1024 x 768 px; sRGB 8 bytes psd 72 ppi psd files...)
Thanks a lot. I know there're many questions, sorry for that : /
Is it possible to populate a different page with a hidden element on tap?
If possible, kindly advise how one could cause an element to appear on a separate page when user completes a task on a different page. For example, I'd like to create a "stickers" page that is populated with elements that are "rewards" if user completes a task or taps a specific element on a different page. Such as maybe make an element visible on another page on tap? So when user visits their "stickers" page they can see all their little "reward" stickers. Thanks for your thoughts!
You can do this by using App Counter. For the element that is causing the reward to apear you will need for example a CounterSet to a value for example 1 with the target being App Counter.
On the reward page for the reward element you will have a Show behavior invoke on page load with the condition AppCounter Value is 1.
making image jump/add to another page.
Is there a way I can have a particular image/graphic, when tapped, get added to another page? I want the user to tap it, and then the image must hide, and be added to another page to be seen later.
Clint
You can make this by having a app counter. And on the element that is Tapped you will have a CounterSet behavior to 1. Then on the second page you will have, on the element you want to show a Show Behavior Invoked on Load with a Condition that the app counter to be 1.Let me know if you need a sample app, and I will make and provide you one.
I've attached to this reply a sample app:
Upload to InterCloud not working
Hi,
While trying to use Upload to InterCloud I am getting following error:
InteractBuilder Version: 3.2 Build 307
Device: Latitude E4300
Processor: 1 Processor(s) Installed.
[01]: x64 Family 6 Model 23 Stepping 10 GenuineIntel ~1584 Mhz
Memory: 3,536 MB
System: NT 6.1
--------------------
An error occurred while accessing the database.
An error occurred while accessing the database.
Database Error: no such table: PageElements
Query: UPDATE PageElements set PageId = (SELECT PageNumber FROM Pages WHERE PageElements.PageId = Pages.Id)
line 167 of handler "mouseUp" of group "_Row5" of group "PopOverTable" of group "PopOver" of card "Manage" of stack "InteractBuilder" of behavior button "stsTableRow Behavior" of card id 1002 of stack "IBResources"
line 955 of handler "stsTableView_mouseUp" of group "PopOver" of card "Manage" of stack "InteractBuilder" of behavior button "PopOver B" of card id 1002 of stack "IBResources"
line 1247 of handler "PopOverMenu_Select" of group "PopOver" of card "Manage" of stack "InteractBuilder" of behavior button "PopOver B" of card id 1002 of stack "IBResources"
line 2392 of handler "PopOverMenu_PrepSubMenu" of group "PopOver" of card "Manage" of stack "InteractBuilder" of behavior button "PopOver B" of card id 1002 of stack "IBResources"
line 998 of handler "Manage_ContextSelect" of card "Manage" of stack "InteractBuilder" of behavior button "ManageCd B" of group "Card Behaviors" of card id 1002 of stack "Behaviors"
line 1013 of handler "UploadToCloud" of card "Manage" of stack "InteractBuilder" of behavior button "ManageCd B" of group "Card Behaviors" of card id 1002 of stack "Behaviors"
line 1135 of handler "ShareAppToMyCloud" of image "Slot 1_4" of group "BookGroup" of group "BookShelf" of card "Manage" of stack "InteractBuilder" of behavior button "PublishCd B" of group "Card Behaviors" of card id 1002 of stack "Behaviors"
line 5275 of handler "DBFixPageNumbers" of stack "libApp" of stack "libApp"
line 4974 of handler "ibTransDB" of stack "libApp" of stack "libApp"
line 4932 of handler "CheckDBErr" of stack "libApp" of stack "libApp"
line 10889 of handler "DoError" of stack "InteractBuilder" of behavior button "Stack B" of card id 1002 of stack "Behaviors"
--
Adeel
We released version 3.2.1 yesterday which should resolve this issue.
Text Element - On Tap > Page > Jump Bug
Am getting consistent bug in Interact mode.
When I assign a text element Action: Tap > Page > Jump to a page number.
In Interact mode when I click the text element, on Tap the desired page starts to load and then IB3 throws an error as noted below.
This is happening consistently with the latest release of IB3. I did my best to troubleshoot issue, but couldn't find root cause. Thanks for looking into this.
InteractBuilder Version: 3.2 Build 307
Device: MacBook Pro
Processor: Intel Core i7
Memory: 4 GB
System: 10.7.5
--------------------
An application error occurred while attempting to perform the last action.
Restarting InteractBuilder is recommended.
An application error occurred while attempting to perform the last action.
Restarting InteractBuilder is recommended.
Error: Chunk: can't find background / Chunk: error in object expression / send: bad target expression
Handler: Behavior_Animate_PlayFrame
Hint:
Location: Line 0, char 1
Object: button id 1008 of group id 1010 of card id 1002 of stack "Behaviors" of stack "/Applications/InteractBuilder.app/Contents/MacOS/Local Components/Data/InteractBuilder.livecode"
87: Line 0 at char 1: Chunk: can't find background
69: Line 3899 at char 67: Chunk: error in object expression ----> button id 7474632 of group id 7474470 of card id 1140 of stack "/Applications/InteractBuilder.app/Contents/MacOS/Local Components/Data/InteractBuilder.livecode"
532: Line 3899 at char 1: send: bad target expression
253: Line 3894 at char 1: if-then: error in statement
253: Line 3872 at char 1: if-then: error in statement
241: Line 3872 at char 1: Handler: error in statement ----> Behavior_Animate_PlayFrame
353: Line 0 at char 0: Object Name: ----> button id 1008 of group id 1010 of card id 1002 of stack "Behaviors" of stack "/Applications/InteractBuilder.app/Contents/MacOS/Local Components/Data/InteractBuilder.livecode"
line 150 of handler "errorDialog" of button "stsErrors_FS" of card id 1002 of stack "libSTSErrors"
line 10889 of handler "DoError" of stack "InteractBuilder" of behavior button "Stack B" of card id 1002 of stack "Behaviors"
We will try to recreate and fix.
Fixed in version 3.2.1
Draw Bug
When using Drag > Draw Action, the colored line overwrites my imported B&W line drawing and so I can't make a "coloring book" page behave as desired.
Steps to reproduce:
Import a B&W line drawing as a .png. Set it either as a background image or just on the stage.
Import a .png graphic to use as a "crayon" for the desired color.
Set the Action for the crayon to Drag > Draw and set the desired color, line width.
Set the Behavior on page load to Yes.
Go into Interact mode.
Notice the crayon draws ok, however it replaces the black outline of the imported B&W illustration .png wherever the crayon is drawn.
Expected behavior:
I want the black line of my imported drawing to remain viewable, and NOT be overwritten by the colored line, oherwise it isn't a coloring book, its just drawing and replacing the coloring page completely. I tried setting the illustration as a background image and also just placed it on the stage, but this doesn't help. I also tried putting the B&W illustration on a layer above the crayon layer to no avail. Please advise if there is a better method to do this.
I'm using the latest version of IB3 and a MacPro.
Also, we really need a Stop Draw option added so I can stop the crayon from drawing a line on Drag End and to prevent the crayon from continuing to color when user decides to choose another color. I reported this as a bug earlier and the suggested fix does not solve my problem in this scenario.
If you want me to share a small app demonstrating the problem, please send me an email at realartstudios@comcast.net. Thanks.
This is not a bug. You should import a second element that does not contain the border of your image that you want your user to color in. This element should set inside of your other element, and the draw behavior should be added to this element, this way the user can't color over the line.
Duplicate Page Bug
I just tried to duplicate a Page using the Manage Pages panel, but get the error message below after I copy the page and click the "Apply" button. The new page does not save after clicking apply. This happens on my MacPro. (I'm using the latest release of IB3.)
Thanks for looking into this.
InteractBuilder Version: 3.2 Build 307
Device: MacBook Pro
Processor: Intel Core i7
Memory: 4 GB
System: 10.7.5
--------------------
An application error occurred while attempting to perform the last action.
Restarting InteractBuilder is recommended.
An application error occurred while attempting to perform the last action.
Restarting InteractBuilder is recommended.
Error: Chunk: error in chunk expression / Chunk: error in line range / Chunk: can't find substring / put: can't set destination
Handler: ManagePages_Apply
Hint:
Location: Line 218, char 32
Object: button id 1011 of card id 1002 of stack "Behaviors" of stack "/Applications/InteractBuilder.app/Contents/MacOS/Local Components/Data/InteractBuilder.livecode"
66: Line 218 at char 32: Chunk: error in chunk expression
68: Line 218 at char 32: Chunk: error in line range
83: Line 218 at char 32: Chunk: can't find substring
466: Line 218 at char 1: put: can't set destination
253: Line 217 at char 1: if-then: error in statement
587: Line 202 at char 1: switch: error in statement
490: Line 196 at char 1: repeat: error in statement
241: Line 196 at char 1: Handler: error in statement ----> ManagePages_Apply
353: Line 0 at char 0: Object Name: ----> button id 1011 of card id 1002 of stack "Behaviors" of stack "/Applications/InteractBuilder.app/Contents/MacOS/Local Components/Data/InteractBuilder.livecode"
675: Line 9 at char 1: ----> ManagePages_Apply
241: Line 9 at char 1: Handler: error in statement ----> mouseUp
353: Line 0 at char 0: Object Name: ----> graphic id 4475692 of group id 4475689 of group id 4475685 of card id 1139 of stack "/Applications/InteractBuilder.app/Contents/MacOS/Local Components/Data/InteractBuilder.livecode"
line 150 of handler "errorDialog" of button "stsErrors_FS" of card id 1002 of stack "libSTSErrors"
line 10889 of handler "DoError" of stack "InteractBuilder" of behavior button "Stack B" of card id 1002 of stack "Behaviors"
Version 3.2.1 should be released in the next few days. We have this in the list of bugs that will be addressed.
Creating a Game
You can create many types of games and fun activities and either incorporate them into your app or make a stand alone app. There are several great apps in the App Store that have activities and games in them. A couple are:
Scale on Tap doesn't work
Scale on Tap bug.
When I try to make an animated png sequence that has a transition scale down 50% on Tap, it doesn't work in Interact mode. I want the element to look like it is moving farther away, and also will need this to make objects appear to come closer to viewer. Thanks.
I've created a sample app with how I think you want this to work.
Let me know if this is what you wanted.
Replay on tap - possible bug
I want a .png animated sequence to animate and transition on tap. When the transition plays once and ends I want it to stop animating and enable user to tap again to repeat the same animate > transition behavior. I've tried setting the replay to both yes and no but it just keeps looping the behavior. I also tried setting the Behavior replay number from 0 to 1 and it doesn't seem to work as desired, the transition continues to loop. I also tried to chain a on double tap stop animation behavior to the element and that didn't stop the animation from playing. Please recommend best method to enable the desired functionality. In other words repeat the same on tap animate > transition behavior on tap once transition ends. Not sure how to do this. Thanks.
I assume you are using a frame animation. Looks like a bug to me, in theory you should be able to do a transition animation with a bounce and then the user could just tap again. We are planning on releasing an update this week (Week of June 16th).
Servicio de atención al cliente por UserEcho