Flex :: Strange CallLater X Position Behavior?
Feb 25, 2010
I'm not sure exactly where this is happening, but what I'm trying to do is make a scrolling ticker using flex, and it works fine when there is one of them on the screen, but when there are two, strange things happen.The way I have designed this for live updating, when the child of my hbox goes off the screen, I remove it and add another child to the end of it.This happens to reset the X position of the hbox, which isn't too bad, but it also resets the X position of any other hbox I have on the screen.Here is code that demonstrates what I'm seeing:
To use this, run the flex program, then click in the first hbox to set its x position to your mouseX. When the x position of the second hbox (hbox3) is reset, so will the first hbox's (hbox2) X position.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application creationComplete="addToBoxes()" xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" >
<mx:Script>[code]..............
How can I prevent this from happening, or what is a better way to make an updating ticker like I am trying to do?
View 1 Replies
Similar Posts:
Feb 29, 2012
I'm desperately trying to fix a strange behavior in my custom iconitemrenderer list: When I change the view to the view with the list inside and start scrolling, the list gets white for the fraction of a second (apperently completely redrawn), but only once when scrolling the first time after the view change.
[Code]...
I think the problem is in the myList.dataProvider.itemUpdated(oldItem), apperently the renderer thinks it has to redraw everthing, but I have no idea why.. and why only after the view is shown again.if it's a bug or something? how can I get rid of this bahavior or how can I debug this this properly?
View 1 Replies
Feb 10, 2011
I'm turning to you folks for answers because this really blows my mind... Let me explain:I'm using a slightly modified spark NumericStepper as an item editor in a datagrid. I had to modify the original because for some reason it's values only went up to 10.So i extended NumericStepper like so:
<?xml version="1.0" encoding="utf-8"?>
<mx:NumericStepper xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
[code].....
View 1 Replies
Apr 20, 2009
I created a button that once clicked an input box will pop-up. The input box can receive some numbers and then you can close it either by pressing ENTER or by clicking on the button that i used to open it.When i press ENTER it closes fine and then i use the button to reopen it.When i CLICK on the button it closes fine and then i use the same button to reopen it.But after i have closed it by CLICK on the button and then i try a second time to close it by pressing ENTER i get the following error:[code]
View 4 Replies
Feb 22, 2011
I'm a .net developer making a small website on Flash. I noticed that when I initialize a static variable during runtime in one place I cannot get its new value at another place, why?
View 2 Replies
Sep 1, 2009
I setup a login system using Flash / PHP /mySQL. The other day, the server I was working on went down, so I had to setup everything on another server. I am able to send the query to PHP and it prints the result in Flash. (Either "Success" or "Failure"). And I do get the correct response depending on what I write as username / password. But either way, the if statement says its not "Success". This worked perfectly on the other server. Here's the AS (as I get the correct result from PHP it can't be a problem on that end):
[Code]...
View 2 Replies
Jul 14, 2011
I experience strange behavior of sockets in Python (3.2). Client connects to my application using Flash. Most of the time there is nothing unusual but sometimes python crashes in a way that should not have taken place - enter into infinite loops. Below I attach to the loop code and error message in the log. Python hang on bytesRecived = sock.recv(64) and receive b'' witch is visible in log.
code:
try:
buff = ''
[code].........
View 1 Replies
Feb 20, 2012
I have the following xml declaration:
public var reqData:XML = <root>
<Requirement ID="REQ-GEN-0.1" title="exigence gen 1" description="blabla 01" testable="true"/>
[code]....
View 1 Replies
Jan 25, 2010
I have two datagrids and I want to override the behavior of the tab-key event, so that it goes to the next datagrid, when the cursor reaches the end of the first datagrid columns.
View 2 Replies
Feb 20, 2012
I have the following XML, that is the dataprovider (as a Hierarchicaldata) of an Advanced DataGrid:
public var reqData:XML = <root>
<Requirement ID="REQ-GEN-0.1" title="exigence gen 1" description="blabla 01" testable="true"/>
<RequirementSet ID="GUI REQ">
[code]....
View 1 Replies
May 27, 2011
My problem is quite simple to describe, in flex: 0.8 - 0.2 = 0.6000000000000001 I'm sure the first two members are 0.8 and 0.2 and are Number class, why would this happen?? And another thing, I cast the value from * type like this:
var value:*=0.8;
var castValue:Number = Number(value);
But nothing more, if I trace value I get 0.8 not 0.800000000000001 or something.
View 3 Replies
Apr 14, 2009
I have run into strange behavior drawing a sprite into a BitmapData. This sprite looks fine when drawn directly to the screen. But when this sprite is drawn into a BitmapData, the sprite is being masked... but there is no such mask applied to that sprite! This "bad mask" can be toggled off and on... by applying / not-applying a different mask to the sprite I am drawing. This mask is not the same shape or location as the "bad mask".
[Code]...
View 1 Replies
Jan 20, 2010
I have a Tree Control inside my Flex Application which I want to edit on a doubleclick on a tree item. I found the properties doubleClickEnabled="true", doubleClick="startEditMode()", and editable="true". With these functions I can detect a double click and I can change the editable property to true based on a double click. The problem is that after I double clicked on a Item i have to click once more to really enter the edit mode. That doesn't seem to be intuitive at all
[Code]...
View 1 Replies
Feb 21, 2011
I'm having this problem of adding an image to the textArea in RichTextEditor (RTE) on the fly and this image seems to "reset" the html properties of the textArea.
Better explained:
The user starts writing something in the TextArea (with Verdana in size:12 font settings). When he adds an image to the text area, the cursor right after the image gets very small and the font settings are reset to HUM777B in size:2.
How could I avoid this behavior?
It seems Flex adds additional HTML code before the image tag. If there was any way to avoid this I would be able to add my own settings to the tags.
View 1 Replies
Dec 9, 2011
I build Flex applications. One of them shows slides.They're swf's loaded dynamically from a remote server at run-time.My slides are both re-sizable by the end user and animated.This is easy on the PC with all the Flash support.For the iPad I use the Adobe Flex IOS packager.Gets me just about everything I need - except swf's dynamically loaded at run-time.Apple's terms of service do not support it.So I'm relegated to flattening slides into static images which don't scale well when users re-size them and obviously don't show animations.
If I built a native IOS app with XCode I could probably achieve this with KeyNote or something alike.Don't have the time or resources.Has anyone knowledge of a sneaky way to achieve this aesthetic via the Flex IOS packager? Is there some inventive way to sneak swf's in or use another image format like animated gif's or something else I'm not thinking of that might scale well?
View 1 Replies
Sep 15, 2011
I created a custom layout for a list, to be used on a mobile (android). I used this as example : [URL], using virtualization. Now the problem I have is with scrolling : when scrolling to the bottom of the list, there seems to be always a "bounce back", as if the list would have reached and as if the bounce/pull effect is taking place. But in fact the list has not reached the end at all, in fact I can not even scroll to the last element in the list. When going back from bottom to top, there's no problem at all.
I trace the top and bottom of the Scrolling Rectangle (Rectangle.getScrollRect) and there I can see that when scrolling down, the top and bottom parameters increase, but when releasing the touchscreen, all of a sudden the parameters decrease again with a certain amount, and so never reaching the end of the list. All my code is available on google project hosting : [URL]
View 1 Replies
Mar 4, 2010
I have this function that fires upon clicks in a particular area of a component I've created:
PHP Code:
private function dispatchDragEvent(e:MouseEvent):void
{
switch (_targetType)
[code]....
For some reason when I test this in Flash it works fine, all traces come through. But in Flex, SDK3.5, when I run debug if _targetType is "assign" everything is fine, but if it is "correlate" that branch of the code fails at the hitTest conditionals. It will trace "should execute one of these", but then nothing else happens. So it's like for some reason Flash is OK with the conditional code, but Flex is not cool with it, and doesn't report anything as to why...
View 1 Replies
Jun 16, 2011
I am trying to use the spark.skins.spark.TitleWindowCloseButtonSkin in a custom component and make it look thematically similar to how it looks in TitleWindow. Just specifying it as the skin class for a Button works no problem. I also have a .css style applied to all my TitleWindow classes that affects the close buttons in a TitleWindow. If I set the chrome color of the TitleWindow in .css then the close button skin also gets colorized to match this color. My custom component is also using the same style reference as my TitleWindows. But the Button instance inside of my custom component does not get colorized. So while I have blue TitleWindows with blue-colorized closed buttons, I have a blue custom component with a default gray background closed button (on button-press, the gray background appears).
There must be something going on with TitleWindowSkin and TitleWindowCloseButtonSkin via the colorization mechanic but I don't understand what it is. How should I solve this problem? I need to make the close button style in my custom component match that of the close button in my TitleWindows.
Here is a picture of the problem:The TitleWindow is on the left in both pictures. The custom component is on the right.In the left frame, you see the TitleWindow close button in the down position, note that its down state is colorized to match the theme of the TitleWindowSkin. On the right you see the down state of the custom component's close button. I do not know how to colorize the default gray to match the blue theme applied to the custom component.
PS My custom component extends from spark.components.Group. I should also mention that normal Button instances that use the default spark ButtonSkin do seem to get styled properly in the custom component (part of the reason this problem is so frustrating).
View 4 Replies
Nov 2, 2009
This is a test program to measure the time it takes Flash to draw a triangle 10,000 times.
The app (code below) calls runTimeTest() every N seconds which draws the triangle 10,000 times.
Now for the "interesting" part: each call takes increasingly more processor until after about the 6th or 7th call it goes to "infinity" (see screen shot of TaskManager)
[Code]...
View 1 Replies
Apr 24, 2009
When I'm working on the .fla I don't see anything unexpected, but when I view the .swf or export it there's a little red square in the animation. It moves with some of the stuff I have moving in the animation like they're attached somehow, but I can't find it in the fla to get rid of it.
View 1 Replies
Mar 19, 2009
i've created a movieclip that i'm applying a simple blur filter to and in Flash when i play the timeline it runs with no problems although when i publish the movie the blur doesn't display - i've run out of ideas about why this could be! I've looked online and can't find any suggestions either - does anyone know what i'm doing wrong?
View 1 Replies
Apr 17, 2009
i really like this effect and i was wondering if anybody could point me to a tutorial that does something similar to this: i deleted the link because the site is not working anymore
View 2 Replies
Jun 10, 2009
You click on tv, then on the first thumbnail and the video starts playing.When you resize the browser window the video stays centered.Thats exactly how I want it to
You can see the same example as before, but this time there are playbackcontrols which would be perfect if it wasnt for the fact that if you now resize thbrowser window, the video jumps almost its own width to the left.
View 3 Replies
Mar 31, 2010
I have a website. You can see that website both by typing in(not REALLY my website...I'm just using examples here)This website has a flash intro that at the very end enables the user to either choose to go to the html version of my site or the flash version, each option represented by a button.The strange thing is that if I'm on theURL of my site, everything works ok there. However, if I'm on the version with the "www" added into the URL, those buttons don't work. You still get the little "finger" indicator, but when you press, nothing happens.
View 4 Replies
Jul 7, 2010
I'm working on a large AIR-app. When I run the project from Flash CS4, everything works fine. But when I run the installed app, some buttons will react very slow.
View 7 Replies
Apr 6, 2009
I created a movie clip that i want to act as a button. Inside that movie clip i place 2 graphic symbols (in different layers) that each have a tween of 30 frames. In a different layer i put a stop(); at frames 1 and 30. Then i create a fourth layer writing the following code for all 30 frames:
Code:
var rewind:Timer = new Timer(10);
var rootButton:MovieClip = MovieClip(parent);
rootButton.RR_mc.buttonMode = true;
rewind.addEventListener(TimerEvent.TIMER, rewindHandler);
[Code]...
1. On mouse over the movie clip (RR_mc) start playing normaly untill frame 30 where stops.
2. On mouse out the movie clip starts rewind going frames backwards. Now if i put my mouse over the movie clip, before rewind reach frame 1 the rewind stops and the movie start playing again. 2b. If the movie clip reach frame 1 after rewind, then is not stopping and continues to give frame 1 (if you put a trace(this.currentFrame(); you get infinite 1s). On mouse over the movie clip afterwards i can see that trying to start play but it's progress is max 2-3 frames before the rewind routine pull it back at frame 1.
3. If i transfer the timer and it's function to the parent directory then everything work fine.
I want to write all the code for the button inside the child directory of that button, is it possible?
View 3 Replies
Dec 3, 2010
I've made [at least I'm trying to] a class that will make able to communicate flash with PHP [and MySQL].I've done this once before on the main time line and it worked perfect. This one is working as well but I get strange variables from PHP in Flash. Here are the codes:
[Code]...
View 1 Replies
Sep 23, 2009
I can't figure out why there is a display problem around the "Green Printing" button. Each of the button is created the same way, using the same graphics. Only this one displays incorrectly when the swf is produced.
[URL]
I have quadruple checked position and all the buttons are correct. No overlap. If you right click and zoom in on the button in question, it looks perfect. only at 100% is the display problem visible and only on that button/area of the flash swf.
View 3 Replies
Feb 27, 2011
I am beginner in FLEX programming , I am trying to implement a very simple LOGIN system using PHP, FLEX, MySQL.
protected function button2_clickHandler(event:MouseEvent):void
{
var create_new_user:Users= new Users();[code]..........
I have added the "alert.show" to check the sequence , it was really strange to find out the it is executing "6,5,4,3,2,1"..?? Which mean user is created before checking the verification result?
View 1 Replies
Dec 14, 2011
I need to check (for my own good reasons) whether the cursor is located within the bounds of a particular object. I'm using a simple code to do this...
if(mouseX > hsSlot1.x && mouseX < (hsSlot1.x + hsSlot1.width) && mouseY > hsSlot1.y && mouseY < (hsSlot1.y + hsSlot1.height))
{
//My code
}
This, theoretically, should work perfectly! However, there is an offset (and one I did NOT set, mind you!) of about 16 between the hsSlot1's visual position (where it appears to start on the screen) and hsSlot1.x. There is a similar offset on the y axis, but I haven't measured it yet.The only thing I can think of for this is that hsSlot1 is an instance of a button (one with only one state at that) that was scaled to fit. However, I don't think that is it, because the numbers show that the entire object is merely offset at its current size.
View 2 Replies