flashbuilder 4.5 can't find import flash.display.*; - flash-builder

i opened a flash pro project in flashbuilder 4.5 but it puts a question mark next to my import statements for example:
import flash.display.;
I have tried rebuilding the project in a new folder. I have the latest SDK. why would Flashbuilder have a problem finding flash.display.; or import flash.events.*; very irritating is there a way to fix this or should i just continue to use textmate to code as3?

I'm having this issue myself from time to time, even in current Flash Builder 4.5 (never figured out how to replicate it though).
To solve it do this:
Right click on your project in Project Explorer tab of Flash Builder > Properties
Once there select ActioScript Build Path > Library path > Add SWC folder
Select this directory C:\Program Files\Adobe\Adobe Flash CS5.5\Common\Configuration\ActionScript 3.0\FP9
(optionaly) If you wish to target FP10, add this dir instead C:\Program Files\Adobe\Adobe Flash CS5.5\Common\Configuration\ActionScript 3.0\FP10

Try this:
import flash.display.*;
You were missing the .*

This is what I found:
When I create a new Flash Professional project from FlashBuilder 4.5, the Flash IDE opens and my flash.display.Sprite import looks like it's broken.
If I close the Flash IDE, FlashBuilder opens it right back up again, and my imports look fine after that.
YMMV

Related

How to move project directory in IntelliJ IDEA EduTools?

I'm using IntelliJ IDEA EduTools and chose a project from JetBrains Academy. The plugin decided to create the project directory at some arbitrary location. I tried moving it by choosing Refactor -> Move at project root but a message box pops up saying "This move operation can break the course". I tried deleting the project directory and re-open the project from JB Academy, but EduTools seems to remember the decision and created the project directory at the very same location.
So my question is, how do I move the project directory to somewhere else?
Thank you for reporting this.
You can move the project directory anywhere using your File Explorer and import it back to your IDE using Open or Import on the Welcome Screen.
You'll see the project with the previous location marked as unavailable on the left of the Welcome Screen. Please click ⨉ to remove this project.

How to import .XML code style into Android Studio

I'm using Android Studio on OS X, and want to import intellij-java-google-style.xml for my code format.
But I can't find import at Preferences -> Project Settings -> Code Style -> Manage only Save as, Delete, Copy to project, and Close there.
Copy intellij-java-google-style.xml into the directory $HOME/Library/Preferences/IdeaIC14/codestyles/.
In the latest Android Studio (as of this edit, 4.1.1) you can go to Preferences -> Editor -> Code Style -> Scheme -> Settings Icon (Gear) -> Import Scheme... and import the xml there.
I am using Android Studio 1.2 on Ubuntu 12.04 and in my case I have an .AndroidStudio1.2 folder in my home directory. In this folder there is a config folder. What I did was the following:
I created a new folder called codestyles in the config folder.
copied my style xml (in my case named AndroidStyle.xml) into the codestyles folder (.AndroidStudio1.2/config/codestyles/AndroidStyle.xml)
Went into File>Settings>Editor>Code Style
Chose the AndroidStyle among the listed Schemas.
NOTE: Android Studio does not give you an option to import the xml file. And before you add the file to the codestyles folder there is NO indication that you can change the Schema to your own in any way. But after you have added the file the added schema will be shown among the other schemas.
NOTE 2: In other Operating systems this folder is located elsewhere. For more info on configuration folders see here: http://tools.android.com/tech-docs/configuration
If you are on Android Studio Preview you will need to copy your style xml file to:
~/Library/Preferences/AndroidStudioPreviewX.X/codestyles
where X.X is your Preview version ie. 1.4
Also, for those who use Android Studio on windows. Copy your xml file to $USER_SPACE$\.AndroidStudio1.X\config\codeStyles. If you don't have the codeStyles folder, just create one. And then you will see it in Settings->Editor->Code Style->Scheme.
Here are steps I used to import my coding style for a project.
Place codingStyle.xml to .idea folder under your project.
In Android Studio select Project for coding style scheme, click OK.
Place original codingStyle.xml to .idea folder again (Android Studio most likely had overwritten with default settings your codingStyle.xml when you click OK on step 2)
Restart Android Sturdio.

