ActionScript 2.0 :: Can't Get XML List To Scroll Because The Variables Won't Travel Outside The Xml.onLoad Process?

Jan 29, 2008

i have a list cranked out from an XML file (movieclips attached to empty clip). currently it loads as the SWF launches. i can't get it to scroll because the variables won't travel outside the xml.onLoad process. what i'm wondering is once i bury this process into a button activated function, will i be able to access the list's properties? (sweet Buddha i hope that made sense...)

it seems the fundamental principle i'm struggling with is var/scope issues: how and where variables/properies can travel. i can't seem to find an explanation that makes sense from a C++ perspective. everytime i think i get it, something like this kicks me in the nuts. for those who want to dig, i'm using Kirupa's custom scrollbar modified (seemingly unsuccessfully) to my own setup. if you can recommend a different one more suited to this sort of thing, i'm open to it. if this doesn't make sense, i can attach the FLA but its a bit of a read and i'm in need of an answer before Thursday. methinks once this project is done, i'm going to hire someone for a week to fill in the gaps in my knowledge!

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Limit The Travel Of The Scroll Thumb?

Mar 26, 2007

I am currently working on a curved scrollbar. I want to limit the travel of the scroll thumb using two clip instances that mark the top and bottom of the scroller. To do this, I believe that I'll need to use localToGlobal on my top (topMark) and bottom (botMark) markers. Unfortunatly, my attempts to get the global coordinates has failed. In the attached file, the code can be found in the actions layer of the curvedScrollbar clip.

View 1 Replies

ActionScript 2.0 :: Check Variables In MyPictures.onLoad, The Variables Are Always The Same?

Aug 5, 2004

I have 2 loadVars - myVars, myPictures

basically i have defined their onLoad functions

so in myVars, i call for

Code:
myPictures.load("http://www.fakedevil.com/lurgee/pictures2.php?id="+this._parent.link2.text+"&time=" add getTimer(), "");

pictures2.php is working cos I just check so by rite the variables loaded should change.. but somehow each time I check those variables in myPictures.onLoad, the variables are always the same.

View 5 Replies

ActionScript 3.0 :: Scroll The List Of Pics According To The Position Of The Mouse With Out Actually Moving The Scroll Bar?

Apr 20, 2009

