Flex 4 BUG with states.
So I have application I am creating, I have built several, and am using the new Flex 4 states. I am finding, when using items that requires dataProviders that about 50% of the time, the data isn't being completely populated in these components. Only when running in debug mode and stepping through the code slowly does the data get fully populated. Meaning if I have an arrayCollection dataProvider with 3 objects, only the first object is being shown in the components, such as a List.
I am not doing anything to crazy just creating a custom component that is based HGroup and that contains three s:lists.
Anyone run into this problem? Or know how to fix it?
TIA
You already have a thread open about this. Whether or not it's state related, the jury is out.
Similar Messages
-
Revision: 12786
Revision: 12786
Author: [email protected]
Date: 2009-12-10 07:35:43 -0800 (Thu, 10 Dec 2009)
Log Message:
Fixed bug with state property value assignments. SetProperty pseudonym values (width/explicitWidth, height/explicitHeight) were not getting set correctly, causing values to be incorrectly assigned to 0 in some cases.
QE notes: -
Doc notes: -
Bugs: sdk-24446
Reviewer: Corey
Tests run: checkintests, Mustella tests/States, tests/mx/states
Is noteworthy for integration: Yes (fix requested by tools)
Ticket Links:
http://bugs.adobe.com/jira/browse/sdk-24446
Modified Paths:
flex/sdk/trunk/frameworks/projects/framework/src/mx/states/SetProperty.asAdd this to the end of your nav p CSS selector at Line 209 of your HTML file, after 'background-repeat...':
margin-bottom: -2px;
Your nav p will then look like this:
nav p {
font-size: 90%;
font-weight: bold;
color: #FFC;
background-color: #090;
text-align: right;
padding-top: 5px;
padding-right: 20px;
padding-bottom: 5px;
border-bottom-width: 2px;
border-bottom-style: solid;
border-bottom-color: #060;
background-image: url(images/background.png);
background-repeat: repeat-x;
margin-bottom: -2px; -
According to the docs, the scope chain used by the with
statement to resolve identifiers is: innermost with-statement
-> outermost with-statement -> activation object
-> etc. If this would be true, the following code should
output "propOfMyObject":
Code:
var foo:String = "propOfActivationObject";
var myObject:Object =
{foo:"propOfMyObject"};
with (myObject) {
trace(foo); //outputs:
"propOfActivationObject"
But it doesn't. Instead the local variable is shadowing the
property in myObject. It seems like the scope chain rather is:
activation object -> innermost with-statement ->
outermost with-statement -> etc. Which means either the docs
or the with statement is incorrect. Am I right?Query is fine... worked on it [url https://forums.oracle.com/forums/message.jspa?messageID=10902901#10902901]elsewhere first ;-)
with data as (Select 4 qty from dual)
select round(100/qty*(level-1)) perc, round(100/qty*(level-1)) c
from data
connect by level <= qty +1
PERC C
0 0
25 25
50 50
75 75
100 100 -
Flex 2 with AS 3.0: Transitions code compilation error
I just bought "The Essential Guide to Flex 2 with
ActionScript 3.0. (Friends of Ed 2007) In order to work through the
examples, I downloaded Flex 3.0 beta. Its been going well ... until
starting the exercises on transitions.
I've narrowed the problem down to the "relativeTo" attribute
of the AddChild class. This snipped builds and runs fine:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:states>
<mx:State name="bookDetails" basedOn="">
<mx:AddChild creationPolicy="all" position="lastChild">
<mx:FormItem id="isbn" label="ISBN: 1590595432" />
</mx:AddChild>
</mx:State>
</mx:states>
<mx:Panel title="Book" id="book"
horizontalScrollPolicy="off" verticalScrollPolicy="off">
<mx:Form id="bookForm">
<mx:FormItem label="Foundation XML Flash"
fontWeight="bold" />
<mx:FormItem label="Sas Jacobs" fontStyle="italic" />
</mx:Form>
<mx:ControlBar>
<mx:LinkButton label="Book Details" id="bookLink" />
<mx:Spacer width="100%" id="spacer1" />
<mx:Label text="Book Title" id="title" />
</mx:ControlBar>
</mx:Panel>
</mx:Application>
However, as soon as I add relativeTo, e.g:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:states>
<mx:State name="bookDetails" basedOn="">
<mx:AddChild relativeTo="{bookForm}" creationPolicy="all"
position="lastChild">
<mx:FormItem id="isbn" label="ISBN: 1590595432" />
</mx:AddChild>
</mx:State>
</mx:states>
<mx:Panel title="Book" id="book"
horizontalScrollPolicy="off" verticalScrollPolicy="off">
<mx:Form id="bookForm">
<mx:FormItem label="Foundation XML Flash"
fontWeight="bold" />
<mx:FormItem label="Sas Jacobs" fontStyle="italic" />
</mx:Form>
<mx:ControlBar>
<mx:LinkButton label="Book Details" id="bookLink" />
<mx:Spacer width="100%" id="spacer1" />
<mx:Label text="Book Title" id="title" />
</mx:ControlBar>
</mx:Panel>
</mx:Application>
Flex Builder 2 gives me the following error:
Type was not found or was not a compile-time constant.
Thinking this might have been a bug with Flex 3.0, I
uninstalled then installed the most recent release of version 2. I
still get the same problem. Any ideas?Another possibility is that you used some kind of transition for the object but didn't name it in all of the keyframes. When you transition an object in a timeline tween and don't name it in the first keyframe, the latter keyframes adopt that lack of a name event though you might assign a name in them.
What you should do is go into your Publish Settings and in the Flash section select the option to Permit Debugging. This will add a line number following the frame number in the error message. Once you know which line is causing the problem, try tracing the object that is in that line. You will most likely find out it is null, and it will be because of one of the reasons I've mentioned (I don't think I forgot any others, but it's possible). -
[svn] 4070: Addressing backwards compatibility issue with states.
Revision: 4070
Author: [email protected]
Date: 2008-11-11 13:13:43 -0800 (Tue, 11 Nov 2008)
Log Message:
Addressing backwards compatibility issue with states.
QE Notes: None
Doc Notes: None
Bugs: SDK-17395
Reviewer: Peter F.
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-17395
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Grammar.jjRevision: 4070
Author: [email protected]
Date: 2008-11-11 13:13:43 -0800 (Tue, 11 Nov 2008)
Log Message:
Addressing backwards compatibility issue with states.
QE Notes: None
Doc Notes: None
Bugs: SDK-17395
Reviewer: Peter F.
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-17395
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/mxml/Grammar.jj -
Bug with swc folders and library projects?
Hi guys, hope someone can help here. We are just in the
process of starting a fairly large flex project and we were trying
to work out a solution so that I as a designer can view and edit
custom components with visual styles applied.
Now I know that you aren't meant to add a style tag into the
component but it was working for me and I could at least preview
the styles in 'design mode'.
The problem arises though when you have a large project with
shared assets across projects. I had 3 projects set up in my
workspace:
Project 1: Library project with css files, swc and graphics
Project 2: Library project with components for Project 3
Application
Project 3: Application project
What I did was to add a external source folder to Project 2
& 3 both of which was Project 1. So far so good, the css loaded
into my application from Project 1 and I could view my styles in my
custom componants in Project 2
But, I needed to add swc files for custom buttons etc in my
application. So, I thought I would just add an swc folder source to
my build path in both my Project 2 & 3 which referenced an swc
folder in Project 1. Well, it did work and I could view everything
fine but (and here is the main problem) this corrupts the
workspace. Once Flex has closed and tries to reopen my workspace it
hangs, same if I change workspace in Flex from another workspace to
this one.
Can anyone help? Is this a flex bug?
TIA
SteveSection 6.3.9 of RFC3501 expands on previous RFCs and clarifies the LSUB command, confirming that this is a bug in JavaMail. http://www.isi.edu/in-notes/rfc3501.txt
-
1.5.1: Bug with single keystroke bind value being displayed but ignored
I just ran into a bug with using with bind values (run as statements) using SQL Developer 1.5.1.54.40, JDK 1.6.0_04, Win XP SP 2.
If the bind value was previously Null (NULL checkbox checked), then typing one (and only one!) character into the Value field displays the character and deselects the NULL checkbox but is ignored when running the statement - the bind variable is treated as Null. Running the statement again redisplays the bind dialog and the NULL checkbox is deselected but there is no value in the Value field.
For example: select rpad(dummy, :length, dummy) from dual;
When running this as a statement and typing a value between 0 and 9 into the Value field results in null (ie select rpad(dummy, null, dummy) from dual). Running again and leaving the Null checkbox unchecked and typing the single character again produces the correct result (ie 9 produces 9 Xs). Running again and checking the Null checkbox and typing the single character again produces null again.
This only occurs where you type a single key stroke in your bind value. If you type two characters and then delete one, the bind value is used correctly.
theFurryOneBug 7229257 - entering only one character in bind dialog value field is ignored
logged.
-Raghu -
How to use Flex Components with Flash?
Hi!!
I found a lot of very useful components in the web, but they are all for Flex, is it possible to use Flex Components with Flash IDE?
Thanks !!!
jenry
PS: this is one of the components I need to use (a tree with checkbox nodes)
http://www.sephiroth.it/file_detail.php?pageNum_comments=30&id=151
another one:
http://www.darronschall.com/weblog/2006/09/a-flex-2-checked-tree-control-component.cfmFlex components are delivered as SWCs just like Flash components, but the
SWC format is incompatible with the Flash IDE.
Also, the default fl.. components in the Flash IDE are incompatible with
Flex components.
You should be able to load a Flex SWF into a Flash SWF as long as you aren't
using fl.. components in the Flash SWF. If the Flex SWF overlays things
in your Flash SWF then it might block interaction, but otherwise it
shouldn't. I don't think the statement you quoted is true for all
configurations.
But loading a Flex SWF into a Flash SWF isn't going to help you use those
Flex components from your Flash IDE. Try Flash Builder 4 to build out the
Flex portion of your application. I haven't tried it myself, but it I think
it is supposed to have better integration with Flash. -
Photo sync bug with Aperture albums?
Hi, I think I have found a bug with how iTunes syncs photos across to my new (and until my number ports across, useless) iPhone.
If you set it up that only selected Aperture albums are synced, like this;
[ ] album1
[tick] album2
[ ] album3
[tick] album4
then albums 2 and 4 are optimized and copied across.
However, if in Aperture you create a new album (by importing new photos, say) that appears in the list, e.g., between album2 and album3, then the ticks retain their spacial position, not their position relative to the album they are meant to sync;
[ ] album1
[tick] album2
[ ] album_new
[tick] album3
[ ] album4
So now, when you sync, album4 is deleted and album3 is placed on the phone - not what you would expect.
Has anyone else noticed this?
TristanTweekme wrote:
It is fixed now though. If you upgrade to iTunes 7.5, and iPhone software Update 1.1.2
Hi Scott,
Thanks for the reply.
That's strange... I am using leopard, with iTunes 7.5 and a brand new UK iPhone (so it has 1.1.2 already on it). It was essentially in 'virgin' state too; I had to return my 1st phone due to a tiny but annoying problem with it. I noticed the this after only a couple of syncs - when the sync was taking a while due to the photo optimizing step.
I will take another look tonight.
Thanks,
Tristan -
Revision: 5537
Author: [email protected]
Date: 2009-03-24 20:16:43 -0700 (Tue, 24 Mar 2009)
Log Message:
Fix for bug with FxRotate3D that Thermo ran into with our i11 build. The problem was that we were sometimes setting offsets values to NaN due to bad initialization, and that we were also incorrectly calculating the transform center when offsets had not yet been initialized on the target.
QE Notes: None
Doc Notes: None
Bugs: SDK-20209
Reviewer: Ely
tests: checkintests, mustella mx/effects
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-20209
Modified Paths:
flex/sdk/branches/i11/frameworks/projects/flex4/src/mx/effects/FxAnimate3D.as
flex/sdk/branches/i11/frameworks/projects/framework/src/mx/core/AdvancedLayoutFeatures.asWe experience it as soon as we enable iCloud. Then an apple certificate is automatically added to the keychain and used for every https-access. Deleting the certificate com.apple.idms.appleid.prd... will do as a workaround but the certificate continues to be added to the keyChain from time to time or if you start over deactivating iCloud and then activate back.
Is this still a bug in Safari? Rosario -
[svn] 1941: Fix bug with writing out a MorphShape2 line style when it has a fill
Revision: 1941
Author: [email protected]
Date: 2008-06-04 12:13:17 -0700 (Wed, 04 Jun 2008)
Log Message:
Fix bug with writing out a MorphShape2 line style when it has a fill
connected to it. Had been calling encodeMorphFillstyles() directly
with an array of one element, but that adds a count byte (of value 1)
which should not be there. So I decomposed new method
encodeMorphFillstyle() out of encodeMorphFillstyles(). So not a big
change, but lots of indentation changes.
Other than that all changes were replacing the use of constant numbers
with static constants from FillStyle and also adding an equals()
implementation for FocalGradient.
reviewed by Pete Farland, passed flex checkin tests
Modified Paths:
flex/sdk/trunk/modules/swfutils/src/java/flash/swf/TagDecoder.java
flex/sdk/trunk/modules/swfutils/src/java/flash/swf/TagEncoder.java
flex/sdk/trunk/modules/swfutils/src/java/flash/swf/types/FocalGradient.javaHello,
We also have this problem ...
We are concluded, (??) When there is a note on the first or second line that starts in the block, justification and rebuilt and the problem happens! even made to change color of text on the blank page occurs ... our solution to an extra line at the beginning of the block without note or make it past the note on the previous page ...
when in a true solution?
Translation from French
Bonjour,
Nous avons aussi ce problème …
Nous somme arrivé à la conclusion, (???) quand il y a une note sur la première ou la deuxième ligne qui commence dans le bloc, justification et refaite et le problème arrive !!! même le faite de changé de couleur sur du texte les page blanche survient … notre solution mettre une ligne supplémentaire en début du bloc sans note ou faire passé le note sur la page précédente …
à quand une vrai solution?
Philippe -
Revision: 11926
Revision: 11926
Author: [email protected]
Date: 2009-11-18 04:46:03 -0800 (Wed, 18 Nov 2009)
Log Message:
Fix 3.0 compatiblity-version bug with generated styles.
src/java/flex2/compiler/common/CompilerConfiguration.java
Turn ?\226?\128?\147isloate-styles off in 3.0 compatibility mode. This flag also turns on the hidden option ?\226?\128?\147allow-duplicate-default-style-declarations which is what fixes the bug.
src/java/flex2/compiler/css/StyleDef.vm
Changed a tab to spaces.
QE notes: None.
Doc notes: None.
Bugs: SDK-24259
Reviewer: Peter
Tests run: checkintests
Is noteworthy for integration: no
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-24259
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/StyleDef.vmFYI - This regression has been filed here: http://bugs.adobe.com/jira/browse/SDK-31989
-
MultiDPIBitmapSource with states
Hi All,
What's the proper way to use the MultiDPIBitmapSource class with state changes:
I'm making a simple button skin that just uses an image and changes the image source based on state. The following code doesn't capture state. The image will stay in the normal position and never capture the over or down events and swap to the proper source. This seems possible, or autocomplete in Flash Builder lies. What am I doing wrong here?
Example:
{code}
<?xml version="1.0" encoding="utf-8"?>
<s:SparkSkin name="myButtonSkin"
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:fb="http://ns.adobe.com/flashbuilder/2009">
<s:states>
<s:State name="up" />
<s:State name="over" />
<s:State name="down" />
<s:State name="disabled" />
</s:states>
<fx:Metadata>
<![CDATA[
[HostComponent("spark.components.Button")]
]]>
</fx:Metadata>
<s:BitmapImage>
<s:source>
<s:MultiDPIBitmapSource
source160dpi="/assets/images/icon160.png"
source240dpi="/assets/images/icon240.png"
source320dpi="/assets/images/icon320.png"
source160dpi.over="/assets/images/icon160over.png"
source240dpi.over="/assets/images/icon240over.png"
source320dpi.over="/assets/images/icon320over.png"
source160dpi.down="/assets/images/icon160down.png"
source240dpi.down="/assets/images/icon240down.png"
source320dpi.down="/assets/images/icon320down.png"/>
</s:source>
</s:BitmapImage>
</s:SparkSkin>
{code}I've found what I was doing wrong. Here's the solution:
<s:source>
<s:MultiDPIBitmapSource
source160dpi="/assets/images/icon160.png"
source240dpi="/assets/images/icon240.png"
source320dpi="/assets/images/icon320.png"/>
</s:source>
<s:source.over>
<s:MultiDPIBitmapSource
source160dpi="/assets/images/icon160over.png"
source240dpi="/assets/images/icon240over.png"
source320dpi="/assets/images/icon320over.png"/>
</s:source.over>
etc... So the source tag actually takes the state not, the MultiDPIBitmapSource. -
Revision: 9287
Author: [email protected]
Date: 2009-08-13 15:53:43 -0700 (Thu, 13 Aug 2009)
Log Message:
Fixes bug with shader-transition effects (AnimateTransitionShader, Wipe, and CrossFade) when acting on targets that either have filters or are inside a hierarchy with filters. Fix was to capture the bitmap snapshot of the target without any of its own filters applied and to then use the ShaderFilter in conjunction with the target's filters during the animation.
QE notes: Probably need more tests in this area, now that we handle it
Doc notes: none
Bugs: sdk-20250
Reviewer: Jason
Tests run: Checkintests, Mustella (spark/effects/[AnimateTransitionShader|Wipe|CrossFade])
Is noteworthy for integration: No
Ticket Links:
http://bugs.adobe.com/jira/browse/sdk-20250
Modified Paths:
flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/AnimateTransitionShader.as
flex/sdk/trunk/frameworks/projects/spark/src/spark/effects/supportClasses/AnimateTransiti onShaderInstance.asLots to be excited about. BUT...Just updated to 8.1 on one of my computers to test it out...
Sadly, the following issue is NOT fixed for me. Is it with new projects only? I haven't started a new project on 8.1 I've only opened an old project but the issue that I'm referring to which involves also a delay/freeze of anywhere from a few seconds to a MINUTE while the render bar goes from yellow to red and then back to yellow is still there. Boo.
On the list above...
Switching between sequences can turn the render bar red.
This issue is incredibly easy to replicate. I really do hope it gets fixed. Here are the steps:
1) Create two sequences with multiple short clips (the more clips the better)
2) Make sure GPU acceleration is enabled.
3) Add warp stabilizer to the clips in both sequences. Again, the more clips the longer the delay/freeze will be as the render bar goes from YELLOW to RED and then eventually back to YELLOW again.
4) Hit SAVE.
5) Now, toggle between sequences. You'll hit a short delay with a few clips stabilized and a LONG delay with lots stabilized. In my case this delay is around a full minute. The render bar will go from YELLOW to RED and then back to yellow...eventually.
6) Toggle back to the original sequence and the delay occurs again.
7) Once you've toggled between sequences and have gone through this delay, that's it, there is no longer a delay...UNTIL...(and here's the big kicker)...until the project is SAVED again. After that the issue returns when you toggle between sequences. Both saving manually and AUTOSAVING cause this issue. No way around it except not editing with GPU acceleration.
Not sure what the issue is...caching issue when saving maybe? Either way, it stinks and it's still there in 8.1. Big bummer.
Again, lots to be excited about with this release but I really was hopefully this specific issue was resolved.
Sigh. -
DataGridColumn.visible property: Why always true? Flex bug?
Can anyone tell me why when I have a DataGrid with many
columns that requires scrolling, for even the DataGridColumns that
are offscreen, visible always returns true? I would have expected
it to return false if the column is offscreen. Is this a Flex bug?
Best regards,
JasonInstall Flex 2.0.1 SDK and then ! a hotfix
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=kb401224
Should help.
Maybe you are looking for
-
How do I use text to open two different flash files?
Basically I want to use a flash file, which requires you to enter text and a button to click. If I typed in 'Movie 1' and clicked enter, it should take me to 'Animation 1.swf', if I typed in 'Animation 2' it should take me to 'Animation 2.swf'. I don
-
Can't see new hard drive on my Satellite Pro 6100
I have bought a new Toshiba 40GB hard drive for my Satellite Pro 6100. I have installed it in it's bay but it is not being recognised in the BIOS or when i try to reinstall using the recovery disc! Would the bios recognise that there is a drive even
-
Photo transfer from camera to iPad
Good morning! Is there any way to transfer photos from a Nikkon P500 to my iPad2?
-
How to use a excel sheet as a database.
Using JSP i have to use a Excel sheet as a database.ie, i have to store and fetch data into or from a Excel Sheet and execute SQL Queries. Is it possible? If possible please give a sample code for that if anybody have the sample code.
-
Am using gmail as my email account. Time stamp on messages sent is 3 hours behind computer time.