Adobe AIR fullscreen executable performance - air

If this is the improper forum, please advise. Just trying to get an answer.
For a recent project I am running a full screen (desktop) executable created with Adobe AIR.
After a lot of testing what I've discovered is that the full screen executable ALWAYS performs better with buttery smooth tweens when the Flash IDE is open. If I close the IDE, relaunch the executable, there is noticeable stutter.
This makes no sense but have repeated several times with same results. Can anyone suggest a reason why and a possible solution in lieu of having to launch the IDE as well?

Related

Xcode 6.1 crashing when running the project

I searched StackOverflow and it doesn't look like many people are having this problem, but for me, this happens very, very frequently. Maybe not every time, but perhaps every other time.
Once I try to build and run the app, Xcode crashes, and in a strange way: it just disappears with no error messages, no suggestion to report the problem, nothing at all. This happened with Xcode 6.0 as well. It doesn't matter whether I am running the app on a device or on an emulator.
To prevent the crash, I need to Product > Clean. If I do this clean each time before running the app, crashes do not happen, but once I forget to do that, Xcode can crash any moment.
I don't think I ever had this crash with an old project, but it keeps happening with the project that I started in Xcode 6.0.
Because of that, iOS development is becoming for me quite a painful exercise, similar to pre-Android-Studio Android development.
Is it just my problem, or maybe someone else is having it? Maybe someone has a solution?
I just started running into the same issue and found a workaround for it. Found it to be an issue with building when Xcode is full screen. Seems silly, but so far exiting full screen mode has worked for me. I've been able to re-introduce the issue after building full screen a few times, and then instantly fix it again by exiting full screen.
Yeah, it's not that the app is crashing, it's just that the click is triggering the red close window button behind the red button (yeah, seriously). You'll notice, Xcode is still open, it's just that the window has closed. You might also notice that sometimes when you click "stop" in full screen mode, it switches to non full screen. Again, the tap is passing through the run/stop buttons to the underlying window controls.
So dumb.
I solved it using 'cmd + R' instead of clicking the run button

Having Multiple icons on the taskbar for most IDE

For most IDE, such as eclipse, Intellij, Processing, and other, it seems that even after pinning the program to the task bar, when I actually open it, it creates another program that is not pinned to the task bar. As a result, I have multiple icons on the taskbar. I'm guessing that the ones I pinned on the taskbars are kind of like launching applications and they open a separate application, not that I'm sure of this theory, but I'd prefer to have only one application showing up on the taskbar. So, is there a way to set it up so even after I start the program, another doesn't show up on the taskbar?
Also, It seems like I can't pin the program that gets opened.
Here's a picture of the taskbar.
Or, since it seems like I can't post a picture yet,
This is what's going on with my taskbar.
http://i1320.photobucket.com/albums/u538/jerichoi224/Untitled_zps216034f9.png
This is because IDEs launch instances, which Windows doesn't support taskbar pinning for.
The solution for Eclipse IDE is to add:
-vm
C:/path_to_jre/bin
, to the beginning of the eclipse.ini file, in the eclipse directory, and relaunching the IDE.

Make Titanium Studio play a sound when the build is complete?

Whilst I'm waiting for TiStudio to build and re-launch the iOS Simulator or Android device I like to look out the window and stretch my eyes a bit, or worse quickly flick to Reddit.
The problem is (especially with Reddit) I can get distracted for longer than I wanted and waste time.. If I could attach a beep to a particular build event in TiStudio this would help..
Any ideas (this is a serious question)?
You can use a Titanium build hook, this is added to projects individually and allows you to get a notification with sound when build is done
https://gist.github.com/hanih/16cf2468825bbe4e27f3

Installation button using AS3.0 in Flash

