Flex component with HTTPService

OK, so I'm a Flex newbie so forgive me if I'm missing the
obvious.
I created a Flex component that references a HTTPService to
populate a DataGrid with data. As a standalone .mxml file, it works
fine. When I place it into a Flex application where the component
is referenced, the grid shows up, but I get no data. I've tried
referencing the HTTPService in the application itself, no luck.
I've tried referencing the service in a creationComplete function
on the application page, no luck. I'm sure there's just some little
snippet that allows the service to run in the component...the
component looks fine when I run it, I just don't get any
data.

Thanks--actually I figured it out--I was overlooking
something obvious. However, I have a new issue that I would
genuinely appreciate assistance on.
I am building a Flex app where I have 4 custom components.
Each component calls a web service to pull data in. I am using an
MXML application file to bring in each component with an additional
component where the user can select a date range and submit that
range to the various web services. So what I need to do is make the
date fields public variables and then append those variables to the
web service calls as name/value pairs.
No matter what I do, I cannot seem to get the other
components to recognize the date variables as public vars. I've
written them out as variables as part of a public function, tried
to make them bindable, nothing works...
So for example, this is a simplified version of my date range
component (using only one date), assuming I've named the component
datebar.mxml:
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
width="100%">
<mx:Script>
<![CDATA[
public function clickHandler():void
var sdate:String = start_date.text;
]]>
</mx:Script>
<mx:ApplicationControlBar width="100%" height="30">
<mx:DateField id="start_date" />
<mx:Button label="refresh" click="clickHandler();" />
</mx:Label>
</mx:ApplicationControlBar>
</mx:Canvas>
Then in another component using a web service, I place:
<mx:HTTPService
id="os_downloads"
url="
http://publishingdynamics.com/service.asmx?start_date={datebar.sdate}"
useProxy="false">
Where {datebar.sdate} is the variable I'm referencing to get
a value from. I get a constant error doing this. I've tried several
varitions. I can successfully create a public variable in the same
manner not using a form value and get the component to display that
variable using the same syntax, where I reference the source
component like: {datebar.myvar} so I know the namespace referene
works.
Admittedly I'm not a very good ActionScripter...

