About how javascript and actionscript exchange data

I am a new one to Flex,
my system need web page(html) exchange data with Flash(flex),
because the data is not only a value, so need define a
strucure to transfer the data.
i dont know which type of data usually worked between
javascript and action script?
hopecan get some suggestion.
is the xml object can be used here?
hope can get detail suggestion.
some example would be great!
thanks!
bellow is my project status:
I have use write a simple program to success exchange data
between flex(actionscript) and html(javascript),
now i need design some structure to transfer data between
action script and javascript.
in my project:
there is some text areas in html page, and other text areas
in flash,
we called text areas in html page is groupA text areas
text areas in flash is groupB text areas.
each textarea in GroupA has a corrosponding textarea in
GroupB.
1.
when a textarea's text changed(this textarea is in
groupA/GroupB)
the corrosponding textarea's text must change
inmidietely(textarea in GrroupB/GroupA)
2.when falsh add a new textarea, html page must add a
corrosponding textarea.

HI!
Not sure where are you stuck with this, if you already have
been able to comunicate with javascript and flash it measn you
already have used the external interface and you should know you
can send any kind of data to flash, this includes XML or even
serialized objects.
I haven't test how big the data you can send to or from
javascript can be, but what i've done sofar works pretty good with
any value.
If you are not using the externalInterface but the old
fscommand() then you should read the external interface
documentation:
http://livedocs.adobe.com/flex/2/langref/flash/external/package-detail.html