I wrote a short AS program to create a tileList and it functions fine, but I need to be able to scroll the list of pics according to the position of the mouse with out actually moving the scroll bar.... example of what I mean: the farther to the right mouseX is on stage, the faster my tileList scrolls to the right, if mouseX moves to the left of the stage, so does the scroll bar...Here`s my code so far:

import flash.display.Sprite;import fl.controls.TileList;import fl.controls.ScrollBarDirection;import flash.text.TextFormat;
var tlc:TileList;[code]........

View 1 Replies

Flex :: 3: Scrolling Of List Items With In A List Via Scroll Wheel

Dec 31, 2009

Here is a snip from within my code:

[Code]...

The 'recommendations' dataProvider is an ArrayCollection of String, which are generally sentences about as long as this one. By setting the variableRowHeight and wordWrap properties as shown, if a sentence is too long to fit on a single line, everything works fine- the row expands and the messages show on two lines, or occasionally three.

The space allocated for this panel within the entire canvas means if the total text size of 'recommendations' exceeds six lines, I need for the entire list scroll. This is also working just fine. The trouble is when using the mouse wheel to do the scrolling- Flex scrolls both the entire list and the single item where the mouse is hovering. Often this results in only the second half of a sentence being visible. Non-programmer friends I have asked to look at this noticed this, and tell me it as a problem. If a user does not notice the dual scrolling, and sees only a fragment of a sentence, it will be perceived as an error in the application.

[Code]....

View 1 Replies

ActionScript 1/2 :: Xml.onLoad Variables Undefined Outside?

Aug 25, 2009

I've been searching this problem for a while and have tried a number of solutions found on google but nothing has worked so far. I'm sure this is a common problem, but due to my lack of flash knowledge I can't logically work through it as I'm used to windows form development, it makes sense to me that the function could access the variables I have defined but they dissapear after the .onLoad event. Does anyone know the common solution to this problem? I want to be able to pass the xml details into the local variables so I can pass on the details into a dynamic text field when movies are hovered over etc.

[Code]...

View 3 Replies

ActionScript 2.0 :: Passing Variables Out Of XML OnLoad

Nov 7, 2005

I'm trying to pass a variable out of the 'XML.onLoad = function() {', but the variable keeps coming up undefined. This is what my actionscipt looks like:
Code:
XMLData.onLoad = function() {
_global.variable = ......
} trace(variable)

View 6 Replies

Flex :: Flash - Get List Of Running Processes, Get Active Process (and It's Application) AIR

Jan 25, 2010

Is it possible to get somehow list of running applications/processes and, while running in background, check which process is active?

Additionally - if somehow, the answer was yes, is it possible to react for change of active window / application react just as if it was Event, or bind to it custom event (e.g. Event.SystemActiveAppChange)?

EDIT: Due to probable missunderstanding, I mean local applications - on your win/mac/linux machine - I would like to (in process of learning of language) track what apps I use the most, make a little graph maybe?

So, the point is: in AIR app, developed in FLEX, I would like to get/list all running applications/processes, as well as which one is active (on user's PC/Mac/Linux)

View 3 Replies

ActionScript 1/2 :: Xml.onLoad Variables Undefined Outside Function?

Aug 25, 2009

I've been searching this problem for a while and have tried a number of solutions found on google but nothing has worked so far. I'm sure this is a common problem, but due to my lack of flash knowledge I can't logically work through it as I'm used to windows form development, it makes sense to me that the function could access the variables I have defined but they dissapear after the .onLoad event. Does anyone know the common solution to this problem? I want to be able to pass the xml details into the local variables so I can pass on the details into a dynamic text field when movies are hovered over etc

var myXML:XML = new XML();
myXML.ignoreWhite=true;
var nav1Text:String;

[code].....

View 3 Replies

ActionScript 2.0 :: [fmx] Keep Variables Past The Onload Call?

Jan 20, 2004

I've created a multi-framed flash file that's calling multiple variables from an external php (text) file. I'm using an onload command to do this and for some reason the variables seem to "disappear" once I leave the first frame (where the onload and load commands are)I'm figuring that my problem has to do with 'variables scope'. I've read the article on this site but I don't know actionscript well enough to proceed.I ultimately want to do away with using multiple frames by using multidemsional arrays and for...next loops, but this is what I have to work with (for now). I'm going crazy trying to get THIS to work.

[AS]
// ##################################
// FRAME 1

[code]......

View 4 Replies

ActionScript 2.0 :: Retain Variables From OnLoad Event?

Sep 26, 2004

Is it possible to retain variable information after exiting an onLoad event?I have a variable declared outside the onLoad event which a function called from within the onLoad event populates. The problem is, after leaving the onLoad event the variable gets cleared

View 1 Replies

ActionScript 3.0 :: Mouse Over The List To Scroll The List?

Sep 28, 2009

I am creating a map of the USA and when a user mouses over a particular state,I want to display a movie clip (which is just a text list of our dealers in that state). When the user mouses out I want the list to disappear.However, I want the user to be able to mouse over the list to scroll the list and whenever I try it, obviously the state loses focus and the MOUSE_OUT Event fires.How to I get around this?Here is the code I have currently:

Code:
PA.addEventListener(MouseEvent.MOUSE_OVER, showDealers);
PA.addEventListener(MouseEvent.MOUSE_OUT, hideDealers);[code]............

View 1 Replies

ActionScript 3.0 :: Pass Variables From Flash To Php To Process And Get Back The Result To Flash

Oct 17, 2009

How to pass variables from flash to php to process and get back the result to flash

this is th php code
<?
$money = $_POST["fname"];
$persent = $_POST["age"];

[Code]......

View 5 Replies

ActionScript 2.0 :: Way To Send Variables To Php File And Process Them Inside Flash File

Feb 14, 2005

Im pretty new with the flash -> php -> mysql thing .. And I have made a script that sends some variables (that a user inserts in some input forms) with some var names, and then php handles it and insert it into my MySQL database its kinda ugly that a page pops up and opens the php page.So I was wonderin' if there is some way to send the variables to the php file and process them inside the flash file. without openin' some fancy browser window ?

View 3 Replies

ActionScript 2.0 :: Scroll Bar In Video List

Jul 23, 2009

I am using a video list for my videos but when i scroll down, it goes more than I want and when I scroll up, it doesn't scroll all the way up.

[Code].....

View 1 Replies

Flash :: Scroll List With Different ScrollBar?

Jul 23, 2011

I'm using the List and UIScrollBar components. I've got a list with a scrollbar placed far from it. I want to disable the built-in scrollbar in the list and scroll it with a different scrollbar. How is this possible?

View 1 Replies

IDE :: Make A Dynamic Scroll For The List?

Jan 24, 2009

I have a list component and I wanted to make a dynamic scroll for the list. Or change the default scroll that the as2 components have. How can I make a dynamic scroll, the ones that it moves with the mouse position?

View 1 Replies

ActionScript 3.0 :: Flex List Scroll Speed

Feb 25, 2011

I have a custom class that extends List which I am using as a container. However, the scroll speed is too fast on the mouse wheel, as in it scrolls loads even if you only move the wheel a tiny bit. I tried adding an event listener to my list for MouseEvent.MOUSE_WHEEL and setting the value of event.delta but this has had no effect. Does anyone know how I can make it slower?My custom class is nothing special, I just created it so I could have a different itemRenders for different item types. It looks like:[code]

View 1 Replies

Professional :: List A Products To Scroll Across Top Of Screen

May 7, 2010

I have a client that wants a list a products to scroll across the top of the screen on his website.I am sure there is a way to do that in Flash but the extent of my experience is fade-out slideshows.Can anyone direct me to a great tutorial for scrolling text.

View 3 Replies

Flash :: EnsureIndexIsVisible(), Scroll To The Top Of A List Control?

Feb 27, 2011

I'm using FB4 and apparently I need to use ensureIndexIsVisible() to scroll to specific item in my s:List. Anyway, the code below successfully scrolls to the item but does not scroll it to the top of the list (it's at the bottom, and cut off somewhat).

MXML:

<s:List id="Schedule" dataProvider="{schedule}" creationComplete="creationCompleteHandler(event)"/>

AS3:

protected function creationCompleteHandler(event:Event):void {
var d:Date = new Date();
var today:String = String((d.month + 1) + "/" + d.date + "/" + d.fullYear);

[Code]....

View 2 Replies

Flex :: Scroll An Mx:List By Tabbing Through Items?

Jul 19, 2011

I'm sure someone must have accomplished this before, but I couldn't find any article on this.

How can we scroll a List control (with uses an itemrenderer) to the next item, when the user tabs from the current item to the next?

I know that we can use scrollToIndex(i), but how do we notify the List that the itemrenderer has moved to the next index? I couldn't find any such event.

View 1 Replies

ActionScript 2.0 :: Horizontal Scroll In List Component?

Jan 29, 2008

Is there an option to turn on the horizontal scroll for the list component? I have some list entries that are longer than the list is wide, so they get cut off at the end...can this be done?

View 3 Replies

ActionScript 2.0 :: MP3 Tutorial ... Making The List Scroll?

Sep 25, 2008

I used that MP3 player tutorial, I need to be able to have up to 500 items in the list. Does anyone know where I can find help making the list scroll?? Here is the tutorial I'm talking about [URL]

View 3 Replies

Flex :: Scrolling Through List Element Causes Text To Scroll As Well

May 12, 2010

I'm using a list element with variableRowHeight and word-wrap set to true like in the example below: [URL]. When I scroll through the list with a mouse scrollwheel the text in the listItems also scroll. I know that this is to do with the height of the textField...

View 1 Replies

Flex :: Set The Scroll Position For A Spark List Control?

Aug 9, 2010

How can I set the scroll position for a Spark List control?

View 1 Replies

ActionScript 3 :: Scroll To Alphabet In List (ArrayCollection DataProvider)

Oct 4, 2011

I have a list (LIST#1) of artists:
2Pac
Adele
Amerie
Beyonce
Jason Aldean
Shakira
The Trews

I also have a list (LIST#2) that has the values #,A-Z - how would I create an alphabet jump? So If a user clicked on "A" in LIST#2 that would automatically scroll to "Adele" at the top of LIST#1 - not filter so he/she could scroll up to view 2Pac or down to view The Tews if they were not in the view yet. Its a standard Flex Spark List with an ArrayCollection as the dataProvider - the artist field is called: "title" along with a unique id field that is not visible to the user.

private function alphabet_listChange(evt:IndexChangeEvent) : void {
var letter:String;
letter = evt.currentTarget.selectedItems[0].toString();
trace(currentDictionary[letter]);
ui_lstLibraryList.ensureIndexIsVisible(currentDictionary[letter]);
[Code] ......

View 2 Replies

Flash 9 :: Edit Width Of List Vertical Scroll Bar?

Sep 29, 2008

In Flash 9, with AS 3, I modified the width of an isolated list component using list_instance.setSize(width=x, height=y). When the list is included in an app with other components and movie clips, the setSize() method applies itself to the size of the app window and scales everything within. Using skins, I can edit the list background color. Though I can modify the width of the accompanying vertical scrollbar subcomponent in the editing window, the modification does not apply to the stage or when the app is run with Control/Test Movie. modifying the width of the vertical scroll bar in a list component that is included with other components and movie clips in an app, either dynamically with AS 3 or by editing skins?

View 0 Replies

ActionScript 3.0 :: Masking - Scroll Through All The List Items Dynamically

Nov 11, 2010

Lets say I had a rectangular sprite that could fit about 10 'list items'. However, I have like 100 list items. What I desire is adding all these 100 list items to this one rectangular sprite, so 10 will fit and the 90 should be masked, and I can scroll through this rectangular sprite (by dragging the box upwards) to view more list items. This means that only 10 list items are visible at one time but I want to scroll through all the list items dynamically.

View 3 Replies

Flex :: Scroll To Selected Item In Spark List Component?

Oct 21, 2009

I'm setting selected element in s:List component with Actionscript, it works, but List doesn't scroll to selected item -- need to scroll with scrollbar or mouse. Is it possible to auto-scroll to selected item

View 8 Replies

Open Source :: Easily Scroll A Product List In Flash?

Feb 23, 2010

Is there a way to have a flash control scroll through a number of images with descriptions without knowing Flash?Perhaps like LightBox but with nice scrolling.

View 1 Replies







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