Similar Messages

  • Update either html site or another flex component with Data from ESRI Flexviewer

    Hello all,
    What I have is a basic flex mapping application that enables a user to update a feature (that is referenced to a ArcGIS server SDE database) by clicking on a the map.  Once the feature is added to database it updates a total feature count label.text.  What I need to do is somehow reflect this same number in a dreamweaver site through html or create another flex component that can be added to dreamweaver html as a .swf.  Any comments or suggestions would be greatly appreciated!!
    Thank you!

    Hello all,
    What I have is a basic flex mapping application that enables a user to update a feature (that is referenced to a ArcGIS server SDE database) by clicking on a the map.  Once the feature is added to database it updates a total feature count label.text.  What I need to do is somehow reflect this same number in a dreamweaver site through html or create another flex component that can be added to dreamweaver html as a .swf.  Any comments or suggestions would be greatly appreciated!!
    Thank you!

  • Flex Component with BAD Flicker

    I have been making Flex Components in Flash with no problems, but I suddenly have one that I can't figure out.  I am making a set of buttons that expand about 30% in the over and down states.  So they are about 55x55 pixels in the up state, and 74x74 pixels in the over and down states.  Because I did not want objects moving around due to the resizing of the buttons, I created a boundingBox instance that is 55x55 pixels for each of these components.  My understanding is that with this boundingBox instance, that the button can resize to the 74 x74 pixel size without causing other elements to shift their positions.  So what happens is that if you mouse over the button, it resizes as it should, but if you mouse over a part of the boundingBox instance that does not include any of the button on it, it just starts flickering between the up and over states at a very fast rate.  Any thoughts as to what I am missing?
    Thanks!
    Here is my timeline:

    I thought about that.  Does a boundingBox have to encompass your button at it's full size?  My understanding is that you could blow something up larger than your original component size, and stop it from reshifting other elements by including a bounding box.  But then I got to thinking that a button is an interactive element that depends on mouseovers and having an element shift outside of the bounds of the box could cause unpredictable behavior.  Is this correct?  If I want a button that behaves predictably, do I need to keep it inside of the boundingBox?
    Thanks

  • A Flex component with transparent holes inside

    Hi there,
    Does anyone have any idea on how could I achieve something like this: I need to create a component that should be blur and semi-transparent with one or more rectangular transparent holes inside.
    Is it possible through the graphics API to cut holes in components?
    Thanks!

    Whereever there are no drawn pixels, you will have a hole.  Play around with the .mask property.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • JAVA 7u4 with Flex component.

    While Removing Tabbed Pane having Flex Component , on java 7u4 throws following exception.
    Note : it works fine with JAVA 6u32
    .... FlexServiceThread exited...
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at sun.java2d.ScreenUpdateManager.createScreenSurface(Unknown Source)
    at sun.java2d.d3d.D3DScreenUpdateManager.createScreenSurface(Unknown Source)
    at sun.awt.windows.WComponentPeer.createScreenSurface(Unknown Source)
    at sun.awt.windows.WComponentPeer.replaceSurfaceData(Unknown Source)
    at sun.awt.windows.WComponentPeer.replaceSurfaceData(Unknown Source)
    at sun.awt.windows.WComponentPeer.updateGraphicsData(Unknown Source)
    at java.awt.Component.updateGraphicsData(Unknown Source)
    at java.awt.Container.updateGraphicsData(Unknown Source)
    at java.awt.Container.updateGraphicsData(Unknown Source)
    at java.awt.Component.setGraphicsConfiguration(Unknown Source)
    at java.awt.Container.remove(Unknown Source)
    at javax.swing.JTabbedPane.removeTabAt(Unknown Source)
    at testing.test.myTabbedPane.*removeTabAt*(myTabbedPane.java:42)
    Please Help ?

    That's really weird!
    After digging around, reinstalling Flash CS3 again and doing
    multiple tests, I finally found the source of the problem:
    Two .swc files residing in the same folder where I was saving
    my tests files were avoiding the Flash compiler to successfully
    create new .swc files!? I cannot understand how this can be
    possible. As soon as I choosed a new folder for saving the test
    files, I could link to the .swc and access the component from Flex.
    Also as soon as I moved out the two culprid files I could again
    save in the previous folder...
    Does anyone has an idea how this can happen?
    For those interested in the case, you can download the 2
    culprid files
    here
    Best regards,

  • Flex Component Kit publish SWC not working with Flex 4

    I started this thread in the Flex forum and they are telling me that the SWC's I'm creating with Flash Professional CS5 and Flex Component Kit 2.0.0 are not linked with FCC for Flex 4.
    http://forums.adobe.com/thread/777789?tstart=0
    That means the problem is with my Flash Professional CS5 setup instead of my Flash Builder 4 setup. Can someone here help me fix my Flash setup? As I described in that thread I can't find anything wrong with my setup but apparenty I'm generating SWC's for the wrong version of Flex.
    Thanks,
    Ryan

    I unzipped my SWC and verified what Flex harUI in the Flex forum told me. My SWC seems to be linked with FCC 1 not FCC 2. I don't understand how this is possible. I am using Flash Professional CS5 and only FCC 2.0.0 is installed, FCC 1 is not even installed. Here are the contents of catalog.xml in my SWC file. How do I get Flash CS5 to generate an SWC for Flex 4?
    <?xml version="1.0" encoding ="utf-8"?>
    <swc xmlns="http://www.adobe.com/flash/swccatalog/9">
      <versions>
        <swc version="1.2" />
        <flash version="11.0" build="d485" platform="WIN" />
      </versions>
      <features>
        <feature-script-deps />
        <feature-files />
      </features>
      <libraries>
        <library path="library.swf">
          <script name="mx/core/mx_internal" mod="1146523398000" >
            <def id="mx.core:mx_internal" />
            <dep id="AS3" type="n" />
          </script>
          <script name="mx/core/IStateClient" mod="1185825125000" >
            <def id="mx.core:IStateClient" />
            <dep id="AS3" type="n" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/automation/IAutomationObject" mod="1182369703000" >
            <def id="mx.automation:IAutomationObject" />
            <dep id="flash.events:Event" type="s" />
            <dep id="AS3" type="n" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/core/IConstraintClient" mod="1188589376000" >
            <def id="mx.core:IConstraintClient" />
            <dep id="AS3" type="n" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/managers/IFocusManagerComponent" mod="1182369904000" >
            <def id="mx.managers:IFocusManagerComponent" />
            <dep id="AS3" type="n" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/core/IInvalidating" mod="1150233077000" >
            <def id="mx.core:IInvalidating" />
            <dep id="AS3" type="n" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/core/IChildList" mod="1149255249000" >
            <def id="mx.core:IChildList" />
            <dep id="flash.display:DisplayObject" type="s" />
            <dep id="flash.geom:Point" type="s" />
            <dep id="AS3" type="n" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/core/IFlexModuleFactory" mod="1185825071000" >
            <def id="mx.core:IFlexModuleFactory" />
            <dep id="AS3" type="n" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/core/ComponentDescriptor" mod="1149112409000" >
            <def id="mx.core:ComponentDescriptor" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/core/DragSource" mod="1149694704000" >
            <def id="mx.core:DragSource" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/events/PropertyChangeEventKind" mod="1149796273000" >
            <def id="mx.events:PropertyChangeEventKind" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/managers/IFocusManager" mod="1191005122000" >
            <def id="mx.managers:IFocusManager" />
            <dep id="mx.managers:IFocusManagerComponent" type="s" />
            <dep id="flash.display:InteractiveObject" type="s" />
            <dep id="mx.core:IUIComponent" type="s" />
            <dep id="flash.display:Sprite" type="s" />
            <dep id="AS3" type="n" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/managers/IFocusManagerContainer" mod="1150207146000" >
            <def id="mx.managers:IFocusManagerContainer" />
            <dep id="mx.managers:ISystemManager" type="s" />
            <dep id="flash.display:DisplayObject" type="s" />
            <dep id="mx.managers:IFocusManager" type="s" />
            <dep id="AS3" type="n" />
            <dep id="flash.events:IEventDispatcher" type="i" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/core/IFlexDisplayObject" mod="1149200749000" >
            <def id="mx.core:IFlexDisplayObject" />
            <dep id="flash.display:DisplayObjectContainer" type="s" />
            <dep id="flash.display:DisplayObject" type="s" />
            <dep id="AS3" type="n" />
            <dep id="flash.events:IEventDispatcher" type="i" />
            <dep id="flash.display:IBitmapDrawable" type="i" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/events/ResizeEvent" mod="1150087635000" >
            <def id="mx.events:ResizeEvent" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="flash.events:Event" type="i" />
          </script>
          <script name="mx/events/MoveEvent" mod="1150087695000" >
            <def id="mx.events:MoveEvent" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="flash.events:Event" type="i" />
          </script>
          <script name="mx/events/StateChangeEvent" mod="1149206364000" >
            <def id="mx.events:StateChangeEvent" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="flash.events:Event" type="i" />
          </script>
          <script name="mx/events/FlexEvent" mod="1182369867000" >
            <def id="mx.events:FlexEvent" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="flash.events:Event" type="i" />
          </script>
          <script name="mx/events/ToolTipEvent" mod="1150132131000" >
            <def id="mx.events:ToolTipEvent" />
            <dep id="mx.core:IToolTip" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="flash.events:Event" type="i" />
          </script>
          <script name="mx/events/PropertyChangeEvent" mod="1149879771000" >
            <def id="mx.events:PropertyChangeEvent" />
            <dep id="mx.events:PropertyChangeEventKind" type="e" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="flash.events:Event" type="i" />
          </script>
          <script name="mx/managers/ISystemManager" mod="1182369908000" >
            <def id="mx.managers:ISystemManager" />
            <dep id="mx.managers:IFocusManagerContainer" type="s" />
            <dep id="flash.text:TextFormat" type="s" />
            <dep id="flash.geom:Rectangle" type="s" />
            <dep id="flash.display:LoaderInfo" type="s" />
            <dep id="flash.display:Stage" type="s" />
            <dep id="flash.display:Sprite" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:IFlexModuleFactory" type="i" />
            <dep id="flash.events:IEventDispatcher" type="i" />
            <dep id="mx.core:IChildList" type="i" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/core/UIComponentDescriptor" mod="1149784081000" >
            <def id="mx.core:UIComponentDescriptor" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="mx.core:ComponentDescriptor" type="i" />
          </script>
          <script name="mx/managers/IToolTipManagerClient" mod="1146518802000" >
            <def id="mx.managers:IToolTipManagerClient" />
            <dep id="AS3" type="n" />
            <dep id="Object" type="i" />
            <dep id="mx.core:IFlexDisplayObject" type="i" />
          </script>
          <script name="mx/core/IUIComponent" mod="1188511099000" >
            <def id="mx.core:IUIComponent" />
            <dep id="mx.managers:ISystemManager" type="s" />
            <dep id="flash.display:DisplayObjectContainer" type="s" />
            <dep id="flash.geom:Rectangle" type="s" />
            <dep id="flash.display:DisplayObject" type="s" />
            <dep id="flash.display:Sprite" type="s" />
            <dep id="AS3" type="n" />
            <dep id="Object" type="i" />
            <dep id="mx.core:IFlexDisplayObject" type="i" />
          </script>
          <script name="mx/events/DragEvent" mod="1182369866000" >
            <def id="mx.events:DragEvent" />
            <dep id="flash.events:Event" type="s" />
            <dep id="mx.core:DragSource" type="s" />
            <dep id="mx.core:IUIComponent" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="flash.events:MouseEvent" type="i" />
          </script>
          <script name="mx/events/FlexMouseEvent" mod="1148318971000" >
            <def id="mx.events:FlexMouseEvent" />
            <dep id="flash.events:Event" type="s" />
            <dep id="flash.display:InteractiveObject" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="flash.events:MouseEvent" type="i" />
          </script>
          <script name="mx/core/IDeferredInstantiationUIComponent" mod="1149722730000" >
            <def id="mx.core:IDeferredInstantiationUIComponent" />
            <dep id="mx.core:UIComponentDescriptor" type="s" />
            <dep id="mx.core:IFlexDisplayObject" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:IUIComponent" type="i" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/core/IToolTip" mod="1149203558000" >
            <def id="mx.core:IToolTip" />
            <dep id="flash.geom:Rectangle" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:IUIComponent" type="i" />
            <dep id="Object" type="i" />
          </script>
          <script name="mx/flash/UIMovieClip" mod="1192596260000" >
            <def id="mx.flash:UIMovieClip" />
            <dep id="flash.ui:Keyboard" type="e" />
            <dep id="flash.events:Event" type="e" />
            <dep id="flash.display:DisplayObjectContainer" type="e" />
            <dep id="mx.events:FlexMouseEvent" type="e" />
            <dep id="Math" type="e" />
            <dep id="mx.core:IInvalidating" type="e" />
            <dep id="mx.events:ToolTipEvent" type="e" />
            <dep id="flash.display:InteractiveObject" type="e" />
            <dep id="mx.core:IUIComponent" type="e" />
            <dep id="flash.system:ApplicationDomain" type="e" />
            <dep id="mx.events:StateChangeEvent" type="e" />
            <dep id="mx.managers:ISystemManager" type="e" />
            <dep id="mx.events:ResizeEvent" type="e" />
            <dep id="mx.events:MoveEvent" type="e" />
            <dep id="flash.events:FocusEvent" type="e" />
            <dep id="mx.events:FlexEvent" type="e" />
            <dep id="mx.events:PropertyChangeEvent" type="e" />
            <dep id="mx.events:DragEvent" type="e" />
            <dep id="flash.events:Event" type="s" />
            <dep id="flash.display:DisplayObjectContainer" type="s" />
            <dep id="flash.geom:Rectangle" type="s" />
            <dep id="mx.core:UIComponentDescriptor" type="s" />
            <dep id="flash.display:InteractiveObject" type="s" />
            <dep id="mx.core:IUIComponent" type="s" />
            <dep id="mx.core:IFlexDisplayObject" type="s" />
            <dep id="mx.events:StateChangeEvent" type="s" />
            <dep id="mx.managers:ISystemManager" type="s" />
            <dep id="mx.events:ResizeEvent" type="s" />
            <dep id="mx.events:MoveEvent" type="s" />
            <dep id="flash.display:DisplayObject" type="s" />
            <dep id="flash.events:FocusEvent" type="s" />
            <dep id="flash.display:Sprite" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="mx.managers:IFocusManagerComponent" type="i" />
            <dep id="mx.core:IDeferredInstantiationUIComponent" type="i" />
            <dep id="flash.events:IEventDispatcher" type="i" />
            <dep id="mx.managers:IToolTipManagerClient" type="i" />
            <dep id="mx.core:IConstraintClient" type="i" />
            <dep id="flash.display:MovieClip" type="i" />
            <dep id="mx.automation:IAutomationObject" type="i" />
            <dep id="mx.core:IStateClient" type="i" />
          </script>
          <script name="BallComponent" mod="1295554958134" >
            <def id="BallComponent" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="BlueBall" mod="1295554958134" >
            <def id="BlueBall" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="Cam180Button" mod="1295554958134" >
            <def id="Cam180Button" />
            <dep id="flash.events:Event" type="e" />
            <dep id="flash.events:MouseEvent" type="e" />
            <dep id="CamButton" type="e" />
            <dep id="flash.display:MovieClip" type="e" />
            <dep id="flash.events:MouseEvent" type="s" />
            <dep id="flash.display:MovieClip" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="Cam360Button" mod="1295554958134" >
            <def id="Cam360Button" />
            <dep id="flash.events:Event" type="e" />
            <dep id="flash.events:MouseEvent" type="e" />
            <dep id="CamButton" type="e" />
            <dep id="flash.display:MovieClip" type="e" />
            <dep id="flash.events:MouseEvent" type="s" />
            <dep id="flash.display:MovieClip" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="CamButton" mod="1295554958134" >
            <def id="CamButton" />
            <dep id="flash.events:Event" type="e" />
            <dep id="flash.events:MouseEvent" type="e" />
            <dep id="flash.display:MovieClip" type="e" />
            <dep id="flash.events:MouseEvent" type="s" />
            <dep id="flash.display:MovieClip" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="ComponentButtons" mod="1295554958134" >
            <def id="ComponentButtons" />
            <dep id="flash.display:MovieClip" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="DeckButtons" mod="1295554958134" >
            <def id="DeckButtons" />
            <dep id="flash.events:Event" type="e" />
            <dep id="flash.events:MouseEvent" type="e" />
            <dep id="flash.events:MouseEvent" type="s" />
            <dep id="flash.display:MovieClip" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="DoorTest" mod="1295554958134" >
            <def id="DoorTest" />
            <dep id="flash.events:Event" type="e" />
            <dep id="flash.events:MouseEvent" type="e" />
            <dep id="flash.events:MouseEvent" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="LightButton" mod="1295554958134" >
            <def id="LightButton" />
            <dep id="flash.events:Event" type="e" />
            <dep id="flash.events:MouseEvent" type="e" />
            <dep id="flash.events:MouseEvent" type="s" />
            <dep id="flash.display:MovieClip" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="OrientationNavigator" mod="1295554958134" >
            <def id="OrientationNavigator" />
            <dep id="flash.events:Event" type="e" />
            <dep id="flash.events:MouseEvent" type="e" />
            <dep id="flash.events:MouseEvent" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="OrientationNavigatorComponent" mod="1295554958134" >
            <def id="OrientationNavigatorComponent" />
            <dep id="flash.events:Event" type="e" />
            <dep id="flash.events:MouseEvent" type="e" />
            <dep id="flash.events:MouseEvent" type="s" />
            <dep id="flash.display:MovieClip" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="mx/flash/ContainerMovieClip" mod="1186099503000" >
            <def id="mx.flash:ContainerMovieClip" />
            <dep id="mx.flash:FlexContentHolder" type="e" />
            <dep id="flash.display:DisplayObjectContainer" type="s" />
            <dep id="mx.flash:FlexContentHolder" type="s" />
            <dep id="flash.events:FocusEvent" type="s" />
            <dep id="mx.core:IUIComponent" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.flash:UIMovieClip" type="i" />
          </script>
          <script name="mx/flash/FlexContentHolder" mod="1192597011000" >
            <def id="mx.flash:FlexContentHolder" />
            <dep id="flash.display:InteractiveObject" type="e" />
            <dep id="flash.display:DisplayObject" type="e" />
            <dep id="Math" type="e" />
            <dep id="flash.utils:getDefinitionByName" type="e" />
            <dep id="Error" type="e" />
            <dep id="flash.display:DisplayObjectContainer" type="s" />
            <dep id="mx.core:IUIComponent" type="s" />
            <dep id="Error" type="s" />
            <dep id="AS3" type="n" />
            <dep id="mx.core:mx_internal" type="n" />
            <dep id="mx.flash:ContainerMovieClip" type="i" />
          </script>
        </library>
      </libraries>
      <files>
      </files>
    </swc>

  • Flex 4, is it possible to populate a tree component with sqlite table data?

    is it possible to populate a tree component with sqlite table data?
    If it is, how would I go about doing this?
    Thanks
    Kristin

    Hi Mustafa,
    it is true, the function can return component as type. This is more for the scenario, when you want to recognize some component based on some checks, eg.
    if(something)
    return CHECKBOX_1;
    else
    return CHECKBOX_2;
    so, the use case exists for sure. But of course the application itself is static.
    where do you see a scenario for dynamic creation of components?
    The only one component which can instantiate new components is the SplitCellContainer, and this is restricted to the drag&drop action from Fragment Bookmark Gallery. And this is again restricted to containers, as Fragment can hold containers as parent component. Of course the container content will be created/instantiated as well (I have coded example with ComponentManager in the Community SDK: Second Functional Application with SDK Components (Online Composition v.2) blog).
    As far I know there is no function in SplitCellContainer which would "simulate" the drop of a Fragment today (perhaps worth an Idea on this?). Having that - the scenario would be possible. Today, this can be made partly - but the user would need to drag&drop a prepared fragment with the component.
    Anyway, the problems will start after the creation - then it would be require to have also functions to re-position the new created component in some other container - this would be complex probably.
    Karol

  • Need guidance with Flex Component Kit

    Hi,
    I have installed Flash CS3 <no extension manager> and
    Flex 3 builder. I want to import movie clips I made in Flash in to
    Flex builder. Please guide me exactly which patches and software do
    I need exactly and the process of importing these assets.
    Thanks.

    This is documentation:
    http://blogs.adobe.com/flexdoc/pdf/swf9.pdf
    http://opensource.adobe.com/wiki/display/flexsdk/Flex+Component+Kit+Specification
    http://blogs.adobe.com/flexdoc/2007/08/using_the_flex_component_kit_f_1.html
    And here you can download the Kit:
    https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex_skins
    Also to install this Kit you must first download and install
    Adobe Extension Manager:
    http://www.adobe.com/exchange/em_download/

  • Flex component that does this

    I was wondering if there is a flex component that can do the following below.
    http://www.adobe.com/products/flashplayer/action/
    That can handle large images and dynamic data.

    Nothing out of the box in Flex can do that, but you should be able to roll your own.
    You'll need to be familiar with getting data, perhaps from an XML file via HTTPService, and also perhaps the Timer class, which will allow you to change the image and perhaps text every 15 seconds, 30 seconds, etc.
    Here are some links that can help you:
    http://blog.flexexamples.com/2008/03/29/dynamically-loading-xml-files-using-the-httpservic e-tag/
    http://www.adobe.com/devnet/flex/quickstart/httpservice/
    http://livedocs.adobe.com/flex/3/html/help.html?content=08_Dates_and_times_4.html
    http://livedocs.adobe.com/flex/3/html/help.html?content=16_Event_handling_7.html
    http://blog.flexexamples.com/2007/08/14/creating-a-simple-timer-in-flex-with-the-flashutil stimer-class/
    http://www.cs.vu.nl/~eliens/im/assets/flex3/langref/flash/utils/Timer.html
    If this post answered your question or helped, please mark it as such.

  • What are the better load/performance testing tools available for Flex Application with BlazeDS RO?

    In my application is designed with Flex3, ActionScript3, BlazeDS Remote Objects.
    Just i tried with OPENSTA but i cant do the dynamic parameterization in their generated scripts because the response of the calls is binary values and also we cant get the response using with SCL language.
    While testing with OPENSTA with HttpService, i can do the dynamic parameterization and got the response.
    can give the information about the below questions
    whether we can do dynamic parameterization with OPENSTA for Flex Remote objects?
    and  what are the better load/performance tools available for Flex Remote Objects?

    Your approach is fine, depending on how many and what type of CFCs you are talking about. If they are "singletons" - that is, only one instance of each CFC is needed to be in memory and can be reused/shared from multiple parts of your application - caching them in the application scope is common.  Just make sure they are thread safe ("var" or local.* all your method variables).
    You might consider taking advantage of a dependency injection framework, such as DI/1 (part of the FW/1 MVC framework), ColdSpring, or WireBox (a module of the ColdBox platform that can be used independently).  They have mechanisms for handling and caching singletons.  Then you wouldn't have to go to the application scope to get your CFC instances.
    -Carl V.

  • How does one define a default style for a custom Flex component?

    How does one define a default style for a custom Flex component?
    hello
    I created a new set of Flex component library slib.swc (Flex 4.5). Would also like to have a default style. defaults.css file, making it the default style of the component library.
    Like flex the builder install directory of sdks \ 4.5.0 \ frameworks out \ libs directory has a spark.swc file, open with Winrar will see defaults.css this file. Defaults.css file defines the default style of the flex spark components.
    How can it be achieved?
    As follows
    slib.swc contains a CLabelEx components, and a defaults.css file
    defaults.css source file as follows:
    @ namespace s "library :/ / ns.adobe.com / flex / spark";
    @ namespace mx "library :/ / ns.adobe.com / flex / mx";
    @ namespace cn "http://os.slib.cn";
    cn | CLabelEx
            styBackgroundAlpha: 1;
            styBackgroundColor: # 569CC0;
            styBorderAlpha: 1;
            styBorderColor: # 569CC0;
            styBorderWeight: 1;
            styCornerRadius: 3;
    In slib.swc the application MyLabel.mxml of the source file as follows:
    <? xml version = "1.0" encoding = "utf-8"?>
    <s: Application, the xmlns: fx = "http://ns.adobe.com/mxml/2009
                               xmlns: s = "library :/ / ns.adobe.com / flex / spark"
                               xmlns: mx = "library :/ / ns.adobe.com / flex / mx"
                               xmlns: cn = "http://os.slib.cn
                               the minWidth = "955" The minHeight = "600">
            <fxeclarations>
            </ fxeclarations>
            <cn:CLabelEx x="67" y="112"/>
    </ s: Application>
    I hope CLabelEx default use cn | CLabelEx, style to display its appearance.
    I refer to above approach, but failed to achieve. Can you please re-Detailed
    Thanks!

    dj is right. Any Folder can be a picture folder.
    Create a root level folder and add it to your Pictures Library in Windows.  It will show up with all the scattered pictures from other programs. It can even be a different dirve if you like.  You  can even specify one to be the default save location for pictures in this dialog.
    Navigate to Pictures in your Libraries in Windows Explorer Right Click and select Properties.
    Message was edited by: Rikk Flohr forgot the instructions...

  • Drag and drop external text into a Flex component

    Hi,
    is there any way to allow drag and drop of external text (for
    example, selected text from another browser or even from the
    address bar) into a Flex component like TextArea? I know how to
    drag and drop between two different Flex components but in this
    case, the source is external. There must be something I can do to
    TextArea like its dragdrop property to allow this feature... any
    help would be greatly appreciated.
    Thanks,
    Josh

    Short answer: Yes, as long as it is an AIR app.
    Browser-based Flex apps do not have access to
    ClipBoardFormats, so I'm not sure it is possible to do what I think
    you want to do -- have a web-based Flex app that allows you to drag
    and drop selected text from other apps. Most possibly because of
    the security sandbox that the Flash player runs in.
    However, if you wanted to do it in an AIR app, I built this
    as an example for you (you can view a "cleaner" version with proper
    indents at
    http://pastebin.com/f741cbac8
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="
    http://www.adobe.com/2006/mxml"
    creationComplete="initDandD();" width="500" height="600">
    <mx:Script>
    <![CDATA[
    public function initDandD():void {
    addEventListener(NativeDragEvent.NATIVE_DRAG_ENTER,
    onDragIn);
    addEventListener(NativeDragEvent.NATIVE_DRAG_DROP,
    onDragDrop);
    private function onDragIn(e:NativeDragEvent):void {
    if(e.clipboard.hasFormat(ClipboardFormats.TEXT_FORMAT)) {
    NativeDragManager.acceptDragDrop(this);
    private function onDragDrop(e:NativeDragEvent):void {
    var myString:String =
    e.clipboard.getData(ClipboardFormats.TEXT_FORMAT) as String;
    myTextArea.text = myString;
    ]]>
    </mx:Script>
    <mx:TextArea id="myTextArea" width="326"
    height="262"/>
    </mx:WindowedApplication>

  • Insert flex component in flash .fla file

    hello,
    Is it possible to dynamically load a flex component, compiled as a swf file into a .fla file.
    Originally, this flex component can be loaded as a standalone flex application with parameters to connect to the appropriate server.
    But now a customer of mine wants to integrate this flex component (originally inserted in a flex application) in a custom flash application, thus in .fla file using Adobe Flash CS4.
    I've seen that it was possible to integrate a flash animation created with Adobe Flash CS4 in a flex application. But what I need to do is the opposite.
    thanks for your help,
    yohann

    I also have an odd behavior with parameters. I use a parameter to display a text area for logs. If this parameter is found, the text area is displayed, if it's not found, nothing is displayed. When I load my application with CTRL + ENTER in CS4, I can see my debug text area, but when I export it to swf, copy it to a local web server and visualize it in a browser, I see no debug text area.
    Here is the code I'm using:
    import flash.display.Loader;
    import flash.net.URLRequest;
    import flash.events.Event;
    var request:URLRequest = new URLRequest("http://1.2.3.4/callme.swf?server=1.2.3.4&caller=abc&callee=yohann.martineau");
    var loader:Loader = new Loader();
    loader.load(request);
    addChild(loader);
    This code is in a key frame of the fla animation.

  • How to use Flex Components with Flash?

    Hi!!
    I found a lot of very useful components in the web, but they are all for  Flex, is it possible to use Flex Components with Flash IDE?
    Thanks !!!
    jenry
    PS: this is one of the components I need to use (a tree with checkbox  nodes)
    http://www.sephiroth.it/file_detail.php?pageNum_comments=30&id=151
    another one:
    http://www.darronschall.com/weblog/2006/09/a-flex-2-checked-tree-control-component.cfm

    Flex components are delivered as SWCs just like Flash components, but the
    SWC format is incompatible with the Flash IDE.
    Also, the default fl.. components in the Flash IDE are incompatible with
    Flex components.
    You should be able to load a Flex SWF into a Flash SWF as long as you aren't
    using fl.. components in the Flash SWF.  If the Flex SWF overlays things
    in your Flash SWF then it might block interaction, but otherwise it
    shouldn't.  I don't think the statement you quoted is true for all
    configurations.
    But loading a Flex SWF into a Flash SWF isn't going to help you use those
    Flex components from your Flash IDE.  Try Flash Builder 4 to build out the
    Flex portion of your application.  I haven't tried it myself, but it I think
    it is supposed to have better integration with Flash.

  • Do we have any third party FLEX component libraries to support accessibility feature for all the components(like: ViewStack, ToggleButtonBar, charts and etc..) ?

    I am working on FLEX 4.6 SDK it provides 35 components with built in accessibility support. My Application contains some components which have no built in accessibility support but I need to provide accessibility support for those components too. I have gone through the Flex docs to customize the non accessible components to support accessibility feature, But the docs where not clear. To customize a single component I have to overwrite lot of code in SDK level.
    and it takes lot of effort.
    So, I would like to use FLEX component libraries which provides accessibility support for all the component.
    Could you please guide me how can I provide accessibility support for other components with out putting more effort on it.
    Thanks in advance...

    There is already such thing in myfaces called "security context" [1]. You could find build of sandbox.jar [2]
    [1] http://myfaces.apache.org/sandbox/securityContext.html
    [2] http://people.apache.org/builds/myfaces/nightly/

Maybe you are looking for