Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
nif #1
calling variables in different components
hi there,
i apologise if this is a very silly question, but i am fairly new to flex and
busy doing my first project using it and struggling to find the information i
need.
i have created an application that uses components for a multitude of
different display areas. one of my areas is a component that calls 2 other
components to create an input area and a listing area on the same page.
i now need the listing area to populate the fields of the input area with data
from the listing on selection of certain items in my listing. however, i cannot
simply call them by their id as i get the error "Access of undefined property".
how do i access the input area component's scope from within the listing
component?
thanks a mil',
nikki
nif Guest
-
Calling custom mxml components
How to I call an mxml component from an mxml application where the first called mxml component calls another mxml component. -
Web Service connecting to variables not other components
All the web services tutorials I have reviewed always demonstrate how to setup the WebServicesConnector and bound to other input components on the... -
Identity while calling Components in Web Services
Have you considered taking a different approach: use authorized SQL credentials to load and run the DTS package using DSO. You could insert code... -
calling serviced components from asp.net
I have a serviced component that is strong named, registered in GAC and COM+. I want to call it from a ASP.net page, everywhere I read I told to... -
Replacing code based on static variables to variable variables.
Can anyone give me some help or tips in converting this code to take 2 variables that will specify the number of Pack type lines and the number of... -
peterent #2
Re: calling variables in different components
If you have the id of a component you can reference its public variables and
function by using the dot-notation. If "listing" is the id of a component and
it has a public variable, "input" you do this:
listing.input
to reference the "input" variable (or whatever it is, as long as it is public).
peterent Guest
-
nif #3
Re: calling variables in different components
hi peter,
thanks for the quick reply. this didn't initially work as the 2 components are
sitting on the same "level"... i.e. nested inside another component.
then i found a reference to a "parentDocument" scope and gave this a bash...
so, parentDocument.listing.input and it worked. i hadn't realised the different
scopes such as parentDocument, Application and parentApplication existed, or at
least how to reference them.
happy days! :)
thanks again,
nikki
nif Guest



Reply With Quote

