Flex 3 vs Flex4 ..Application Layout Question
When we develop a same dummy application in Flex3 and Flex4 and run them.
Flash4: I see a space reserved for vertical scroll bar on the right side of the screen. How can we remove that as the reduces my screen size.
Flex3: i dont see any.
Nevermind.
I got around this issue by renaming my sub-classed Application to "...Application".
Now I can use a directive to specify an import statement for the extends Application portion rather than specifiing the fully qualified spark.components.Application or mx.core.Application.
Lame - but done.
Similar Messages
-
Spark Application Layout Questions
Just started playing out with Flex 4 Beta...
Does anyone know the reasoning why spark application's layout property has to be set to a new instance of a layoutContainer? For instance, in my MXML I have to say layout="{new spark.layouts.VerticalLayout()}". With halo I could do layout="Vertical".
Are there new enhancements to the spark components with regards to layouts that prompted this change? What cool new things can I do with them?
Thanks,
BryanAnd another cool thing you can do with the new layout system is change values using the new states syntax:
<?xml version="1.0"?><s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">
<s:layout>
<s:VerticalLayout gap="24" gap.state2="4" paddingLeft="
20" paddingTop="20" />
</s:layout>
<s:states>
<s:State name="state1" />
<s:State name="state2" />
</s:states>
<s:HGroup>
<s:Button label="goto state1" click="currentState='state1';" />
<s:Button label="goto state2" click="currentState='state2';" />
</s:HGroup>
<s:Button label="Button 1" />
<s:Button label="Button 2" />
<s:Button label="Button 3" />
<s:Button label="Button 4" />
</s:Application>
Using the code above, the default/state1 state will use a vertial gap of 24 pixels, while state2 will use a vertical gap of only 4 pixels.
Peter -
Flex Based AIR application & remote HTML
The question is ....from a flex based AIR application do you
always have full access to all of the HTML content loaded from a
remote site via the DOM (htmlLoader.window.document), or is the
'context' of what you can see limited to what the initial url
requested can see - i.e. the context is as if it were javascript
running in the page corresponding to the initial URL.
As far as i can see if i request say the page
http://www.abc.com/page1.htm
and it has content along the lines of
<IFRAME src="
http://www.xyz.com/page3.htm"
id="remoteframe" />
<IFRAME src="
http://www.abs.com/page2.htm"
id="localframe" /?
then using the htmlControl.htmlLoader.window.document i can
successfully navigate the DOM for the initial page loaded and
localframe, but
not remoteframe.
I've seen various comments about sandboxes, bridges and
applicationdomains in the documentation but i don't see how this
can help me.
Can someone please shed some light on this? Can i from the
AIR application access all of the DOM, or am i restricted to the
initially loaded page and pages referenced from the same domain in
the page?
Thanks
JamieHi,
From your AIR application, you can only access "exposed
properties" in remoteframe.
You expose a property by using the sandbox bridge mechanism:
http://livedocs.adobe.com/air/1/devappshtml/help.html?content=security_5.html#1092959 -
Flex / Data / Create Application from Database
Hi, I had a question,
When I create an application from a Database (Flex / Data /
Create Application from Database).
Can I modify the coded to convert it into a module?
I have a main application that I would like to load the
Database as a module. I tried replacing the <mx:Application>
Tags to Module but didn't work...
Thanks.Hi,
no. no answer as yet. Seems to be a connection issue with the
Windows 2003 Server, although all the seetings are correct.
I installed WAMP Server 2.0 locally to see if I can get the
project running locally, and it works fine. I can connect no
problem to the MySQL Database on my local PC. I might just have to
migrate everything over manually once the project is
complete. -
SOLUTION: Building the Flex 2 FlexStore application in Flex 3
I gave step by step instructions on building the Flex 2 FlexStore application in Flex 3 as a post in the Adobe Flex 3 Cookbook:
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&productId=2&postI d=15606&loc=en_US
If you don't want to go there, here are the instructions:
1) Download the Adobe FlexStore archive flexstore.zip file.
- go to http://examples.adobe.com/flex2/inproduct/sdk/flexstore/flexstore.html
- right-click the application and select View Source
- click the "Download source (ZIP, 1769K)" link in bottom of the left-side-bar
2) Create a directory "flexstore" somewhere on your harddrive
3) Extract the contents of the flexstore.zip file to the directory flexstore you
just created. The directory flexstore should now have these top-level contents:
assets (directory)
data (directory)
productsView (directory)
samples (directory)
AC_OETags.js (file)
beige.css (file)
blue.css (file)
build.bat (file)
build.sh (file)
flexstore.html (file)
flexstore.mxml (file)
HomeView.mxml (file)
main.css (file)
ProductsView.mxml (file)
README.htmlSupportView.mxml (file)
4) Launch Flex Builder 3.
5) Select File - Switch Workspace and change the workspace to the directory
containing the directory "flexstore" you created.
6) After Flex Builder re-launches, create a new Flex Project named "flexstore":
- ensure the "Web application" radio button is selected for "Application type"
- click the "Next" button, not the "Finish" button
- click "Next" again in the "Configure Output" screen
- ensure the "Main source folder" TextInput has "src" in it
- ensure the "Main application file" TextInput has "flexstore.mxml" in it
- click the Finish button
7) Drag all the unzipped files now visible in your Flex Builder "flexstore" project
folder to the "src" folder Flex Builder created for you, and click "Yes" when
asked if you want to overwrite the flexstore.mxml file Flex Builder created for you.
8) In Flex Builder, drag the following folders into the "src" folder:
- assets
- data
- productsView
- samples
9) Right click file build.bat and select Open With - Text Editor.
- Remove the following line from the file:
..\..\bin\mxmlc.exe %OPTS% flexstore.mxml
- Edit the following lines, replacing "..\..\bin\mxmlc.exe" with the hardcoded
path to the mxmlc compiler for the Flex 3 SDK, which on my computer is
"C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\bin\mxmlc.exe". Make sure
it is enclosed in double-quotes. This will be to build.sh for Mac users.
BEFORE
..\..\bin\mxmlc.exe %OPTS% beige.css
..\..\bin\mxmlc.exe %OPTS% blue.css
AFTER
"C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\bin\mxmlc.exe" %OPTS% beige.css
"C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\bin\mxmlc.exe" %OPTS% blue.css
10) Open a DOS window (Terminal in Mac) and change the current directory to the "src"
directory on the local harddisk, which for me is:
C:\aaaFlexApps\flexstore\src
11) Execute build.bat (build.sh on Mac).
12) Ensure beige.swf and blue.swf are created in the project "src" directory.
13) Select Project - Clean to rebuild the project.
14) Ensure beige.swf and blue.swf and all the other files from the src
directory were copied to the bin-debug folder.
15) You should now be able to launch the application.Here the fxp project that i export with flex builder 4 -> source-code
Thank's Greg -
Can't screen capture popup windows in Flex web-based application
Hi all,
I'm a tech writer looking for a tool that will capture single popup windows of a flex-based web application (perl popups have the same issue).
Snagit (and all the freeware I've tried), doesn't recognize the popup window as a selectable element, even though the mouse can move the popup window anywhere in the application window.
We've got lots of snapshots to take, and do not want to have to crop a region and edit out the white space (top of the popup box has square corners, bottoms are rounded).
Does anyone know of a screen capture utility or way to get these windows in a single click like we can with the standard old window dialog boxes?
Any help is greatly appreciated!
Thank you!
joanHi Alex,
I don't quite understand.
Are you suggesting a way to get the snapshots from the server generating the image and not as an end user who opens the application and trys snapping from the Internet Explorer browser window?
I'll need to be more specific when communicating with the developer. Can you provide a little more direction?
Thank you!
:-) joan -
How to Show ActionScript Graphics based Spinner on Flex or mobile application ?
How to Show ActionScript Graphics based Spinner on Flex or mobile application
Solution:Check out the BusyIndicator component introduced in Flex 4.5:
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark">
<s:BusyIndicator />
</s:Application> -
Flex flv player source variable question for an expert!
I created a custom player using Flex 3.0 application. The flex app controls have the flv movie location hardcoded in. This player works fine, however, I would like to assign the flv that it plays using a variable. When I try to create a variable and then publish it bombs out. Can anyone tell me how to do this? Thanks.
I created a custom player using Flex 3.0 application. The flex app controls have the flv movie location hardcoded in. This player works fine, however, I would like to assign the flv that it plays using a variable. When I try to create a variable and then publish it bombs out. Can anyone tell me how to do this? Thanks.
-
Application specific questions
Hello.
In what transaction can I process application-specific questions of Support Message?Hi
You can give the reply using the action
SLFN0001_ADVANCED_COMP_QUEST Answers to appl-spec. questions
within the same ticket or support message from the action button in the change mode
are you referring to same.
Regards
Prakhar -
Detect CD drive from Flex-AIR desktop application???
Can we detect CD drive from Flex-AIR destop application even though there is no CD or Blank CD inside the drive?
AIR 2.0 supports native code integration.
http://labs.adobe.com/technologies/air2/
This may be useful in hooking into native CD/DVD writing capabilities. -
Multiple edition magazine layout question
Magazine(s) layout question
Details:
- There are 9 total magazines. The only thing that changes are the ads.
- I have all text set up in Master Pages and the Different publications set up as 'versions' in my file.
My issue:
I also need to ad a footer master (with page number, Publication name, and Date)
- Publication name changes for each version.
In the end I need one master with all magazine text assigned to all version. And a different footer master with page numbers to all versions....
any suggestions on how to complete this?Either you can use Alternative Layouts in one document, you will need only to work on the first layout, the text in the outher layouts or you can the Content-Tools and Create LInk option to take the original and place it into the new document. Later you have only to update the links in the link panel. You can take by option the whole page with all elements.
-
Can Flex develop Windows Application ? Example or How to ?
Can Flex develop Windows Application ? Example or How to ?
Thx.Take a look at AIR (formerly Apollo) in Adobe Labs.
-
How to choose Application layout in flex?
Hi Everyone ....!
I have confused to select the layout in flex 3.0.There are three type of layout having absolute,horizontal and vertical. Which one is best? and How to choose layout? and please Explain about layout???/...
Thanks in advance.........
Regards,
Selvendran.AYou mean if you want to have a user-resizeable application?
If so, all 3 layouts work.
If you can tell us what you want to build very briefly, we can help you pick a layout, however, as I said, this isn't super-important and you can change this as your application begins to take shape.
I generally use a vertical layout for my applications for example, but not because it's best, none of the 3 can be considered that, simply because I have more vertical elements than horizontal ones or that need to be placed in specific places given (x,y). -
Hi
I am new to flex and i have a knowledge on jsf .We got a requriment to integrate the flex with jsf .
I googled and i developed the sample application using the fiji (Exadel ) .
When i an running the application in the jboss I GOT EMPTY page then after deselecting the check box of 'blockjavascript' in the browser
am able to see the swf file in the page
can any one help me..
My Project
The mxml
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="1024" height="715" xmlns:ns1="*">
<mx:Form x="22" y="47" width="1200" height="680">
</mx:Form>
<mx:Button x="22" y="5" label="This is Prapansolution" width="280"/>
</mx:Application>
The .jsp
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:fiji="http://exadel.com/fiji"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
xmlns:ui="http://java.sun.com/jsf/facelets"
version="2.0">
<f:view><h:form id="myForm">
<fiji:swf src="/faces/FirstFlexApp.swf" id="demonew" bgcolor="#FFFFFF" width="820" height="480">
<f:param name="text1" value="Hello" />
</fiji:swf> </h:form></f:view>"vikbar" <[email protected]> wrote in
message
news:gb0tug$7je$[email protected]..
> Hi Amy,
>
> Isnt the HistoryManager approach more specific to Flex
application i.e if
> user
> is just navigating with in the flex application? In my
case the user will
> navigate between a JSF page which does not have any SWF
file and the
> another
> one which has swf file embedded. Now everytime when the
suer moves to the
> flex
> embedded JSF page from the Non Flex JSF page these are
the steps which are
> always going to happen :
>
> 1.) System Manager will get initialized and will create
PreLoader
> instance.
> 2.) The preLoader will then try to download the swf
file. Now since this
> is
> the second time the user is coming back to the flex page
so the broswer
> would
> have already cached this swf, so Preloader will skip the
downloading
> swf/RSl
> step and hence you wont see any initialization progress
bar.
>
> 3.) New Application object will get instantiated and
will go through its
> whole
> lifecycle.
>
> So, I guess historyManager approach will work only if
the user stays on
> the
> flex application only and navigates with in flex
application itself(so in
> that
> case if the user clicks back then it knows which flex
component or view to
> display), but in my case user will completely move away
from flex page to
> a
> JSF page and then will try to come back.
>
You'd need to put the right stuff in the url to make it work,
just like if
you were calling a page that's expecting GET params. I don't
really use the
HistoryManager, so you'll need to either look into this
yourself or ask
someone who knows more about it.
HTH;
Amy -
Using Flex Performance Profiler for Profiling Flex with Java Applications
Hi , I am planning to use Flex Profiler to profile my Application .
I have developed a sample Application using Flex MXML ,some ActionScript classes for Events and Cairngorm , Java , Oracle as database and Blazeds .
Can i use Flex Performance Profiler to Profile my Application . ?? I am asking this question as i ad read the below line from Adobe site and My Application includes java Methods
"You can use the profiler to profile ActionScript 3.0 applications " Can anybody please tell me What does this mean ?? and can i use the Flex Performnace Profiler . Please suggets me .Thanks Karl for the prompt response .
I am making a call to a Java Method from my Action Script function , or getting data from Java Method into the ActionScript function .
So my question is , will the Flex Profiler will be applicable in this case as it internally calls Java Methods .
Maybe you are looking for
-
BUG: standard Windows shortcut keys not working correctly in LR2
I've noticed two things in LR2 that used to work in LR1.4.1: - when using the Alt-Tab combination to cycle through all open applications, the chooser is in the foreground but every time I press Alt-Tab again, somehow LR2 picks it up and acts as if I
-
How to arrange files in trash folder by date, both ascending and decending?
My trash folder is ordered by date. Currently, it is ascending order. I would like to change to decending order. If any more info is needed, I would be only too happy to provide it for you. Thank you, Dennis Guidi [email protected]
-
Find my iphone, stop ringing?
Hi, could anybody tell me please how to stop the ringing on my iphone? I tried the 'finding my iphone' from my ipad. It worked well, found my phone, then the phone started ringing and i could not stop the ringing from my ipad. I had to switch off the
-
HELP - bpelc - problems with the element correlation !!! - NullPointerExcep
Hello ! I have a big problem to create a jar-file with bpelc, when I use correlations. bpelc produce the failure: java.lang.NullPointerException at com.collaxa.cube.ws.wsdl.ext.bpws.PropertyAliasSerializer.unmarshall( PropertyAliasSerializer.java:124
-
i updated to tiger, cleared my harddrive, and i now use two firepods, and all of a suden when I select save song as project, logic saves the song but it crashes. anyone have any pointers?