ActionScript 3.0 :: Wrong DataGridEvent.columnIndex Returned When The DG Scrolled?

Mar 27, 2010

I have a datagrid with 7 colums. Because of their widths, I have to use an horizontal toolbar.When the datagrid is on its initial topleft position, no problem: if I click on the column0, the returned DataGridEvent.columnIndex is 0. If I click on column 3, the returned DataGridEvent.columnIndex 3, the dataField is perfect.
 
Now, I scroll to the right (scrollpolicy = auto) and the "old" column 3 is the first column I see now to the left in my DataGrid.If I then click on the "old" column 5, the returned DataGridEvent.columnIndex is .. 2. More than that, the returned dataField is the datafield of the "old" column 2.In fact, it seems the DataGrid forgets I scrolled to the right and think the newly visible top left column (3) is the zero one.

View 3 Replies


Similar Posts:


Flex :: List Displaying Wrong Until Scrolled?

Nov 6, 2009

I have a List, that is not showing any items until you scroll, then the items show up. Does anyone know how to fix this? I tried calling list.invalidateDisplayList(); and list.invalidateList();

EDIT: Here is some code:

<mx:Script>
<![CDATA[
[Bindable][code]...........

I found that if I add creationComplete="{list.dataProvider = _xmlList }" It solves the problem.

View 2 Replies

ActionScript 2.0 :: PHP - Flash Log In Form - Returned Value Is Wrong

Jan 22, 2008

Login Form: I send Login and Password from Flash to PHP. PHP accepts those values, checks them against the database, and then... returns something weird to flash. Instead of just returning "true" (if the password is correct) or "false" (if the password in not correct), PHP returns one of those values AND whatever comes after that value, including even the closing PHP tag ?> .... I know it because I trace the returned value in Flash. I need your help with my scripts. This is my Flash button, sending the values to PHP.

[Code]...

View 11 Replies

IDE :: CS5 After Loadmovie Browser Still Scrolled Down

Apr 11, 2011

I have a campus map at www.averett.edu/map. The swf is very tall and you have to scroll down to get to some navigational buttons at the bottom which load swf of other campus maps into the top left corner of the parent. The problem is...even though the movies load without a problem, the browser is still scrolled down to the bottom of the page and the user has to scroll back up to see the maps. Is there anything I can do to force the browser window to scroll back up to the top when a movie loads?

View 1 Replies

Professional :: After Loadmovie, Browser Still Scrolled Down?

Apr 11, 2011

I have a campus map at The swf is very tall and you have to scroll down to get to some navigational buttons at the bottom which load swf of other campus maps into the top left corner of the parent.The problem is...even though the movies load without a problem, the browser is still scrolled down to the bottom of the page and the user has to scroll back up to see the maps.

View 2 Replies

ActionScript 2.0 :: A Liquid Layout Which Also Can Be Scrolled

Feb 10, 2008

I am trying to create a flash site that utilizes a liquid layout, but also allows for vertical scrolling, something which I am not sure if it is possible. The code for the liquid layout that I am using is this one [URL]Currently, such code creates this layout [URL] Obviously one of the key features of a liquid layout is that takes up as much or little browser real estate as you give it. However, I have found that when I create a liquid layout using this code for a flash site that is vertically longer than the browser window (such as vertically long body of text) the code does not allow you to scroll down. The liquid layout causes there to be no scroll bars in the browser.

I hope I have described my problem clearly. My question is; Is there code that would allow for the flash site to be liquid only horizontally, while VERTICALLY the flash site would be able to be scrolled.

View 1 Replies

Flex :: How To Show Error TextArea When Mouse Scrolled

Apr 18, 2011

In my flex application I am using a text area which shows fields name when the mandatory fields are not provided by users. My application has about 30 fields. I am showing the textarea on top. So its hard to see the text area when I scroll down the mouse. I need to show the TEXTAREA along when I scroll down the mouse (it should show in side nearear to scroll button)....

View 1 Replies

Flash :: Change The Font Weight Into A Scrolled Text From The Fla?

Oct 19, 2011

i would like to modify the font weight of a word (my title) that is into a textfield that is "scrolled" : so when i modify this word, the whole text is being modified as well, and i can't write it in another textfield, because i want it to be scrolled as the rest of the text.Do i "have to" set the title and the text dynamically to change the font? or can i do it directly from the fla (which would save me some time, i have several texts in the same case)

View 1 Replies

ActionScript 2.0 :: Detect When Viewer Has Scrolled To Bottom Of Browser?

May 28, 2010

I have 2 SWFs, one at the top of an HTML page and one at the bottom. I would like the bottom SWF to remain stopped until the viewer has scrolled far enough to actually see it.

View 2 Replies

ActionScript 2.0 :: Scroll One At A Time - Disable The Buttons Until It Has Scrolled 390?

Sep 15, 2005

I've set up a scroller that scrolls an MC up or down with two different buttons (up and down). When you press up, the MC rises 390 and when you press down, it lowers 390. The issue I'm having is that if you hit the button while it is scrolling, it screws up the scroller and scrolls off values. Here is the code that I'm using:

Code:
onClipEvent (load) {
_x = 0;
_y = 0;[code]....

change the code so it will disable the buttons until it has scrolled 390, or whatever value I set it at?

View 1 Replies

ActionScript 3.0 :: Map Which Can Be Scrolled By Moving The Mouse To The Edge Of Stage?

Mar 9, 2011

I just finished some code to get enemies in my game but im experiencing strange behaviour within the game.My game currently is a 2000x2000 map which can be scrolled by moving the mouse to the edge of stage... i just tried adding some enemies.

Whats happening here is that the red bordered enemies stick to a position on the screen. The green bordered enemy scrolls with the map.In my code im trying to spawn 10 enemies, and have them update their positions according to map scrolling.

heres my code

[code]...

View 4 Replies

Flex :: Error When The Scroller Of The Mx:Tree With Custom Renderers Is Scrolled?

Aug 24, 2010

I have created a custom multiline item renderer for mx:Tree component. Important to mention that my item renderer has two UITextFields in it. Sometimes (depends of the input data) only one of UITextFields must be shown, so when second UITextField is not needed I hide it and recalculate the height of my item renderer. According to my tests height is calculated properly.The problem occures when I do scroll of my tree. The error text is:

TypeError: Error #1010: A term is undefined and has no properties.
at mx.controls::List/adjustVerticalScrollPositionDownward()[E:dev4.0.0frameworksprojectsframeworksrcmxcontrolsList.as:1042]

[code].....

View 1 Replies

ActionScript 2.0 :: Scrolled Text Form With Mask Doesn't Seems To Work

Apr 12, 2005

I have a MC with a text form with several input and combo boxes (flash <=> php) it as a scroll and it works fine, except when I put the MC under a mask. It still scroll's but nothing shows inside the input boxes when I type on it. Is this "normal" procedure for flash or It's a bug of some kind?

View 3 Replies

ActionScript 2.0 :: Add A Little Bounce Effect That When Scrolled It Went A Hair Past The Destination

Jan 24, 2006

[Code]...

if i wanted to add a little bounce effect that when scrolled it went a hair past the destination but came back how would that look?

View 5 Replies

ActionScript 2.0 :: Scrolled Text Form With Mask Doesn't Seems To Work?

Apr 12, 2005

I wonder if you could help me with this:I have a MC with a text form with several input and combo boxes (flash <=> php) it as a scroll and it works fine, except when I put the MC under a mask. It still scroll's but nothing shows inside the input boxes when I type on it. Is this "normal" procedure for flash or It's a bug of some kind?

View 3 Replies

Professional :: If Button Was Pressed Browser Window Was Scrolled Down To The Chosen Word

Mar 23, 2011

Im interested in making something similar as here [URL] As you can see if button was pressed your browser window was scrolled down to the chosen word.How to do that?How that script should look? What action script use, any example projects or tutorials?

View 3 Replies

Actionscript :: Flash - Ease Out Scrolling Moviclip, Scrolled By Sensor On Each Side?

Apr 9, 2010

I have a movieclip that is scrolled by means of a 'sensor' on each side of the stage. The clip scrolls fine in both directions, however here is my problem:When the users mouse leaves the stage, the movie clip stops dead in it's tracks, and this does not provide a nice smooth effect. Looking at the code below, is there any way I could tell the animation to ease out when the users mouse leaves the stage rather than simply stop suddenly?

class Sensor extends MovieClip {
public function Sensor() {
}

[code].....

View 1 Replies

ActionScript 1/2 :: XML Are Being Returned As 'undefined'

Feb 24, 2011

I've set up a holder flash file that checks an XML file every 30 secs, and if the content has changed loads a new movie into itself. I am getting mixed results and baffled why this is not working consistently - the XML is being read successfully, but the attributes that should be read from the XML are being returned as 'undefined' for some reason.[code]...

View 3 Replies

ActionScript 3.0 :: Nothing Returned For HttpStatusHandler?

Jun 30, 2010

I'm trying to debug my player, which is having a problem loading xml files from IE over https.

I tried putting in the following code:

[code]
xmlLoader.addEventListener(HTTPStatusEvent.HTTP_ST ATUS, httpStatusHandler);
[code]

With the function httpStatusHandler firing an alert when it is hit:

[Code]....

When I load the player, nothing happens. What does this mean? Have I done something really stupid?

View 1 Replies

Actionscript 3.0 :: Looping Through XML Returned From PHP?

Feb 18, 2010

I'm creating a registration form that contains a 'chain-select' series of ComboBoxes. In other words, select an item in the first CB and display the results from a mysql query in the next CB.

PHP returns the results in an XML String (Code: Select allecho "returnXML="$returnXML; ). All is working great up to that point. What I would like to do is loop through the Code: Select allXMLList, running Code: Select alldataP.addItem({label: newData}); for each node. The problem is that the Code: Select allXMLList.length(); function is returning a value of 1.

Code: Select allxmlList.hasComplexContent() returns 'true' which, i believe, would indicate that the XMLList is being created successfully.

Here's a bare-bones version of the code that should be sufficient for solving this problem.

AS3:
Code: Select allimport flash.net.*;
import fl.data.DataProvider;
var dataP:DataProvider = new DataProvider();
var newData:String;

[Code]....

View 1 Replies

ActionScript 3.0 :: Count Variables Returned From Php?

Mar 9, 2010

I have a PHP file that sends different amounts of variables back to flash depending on what the user has done.

I was wondering if there was a way of counting these variables in the event.target.data so I could make a for loop?

View 2 Replies

Actionscript 3 :: Why Can't Get A Returned Value From Custom Class

Jul 21, 2010

[Code]...

This is my first crack at writing a class and after reading up this is what I have. Essentially, I want to be able to write var txt:adamsboxmaker = new adamsboxmaker(parameters); and have txt be a display object from the returned MovieClip. But that's not happening.

View 2 Replies

Actionscript :: Recursive Function And Returned Value?

Nov 5, 2010

I think I have the recursion working properly, but I'm not able to get the originally requested item's property set to the right value.The goal here is to find the topmost parent (or "ancestor," depth = 0) of the nested item (a taxonomy based on Dictionary "parent" attributes), and assign that originally requested nested item's "ancestor" property accordingly.For instance, in

Apples
- Red
- - Empire
- - - Fresh

"Fresh"'s ancestor should be set to "Apples." While I'm attempting this on an "on-demand" and individual basis, I'm open to a solution that tags all children that are related to the same ancestor in one fell swoop or for statement, since that would probably be more efficient.

REQUEST

for (var mc:Object in taxonomy) {
var term = taxonomy[mc];[code]....

As you can see, while the recursion does find the root, the originally requested item still gets the default value.

View 2 Replies

ActionScript 2.0 :: Undefined Being Returned Instead Of Xml Node Value?

Mar 2, 2004

I am trying to call a functoin which will use the xml object to retrieve data and return the data to the function call. When I trace "test_var" inside the "book_xml.onLoad" functoin, it works. but I can pass the xml data out of the get_data function.

stop();
//define function
function get_data(id) {

[Code]....

View 3 Replies

ActionScript 3.0 :: Array Keys Returned As Strings?

Jun 24, 2009

The more I get into haXe and cpp the more I'm wondering this about as3. Iteration in as3 is easy in comparison to those languages. But if Array extends Object, overriding getters and setters to create what's basically an IntHash<string> or map<int,string>, and which only takes an int as a key, then why shouldn't the key iterator also return an int? Why does it return a string?

View 5 Replies

ActionScript 1/2 :: Unable To Output The Time Returned By The Php

Feb 15, 2011

For some reason I'm unable to output the time returned by the php. This code is on my website and viewrs from different countries see different times.

[Code]...

View 15 Replies

Actionscript 3 :: Stop A Returned Object Being Modified?

Oct 29, 2010

If an AS3 method returns a reference to a complex type, is there any way to make that 'readonly', like how you can have const member functions in C++? An architecture I want to use calls for a class building itself from a passed template object... and really the template object should not be modifiable. I'm currently forced to add call-back enumerators and/or lots of extra accessor methods.

View 4 Replies

Flex :: Jabber Server Returned Data?

Dec 3, 2010

I am developing a chat application using flex, which can use different service providers users like gmail,yahoomail,ami etc. Almost similar like meebo.com.

I am using jabber server. My question is what kind of information jabber returns.I am getting userid,password,status,status message but I am not getting address or phone number of the user or picture of the user..

Please let me know,how can I take these values and what should I pass to jabber server to revcieve full information from jabber for different service provider's users.

View 1 Replies

Flex :: Charting A Count Of Records Returned?

Aug 29, 2011

I am trying to create some charts in Flex/FlashBuilder 4.5The issue I have it that the information I wish to display is the number of events within an area. I am using HTTP service to access a rails controller which is returning an XML list of the events.I need to figure out how to chart the number of events, eg number of records returned. There is no numeric value within chart, as there would be if I was charting sales or prices for example.

View 1 Replies

Actionscript 3 :: Parsing JSON Returned By URLLoader?

Feb 29, 2012

I'm using a URLLoader and URLRequest to make a call to youtube's api. The return is formatted as json and looks like the following: http://pastebin.com/WxPS9NCB. I'm trying to capture the "href" value located on line 42 in the above pastebin. But the code I have isn't working.

[Code]...

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved