XML access through AC3

Hello to all of you!
I'm new in Flash, so i would like some help here....
I'm trying to build a User Interface (SWF) and provide it to my customers in order to have access (easely) and they can change the data (images & Texts) of an XML driven photo Gallery.
After i load the XML in Flash(CS4),  i can 'trace'  the nodes at the output panel but when i'm editing new data the changes are not "saved"...
The Files look like this:
gallery.xml
fla
<?xml version="1.0" encoding="utf-8"?>
<objects>
   <picture_path>pictures/1.jpg</picture_path>
   <thumb_path>thumbs/1.jpg</thumb_path>
   <picture_desc> abcdefgabcdefg </picture_desc>
   <picture_title>  ABC  </picture_title>
   <picture_path>pictures/2.jpg</picture_path>
   <thumb_path>thumbs/2.jpg</thumb_path>
   <picture_desc> abcdefgabcdefg </picture_desc>
   <picture_title>   </picture_title>
   <picture_path>pictures/3.jpg</picture_path>
   <thumb_path>thumbs/3.jpg</thumb_path>
   <picture_desc>  abcdefgabcdefg  </picture_desc>
   <picture_title> ABCDEFG </picture_title>
</objects>
var captionsXMLLoader:URLLoader = new URLLoader();
captionsXMLLoader.load(new URLRequest("gallery.xml"));
captionsXMLLoader.addEventListener(Event.COMPLETE, captionsXMLLoadedHandler);
function captionsXMLLoadedHandler(eventObj:Event):void {
       var captionsXML = new XML(eventObj.currentTarget.data);
       trace(captionsXML.picture_title[2]);                // -> ABCDEFG
  //  ( This line should change the data of XML ? )
       captionsXML.picture_title[2] = "Bla Bla Bla Bla...";
       trace(captionsXML.picture_title[2]);                // -> Bla Bla Bla Bla...
My problem is that i can't change the data in the XML through AC3 . Is this possible ?
Please some help here !!!

You'll primarily need to find out how to pass data from Flash to PHP.  The PHP can be used to manage formatting the data into xml (if you like), and to save the file.  For functions relative to PHP, Google works for me by using "PHP" along with whatever terms best suit the functionality I'm looking for.
For passing data to a PHP file, look into using the URLVariables class and the URLLoader class.  If you Google "AS3 and PHP" and similar terminology you may find a tutorial.  You might try checking www.gotoandlearn.com for a tutorial that is along these lines.

Similar Messages

  • Accessing XML View through DBUri

    I am having problem in accessing XML View through HttpURI.
    Also i need some advise in following such architecture between my app server and DB server.
    The problem i am facing is that
    1. The query passed through URI does a full table scan, hence poor performance.
    2. Not able to query on date/timestamp.
    Any help would be appreciated.
    Thanks

    Here is how my output would be..
    <log systemID="00XXXABC01" MLN="9999" USN="00XXXPET01" timeStamp="Sun Jun 1 22:00:11 2003" timeZone="BST - Europe/London">
    <message type="XXXHealthPage" time="Sun Jun 1 22:00:11 2003" source="XXX">
    <text>This is manxx1 machine's HealthPage report</text>
    <detail>
    <generic_report title="XXX System Health Report">
         <emailaddr>[email protected]</emailaddr>
         <heading title="System Identification">
         <linevalue name="Report_date">Sun Jun 1 22:00:11 2003</linevalue>
         <linevalue name="Last_update_time">May 02 2003 22:00:14</linevalue>
         </heading>
    </generic_report>
    </detail>
    </message>
    </log>
    I have underlined the variables that i have to query on.. basically i have to select messages between certain times for a particular system.
    am trying a query..
    1. http://localhost:8080/oradb/MACLOG/TEST_MACHINE_XML1/ROW/log[@systemid="415444KCT"]
    This doesnt work for some reason.. i had to make systemid as a separate element.(@attribute doesnt work)2. i dono how to query for message[@time between to_char(...)]
    Any Help..

  • Not able to access CAS service through Endeca workbench: getting an error "CAS Console must be accessed through Workbench"

    Getting an error while accessing the Datasource tab through Endeca workbench "CAS Console must be accessed through Workbench". Verified both ws-extensions.xml and casconsole.properties files which exists under %ENDECA_TOOLS_CONF%/conf, both files shares the same sharedSecret. Do anybody knows how to resolve this issue.
    I did tried to reinstall CAS component multiple time , all the time the same error throwing.
    Endeca CAS service is also not able to start through microsoft console (services.msc) throwing an error " Windows could not start the Endeca CAS Service service on Local Computer"

    This can occur if CAS is reinstalled. Check your ws-extensions.xml and casconsole.properties files, and ensure that they agree on the same shared-secret.
    Best
    Brett

  • [svn] 1590: Updating WebService RPC tests that previously used external endpoints at whitemesa . net to now use internal endpoints accessed through Tomcat server on localhost :8400/qa-regress/axis/services/{SERVICE_NAME}?wsdl

    Revision: 1590
    Author: [email protected]
    Date: 2008-05-07 08:49:22 -0700 (Wed, 07 May 2008)
    Log Message:
    Updating WebService RPC tests that previously used external endpoints at whitemesa.net to now use internal endpoints accessed through Tomcat server on localhost:8400/qa-regress/axis/services/{SERVICE_NAME}?wsdl
    Endpoints built from Axis SOAPBuilder tests in Perforce's /depot/axis/xml-axis/java/tests/
    Modified Paths:
    blazeds/branches/3.0.x/qa/apps/qa-regress/WEB-INF/server-config.wsdd
    blazeds/branches/3.0.x/qa/apps/qa-regress/WEB-INF/web.xml
    blazeds/branches/3.0.x/qa/apps/qa-regress/testsuites/flexunit/src/tests/flexunit/wscl/int erop/SOAPBuilderRound3Import1_WhiteMesaTest.as
    blazeds/branches/3.0.x/qa/apps/qa-regress/testsuites/flexunit/src/tests/flexunit/wscl/int erop/SOAPBuilderRound3Import3_WhiteMesaTest.as
    blazeds/branches/3.0.x/qa/apps/qa-regress/testsuites/flexunit/src/tests/flexunit/wscl/int erop/SOAPBuilderRound3RPCEncoded.as
    Added Paths:
    blazeds/branches/3.0.x/qa/apps/qa-regress/WEB-INF/lib/
    blazeds/branches/3.0.x/qa/apps/qa-regress/WEB-INF/lib/javax_mail.jar
    blazeds/branches/3.0.x/qa/apps/qa-regress/WEB-INF/lib/qa-services-wm.jar
    blazeds/branches/3.0.x/qa/apps/qa-regress/testsuites/flexunit/src/tests/flexunit/wscl/int erop/SOAPBuilderRound3Compound1.as

  • Can TLD jar can access through EAR / APP-INF/lib folder

    Hi All,
    If I have a TLD files into jar file and their specific classes are also into jar file .
    Now can access those jar through EAR file APP-INF/lib folder or else its must to access through WEB-INF/lib folder.
    any pointer will be great.
    Regards,
    Kal.

    I suggest you assume that's how it's supposed to work, and get that to work most efficiently. I have no idea what you were trying to achieve by putting the taglib jar in APP-INF/lib. Perhaps you have multiple webapps and you wanted to avoid multiple instances of the taglib jar? If that's the case, I believe you could use WebLogic "shared application libraries" (I don't think that's the correct term), where you deploy a jar file as an application library, and the weblogic.xml file in each webapp that uses it would specify the name of the application library it uses.

  • "CAS Console must be accessed through Workbench" problem

    Hi, the data sources tab is not able to connect to the cas server and giving off this message : CAS Console must be accessed through Workbench
    I have encountered this before and bookmarked the the solution page that was from eden but now that it is down I can't get to it. Can anybody remember the solution? thanks!

    This can occur if CAS is reinstalled. Check your ws-extensions.xml and casconsole.properties files, and ensure that they agree on the same shared-secret.
    Best
    Brett

  • XML access with namespaces?

    Hi!
    I started learning Flex by using Flex but now I have the
    first problem I can't solve. I think this will be only a basic
    problem but in other forums nobody could help me. And of course I
    didn't find anything about this in the help. :)
    In the following MXML-Code I tried to use the flickr SOAP API
    which works, but I don't get the real usage of the new XML class.
    As you can see in the function called "recieveFlickrResult" I'm not
    able to access the attribute I want to. The syntax seems to be
    correct in my eyes because, if I create a new XML-Object using the
    XMLString I can access the attribute. I also tried several other
    methods like attributes(), children() and so on. I really don't get
    it.
    I think I'm making a fundamental mistake! Maybe the way I'm
    using the access through namespaces (function
    "extractFlickrResponse") is wrong?
    Maybe you want to try this MXML-File:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" creationComplete="init();">
    <mx:HTTPService id="flickrService" url="
    http://api.flickr.com/services/soap/"
    useProxy="false" contentType="application/xml"
    resultFormat="xml"></mx:HTTPService>
    <mx:Script>
    <![CDATA[
    public var apiURL:String = "
    http://api.flickr.com/services/soap/";
    public var api_key:String =
    "0cdbd0b93883f563e3bea67611e44c83";
    public var nsid:String;
    public var urlRequest:URLRequest;
    public var resultLoader:URLLoader;
    public function debug(s:String):void{
    debugTxt.text += s + "\r";
    var sNS:Namespace = new Namespace("
    http://www.w3.org/2003/05/soap-envelope");
    var xNS:Namespace = new Namespace("urn:flickr");
    public function generateSOAPRequestXML(method:String,
    params:Object):XML{
    var requestXML:XML = <s:Envelope
    xmlns:s="
    http://www.w3.org/2003/05/soap-envelope"
    xmlns:xsi="
    http://www.w3.org/1999/XMLSchema-instance"
    xmlns:xsd="
    http://www.w3.org/1999/XMLSchema"
    >
    <s:Body>
    <x:FlickrRequest xmlns:x="urn:flickr">
    <method>{method}</method>
    <api_key>{api_key}</api_key>
    </x:FlickrRequest>
    </s:Body>
    </s:Envelope>
    var flickrXMLList:XMLList =
    requestXML.sNS::Body.xNS::FlickrRequest;
    for (var param:String in params){
    var newparamNode:XML =
    <{param}>{params[param]}</{param}>
    flickrXMLList.appendChild(newparamNode);
    return requestXML;
    public function extractFlickrResponse(response:XML):XMLList{
    return response.sNS::Body.xNS::FlickrResponse;
    public function startFlickrRequest(requestXML:XML):void{
    urlRequest = new URLRequest(apiURL);
    urlRequest.contentType = "text/xml";
    urlRequest.method = URLRequestMethod.POST;
    urlRequest.data = requestXML;
    resultLoader = new URLLoader(urlRequest);
    resultLoader.addEventListener("complete",
    recieveFlickrResult);
    public function recieveFlickrResult(evt:Event):void{
    if (evt.type == "complete"){
    var resultXML:XML = new XML(resultLoader.data);
    debug("resultXML :\r" + resultXML);
    var response:XMLList = extractFlickrResponse(resultXML);
    debug("");
    debug("response :\r" + response);
    debug("response.@nsid : " + response.@nsid); // returns
    nothing!
    var newXML:XML = new XML(response.toString());
    debug("");
    debug("newXML :\r" + newXML);
    debug("");
    debug("newXML.@nsid : " + newXML.@nsid); //returns the value
    public function init():void{
    var nsidRequestXML:XML =
    generateSOAPRequestXML('flickr.people.findByUsername', {username
    :"der_raab"});
    startFlickrRequest(nsidRequestXML);
    ]]>
    </mx:Script>
    <mx:TextArea id="debugTxt" text="" left="10" right="10"
    bottom="10" top="10"/>
    </mx:Application>

    I've never used the Flickr API before, but everything appears
    to me to be behaving as expected. It appears, oddly enough, that
    for some reason the FlickrResponse tag returns XML which is encoded
    as a blob of text. That's strange to me, but perhaps there's a
    reason for it -- but in any case, here is the XML that came back (I
    captured this using the Charles web debugging proxy from
    http://www.xk72.com/charles):
    <s:Envelope xmlns:s="
    http://www.w3.org/2003/05/soap-envelope"
    xmlns:xsi="
    http://www.w3.org/1999/XMLSchema-instance"
    xmlns:xsd="
    http://www.w3.org/1999/XMLSchema">
    <s:Body>
    <x:FlickrResponse xmlns:x="urn:flickr">
    &lt;user id=&quot;42441977@N00&quot;
    nsid=&quot;42441977@N00&quot;&gt;
    &lt;username&gt;der_raab&lt;/username&gt;
    &lt;/user&gt;
    </x:FlickrResponse>
    </s:Body>
    </s:Envelope>
    So check that out, there's that escaped XML on the inside. As
    far as E4X is concerned, that is just text, so . So, as you do near
    the end of your sample, you must take that text and use it to
    create an XML object.
    The "response.@nsid" which returned nothing is actually
    looking for an nsid attribute on the <x:FlickrResponse> tag,
    not on the text which is inside that tag.

  • HT1329 if the music that is on the iPod can no longer be accessed through iTunes because it was deleted, is there anyway to recover the music on the iPod if it wasn't purchased?

    if the music that is on an iPod can no longer be accessed through iTunes because it was deleted, is there anyway to recover the music on the iPod if it wasn't purchased?

    See this support article:
    http://support.apple.com/kb/HT1848
    You can also download at least some of your content (audiobooks being a notable exception) again from the iTunes Store:
    http://support.apple.com/kb/ht2519
    For additional instructions, particularly for content not purchased from the iTunes Store, check out this user tip from TuringTest:
    https://discussions.apple.com/docs/DOC-3991
    and this page on "How-to Geek":
    http://www.howtogeek.com/104298/sync-your-ios-device-with-a-new-computer-without -losing-data/
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

  • Can I use the new Time Capsule to backup my mid 2010 Macbook Pro? Also can I want to free up my hard disk, can I save my photos and files on the time capsule and later access through wifi?

    Can I use the new Time Capsule to backup my mid 2010 Macbook Pro? Also can I want to free up my hard disk, can I save my photos and files on the time capsule and later access through wifi?

    Can I use the new Time Capsule to backup my mid 2010 Macbook Pro?
    Yes, if you are asking about using Time Machine to backup the Mac.
    Also can I want to free up my hard disk, can I save my photos and files on the time capsule and later access through wifi?
    You are not thinking of deleting the photos and files on your Mac, are you?  If you do this, you will have no backups for those files.
    Another concern is that Time Machine backs up the changes on your Mac. At some point, Time Machine will automatically delete the photos and files from the Time Capsule.....you just don't know when this might occur.
    In other words, only delete files from your Mac that you can afford to lose.

  • Remote panel and selective control access through Security with DSC

    Hi Everyone,
    I looked around to see what labview had to offer concerning security of remote panel and all the solutions I've found only propose full access to a remote panel, or none. The login page is not an option for me as everyone on the intranet can access the remote panel for monitoring but not everyone can have control to the buttons on it.
    With the DSC module, I can give securities to the different controls and it works great with the exe, if I log in or out, the controls appears or disapears. Unfortunately, with remote panels, those controls are always visibles. Furthermore, when I log in from a remote panel, all the other remote panels get logged in with the same username and priviledges. When I log out, same thing, it logs out all the other remote panels. So the last guy who logs in gives its priviledges to every one else who is monitoring the remote panel at that time. when he logs out, he logs everyone out. I used a reentrant vi hoping that this would solve the problem but it didnt.
    I would like to do what my colleague does with Advantech without any problem. He has only 1 .exe is running on the server and whoever connects to it through webserver, just needs to log in and he has all the priviledges of an guest, operator, admin, etc.. with access to controls and features accordingly. All this without interfering with the other people using the remote panels. This colleague has always been doubtful about the capabilities of labview to do SCADA systems and uptil now, I've been able to prove him wrong.. please help me continue
    There are workarounds, using remote desktop to the server instead of webserver but it definitely is not as practical for the client and it will need quite some work to to synchronise all the exes open from the differents sessions, through the use of shared variables, binding and securities.
    Thank you for your help.
    Solved!
    Go to Solution.

    Thank you very much for your reply Jordan.
    The NI security info is on the server (local domain with groups and users), and the running exes as well. The remote panel is not supposed to be accessed by internet, at least not yet, but just by the computers on the network and thinkline computers who are directly connected to the servers. the remote panel is accessed through the simple url: http://serverip/Application.html
    There is no problem with accessing the remote panel of the exes on the server from another computer on the network. But there are several security issues when logging in and out with the NI Security Programmatic Login and logout VIs through the remote panel..
    The 1st problem occurs when several people access the remote panel at the same time. In my setup, everyone is allowed to check what's happening on the front panel of the running exe, go through the tabs, check the graphs, the tables, etc.. , but only the administrators and the operators can send commands to the machines and the production line through this remote panel. Hence some buttons are accessible to all users, while others are only accessible depending  on the privileges of the person logged in.
    So like I said in the 1st post, I configured some buttons to be accessible only by the users of the admin group. When the exe runs, it's perfect, if I log in and out with an admin account, the buttons appears and disappear accordingly. But when I check the remote panel, those admin buttons are always visible, even if I am logged in as a guest or even logged out. Is it because the remote panel only needs minimum runtime engine and doesnt use the dsc runtime engine? if so, any work around?
    Furthermore, another big problem is that if I login as an admin in one remote panel, then login as an guest in another remote panel, and then logout back from the first remote panel, it says: "User Domain/Guest logged out". Hence, my second login logged out my first user. I can actually see the admin buttons appearing and disappearing on the exe when login as admin and guest from the different remote panels.
    So that's it, I would like my remote panel to behave like a normal scada system, with one exe running in the back (on the server) and with all the users accessing it through web server. Several users might/will access the remote panel at the same time and each of the users have a login/password that grant some of them the privileges to take some actions while giving the others only monitoring rights.
    I hope that I have been more clear in this 2nd post,
    Thank you again for your time.
    Best Regards,
    Tom.

  • Internet Access through TMG for all HO & Branch office

    Dear Experts!,
    I am new to the Forefront TMG 2010. Have requirement to implement internet access.
    Head office : 192.168.11.x/24 (192.168.11.1 is the TMG server)
    Branch Office 1: 192.168.12.x/24
    Branch Office 2 : 192.168.14.x/24
    Branch Office 2 : 192.168.16.x/24
    Forefront TMG 2010 standard edition.
    Having 3 NIC's two have different ISP network addresses and one has 192.168.11.1.
    Branch office are connected using MPLS network, the requirement is all branch site internet must be accessed through TMG 2010 server which is homed in Head Office. How to achieve ?
    What needs to be done in external firewall and in TMG for enabling internet access.
    Thanks!
    Regards, Ganesh, MCTS, MCP, ITILV2 This posting is provided with no warranties and confers no rights. Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread.

    Hi Ganesh,
    Hope this helps
    1 - If you wish to give internet as Proxy to users.
    Ensure the Below subnet is able to reach TMG Internal Interface that is 192.168.11.1
    Subnet
    Branch Office 1: 192.168.12.x/24
    Branch Office 2 : 192.168.14.x/24
    Branch Office 2 : 192.168.16.x/24
    Configuration
    Enable Proxy in TMG and configure Proper Ports as per your requirements
    On the Client IE – Ensure you put Proxy IP as TMG and Port configured in TMG configuration.
    Enable a Rule
    Access Rule
    Source : Internal
    Destination : External
    Ports : HTTP / HTTPS
    Users : Authenticated Users
    2 As normal Internet as Gateway to users
    You need to request your MPLS provider to change the Default Route of below subnet to 192.168.11.1. By doing this, all the internet request from the below subnet to internet will hit TMG.
    Subnet
    Branch Office 1: 192.168.12.x/24 Default Route 192.168.11.1
    Branch Office 2 : 192.168.14.x/24 Default Route 192.168.11.1
    Branch Office 2 : 192.168.16.x/24 Default Route 192.168.11.1
    IF you have any L3 Switch then you can also make Default gateway as L3 for all the subnet and from L3 device point it to TMG
    Enable a Rule
    Access Rule
    Source : Internal
    Destination : External
    Ports : HTTP / HTTPS
    Users : All Users ( Important )
    Two ISP
    In network Rules : You need to use NAT
    You will have a Rule which NATS internal to  External
    On external - Choose which ISP interface should be used  and Apply NAT rule

  • Guest LDOM disk access through multiple IO domains

    Hi All,
    I am working on a configuration, wherein the boot disk to the Guest LDOM is being provided through an image file hosted on a VxVM diskgroup (vmdg1). The configuration has another copy of the same image file being provided through another VxVM diskgroup (vmdg2)l through another virtual disk service.
    let me clear the configuration a little more in detail
    A T-5240 server having 2 IO domains configured
    Primary (Control domain + IO domain + Service domain) configuration
    A VxVM diskgrop (vmdg1) having a boot image file
    Secondary (IO domain + Service domain) configuration
    A VxVM diskgroup (vmdg2) having a copy of the boot image file
    these devices are exported through their respective virtual disk services with the same mpgroup name to a guest LDOM. The vdsisk is then assigned to the guest ldom which is using the volume through the primary service.
    When the guest LDOM is started it starts with the disk export through the Primary domain. All writes happen fine. When the VxVM diskgroup is deported from the Primary the Guest LDOM still remains online as starts using the disk image path through the secondary domain.
    I then bring the VxVM diskgroup and the mounts back online on the Primary domain and deport the diskgroup from the secondary domain to see if it failsback to the image through the Primary domain. The Guest LDOM now is in a hung state and does not allow access through the local console or through network logins.
    Has anyone see such a problem? Also is it recommended to use disk based image as a backend device in mpgroups through "ldm add-vdsdev" ?
    TIA,
    Sudhir

    As far as I know then only way to "re-balance" the I/O across the domains is to unbind/bind the guests. Not a great answer, but this could be done as part of the guests patching cycle.
    I think there is an RFE to provide MPxIO-like features to guests.

  • Am not able to use facebook on my Iphone 4, softwareversion:iOS7.1, also tried to access through safari and chrome that i have installed it gives an error message saying: "safari could not open the page because server stopped responding",

    Am not able to use facebook on my Iphone 4, softwareversion:iOS7.1, also tried to access through safari and chrome that i have installed it gives an error message saying: "safari could not open the page because server stopped responding", i tried network reset, reset the whole device, rebooting , changing airplane mode rebooting nothing fix the issue, but i can access other sites and google , am using Vodafone as my carrier with 2g network, when at home able to access facebook.com through wifi in safari requesting assistance thank you

    If you can access Facebook while on Wifi at home, but you are unable to access it while away running on your carrier's 2G network, I could phone your carrier.  You have already completed the Cellular Data troubleshooting for the iPhone, so any limitations keeping your from connecting to Facebook over cellular will have to be answered by your carrier.

  • I want to airplay from macbook pro to apple tv. What are the possibilities? Does it allow me to play movies or videos I access through the browser as well?

    I want to airplay from macbook pro to apple tv. What are the possibilities? Does it allow me to play movies or videos I access through the browser as well?

    Welcome to the Apple Community.
    Only content in your iTunes library can currently be sent via AirPlay from your mac.

  • Access through internet

    Hi all,
           Currently we are having an mainframe application which is accessed through internet. In the website of client there is a link which navigates to this application. Once the user enter the VPN credentials it lets us to access the data.
    But currently they want to integrate this application into portal. Without making portal as external facing is there a way by which they can access this application through their website ->portal.
    Thanks,

    you need not create a role and a page and all that.....
    just create a URL iView for the Portal and preview the iview ...obtain the URL and stick that URL in your website with a proper SSL encryption....
    make sure you understand the concepts of SSL and the use of web disptacher if you plan on using the portal on the internet.....also make sure you have the URL filtering so only specific URL's can be accessed via SSL...

Maybe you are looking for