How to export SWF from FDT?

This is probably the most obvious question on the face of Earth, but I'm an Actionscript newbie. I'm using the FDT plugin for Eclipse on Mac (FDT version 1.13, eclipse "Kepler Service Release 1" with build ID "20130919-0819", using OS X 10.9.1) to make an Actionscript 3 project. Everything works perfectly fine, and debugging/running works perfectly. However, I have no idea how to export it. Disabling "Build Automatically" then pressing Build All or Build Project seems to do something, it shows a loading bar for a second then it disappears. I believe I checked something like "Include web files" when I started my project, so that may be the culprit. Here is the contents of my project:
assets
-some images that I have
bin
-history
--history.css
--history.js
--historyFrame.html
-index.html {when I open shows the game, but I want an swf}
-playerProductInstall.swf {shows just a blue screen}
-swfobject.js {I think this has something to do with it, but I want an swf}
lib {empty}
src {I'm not showing you what's in here}
Duh! The files are stored in bin, they just don't show up in the Eclipse/FDT window. Open the bin folder in Finder and you'll see an swf, get the one with the name of your main class and you're good to go!

Notepad++ workspace refresh?

How do i refresh the workspace / project in notepad++ when the file-system changes ( files and folders added or removed ).
at the moment it does not keep up with the local file system and i have to re-create the project each time!! frustrating..
I followed Rechtar's suggestion.
I had a similar issue. Notepad++'s Project pane doesn't update when I change or create new files. What I ended up doing was downloading the explorer plugin through
PLUGINS > PLUGIN MANAGER > SHOW PLUGIN MANAGER
Then install the explorer plugin.
After it's installed go to PLUGINS > EXPLORER and select the explorer.
It's not really comparable to something like Eclipse's project navigation.
In Notepad++ 7.5.8, this issue has been fixed. I suggest you update your notepad++ to the latest version.
In order to do this, go to ? -> Update Notepad++ and it will automatically detect a new update package. Update Notepad++ normally.
Otherwise, you could download the update from here:
https://notepad-plus-plus.org/news/notepad-7.5.8-released.html
In case you're curious, here's the changelog for 7.5.8:
Notepad++ v7.5.8 bug-fixes:
1. Remove annoying "no update" notification.
2. Fix Folder as Workspace not updating regression.
3. Fixed crash issue by checking & unchecking "Disable extension column" option in preferences dialog.
4. Fixed a crash when trying to launch a secondary instance with command line arguments.
5. Fix "Explorer Here" from "Folder as Workspace" problem if folder name contains comma.
Included plugins:
1. NppExport v0.2.8 (32-bit x86 only)
2. Converter 4.2.1
3. Mime Tool 2.1
4. DSpellCheck 1.3.5
Updater (Installer only):
* WinGup (for Notepad++) v5.0.2
I'm currently running version 6.3.3 of notepad ++ and instead of adding the entire project all over again, you can right-click the folder in your project that has the new file and choose: "Add files...". From there, you can select your new file and open it. This will add it to your project in the appropriate folder.
There doesn't seem to be a proper way to do this in Notepad++. The Project panel was born just 2 or 3 releases ago, so it's naturally immature. I suggest that you install either the Explorer plugin or the Light Explorer plugin - they are much more usable.
Or better yet, go learn Vim and fall in love with the NERDTree ;-)

Why does Xcode 4 not add / create / modify any build directory when I do a build?

I recently upgraded to Xcode4 and noticed that my build/Release-iphoneos folder no longer gets populated with a .app or .dSYM file after I do a build.
**note - any build that is (build for running/testing/profiling). Also why is the build for archiving option gray'd out? in Xcode3 I was able to archive and build my .ipa w/ organizer
Am I doing something wrong or does the new IDE put a release build some place else?
Thank you in advance
By default it's placed in a new folder called 'Derived Data' within your Library folder. If you open up the preferences and go to the 'Locations' tab, you can change it back to the old location if you wish.
That is because Xcode 4 no longer uses that directory. If you look in preferences, you can both see where and change where Xcode 4 builds stuff.