How to Open this file structure as Flex project? - apache-flex

I received a Flex project but don't know how to open it in Flash builder. It doesn't contain a project.mxml or .actionScriptProperties, .flexProperties and .project files.
the file structure looks like this:
(rootFolder)
-(com)
...subfoldrestructure containing only folders and .as files
-(src)
-(_embed)
-assets.fla
-assets.swf
-assets.swc
-Main-app.xml
-Main.as
-icon-16.png
...
-icon-128.png
how do I make a compilable Flex project out of this?

That is not a Flex project, that's a Flash project. Just create a new Actionscript project and point the location of it at the same location as this one. It will add the necessary project files to compile. It will try to create another Main actionscript file, but you can delete the one that it made and select the one already there as the default application.

Related

No headers or source files in QT creator

I'm having a problem with creating new header and source files in QT. I can only add new files to the build, it's grayed for the "main" project as you can see below.
I can create them specifically for the build and they only appear once in the documents area. There is no header tree branch. After I close qt I have to create new ones. I want them to appear in the tree and be connected with the main project. I have "hide source and headers files" option off.
I've obviously tried creating them the way it was shown on the yt. I've searched through settings but didn't found anything I could use.
You will have to add the files manually in CMake.
Go to File>New File and select what type of file you want. Typically it will be a source, header, or both (class).
Edit the CMakeLists.txt file:
qt_add_executable(myapp
myapp.qrc
main.cpp
new_file.cpp
new_file.h
)
Resources like .qml files and things like images (*.png *.jpg) are added in the myapp.qrc file

I have a question about the 'resources' folder for applying css to the spring mvc project in intellij

I want to apply Bootstrap's css file when creating spring mvc project in intellij, but I have a question.
In the Project Structure, the path is set to src\main\webapp\WEB-INF\web.xml, and the resources file was created and css files were inserted, as in eclipse, but the css file was inserted under webapp/resources.
However, if you don't put the same css file under the WEB-INF/views/resources, the line will be drawn with a highlighter as shown in the picture, but I wonder if this is an error or not.
picture
Thank you!

Adding a library into Flex 4 (flex iframe)

I am trying to use flex iframe with an Adobe Flex project in Flash Builder, and I've added the library through Project -> Properties -> Library Path -> Add SWC Folder but I am still getting the error The prefix "flexiframe" for element "flexiframe:IFrame" is not bound, as if I haven't linked it.
<flexiframe:IFrame id="googleIFrame"
label="Google"
source="htp://google.com"
width="80%"
height="80%"/>
I am extremely new to Flex, and I cannot find any good resources on it.
You are probably missing the namespace definition on top of your file:
<s:Application xmlns:fx=“http://ns.adobe.com/mxml/2009”
xmlns:s=“library://ns.adobe.com/flex/spark”
xmlns:mx=“library://ns.adobe.com/flex/mx”
xmlns:flexiframe="http://code.google.com/p/flex-iframe/">
[...]
</s:Application>
You can see this in the user's guide.
First download SWC folder from http://code.google.com/p/flex-iframe/downloads/list.
Then set this Project->Properties->Flex Build Path->Add SWC.
Link .swc from build folder. Include this also xmlns:flexiframe="http://code.google.com/p/flex-iframe/"

How do i change the index.html flex output to admin.anotherExtension?

i need to change the automatically generated index.html flex output to admin.anotherExtension. I understand that if i change the index.template.html the changes in html level will be preserve when the file is generated, however i need to change the name of the file also, and the extension.
Thank you! (using flashBuilder4)
In the html-template directory. Create a new template file named something like this:
${application}${build_suffix}.template.cfm
The next time you build your project, you'll get a file with the extension .cfm that is the same name as your application. You can use whatever extension of your choosing. My source
If you create your own file in the html-template directory (say: index.cfm ), I'm pretty sure that file will be copied to your build directory, but not changed.
Keep in mind all your changes will be overwritten if you change the Flex SDK on the project. Back them up somewhere.

How can I access data from a .fla file using Actionscript 3, Flex 4 SDK, and FlashDevelop?

Someone sent me a .fla file containing several art assets, with instances all configured to be displayed properly and in the right positions. However, since I'm using FlashDevelop with the Flex 4 SDK, I have no idea how to access these instances in code. Some of the objects are MovieClips that I need to modify the size of, and others are Dynamic Text objects that I need to change the display strings of at runtime.
If you have access to Flash (as in the development tool) you can right-click on a MovieClip in the library and select "Export SWC file".
The SWC file will contain all of the elements that have the "Export for ActionScript" property enabled. Place this SWC file on your classpath and FlashDevelop will tell the Flex SDK to link against it when building your final SWF.
If you don't have access to Flash to export the SWC you will need to get the other person to export the SWC file for you - you can't link against the FLA directly.
There's no obvious solution to this. basically, you will have to traverse the display list to find them, using numChildren, getChildAt etc. if you're lucky, they are named and you can use getChildByName.
greetz
back2dos

Resources