Flex FAQ 9-22-08

Q: I want to use an XML data source to dynamically display
images and
data in my Flex application. I won't know how many
images/data points I
will have at design time. How can I best approach this?
A: Depending on what you're wanting to do, you can either use
a
Repeater with an Image or custom component that contains an
Image or you can
use a List based component to display an Image or custom
component with an
Image (or SwfLoader, or Loader) in it. The Help is full of
resources on
this subject. Here are some places you may want to try:
Help>Flex Start Page>Creating a Simple RIA
Help>Help Contents>User Interfaces
- Using Data Providers and Collections
- Controls
- Image
- SwfLoader
- Using Data Driven Controls
- Using Item Renderers and Item Editors
- Dynamically Repeating Controls and Containers
Here is an example that might get you running fast if you
find it easier to
learn from a working example than from Help files:
http://examples.adobe.com/flex2/inproduct/sdk/photoviewer/PhotoViewer.html
Q: I've created a custom itemRenderer component to use in a
List
based component (Datagrid, TileList, HorizontalList, etc.).
When my List
first displays, everything looks fine, but when I scroll it
or change the
dataProvider, some of the itemRenderers show values or
formatting that
aren't right. How do I fix this?
A: List-based components don't draw a renderer for every item
in the
dataProvider. Instead, they create enough to display what is
on screen now,
plus one or two more waiting in the wings. This means they
recycle the
renderers rather than creating new ones when you change
dataProvider or
scroll up and down. When you use a creationComplete event to
set up the
itemRenderer, that event doesn't happen again when the
renderer is used for
a different set of data. The solution to this is to override
the set data
protected function that most components have.
For more information, check out the following resources:
http://www.adobe.com/devnet/flex/articles/itemrenderers_pt1.html?devcon=f1
http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.html
Q: I want to run a function in my main application from
inside my
custom component. But when I try to refer to myFunction() in
that
component, I get a compile time error Call to a possibly
undefined function
myFunction. How can I fix this?
A: Your component has its own scope, so it doesn't know
anything
about the functions in the main file. You can get around this
by directly
referencing the main application scope like this:
Application.application.myFunction(). However, this makes
your component
tightly coupled, which is a quick way of saying that your
component is only
usable in an application that has a myFunction() function in
it. You're
better off dispatching an event from your component and
letting the
application decide how to handle it. For more information,
check out the
following resources:
http://www.adobe.com/devnet/flex/articles/loose_coupling.html
http://www.adobe.com/devnet/flex/articles/graduating_pt1.html
Q: I want to decide at runtime what kind of component to add
to
display my data. How can I accomplish this?
A: Use getDefinitionByName and ClassFactory to dynamically
create
your class. Just be sure that you actually have at least one
"hard"
reference to each class you intend to use, or the class might
not get
compiled into your swf. Here's a full write-up of how to do
that:
http://www.paulofierro.com/archives/520/
Q: I need to set a property or add an event listener on a
component
that is in a ViewStack/TabNavigator/Accordion. When the
component is not
the first child of the Navigator Container, I get a null
object error
(#1009). What causes this, and how can I fix it?
A: By default, the Navigator containers only create the
children of
each pane as that pane is viewed. The easy way to fix this is
to set the
creationPolicy on the Navigator to "all." However, this will
cause your
application to take longer to load. A better way to fix this
is to wait for
a later event, such as creationComplete on the component you
want to access,
or to use binding to "pull" the data into the component.
The way I handle it is to call invalidateProperties() on
change of the
ViewStack. I then override commitProperties() and call an
"initializer" for
each pane. In the body of each initializer function, I check
to see if the
selectedItem for the viewStack is the one my initalizer cares
about. If
not, I return from the function immediately. Inside that
initializer
function, I set properties and add listeners as appropriate.
Q: When my application is taller than the browser window, I
get
scrollbars in the application. I want the browser to do the
scrolling. How
can I do this?
A: In the html-template/index.template.html file change line
46 (in
the Flex 3 template) to read <body scroll="auto">
instead of the default of
<body scroll="no">.
Q: I am using URLRequest, HTTPRequest, or HTTPService to
retrieve
information from a database on a server. The first time my
application
makes a server call, it works fine. But when I call the same
page again, I
get the same data, even though I know the data has changed on
the server.
Is this a bug?
A: The browser has cached the response it got from the first
call
you made to the page. This means that you need to either
change how you are
calling the page so it appears to be a new request, or you
need to change
the page itself so that it won't be cached.
To change how you are calling the page, append a unique value
to the end of
the URL. For example, new
URLRequest('yourPage.asp?param="+(new
Date()).getTime).
If you want to change the page itself, you need to change the
response
headers. The method for changing the response headers will
vary from
language to language. For more on this see:
http://msdn.microsoft.com/en-us/library/aa923184.aspx
http://www.sun.com/books/components/Hall_ch7.pdf
http://www.w3schools.com/php/func_http_header.asp
http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_g-h_07.html#3989067
Q: I am using Modules in my Application. When I load the
first
Module, everything works fine. But when I load the second
one, I get a Type
Coercion Error failed error #1034 that looks something like
TypeError: Error
#1034: Type Coercion failed: cannot convert
com.myDomain.package::SingletonClass@fce9a89 to
com.myDomain.package::SingletonClass or TypeError: Error
#1034: Type
Coercion failed: cannot convert
mx.managers::HistoryManagerImpl@22346589 to
mx.managers.IHistoryManager. How do I fix this?
A: When you reference a singleton class, either a custom
singleton
or one of the managers in Flex, into a Module, if this is not
loaded in the
Application domain, it will load into the child domain of the
first Module
to load and other Modules will not be able to see it. To
prevent this,
either directly load your class into the main Application
before loading any
Module, or use a Runtime Shared Library with the class
included.
For more on this, see Alex Harui's presentation on Modules
from Flex 360
http://blogs.adobe.com/aharui/2007/03/modules.html
(slides 19, 24-31).
Not sure what a Singleton is? Check out
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postId=262&produc tId=2
Q: I'm using a Repeater to lay out the right number of
components on
the screen for me based on a data source. I'm trying to set
up the id for
each component dynamically like this:
<mx:Repeater id="myRepeater" dataProvider="mySource">
<mx:Button id="{'myButton'+myRepeater.currentIndex}"
label="{myRepeater.currentItem.label}" />
</mx:Repeater>
When I try to run the file, I get a compiler error
'{'myButton'+myRepeater.currentIndex}' is not a valid
identifier.
I need to be able to reference each of the repeated
components. How can I
do this?
A: If you give the component an ordinary id like this:
<mx:Button id="myButton"
label="{myRepeater.currentItem.label}" />
Flex will create an Array for you called myButton that
contains a reference
to each component the repeater created. For more information,
see
Referencing Repeated Components here:
http://livedocs.adobe.com/flex/3/html/help.html?content=repeater_3.html
Courtesy of Amy's Flex Diary.
The most recent version of this FAQ can always be found at
http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf

"Greg Lafrance" <[email protected]> wrote in
message
news:gbr2r8$qtv$[email protected]..
> Is it possible to number the questions? Sometimes in
your posts you refer
> to Q3, but they are not numbered.
Good point :-). I get tired of counting them sometimes. I'll
try to get
that done before next week.

Similar Messages

  • Flex FAQ 9-29-08

    Amy's Flex Frequently Asked Questions
    Q: I want to use an XML data source to dynamically display
    images and
    data in my Flex application. I won't know how many
    images/data points I
    will have at design time. How can I best approach this?
    A: Depending on what you're wanting to do, you can either use
    a
    Repeater with an Image or custom component that contains an
    Image or you can
    use a List based component to display an Image or custom
    component with an
    Image (or SwfLoader, or Loader) in it. The Help is full of
    resources on
    this subject. Here are some places you may want to try:
    Help>Flex Start Page>Creating a Simple RIA
    Help>Help Contents>User Interfaces
    - Using Data Providers and Collections
    - Controls
    - Image
    - SwfLoader
    - Using Data Driven Controls
    - Using Item Renderers and Item Editors
    - Dynamically Repeating Controls and Containers
    Here is an example that might get you running fast if you
    find it easier to
    learn from a working example than from Help files:
    http://examples.adobe.com/flex2/inproduct/sdk/photoviewer/PhotoViewer.html
    Q: I've created a custom itemRenderer component to use in a
    List
    based component (Datagrid, TileList, HorizontalList, etc.).
    When my List
    first displays, everything looks fine, but when I scroll it
    or change the
    dataProvider, some of the itemRenderers show values or
    formatting that
    aren't right. How do I fix this?
    A: List-based components don't draw a renderer for every item
    in the
    dataProvider. Instead, they create enough to display what is
    on screen now,
    plus one or two more waiting in the wings. This means they
    recycle the
    renderers rather than creating new ones when you change
    dataProvider or
    scroll up and down. When you use a creationComplete event to
    set up the
    itemRenderer, that event doesn't happen again when the
    renderer is used for
    a different set of data. The solution to this is to override
    the set data
    protected function that most components have.
    For more information, check out the following resources:
    http://www.adobe.com/devnet/flex/articles/itemrenderers_pt1.html?devcon=f1
    http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.html
    Q: I want to run a function in my main application from
    inside my
    custom component. But when I try to refer to myFunction() in
    that
    component, I get a compile time error Call to a possibly
    undefined function
    myFunction. How can I fix this?
    A: Your component has its own scope, so it doesn't know
    anything
    about the functions in the main file. You can get around this
    by directly
    referencing the main application scope like this:
    Application.application.myFunction(). However, this makes
    your component
    tightly coupled, which is a quick way of saying that your
    component is only
    usable in an application that has a myFunction() function in
    it. You're
    better off dispatching an event from your component and
    letting the
    application decide how to handle it. For more information,
    check out the
    following resources:
    http://www.adobe.com/devnet/flex/articles/loose_coupling.html
    http://www.adobe.com/devnet/flex/articles/graduating_pt1.html
    Q: I want to decide at runtime what kind of component to add
    to
    display my data. How can I accomplish this?
    A: Use getDefinitionByName and ClassFactory to dynamically
    create
    your class. Just be sure that you actually have at least one
    "hard"
    reference to each class you intend to use, or the class might
    not get
    compiled into your swf. Here's a full write-up of how to do
    that:
    http://www.paulofierro.com/archives/520/
    Q: I need to set a property or add an event listener on a
    component
    that is in a ViewStack/TabNavigator/Accordion. When the
    component is not
    the first child of the Navigator Container, I get a null
    object error
    (#1009). What causes this, and how can I fix it?
    A: By default, the Navigator containers only create the
    children of
    each pane as that pane is viewed. The easy way to fix this is
    to set the
    creationPolicy on the Navigator to "all." However, this will
    cause your
    application to take longer to load. A better way to fix this
    is to wait for
    a later event, such as creationComplete on the component you
    want to access,
    or to use binding to "pull" the data into the component.
    The way I handle it is to call invalidateProperties() on
    change of the
    ViewStack. I then override commitProperties() and call an
    "initializer" for
    each pane. In the body of each initializer function, I check
    to see if the
    selectedItem for the viewStack is the one my initalizer cares
    about. If
    not, I return from the function immediately. Inside that
    initializer
    function, I set properties and add listeners as appropriate.
    Q: When my application is taller than the browser window, I
    get
    scrollbars in the application. I want the browser to do the
    scrolling. How
    can I do this?
    A: In the html-template/index.template.html file change line
    46 (in
    the Flex 3 template) to read <body scroll="auto">
    instead of the default of
    <body scroll="no">.
    Q: I am using URLRequest, HTTPRequest, or HTTPService to
    retrieve
    information from a database on a server. The first time my
    application
    makes a server call, it works fine. But when I call the same
    page again, I
    get the same data, even though I know the data has changed on
    the server.
    Is this a bug?
    A: The browser has cached the response it got from the first
    call
    you made to the page. This means that you need to either
    change how you are
    calling the page so it appears to be a new request, or you
    need to change
    the page itself so that it won't be cached.
    To change how you are calling the page, append a unique value
    to the end of
    the URL. For example, new
    URLRequest('yourPage.asp?param="+(new
    Date()).getTime).
    If you want to change the page itself, you need to change the
    response
    headers. The method for changing the response headers will
    vary from
    language to language. For more on this see:
    http://msdn.microsoft.com/en-us/library/aa923184.aspx
    http://www.sun.com/books/components/Hall_ch7.pdf
    http://www.w3schools.com/php/func_http_header.asp
    http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_g-h_07.html#3989067
    Q: I am using Modules in my Application. When I load the
    first
    Module, everything works fine. But when I load the second
    one, I get a Type
    Coercion Error failed error #1034 that looks something like
    TypeError: Error
    #1034: Type Coercion failed: cannot convert
    com.myDomain.package::SingletonClass@fce9a89 to
    com.myDomain.package::SingletonClass or TypeError: Error
    #1034: Type
    Coercion failed: cannot convert
    mx.managers::HistoryManagerImpl@22346589 to
    mx.managers.IHistoryManager. How do I fix this?
    A: When you reference a singleton class, either a custom
    singleton
    or one of the managers in Flex, into a Module, if this is not
    loaded in the
    Application domain, it will load into the child domain of the
    first Module
    to load and other Modules will not be able to see it. To
    prevent this,
    either directly load your class into the main Application
    before loading any
    Module, or use a Runtime Shared Library with the class
    included.
    For more on this, see Alex Harui's presentation on Modules
    from Flex 360
    http://blogs.adobe.com/aharui/2007/03/modules.html
    (slides 19, 24-31).
    Not sure what a Singleton is? Check out
    http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postId=262&produc tId=2
    Q: I'm using a Repeater to lay out the right number of
    components on
    the screen for me based on a data source. I'm trying to set
    up the id for
    each component dynamically like this:
    <mx:Repeater id="myRepeater" dataProvider="mySource">
    <mx:Button id="{'myButton'+myRepeater.currentIndex}"
    label="{myRepeater.currentItem.label}" />
    </mx:Repeater>
    When I try to run the file, I get a compiler error
    '{'myButton'+myRepeater.currentIndex}' is not a valid
    identifier.
    I need to be able to reference each of the repeated
    components. How can I
    do this?
    A: If you give the component an ordinary id like this:
    <mx:Button id="myButton"
    label="{myRepeater.currentItem.label}" />
    Flex will create an Array for you called myButton that
    contains a reference
    to each component the repeater created. For more information,
    see
    Referencing Repeated Components here:
    http://livedocs.adobe.com/flex/3/html/help.html?content=repeater_3.html
    Courtesy of Amy's Flex Diary (
    http://flexdiary.blogspot.com).
    The most recent version of this FAQ can always be found at
    http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf

    "Greg Lafrance" <[email protected]> wrote in
    message
    news:gbr2r8$qtv$[email protected]..
    > Is it possible to number the questions? Sometimes in
    your posts you refer
    > to Q3, but they are not numbered.
    Good point :-). I get tired of counting them sometimes. I'll
    try to get
    that done before next week.

  • Flex FAQ

    Q: I want to use an XML data source to dynamically display
    images and
    data in my Flex application. I won't know how many
    images/data points I
    will have at design time. How can I best approach this?
    A: Depending on what you're wanting to do, you can either use
    a
    Repeater with an Image or custom component that contains an
    Image or you can
    use a List based component to display an Image or custom
    component with an
    Image (or SwfLoader, or Loader) in it. The Help is full of
    resources on
    this subject. Here are some places you may want to try:
    Help>Flex Start Page>Creating a Simple RIA
    Help>Help Contents>User Interfaces
    - Using Data Providers and Collections
    - Controls
    - Image
    - SwfLoader
    - Using Data Driven Controls
    - Using Item Renderers and Item Editors
    - Dynamically Repeating Controls and Containers
    Here is an example that might get you running fast if you
    find it easier to
    learn from a working example than from Help files:
    http://examples.adobe.com/flex2/inproduct/sdk/photoviewer/PhotoViewer.html
    Q: I've created a custom itemRenderer component to use in a
    List
    based component (Datagrid, TileList, HorizontalList, etc.).
    When my List
    first displays, everything looks fine, but when I scroll it
    or change the
    dataProvider, some of the itemRenderers show values or
    formatting that
    aren't right. How do I fix this?
    A: List-based components don't draw a renderer for every item
    in the
    dataProvider. Instead, they create enough to display what is
    on screen now,
    plus one or two more waiting in the wings. This means they
    recycle the
    renderers rather than creating new ones when you change
    dataProvider or
    scroll up and down. When you use a creationComplete event to
    set up the
    itemRenderer, that event doesn't happen again when the
    renderer is used for
    a different set of data. The solution to this is to override
    the set data
    protected function that most components have.
    For more information, check out the following resources:
    http://www.adobe.com/devnet/flex/articles/itemrenderers_pt1.html?devcon=f1
    http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.html
    Q: I want to run a function in my main application from
    inside my
    custom component. But when I try to refer to myFunction() in
    that
    component, I get a compile time error "Call to a possibly
    undefined function
    myFunction." How can I fix this?
    A: Your component has its own scope, so it doesn't know
    anything
    about the functions in the main file. You can get around this
    by directly
    referencing the main application scope like this:
    Application.application.myFunction(). However, this makes
    your component
    tightly coupled, which is a quick way of saying that your
    component is only
    usable in an application that has a myFunction() function in
    it. You're
    better off dispatching an event from your component and
    letting the
    application decide how to handle it. For more information,
    check out the
    following resources:
    http://www.adobe.com/devnet/flex/articles/loose_coupling.html
    http://www.adobe.com/devnet/flex/articles/graduating_pt1.html
    Q: I want to decide at runtime what kind of component to add
    to
    display my data. How can I accomplish this?
    A: Use getDefinitionByName and ClassFactory to dynamically
    create
    your class. Just be sure that you actually have at least one
    "hard"
    reference to each class you intend to use, or the class might
    not get
    compiled into your swf. Here's a full write-up of how to do
    that:
    http://www.paulofierro.com/archives/520/
    Q: I need to set a property or add an event listener on a
    component
    that is in a ViewStack/TabNavigator/Accordion. When the
    component is not
    the first child of the Navigator Container, I get a null
    object error
    (#1009). What causes this, and how can I fix it?
    A: By default, the Navigator containers only create the
    children of
    each pane as that pane is viewed. The easy way to fix this is
    to set the
    creationPolicy on the Navigator to "all." However, this will
    cause your
    application to take longer to load. A better way to fix this
    is to wait for
    a later event, such as creationComplete on the component you
    want to access,
    or to use binding to "pull" the data into the component.
    The way I handle it is to call invalidateProperties() on
    change of the
    ViewStack. I then override commitProperties() and call an
    "initializer" for
    each pane. In the body of each initializer function, I check
    to see if the
    selectedItem for the viewStack is the one my initalizer cares
    about. If
    not, I return from the function immediately. Inside that
    initializer
    function, I set properties and add listeners as appropriate.
    Q: When my application is taller than the browser window, I
    get
    scrollbars in the application. I want the browser to do the
    scrolling. How
    can I do this?
    A: In the html-template/index.template.html file change line
    46 (in
    the Flex 3 template) to read <body scroll="auto">
    instead of the default of
    <body scroll="no">.
    Q: I am using URLRequest, HTTPRequest, or HTTPService to
    retrieve
    information from a database on a server. The first time my
    application
    makes a server call, it works fine. But when I call the same
    page again, I
    get the same data, even though I know the data has changed on
    the server.
    Is this a bug?
    A: The browser has cached the response it got from the first
    call
    you made to the page. This means that you need to either
    change how you are
    calling the page so it appears to be a new request, or you
    need to change
    the page itself so that it won't be cached.
    To change how you are calling the page, append a unique value
    to the end of
    the URL. For example, new
    URLRequest('yourPage.asp?param="+(new
    Date()).getTime).
    If you want to change the page itself, you need to change the
    response
    headers. The method for changing the response headers will
    vary from
    language to language. For more on this see:
    http://msdn.microsoft.com/en-us/library/aa923184.aspx
    http://www.sun.com/books/components/Hall_ch7.pdf
    http://www.w3schools.com/php/func_http_header.asp
    http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_g-h_07.html#3989067
    Courtesy of Amy's Flex Diary (
    http://flexdiary.blogspot.com)
    You can always find the most recent version of this document
    here:
    http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf

    "danger42" <[email protected]> wrote in
    message
    news:gamils$eb2$[email protected]..
    > Cool, thanks for posting this, Amy!
    You're welcome :-)

  • Flash, Flex, and the iPad

    While there is no shortage of iPad/Flash discussions on the Adobe and Apple forums, after searching for a couple hours now I have been unable to find the answers to my specific question.  So please forgive me if I missed it somewhere.
    As I understand it, Apple does not support Flash for the mobile and iPad devices.  This is reiterated in a number of Apple forum postings that I just read, as well as Steve Jobs' rant here:
    http://www.apple.com/hotnews/thoughts-on-flash/
    However, I came across this Adobe press release from less than a year ago:
    http://blogs.adobe.com/ukchannelnews/2011/06/20/announcement-mobile-applications-for-andro id-blackberry-iphone-and-ipad/
    Apparently this Flex thing allows me to develop cross-platform mobile applications.  So I do some research on Flex, trying to figure out the difference between Flex and Flash.  I come across Adobe's FAQ here:
    http://www.adobe.com/products/flex/faq.html#flex-flash
    It's not real clear to me, but it sounds like what they are saying is that Flex is simply a programmatic framework around which I can build Flash applications, especially helpful for those more familiar with traditional programming.  If this is the case, based on Adobe's press release above, it sounds like I should be able to use Flash on the iPad via Flex?  What am I missing?  Is there other differences between Flex and Flash?  Or perhaps is it the difference between an application and browser support (like Apple's Safari)?
    Thanks in advance for your patience, and your help.
    3P

    It's easy Pea...
    Flash is a plugin. It runs from withing the browser IE, Firefox, Safari, Opera, etc... It also can be run standalone, via special exe program on Windows platform.
    Although this is less common. Here are all the Flash versions: http://helpx.adobe.com/flash-player/kb/archived-flash-player-versions.html
    AIR is a cross platform runtime, kind of like Java (build once run everywhere). But with AIR it's a bit more tricky. You have to compile your program to each target platform (Desktop, Andriod, BlackBerry, iOS) separately. It's not like with Java where you can indeed run your jar file on lot of platforms. AIR is essentially Flash "on steroids" as it mostly has the same API as Flash and builds on top of it. But AIR not in the pluging form, i.e. you don't need a web browser to run it from.
    Here are the latest AIR runtime: http://get.adobe.com/air/
    and SDK: http://www.adobe.com/devnet/air/air-sdk-download.html
    You will need AIR SDK to build AIR applications and it has to be overlayed on top of Flex SDK which you can find here:
    Flex SDK: http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4.6
    Now Flex SDK is essentially a component framework. You will need a button in your application, or a Video component, right? So that is what Flex provides for you free of charge.
    Obviously this sound simple but Flex is much more then that and here is your
    Flex documentation: http://www.adobe.com/devnet/flex/documentation.html
    So, Flex is a component framework which lets you build applications which target either Flash or AIR as executable runtime. For Flash it is called Web application and it runs from withing browser or standalone Flash player. For AIR it is called Desktop or Mobile project and it runs from withing AIR runtime which has to be installed on your device or bundled with your application.
    Now, speaking of Steve rants, yes, they wanted to kill Flash on their platform, there was even a guy there who was responsible for that result (I forgot his name but you can google), although Adobe never admited that and played it nice with Apple. Why they wanted to kill most expressive and complete vector and video engine on the web (Flash)? It's simple! This is beacase they wanted to play on their nice and cozy iOS/iPad/iPod playground alone! Because they want to control the delivery of the content from publisher to consumer. they want to stick their proprietory products and specifications in between and skim the money! That is why they don't need Flash in the browser. Flash allows people to publish and consume an impressive content without charging a dime! That includes H264 video among other things. And that is what Apple doesn't want to see.
    Good luck with Flex and everything else,
    SdS

  • FlexBuilder license for Mac and Windows

    I just got a new MacBook Pro and I'd like to be able to start
    developing on it using FlexBuilder for the Mac. I've been doing
    some research, and the Windows license is not compatible with the
    Mac version. I did find some info on the
    Adobe
    Flex FAQ. Does this mean that if I "trade-in" my license that
    it will no longer be valid for Windows? Or am I trading my
    Windows-only license for one that works on both systems? Any help
    would be appreciated. Thanks.
    Evan

    PSE9 is multi-platform so you can run both side by side, subject to a maximum of two installations.
    If you ever need to transfer PSE9 to another computer you must first deactivate the Editor by going to Help >Deactivate (it will be grayed out in trial versions)
     

  • How to get id of button in repeater component

    I want to get or set an id of button in repeater component:
    <mx:Repeater id="repeaterData"
    dataProvider="{xmldata.lastResult.names.name}">
    <mx:Button label="{repeaterData.currentItem}"
    id="{repeaterData.currentIndex}"/>
    </mx:Repeater>
    id="{repeaterData.currentIndex}" does not work because
    currentIndex returns int value.
    Please, is there a possible way to get id?

    "Amy Blankenship"
    <amySpamFilter@magnolia_pleaseNOspam_multimedia.com> wrote
    in message news:gb0mh3$rvg$[email protected]..
    >
    > "Borooooon" <[email protected]> wrote
    in message
    > news:gb0lqj$r5n$[email protected]..
    >>I want to get or set an id of button in repeater
    component:
    >>
    >> <mx:Repeater id="repeaterData"
    >> dataProvider="{xmldata.lastResult.names.name}">
    >> <mx:Button label="{repeaterData.currentItem}"
    >> id="{repeaterData.currentIndex}"/>
    >> </mx:Repeater>
    >>
    >>
    >> id="{repeaterData.currentIndex}" does not work
    because currentIndex
    >> returns
    >> int value.
    >>
    >> Please, is there a possible way to get id?
    >>
    >
    > Q: I'm using a Repeater to lay out the right number of
    components
    > on the screen for me based on a data source. I'm trying
    to set up the id
    > for each component dynamically like this:
    >
    > <mx:Repeater id="myRepeater"
    dataProvider="mySource">
    > <mx:Button id="{'myButton'+myRepeater.currentIndex}"
    > label="{myRepeater.currentItem.label}" />
    > </mx:Repeater>
    >
    > When I try to run the file, I get a compiler error
    > '{'myButton'+myRepeater.currentIndex}' is not a valid
    identifier.
    >
    > I need to be able to reference each of the repeated
    components. How can I
    > do this?
    >
    >
    >
    > A: If you give the component an ordinary id like this:
    > <mx:Button id="myButton"
    label="{myRepeater.currentItem.label}" />
    > Flex will create an Array for you called myButton that
    contains a
    > reference to each component the repeater created. For
    more information,
    > see Referencing Created Components here:
    >
    http://livedocs.adobe.com/flex/3/html/help.html?content=repeater_3.html
    >
    > From Amy's Flex FAQ. This FAQ gets posted weekly, and
    the latest version
    > of this FAQ is always available here (it just so happens
    this Q was added
    > this week, so it was not posted this Modnay):
    >
    >
    http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf
    Correction: that should be "Referencing Repeated Components".
    HTH;
    Amy

  • Flex4.6SDKとプロジェクターの再配布契約?

    ここに「無償のFlex SDKはアプリケーションと共に再配布可能ですが、再配布契約に署名する必要があります。」と書かれています。
    http://www.adobe.com/jp/products/flex/faq.html
    この署名はどうやってすればいいのでしょうか?
    また「Flash Player 11.3 プロジェクターをダウンロード (EXE, 8.14MB)」も再配布してOKなのでしょうか?
    http://www.adobe.com/jp/support/flashplayer/downloads.html

  • Flex launching error on Windows Vista (Windows No Disk - exception ....

    Hi guys, I downloaded the flex builder from adobe, I install the application but when I'am trying to lauch my application I get the error
    Windows - No Disk ... exception processing message 0xc0000013
    I reinstall adobe flash and my java runtime, I still get the same error, I can create an application but I can't execute it, that's sucks!
    I check on adobe in the faq for flex, they say that error occurs when you install the application from a DVD, that's not true, I downloaded from their site....
    thanks
    Alex

    Ok guys, I found it myself, very strange!
    I just change my default workspace to another one, I got the same problem then I just put back the default workspace and the problem was resolved!
    Alex

  • Wish To Use Flex 2 For My University Project

    Dear All
    I am a mature student studying a Computer Science Degree in
    the UK .
    For my final year project, I am creating a Stock Market
    Simulation with a Database back end (e.g. SQLite ?) and some kind
    of front end, both to be run a a stand-alone machine.
    I have a 28 weeks to design, build and run it for my
    supervisors. I would like to push myself academically by building
    the software using Flex 2, for the GUI and even to carry out any
    calculations or processing needed for the simulation to operate
    correctly.
    My questions are
    1) Is it possible to create the simulation as I can find no
    definitive way to connect Flex 2 directly to a database back end in
    a similar way to ADO.net?
    2) If it is possible which book do you recommend to get the
    best and quickest results out of Flex 2?
    Thanks In Advance
    Steven

    You are correct, Flex does not natively connect to any
    database. Further, security restrictions on both the browser and
    the Flash Player prevent access to *any* client resources, such as
    the filesystem.
    So if you use standard Flex, you will need some back-end web
    technology. This can be almost any platform/language you choose.
    Now, the newest, coolest thing in the Adobe world is AIR. AIR
    applications can be written using Flex, Flash, HTML and javascript,
    and have full access to client asseets. AIR is essentially an
    internet delivered desktop application.
    AIR has SQLLite database built-in.
    AIR is currently in public Beta. I do not know what will be
    available as far as non-commercial or educational licensing when it
    is realeased.
    I don't have a book to recommend, but here is a partial list
    of on-line resources:
    Tracy
    Flex 2.x Resources
    Flex sites/blogs:
    Adobe:
    http://www.adobe.com/devnet/flex/
    DEVNET - start here!
    http://www.adobe.com/products/flex/productinfo/faq/
    http://www.adobe.com/cfusion/communityengine/index.cfm?event=homepage&productId=2
    http://blogs.adobe.com/
    http://weblogs.macromedia.com/mxna/
    http://labs.adobe.com/
    http://labs.adobe.com/community/
    http://www.adobe.com/cfusion/exchange/index.cfm#loc=en_us&view=sn610&viewName=Adobe%20Exch ange&avm=1
    http://blogs.adobe.com/flexdoc/
    Other:
    http://www.searchcoders.com/flex/
    http://www.flexination.info
    http://flexibleexperiments.wordpress.com/2007/03/14/flex-20-primitive-explorer/
    http://www.scalenine.com
    http://www.flexcursion.com
    http://www.theflexshow.com
    http://www.JeffryHouser.com
    http://blog.digitalbackcountry.com/
    http://code.google.com/p/flexlib/
    http://flexbox.mrinalwadhwa.com/
    http://dougmccune.com/blog/
    http://www.cflex.net/
    http://www.quietlyscheming.com/blog/
    http://www.everythingflex.com
    http://www.waldosmeets.com/
    http://www.jessewarden.com/
    http://www.cbetta.com/blog/
    http://www.cynergytv.com/
    http://www.flexdaddy.info/
    http://www.richinternet.de/blog/
    http://www.brightworks.com/technology/overview.html
    http://www.crossdomainxml.org/
    http://flexsearch.org/
    http://labs.flexcoders.nl/
    Flex style Explorer:
    http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html
    Documentation:
    http://www.adobe.com/support/documentation/en/flex/
    http://livedocs.macromedia.com/flex/2/
    http://www.adobe.com/cfusion/knowledgebase/index.cfm
    Lists:
    http://www.adobe.com/cfusion/webforums/forum/index.cfm?forumid=60
    http://groups.yahoo.com/group/flexcoders/
    http://groups.yahoo.com/group/flexcomponents/
    Bugs/enhancement requests:
    http://www.adobe.com/go/wish

  • Flex Photoshop Panel won't read local XML file

    I've created a panel for Photoshop which reads an XML file to populate some controls. When run from Flash Builder 4 through the web browser it works just fine, but when run from within Photoshop the XML file is not being read. Uploading the XML file to a web site and referencing it via URL in the panel works sucessfully in both the web browser and from within Photoshop, suggesting some type of security issue.
    The Panel Developer's Guide FAQ talks about giving the Adobe Flash Player trust permissions by creating .cfg files that reference the folder the panel is running from.
    I have created these .cfg files and placed them in both:
    /Library/Application Support/Macromedia/FlashPlayerTrust
    and also in:
    USER/Library/Preferences/Macromedia/Flash Player/#Security/FlashPlayerTrust
    but the problem remains.
    Environment:
    Mac OSX 10.6
    Photoshop CS5
    Flex Builder 4
    Flex SDK 3.5
    Any help/suggestions appreciated.

    I had the same issue but I got it to work. I figure I update this thread in case somebody is trying to do the same. I didn't need to use javascript in order to load the XML. Just create the XML object:
    <mx:XML id="myXML" source="data.xml" format="e4x"/>
    Remeber to use e4x. The in the AS3 code I bound it to a var:
    private var _XML               :XML;
    _XML = myXML;
    then....
    private var _itemsXMLList      :XMLList;
    _itemsXMLList = _XML.node;
    Don't forget to add "-use-network=false" to the properties > Flex compiler > additional compiler arguments.
    Hope that helps.

  • Flash Builder 4 with Flex SDK 4.0 for Intel App Up

    There is some misinformation on Intel AppUp and the Melrose FAQ about being able to publish with Flash Builder 4.
    Intel App Up Program Submission
    According to http://appdeveloper.intel.com/en-us/article/adobe-air-packaging-guide-atom-developer-progr am-submissions
    "AIR app must be built using Flex Builder 3 with Flex SDK 3.5a.  Currently Flex Builder 4 with Flex SDK 4 is not supported."
    Melrose FAQ
    According to http://learn.adobe.com/wiki/display/melrose/Melrose+Developer+FAQ
    "Q: Are there system requirements for enabling try and buy in AIR apps using Melrose?
    A: You must have Adobe Flex Builder 3 or greater and Adobe AIR 1.5.3 or greater."
    Is the Intel App Up statement correct?  If it is, could I get an explanation why?  I've been waiting for the last 3 months waiting for the Melrose SDK to deploy to Intel App Up and now I can't even submit my application.
    Thanks.

    The current version of Melrose supports Flex 3.5 SDK for AIR applications running on AIR 1.5.3 runtime or higher. You can use Adobe Flex Builder 3 with Flex 3.5 SDK or Adobe Flash Builder 4 with Flex 3.5 SDK.
    Support for Flex 4.1 SDK for AIR applications running on AIR 2.0 runtime should be available within a few weeks. Please note that we will not be able to support Flex 4.0 SDK because of certain technical challenges.

  • Flex View purchases with bugs and no apparent support

    I'm trying to get help with some of the flex view movies we've bought recently. The first issue that came up was a movie that wouldn't start where we left off, but always reset to the beginning. All of the other flex view movies we have will start where you stop it.
    Then we got a movie where the audio was out of sync with the video, but only in the HD version. 
    Then a couple days ago, the SD version of a movie just disappeared completely, but it was there when the movie was purchased.
    We tried chat help, but the person didn't have a clue beyond the scripted stuff, and tech help called when we were out, and the phone support says that Flex View support is online only. (But if you go to the page they suggest, there's just a basic FAQ page for Flex View, and no support link at all.
    It seems like these are individual bugs in the underlying programming, or maybe it's a fault with the set top box. In any case, looking for solutions.

    Your issue has been escalated to a Verizon agent. Before the agent can begin assisting you, they will need to collect further information from you.Please go to your profile page for the forum, and look in the middle, right at the top where you will find an area titled "My Support Cases". You can reach your profile page by clicking on your name beside your post, or at the top left of this page underneath the title of the board.
    Under “My Support Cases” you will find a link to the private board where you and the agent may exchange information. This should be checked on a frequent basis as the agent may be waiting for information from you before they can proceed with any actions. To ensure you know when they have responded to you, at the top of your support case there is a drop down menu for support case options. Open that and choose "subscribe".
    Please keep all correspondence regarding your issue in the private support portal.

  • Flex Resources

    Flex 2.x Resources
    Flex sites/blogs:
    Adobe:
    http://www.adobe.com/devnet/flex/
    DEVNET - start here!
    http://www.adobe.com/products/flex/productinfo/faq/
    http://www.adobe.com/cfusion/communityengine/index.cfm?event=homepage&productId=2
    http://blogs.adobe.com/
    http://weblogs.macromedia.com/mxna/
    http://labs.adobe.com/
    http://labs.adobe.com/community/
    http://www.adobe.com/cfusion/exchange/index.cfm#loc=en_us&view=sn610&viewName=Adobe%20Exch ange&avm=1
    http://blogs.adobe.com/flexdoc/
    Other:
    http://code.google.com/p/flexlib/
    http://flexbox.mrinalwadhwa.com/
    http://dougmccune.com/blog/
    http://www.cflex.net/
    http://www.quietlyscheming.com/blog/
    http://www.everythingflex.com
    http://www.waldosmeets.com/
    http://www.jessewarden.com/
    http://www.cbetta.com/blog/
    http://www.cynergytv.com/
    http://www.flexdaddy.info/
    http://www.richinternet.de/blog/
    http://www.brightworks.com/technology/overview.html
    http://www.crossdomainxml.org/
    http://flexsearch.org/
    http://labs.flexcoders.nl/
    Flex style Explorer:
    http://examples.adobe.com/flex2/consulting/styleexplorer/Flex2StyleExplorer.html
    Documentation:
    http://www.adobe.com/support/documentation/en/flex/
    http://livedocs.macromedia.com/flex/2/
    http://www.adobe.com/cfusion/knowledgebase/index.cfm
    Lists:
    http://www.adobe.com/cfusion/webforums/forum/index.cfm?forumid=60
    http://groups.yahoo.com/group/flexcoders/
    http://groups.yahoo.com/group/flexcomponents/
    Bugs/enhancement requests:
    http://www.adobe.com/go/wish

    "Create a Login System with Flex and PHP"
    http://www.vipercreations.com/tutorials/Adobe%20Flex/tutorials/Adobe%20Flex/28.html
    "Flex MP3 Player"
    http://www.vipercreations.com/tutorials/Adobe%20Flex/tutorials/Adobe%20Flex/29.html

  • Flex mobile app for Kindle Fire?  is it possible?

    Hi, I read this in the kindle amazon developer faq, is it possible to develop Flex 4.6 mobile apps for Kindle fire?  even thought it doesn't show up in the
    list of devices?
    any Gotcha's I need to look out for?
    Is Adobe AIR pre-installed on Kindle Fire?
    Yes, developers can publish Adobe AIR 3 applications for the Kindle Fire by packaging them as ‘captive runtime’ applications. However, these captive runtime applications will not support on-device debugging.
    thanks,

    More info here: http://blogs.adobe.com/flashplatform/2011/11/amazon%E2%80%99s-kindle-fire-lights-up-app-cr eativity.html

  • Flex Resources list

    Flex sites/blogs:
    http://www.macromedia.com/software/flex/productinfo/faq/
    http://www.cflex.net/
    http://www.flexauthority.com/
    http://weblogs.macromedia.com/mxna/
    http://www.flexdaddy.info/
    http://www.clinttredway.com/blog/
    http://www.richinternet.de/blog/
    http://www.everythingflex.com
    http://labs.adobe.com/ (2.0 Beta
    specific)
    Flex style Explorer:
    http://www.markme.com/mc/archives/FlexStyleExplorer.html
    Documentation:
    http://livedocs.macromedia.com/flex/15/asdocs_en/index.html
    http://www.macromedia.com/go/flex15_java_livedocs
    http://www.macromedia.com/cfusion/knowledgebase/index.cfm
    Lists:
    http://www.macromedia.com/cfusion/webforums/forum/categories.cfm?catid=346
    http://groups.yahoo.com/group/flexcoders/
    Bugs/enhancement requests:
    http://www.macromedia.com/support/email/wishform/

    "Create a Login System with Flex and PHP"
    http://www.vipercreations.com/tutorials/Adobe%20Flex/tutorials/Adobe%20Flex/28.html
    "Flex MP3 Player"
    http://www.vipercreations.com/tutorials/Adobe%20Flex/tutorials/Adobe%20Flex/29.html

Maybe you are looking for

  • How to use java classes of DC1 in DC2

    When I was trying to use a java-class from another DC, I stumbled into an error I didn't expect: java.lang.NoClassDefFoundError: com/company/application/utils This is what I did to get this far: 1. Created an empty Web Dynpro DC (DC1), to be used as

  • How do I find my model #?

    I can't find the actual model # for my Macbook Pro 15"  (early 2008) .  I have Googled the question and it led me here with an archived thread.  It said to check the hardware so I did and instead of getting "Mxxxxxxx"  I got ..........MacBookPro4,1. 

  • Mini DV Camcorder

    Hello, I have an old analog camcorder, and am ready to purchase a mini DV camcorder. I am interested in transferring to i Movie and then edit and burn DVD's. I have been told that the Canon ZR series is excellent for compatibility with i Movie. Does

  • How do I restore the function of the awesome bar? I no longer get the awesome bar function when I want to open a new tab.

    I do not know how to restore the awesome bar function. All I get now is the AVG Search window when I try to open a new tab.

  • Validating forms in acrobat

    Hi so I'm a little rusty with my javascript and I'm trying to get a button to send an email if the following conditions are met: if radiobutton "A" is checked then    field "equiv" is  null/empty      throw up message   field "equiv" is NOT null/empt