transmission of data to flex embedded swf

I am trying to create a custom component in my flex application, which would imitate a progress bar. I intend to use it to show the progress being made on an investigation - for example: If the user answers to questions half the progress bar indicates half full.

I am new to Flex and not to know of an easy way to do this without incorporation of a custom swf file. If I go this way is there a way to pass data from flex to my swf to update status? Or is there a way to do this directly in Flex?

Thank you!
Amanda

You use that, or any other method and simply draw using the graphics/Sprite classes, or use something like Degrafa, Flex has a built-in progress bar. You can also integrate an AS3 SWF using SWFLoader, or as a SWC from Flash. This probably in the top 5 most frequently asked questions on this forum, so you should find something fairly quickly.

Tags: Flex

Similar Questions

  • Transmission of data from Flex to JSP

    I have an advanceddatagrid with some data in it. When I double click on a line of the advanceddatagrid I want to pass the values of the selected row in the grid of a JSP page and display those values there.

    Could someone please guide me on how to do this?

    Thank you

    You can do this either by assigning values to an ArrayCollection or XML RemoteObject, HTTPservice respectively collection to send data.

    If you want to use typed objects use the remote object method.

    Look for these docs DataAcess Flex ways.

    http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=data_intro_2.html

    If this post answers your question mark it as such.

    See you soon,.

    PRAD.

  • Flex: PB filters can be used in an embedded SWF file?

    I use the image tag to display an embedded - image filter PB works fine

    But if I replace the image embedded with an embedded SWF - filter PB does not apply

    Filter PB works with an embedded SWF file?

    to change the amount that the filter is running, you set the new value to shader.data.amount.value and then you reapply the shader object:

    Shader.Data.amount.Value = [newvalue];

    Map.filters = [filter];
    See page 31 in my MAX laboratory specifications:
    you might want to try to change the settings and see if that makes the right thing now, I see nothing wrong with the code snippet you posted.
  • Embedded SWF giving rise to strange behaviors of state change

    Hello

    I use flex sdk 4.6 and writing an AIR 3 application to use the desktop.

    In my application I am incorporating a swf application in one of my views with SWFLoader, this swf created in Flash and is not a Flex application. The application load and runs fine, but when I'm going to declare in the parent application (for example, application.currentState = "State1") I have the following error

    TypeError: Error #1034: Type coercion failed: cannot convert function in mx.styles.CSSStyleDeclaration.

    at mx.styles::StyleProtoChain$/matchStyleDeclarations() [E:\dev\4.y\frameworks\projects\frame work\src\mx\styles\StyleProtoChain.as:920]

    at mx.styles::StyleProtoChain$/getClassStyleDeclarations() [E:\dev\4.y\frameworks\projects\fr amework\src\mx\styles\StyleProtoChain.as:114]

    at mx.core::UIComponent/getClassStyleDeclarations() [E:\dev\4.y\frameworks\projects\framework \src\mx\core\UIComponent.as:10947]

    at mx.styles::StyleProtoChain$/getMatchingStyleDeclarations() [E:\dev\4.y\frameworks\projects \framework\src\mx\styles\StyleProtoChain.as:823]

    at mx.styles::StyleProtoChain$/initProtoChain() [E:\dev\4.y\frameworks\projects\framework\src \mx\styles\StyleProtoChain.as:244]

    to mx.core::UIComponent / http://www.Adobe.com/2006/Flex/MX/internal:initProtoChain ([E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:10926])

    at mx.core::UIComponent/regenerateStyleCache() [E:\dev\4.y\frameworks\projects\framework\src\ mx\core\UIComponent.as:10989]

    to spark.components::Group/regenerateStyleCache() [E:\dev\4.y\frameworks\projects\spark\src\s park\components\Group.as:1238]

    to mx.core::UIComponent / http://www.Adobe.com/2006/Flex/MX/internal:addingChild ([E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:7465])

    at mx.core::UIComponent/addChildAt() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UI Component.as:7195]

    to spark.components::Group/addDisplayObjectToDisplayList() [E:\dev\4.y\frameworks\projects\sp ark\src\spark\components\Group.as:2037]

    to spark.components::Group / http://www.Adobe.com/2006/Flex/MX/internal:elementAdded ([E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1628])

    to spark.components::Group/addElementAt() [E:\dev\4.y\frameworks\projects\spark\src\spark\com ponents\Group.as:1387]

    to spark.components::SkinnableContainer/addElementAt() [E:\dev\4.y\frameworks\projects\spark\ src\spark\components\SkinnableContainer.as:775]

    in mx.states::AddItems/addItemsToContentHolder() [E:\dev\4.y\frameworks\projects\framework\sr c\mx\states\AddItems.as:782]

    in mx.states::AddItems/apply() [E:\dev\4.y\frameworks\projects\framework\src\mx\states\AddIte ms.as:563]

    at mx.core::UIComponent/applyState() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UI Component.as:10741]

    at mx.core::UIComponent/commitCurrentState() [E:\dev\4.y\frameworks\projects\framework\src\mx \core\UIComponent.as:10487]

    at mx.core::UIComponent/setCurrentState() [E:\dev\4.y\frameworks\projects\framework\src\mx\co re\UIComponent.as:10323]

    to mx.core::UIComponent / set currentState() [E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:6425]

    at edu.stthomas.development.controllers::TriviaController/exit() [C:\Users\john0991\Desktop\D evelopment\DevelopmentWall\src\edu\stthomas\development\controllers\TriviaController.as:61]

    If I load the swf States and external switch, then I have no problem. I spent hours in the debugger trying to track down what happens, and I can say that the commitState function will eventually call regenerateStyleCache on something that is not ready for it? Sometimes subject to a review at the matchStyleDeclarations is an Image or something else that i'm going to State. But even once, when I load the swf file, it never happens. I am at my wits end and I hope that a friendly stranger can give me an idea

    OK, I discovered the problem.

    The embedded swf I have loading contained some actionscript to the effect of

    Array.prototype._myFunction = {function (arg)}

    do things

    }

    They were change the prototype of table, and (understandably) muffled Flex on something (but curiously only when state changed :/))

    After removing and rewriting functions, I can succesfully embed the swf file in my flex application

    See you soon,.

    Rory

  • Control the Captivate 7 via embedded swf

    Hey guys,.

    I have a custom navigation buttons has been created in flash and inserted as an animation to the slide model.

    It is a basic navigation for example, next and previous buttons, which in turn will make slides in captivate advance or backword. I use flash for aesthetic reason. I can get this to work in captivate 5.5, but can not do work in captivate 7.

    How to order the cpCmndNextSlide to captivate through my embedded swf?

    Thank you for your time.

    Use rdcmndNextSlide rather than cpCmndNextSlide. I also propose the discovery of cp outside the button click function. I know this is an old deprecated command, but they always hide in there.

    btnNext.addEventListener (MouseEvent.CLICK, btnNextClick);

    MC1. Stop();

    var cpRoot:Object = MovieClip (root);

    var cpMain:Object = MovieClip (cpRoot.parent.root);

    function btnNextClick(myevent:MouseEvent):void {}

    trace ('Next');

    MC1. Play();

    cpMain.rdcmndNextSlide = 1;

    }

  • Why does my embedded swf so ugly?

    Hello people,

    When I integrate my swf file in my Web site (running on Wordpress), it's ugly, round of image elements (which come from files PSD, is told by the way) appear jagged and ugly on my Web page, even if I use the best quality settings.

    I tried two different plugins to embed flash, but there is no difference. I find unacceptable embedded swf to research.

    How can I get it to look the way it does in the. FLA?

    Thank you

    Ehrenfest

    If a bitmap without alias is an alias in flash, then the image is resized in flash.  enable smoothing for her.  (in your library, make a right click the bitmap symbol > click Properties > check allow smoothing.)

    You can also anti-aliasing all the GIF files and png in the publication settings (file > publication settings > gif > smooth file, tick > publication settings > png > smooth tick)

  • (HTML w/embedded SWF)-->--> iOS app?

    I've read that a SWF-> AIR-> iOS app impossible to import another SWF on the fly, so am I right in assuming that an HTML AIR file cannot include and embedded SWF?  It's just a SWF.  It will not change during execution.  As a way to include the SWF file in the package so that when AUGUST the AIR app GET iOS compiled the SWF doesn't exist to somehow get embedded in the HTML document?

    Thank you!

    Looks like you can't AIR port for iOS-based HTML, so the question is really questionable.

    "The mobile AIR HTML-based applications are not currently supported." http://help.Adobe.com/en_US/air/build/WSfffb011ac560372f-5d0f4f25128cc9cd0cb-8000.html>

  • Embedded swf file does not work after publication

    I've created a conference slides with embedded swf flashed that is created with AS3 including animation. It works well within Powerpoint, butitdoen can't work after publication and running with the web browser. My version of powerpoint is 2007 and Adobe presenter is 7.07. I already find offers research, but I can't find one.

    I thank Jacky. I found the main problem not turn when a flash in Adobe Presenter incorporation, it's that the main class must be inherited from the MovieClip, Sprite not as I created it before. Now it works perfectly for flash versions created from both Adobe Flash Pro. CS5.5 (11) and CS4 (10).

  • Communicate with the embedded SWF files

    So if I have several external swf into one big, how can I communicate with each other?

    More specifically,.

    -the swf principal needs to know when the keys were pressed in a shipped, and he needs to tell you all the other included those on this subject.

    -embedded SWFs must intelligently resize and shuffle around each other, while keeping their origins coordinated in the upper corner.

    How can I go about it?

    As long as you mean by "shipped" you load swf files in you main file dynamically, then there is hope for all that you have planned.  If you mean that import you into the library by embedded and plant them in the chronology of the main file, that does not work.

    The other event and the event or Manager is coded in the main SWF.  Are the code loaded SWF to displatch events than the main file of the headphones for.  If simply scream of the loaded swf when they will, not for mutual assistance who hears him... allowing them to compile without dependence on the master file.

    If in the film loaded, which triggers the need to rehabilitate the main file in action would send an event as follows...

    dispatchEvent (new Event ("eventName")); name of the event you want to

    To add the listener in your main swf file, listen for the complete event of load on the Loader.contentLoaderInfo which is used to load the file.  In the complete event handler, add the listener for the event on the loaded swf file.

    function loaderCompleteHandler(e:Event) {}
    MovieClip (e.currentTarget.content) .addEventListener ("eventName", eventHandler);
    }

    function eventHandler(event:Event):void {}
    trace ("load swf triggered event");
    }

  • Passing the Captivate Variables to Embedded SWFs.

    Does anyone know how to pass a variable of Captivate to an embedded swf? I will elaborate on our situation for clarity. Finally, we Captivate allows you to create Scorm packages for use in Moodle. In this particular case, we have a Captivate project where we have several slides. On each slide, we want to import a swf created in Flash. Now, this Flash swf is configured to analyze an external XML file, determine which slide containing the swf on and then read the correct video for this slide. This file has a list of video sites (URL) and is organized by slides. The question we are hung up is how to pass the variable of Captivate (cpInfoCurrentSlide) for the current slide to the embedded swf. Someone saw?

    S

    Of course you can do it.

    Here is a list of all the variables: http://www.cpguru.com/2009/04/28/system-variables-in-captivate-4-%e2%80%93-a-complete-list /

    I'm not aware of any written documentation, but it is just like when you take a variable.

    Example:

    _root.rdcmndNextSlide = 1; will send your project to the next page.

    / Michael

    Visit my Captivate blog with tips & tricks, tutorials and widgets.

  • How to load firefox when I get this message of corrupted content error, the page you are trying to view cannot be shown because an error in the transmission of data.

    When I connect Firefox, it starts to load the page problem loading page and this message pops up error content corrupted

     The page you are trying to view cannot be shown because an error in the data transmission was detected.
    

    Same problem here. I don't see a fix listed on this site. If anyone has found a?

  • Problem with the acquisition of data on XP Embedded

    Hello

    I'm using LabView 8.5, 8.7 DAQmx. My application is collection of data of NI USB-6009 14bits. I tried to create applications for tablet PC with installed Windows Xp Embedded. I created the installer on tablet with installed Windows 2000.  I solved all the problems that occurs during installation. First version of the program have assistant DAQ in a main VI who collect and process the data. It worked properly on Xp Embedded. Second version was split into two of the Subvi. One is data collection and secondary processing. Each VI have own while loop. Both Subvi is placed in the large loop and they start at the same time. I am writing all the data to global variables. On PC with the windows application created 2000 worked properly. Error occurs when I moved it to Xp embedded. VI, which is the collection of data, the error see the 200361 code and text:

    DAQmx reading (analog 1-d Wfm NChan NSamp) .vi:2
    The task name: _unnamedTask<0>

    I know its something with the sampling and the clock, but I do not see where is the problem. In the main loop and two Subvi I 'wait until the next ms Multiple"block with a value of 200. DAQ Assistant were set as follows:

    Price: 1000

    Number of samples: 1000

    Timeout (s): 10

    Can you tell which can cause this error?

    If you would like more information please write here.

    Problem solved. There was connection between PC and USB-6009. Program works when I connect the USB-6009 housing directly to the PC. Previous connection was through usb hub.

    Thanks anyway.

  • Can I add start and end dates to flex in WCS assets?

    Hi all

    I have to add the start and end dates to my flex belt and make it visible on the plus edition + inspect mode. For the Fund, it is STANDARD, but I have an obligation to do so for other assets that is not active promotion.

    Is there any doc/blog I can do? Help, please.

    Hi Avi.

    Dates of start and end standards are OOTB field in the metadata of the asset. So they you must set the cs.sitepreview property in the file futuretense.ini in the 'management '.

    CS.sitepreview = ContentManagement

    You can check out the documentation for more details about this property: futuretense.ini - 11 g Release 1 (11.1.1.8.0)

    If you need something different, maybe you need create your own attributes Start Date and end using types date: Data Design: active models - 11 g Release 1 (11.1.1.8.0)

    Kind regards

    Raul.

  • Embedding fonts is embeded swf

    Hey, I have a big problem with embedding the fonts.

    I have a swf file which embeded in an another SWF (for security code).

    In the first swf file, I have some for Tlf embeded fonts and it works fine but after Im points in another swf file:

    [Embed (source = "main.swf", mimeType = "application/octet-stream")]

    All the fonts that have been shipped are not shown and replaced by the default system font.

    How can I fix it and make fonts work?

    your tlf containing the swf must use the runtime library settings link shared "merged into code", not "runtime shared library.

  • Problems with the removal of the data binding Flex to use Air 14

    Hello

    I was wondering if anyone had an optimal solution to replace the Flex Air 14 data binding classes. I can't merge the Flex and Air SDKS more for all liaison managers need to be replaced. Everybody runs into this problem yet? Automated link generation and manipulation was the best feature of Flex and now that it's broken it creates huge problems for me.

    It is Air of mobile and desktop applications. They still build everything simply no work of event management.

    See you soon,.

    Pete

    I forgot that I myself have solved last Dec. So basically from what I can tell that the precompiler is either no [Bindable] conversions so you must manually create the getters and setters for your model when it changes. I hope this helps anyone who may run into the same problem. There is literally no documentation on this wheres.

    i.e.

    [Bindable]

    public var username: String;

    becomes

    private var _username: String;

    [Bindable (= "propertyChange" event)]

    public function get username (): String

    {

    return this ._serviceState;

    }

    public function set username(value:String):void

    {

    var oldValue:Object = this ._username;

    If (oldValue! == value)

    {

    This ._username = value;

    If (this.hasEventListener ("propertyChange"))

    this.dispatchEvent (mx.events.PropertyChangeEvent.createUpdateEvent (Thi, "username", oldValue, value));

    }

    }

    You must also make sure that what ever class contains this property implements IEventDispatcher and has the following functions:

    // Implementation of IEventDispatcher
    //
    private var _bindingEventDispatcher:flash.events.EventDispatcher =.
    new flash.events.EventDispatcher (flash.events.IEventDispatcher (this));
    /**
    * @inheritDoc
    */
    public function addEventListener (type: String, listener: Function,)
    useCapture:Boolean = false,
    priority: int = 0,.
    weakRef:Boolean = false): void
    {
    _bindingEventDispatcher.addEventListener (type, listener, useCapture,
    priority, weakRef);
    }
    /**
    * @inheritDoc
    */
    public function dispatchEvent (event:flash.events.Event): Boolean
    {
    Return _bindingEventDispatcher.dispatchEvent (event);
    }
    /**
    * @inheritDoc
    */
    public void hasEventListener(type:String):Boolean
    {
    Return _bindingEventDispatcher.hasEventListener (type);
    }
    /**
    * @inheritDoc
    */
    public void removeEventListener (type: String,)
    Listener: Function,
    useCapture:Boolean = false): void
    {
    _bindingEventDispatcher.removeEventListener (type, listener, useCapture);
    }
    /**
    * @inheritDoc
    */
    public void willTrigger(type:String):Boolean
    {
    Return _bindingEventDispatcher.willTrigger (type);
    }

Maybe you are looking for