I havent seen this question asked here yet, which makes me wonder if its a common question at all! But hopefully someone out there knows!
I'm creating a catelog for the business I work for and the index page has to be done in Flash (I have no acess to the old program used). Basically how the CD Cat works (at least the old ones I have) you put the disc in, it auto launches, and an index pops up. On that index there are 3 links, Install, View, and Website (pluss an exit button). The Install button when pressed launches InstalShield Wizard which begins to then download the PDF files for the Cat (right now the catelog is comprised of the index page, and PDF files. If you click the 'view' button it goes to a PDF index of all the companies products.) and a link to the website. Basically when the whole thing is done installing, there are 2 icons on the desktop: one brings you to the website and one opens a downloaded copy of the CD Cat. Just the PDF files though.
I have no idea what program was used in creating the origional catelog index, and I tried contacting the person who did it but he doesnt remember (this was several years ago and he left nothing for me to go on). I'm entirely new to Flash, only just learning, and so something like creating a download button is daunting to me. I dont even know where to begin! If anyone could spare some info or even where I could go to learn more about this, please let me know. Thank you!
This is basically an autorun CD with a flash projector on it. A Flash projector is a self contained flash executable.
Article on Autorun CD like that was made:
http://www.webwasp.co.uk/tutorials/a24-autorun-CD/index.php
You can make a regular windows autorun pretty easily but making a hybrid that runds on mac and windows is quite a bit tougher.
In order to copy over PDFs or do system type commands you will need to use 'fscommand' which can run executables and even windows batch files.
How to run executables is covered here:
http://www.wuup.co.uk/as3-how-to-run-applications-from-a-flash-projector-exe-with-actionscript-3-and-batch-files
The fscommand reference is covered here:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/system/package.html?filter_flash=cs5&filter_flashplayer=10.2&filter_air=2.6
Hope this helps.

Tips on debugging UI errors in Windows Phone 7

I have a Windows Phone 7 application and I regularly see "weird" UI glitches that take me AGES to debug. It's a range of issues like controls appearing to have extra margin, scrollbars not appearing, animations looking really glitchy, entire page scrolled down, combobox items offset, etc. etc.
I'm happy to admit it might be me - but how to you debug UI errors like this? I know there's Silverlight Spy for the PC Silverlight Apps. Is there anything like this for Windows Phone 7?
Any debugging tips v much appreciated.
I have found that it is a good idea to start with Windows Phone 7 Design Templates, adopt a version control system right from day one of the project and to edit the XAML, use Expression Blend. The Visual Studio is great for writing code, but, to harness the real power of the tools, Expression Blend is the best to style your application.
HTH,
indyfromoz
Here are some tips:
Many people have issues with the emulator due to their graphics card.
Things like slow animations and ui glitches are very common.
Check that your graphics card is Direct X 10.1 at least and that your Driver
Model is WDDM 1.1
Make sure you have the latest drivers.
Windows 7 has less issues with the emulator than Vista
Make sure you have the latest tools, get the RTM release from the website.
In the RTM release, the frame rate counters are displayed by default in a vertical bar on the left, you should monitor these to check for performance issues
Here are a couple of things which I normally do... none of them are real smart, but sharing nevertheless.
Deploy it after every 2-3 controls that you add and ensure things are correctly laying out.
If by chance it doesn't work the way I am expecting it to, I have a parallel Silverlight 3 project running in which I typically paste the XAML and see if it works fine.
After that, I typically check it out as a Silverlight project since even I am not sure of any tools available for Win Phone 7.
I have favorited this question and I hope someone points us to something more interesting.
There's a lot you can checkout with Blend as Indy suggests. This is really good advice.
Regarding some of your specific issues these aren't necessarily glitches. I'll comment on a couple that stand out.
Extra margin - this and padding are built into the metro controls by design. Again, in blend you can dig into this by retemplating the control and changing properties of objects within the control.
The procedure for this is rclick the control, edit template, edit a copy. Then you can look at the different states and objects and change things as suits. While doing this please keep in mind the App Certification Requirements and UI Design Guidelines.
Regarding scrollbars, these are by design hidden until you start scrolling. You can control their availability with Horizontal/VerticalScrollBarVisibility on relevant controls (or on the ScrollViewer embedded in some controls - again retemplate in blend).
Combobox isn't metro themed so is going to struggle in the fitting in department, but there are posts around where people have done work on this. ListPicker is a better fit imo from the Windows Phone Toolkit released with the RTM tools.
If you can't see any obvious causes for the glitches in your code the first thing I would recommend is to actually test your app on a real device. Somethings - particularly animated objects -don't always look exactly the same when you run them on a device.
I thought I had a animation glitch in one of my apps but it only appears in the emulator. When I run on an actual device I don't see it.
Of course this doesn't help you if you can't get a phone to test it on yet, but before you potentially waste hours trying to debug a problem you might not have I would work on the rest of the app until such time as you can test the app on a real phone.
The same goes for anyone creating animations - don't waste time perfecting animations in the emulator. The timings will almost certainly be different on the actual device, so wait till you have one to test on.