Similar Messages

  • About how javascript and onscript exchange data

    I am a new one to Flex,
    my system need web page(html) exchange data with Flash(flex),
    because the data is not only a value, so need define a
    strucure to transfer the data.
    i dont know which type of data usually worked between
    javascript and action script?
    hopecan get some suggestion.
    is the xml object can be used here?
    hope can get detail suggestion.
    some example would be great!
    thanks!
    bellow is my project status:
    I have use write a simple program to success exchange data
    between flex(actionscript) and html(javascript),
    now i need design some structure to transfer data between
    action script and javascript.
    in my project:
    there is some text areas in html page, and other text areas
    in flash,
    we called text areas in html page is groupA text areas
    text areas in flash is groupB text areas.
    each textarea in GroupA has a corrosponding textarea in
    GroupB.
    1.
    when a textarea's text changed(this textarea is in
    groupA/GroupB)
    the corrosponding textarea's text must change
    inmidietely(textarea in GrroupB/GroupA)
    2.when falsh add a new textarea, html page must add a
    corrosponding textarea.

    HI!
    Not sure where are you stuck with this, if you already have
    been able to comunicate with javascript and flash it measn you
    already have used the external interface and you should know you
    can send any kind of data to flash, this includes XML or even
    serialized objects.
    I haven't test how big the data you can send to or from
    javascript can be, but what i've done sofar works pretty good with
    any value.
    If you are not using the externalInterface but the old
    fscommand() then you should read the external interface
    documentation:
    http://livedocs.adobe.com/flex/2/langref/flash/external/package-detail.html

  • Wiped my hard drive worried about my notes and other app data

    Because of a bad DD command I wiped my hard drive unexpectedly. I am not to worried about my music witch I had backed up but I am worried about the notes, and data in some of the applications on my touch. When I reinstall Windows and Sync will I be able to do something about that?

    I believe you are out of luck. Applications can be downloaded again but the data is likely going to be toast. Try googling iPod to PC and see if any of the programs meant to copy content can also handle notes and app data.

  • About the exporting and importing xml data file in the pdf form

    Hi all,
    I need help for importing xml data file in the pdf form. When I write some thing in the text field with fill color and typeface (font) and exported xml data using email button. When I imported that xml file in the same pdf file that is used for exporting the xml data then all the data are shown in the control but not color and font typeface. Anyone has suggestion for solving this problem. Please help me for solving this problem.
    Thank you
    Saroj Neupane

    Can you post a sample form and data to [email protected] and I will have a look.

  • After restoring a replacement ipod how do and backing up data how do I get my purchased app back. Only got the tunes

    I had to have a replacement Ipod. I had backed up the tunes and purhased apps on my pc. When I reloaded everything, the apps did not download. How can I get them back on to the Ipod?

    Are they configured to sync to your iPod?  See this article for more details.
    http://support.apple.com/kb/ht1977
    If nothing else you can redownload them for free directly to your iPod Touch.
    B-rock

  • How do I allow users to backup iPhone EXCLUDING Exchange data (no CONTACTS, Mail, Calendar, Tasks, etc) for BOTH iCloud and iTunes?

    We are EXTREMELY sensitive to corporate data and we wish to force compliance to our standards. We understand people need to back up THEIR data, but we are not willing to allow them to backup OUR data. We define OUR data to be any data that is entered into our Corporate Mail environment (Exchange 2007).  Is there a way to allow for backups to either iCloud or iTunes that does not back up Exchange Contacts, Mail, Calendar, Tasks, etc. ?
    We are using Mobile Iron which provides a way to disable BackUp via iPhone profiles being distributed, but we wish to allow people the ability to backup their content, again, just not ours. And we've seen some very similar threads.
    We have noticed that the backups do not backup Mail and Calendar items, but it does backup Contacts. That's the sticking point.
    Any help would be most appreciated. This is a major concern.

    OK, sounded like a good suggestion, perhaps it only appeared the data was being backed up, but in reality the connection was being made and the contacts were some how syncing back w/ the cached credentials restablishing sync with the server. That would not have explained why messages and calendar items didn't resync; but I was willing to take it for a test spin. Wiped device, changed password in AD (so that it couldn't sync), began restore, and after restore with AD password changed prior to restore, the two test Exchange contacts were regrettably on my phone. Further test the reasonable theory of maybe credentials are being restored and the only contact data is being actually synced to get the data back on the phone, I added a third contact.
    Now just to be belt and suspenders (to make sure something isn't happening at the restore where it get's the contact information at that exact window of time), I am wiping my again to see if the third contact (that's in my exchange contacts on the server) makes it to my device possibly during the sync, but I'm pretty sure what is happening is that he contact is making it "or being" some how categorized as "phone" data as opposed to Exchange data and being backed up there erroneously. For instance if you were to create a contact on an iPhone prior to establishing a sync relationship with the exchange server, it would take that contact and create that contact on your exchange server for you so that your "phone" data and your "exchange" data (as it relates to contacts at least) are in sync.
    If you grant this assumption, then, when syncing Exchange data, the "phone" data is being created. When the back up takes place, I believe there is no distinction or bifurcation of these two data types. Phone data is backed up with no rhyme or reasoning related to its history or origin of creation (i.e. where it came from), it's not a contact from Exchange, it's just a contact. I believe Apple needs to tattoo Exchange contacts in some fashion or provide a "transparency" kind of paradigm or model used for calendars, where you can see two sources intermingled in a view, but they are truly not (you just see all).
    Apple has indicated they understand the severity of this and are looking into it, but if anyone else has any insight or profiles not discussed on
    http://help.apple.com/iosdeployment-ipcu/#app665501b0
    Please sound off, and thank you imanog and bonesaw for your contributions.

  • How to optimize portal javascript and css - where is scriptset property ?

    Hi,
    I've downloaded <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d164c5ee-0901-0010-4fbf-d0856b5c8a84">How to Finetune Performance of Portal Platform</a> document,
    which contains portal performance optimization tips.
    In this pdf file there is a section about optimizing javascript and css code by using
    scriptset  property and there is also appropriate reference to the help.sap.com portal page.
    The problem is that this page is not there so I'm unable to configure this scriptset property.
    Any ideas where can it be found?
    Regards,
    Ladislav

    yes - go into System Adminstration --> System Configuration and then Service Configuration (in the detailed Nav).
    In there, find application com.sap.portal.epcf.loader - In Services --> epcfloader the property you seek is script.set and you should change from standard to optimize.  Then you need to restart the service.
    Hope that helps
    Haydn

  • How to get the pixel data so as to work on it?

    Hi all,
    I am trying to write a plug-in that will crop and scale the image, edit the selection in the image document based on image data. For this purpose I need the pixel data of the image. How to get the image data as different pixels and what is the data structure used to store this data?
    Assumption: No layers i.e., only background
    Thanks in advance,
    Sailu

    Hi Ilya,
    Thank you for your post. In the plugin architecture you propose (automation + filter), do you have an idea about how to share the pixel data between the two plugins? I have found a post that gives details about how to get pixel data and show it using ADM components
    Matthew Hollingworth, "ADM Color Managed Preview?" #1, 22 Oct 2007 11:53 pm but it supposes that you have a filter plug-in.
    Again, does anyone knows how to preview the current image in a AUTOMATION plug in? This seems impossible.
    Thank you all for your help
    Cheers,
    Chaker

  • To measure and save the data of an instrument for a particular time

    Hello frds
    the problem might be simple for expertise. However, i am relatively new in labview. I need to measure the data of an optical power meter for some time. for e. g 5min and store this measurment on. txt file. I made a VI. But, I am seeing data in  real time waveformchart. donot getting an idea about how to store this chart data (x and y) in a file . The labview version in our lab is 7 which donot have data logging.
    pls help me

    Hi,
    You may want to include 'Time-stamp' along with every data-point (sample from the instrument) you read. And after the desired period (in this case 5 minutes), you need to save both in a file (binary or text). Then on reading that file, you'll be able to display the data-points on a 'X-Y Graph'.
    The code will look like:
    Don't forget to customize the appearance of 'X-axis' display property as shown below.
    As you're using LabVEIW version 7.0, I've saved the same code in version 8.0 (I can't further downgrade the code)
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.
    Attachments:
    Sample with Time-Stamp.vi ‏27 KB

  • How to Exchange Data and Events between LabVIEW Executable​s

    I am having some trouble determining how to design multiple programs that can exchange data or events between each other when compiled into separate executables. I will layout the design scenario:
    I have two VIs, one called Status and the other Graph.  The Status VI displays the serial number and status of each DUT being tested (>50 devices).  The Status VI has one timed loop along with a while loop that contains an event structure.  If the user clicks on the DUT Status Cluster the event structure needs to pass the serial number to the Graph VI.  The Graph VI when called fetches the records for the DUT based on the Serial Number and time frame.  This VI is a producer/consumer so the user can change the time frame of the records to display onto the front panel graph.
    I have a couple reasons the VIs need to be separated into independent applications. One being the underlying database fetches tends to slow the threads down between the two VIs; the other is that they may be distributed into separate systems (don't consider this in the design criteria).
    I have been researching the available methods to pass the serial number to the Graph VI.  My initial idea was to us a command line argument, but this does not allow the Status VI to pass another Serial Number to the Graph once it has started (I do not want to allow the user to execute multiple Graph applications because the database query can load down the server).
    Is there a program method that I can implement between the two VIs that will allow me to compile them as two executables, and allow the Status program the repeatedly send an updated serial number event to the Graphs program.
    I have reviewed many methods; Pipes (oglib_pipe), Action Engine, and Shared Variable.  I am not sure which method will give me the ability to use a Event driven structure to inform the Graphs program when to update the serial number.  Any suggestions and tutorials or examples would be greatly appreciated.

    I have used the Action Engine (aka: functional global) approach for many years and it works well. Something to think about is that if you make the event's datatype a variant the only code that will need to know the actual structure of the event will be the function that needs to respond to it. Hence, a single event can service multiple functions.
    Simply create a cluster containing an enum typedef that is a list of the functions that the event will service, and a variant that will be the function event data. From anywhere in the code you can fire the event (via the functional global) by selecting the function from the enum and converting function specific data to a variant. On the receiving end the event handler uses the enum to determine the function that is to get the data and sends the variant to it. The event handler doesn't know or care what the actual event data is so you could in theory add new functions without modifying the event handler.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • I have a Mac Pro OS 10.7.5 and have a DVD+R disc with files on it, but it ejects the disk after about 10 seconds--what to do?  How can I get the data off this disc?  I can see it has been already burned, so files are on there?

    I have a Mac Pro OS 10.7.5 and have a DVD+R disc with files on it, but it ejects the disk after about 10 seconds--what to do?  How can I get the data off this disc?  I can see it has been already burned, so files are on there?

    Try cleaning the lens and see if that will restore functionality to the DVD drive.  Use a DVD lens cleaning disk, if you have a can of compressed air, shoot some into the slot or wrap a fine microfiber cloth (eyeglasses cleaning cloth)  around a business card and insert it gently inside the slot.
    If no success, make an appointment at an Apple store genius bar and get a free diagnosis from them.
    Ciao.

  • How do I retrieve call history from my iPhone 4S? It only seems to log for about a month and I need an earlier date?

    How do I retrieve call history from my iPhone 4S? It only seems to log for about a month and I need an earlier date?

    If you have backup of your files, you can get your call history back as long as you sync iPhone with iTunes frequently.
    OK, the first thing you are required to do is close the function of "prevent iPhone from syncing automatically." in iTunes, avoiding to sync iPhone again.
    Now, connect your iPhone to pc and open iTunes.
    iTunes> preferences> devices
    All the backup data in iTunes will be displayed.
    Then,click the File menu and select Devices > Restore from Back up
    your iPhone will restart and you can find them back.
    This method only can find back the latest history, to get back the old, you should turn to a third party program for help.

  • HT5815 The most important piece of info about an update I need is how much data does it require. I am travelling and using prepaid data. I cannot even consider an update until I know how much data it will use. Please provide this information.

    The most important piece of info about an update I need is how much data does it require. I am travelling and using prepaid data. I cannot even consider an update until I know how much data it will use. Please provide this information.

    http://www.apple.com/feedback/macosx.html

  • I have an iPhone 3GS that I dropped in water. It still does everything but get service, can I back it up and transfer its data to a new iPhone 3GS? I heard something about how loading a backup from a water damaged phone could mess up the new one...

    I have an iPhone 3GS that I dropped in water for a moment. After drying it and everything, it still does everything but get service. Can I back it up and transfer its data to a new iPhone 3GS? I heard something about how loading a backup from a water damaged phone could mess up the new one... is this true? I would truly appreciate the help, please let me know, thanks!

    Sounds like your phone is in recovery mode.  In this case, all data on it is gone.  There's nothing to back up.

  • Hi, my Iphone 6 dropped in water, and couldn't save it back although I tried with rice bag. So,how much would be cost if I can exchange with new one? Please kindly drop message about how to deal with it. Thank you.

    Hi, My Iphone 6 " iOS 8.1"  is dropped in water, and couldn't save it back although I tried with dryer and also put it in rice bag for 3 days. The flash light was still on even though the screen shows up nothing at all when i try to switch on after 3 days I put in the rice bag. So,how much it would be cost if I can exchange with new one? Please kindly drop message about how to deal with it. Thank you.

    Out of Warranty replacement on iPhone 6 is $299 US, adjust for your location.
    It is highly suggested that you make a Genius Bar appointment to avoid delay
    if going to an Apple store.
    Make a Genius Bar Reservation
    http://www.apple.com/retail/geniusbar/

Maybe you are looking for

  • Iweb not showing online for FTP upload

    I use Iweb all the time building sites for small business. Recently it has started to comeback with a "internet not online message"  when I want to upload files to a FTP server.  FYI the same server I have loaded over 40 sites to.  I then have to pub

  • Infoview doesn't show the crystal report data

    Hi All, I have created one crystal report based on the BW query then in preview mode i can see the data. I have publish the report through Publishing Wizard. I opened the Infoview and i got my crystal report. I tried to open it but it doesnot show th

  • My ipad 2 disconnects while trying to update and cant complete syncing / copying of apps.

    Recently My ipad 2 has not been able to get a full charge and after repeat attempts manages a 95% charge. i updated to iOS 8.1.3. and my ipad disconnects while trying to update and cant complete syncing / copying of apps. it just keeps rebooting itse

  • In CORR where we can enter the rework quantity

    Hi , In CORR collective confirmation , where i can give the rework quantity , How the rework quantity maintain in the Corr transaction. Second question  :-   is there any reservation number for rework order ? Regards satish

  • /bin/sh: bad interpreter: Permission denied- Rapidwiz

    hi Gurus, I am trying to install apps 11.5.10.2 from an external hard drive onto oracle enterprise linux , installed on vmware workstation 6, and i got error--- /bin/sh: bad interpreter: Permission denied.When trying to run the rapidwiz. Can somebody