Actionscript 3.0 :: Use Flash To Retrieve The XML?
Mar 17, 2009
1. Create a XML/PHP driven menu that uses PHP to generate a XML file with database results.
2. Use flash to retrieve the XML and dynamically add movie clip, menu buttons that have label values, IDs, and whether or not the menu item is published from XML, to the menu.
I found some code from a tutorial that took XML data and added a movie clip to the stage, added a label, and an ID; however, I could not get it to get a URL property to the button and initiate the navigateToURL to actually get the unique variable to come from the XML to each instance of the button. I have attached the ZIP file with the original tutorial AS file.
View 3 Replies
Similar Posts:
Jun 12, 2011
I have an AxShockwaveFlash object in a Windows Forms application, and load a (AS3) movie into it with LoadMovie. The movie plays correctly, but I am having a problem getting a variable from flash.I have tried using GetVariable but it always returns an empty string. How can I get the value of a variable from flash?
View 2 Replies
Aug 4, 2011
How can I retrieve all MC in a Stage?
I want to call addEventListener for all MovieClip present in my stage and if it's possible in a selected frame number of my scenario[code]...
View 2 Replies
Jul 5, 2011
Our scenario is that we have a visualisation in a flex .swf that we load data into (through a web service call). Once the data has been loaded we would like to use the resultant image in a PDF.I can send an image of a DisplayObject back to the server as a PNG and put it into a PDF (using iText), but the png is not scalable and it looks bad in the PDF at different zoom levels.To add a bit more clarity. The visualisations are not vector graphics that we import or embed during development, they are charts and trend graphs and custom visualisations created through the flex/flash drawing API, at runtime, based on data retrieved from the server.
View 3 Replies
May 13, 2009
How can I retrieve a session cookie inside Flash ?
($_SESSION['member'])
(I am using Flash 8 and ActionScript 2.0)
View 2 Replies
Jun 28, 2009
Is it possible for a flash file to retrieve the current url from the browser and populate a dynamic text field with that url?So say my swf is embedded at [URL]I have a dynamic text field in my swf labeled myText What actionscript would be needed for that myText field to recognize the url and populate with [URL]?
View 8 Replies
Feb 20, 2011
i made an ecard application. the "TO:" text box (input) should contain an emaill adress.can user import adress from his outlook contacts?
View 7 Replies
Jul 7, 2011
I had a developer who has been working on [URL]. He build it using all flash. I need to make changes on the website, but it seems like he is out of business. They don't answer their phones or emails. The website is hosted on their server, and I don't have the FTP details. I can mirror or copy my site onto my local computer, and re upload the site to a real company. I have access to my domain, so I can just point it to a new server after I have downloaded the website files to my computer.
View 4 Replies
Dec 15, 2009
I've got a simple YouTube API client put together, written in Flex, that uses a plain ol' URLRequest object to handle Google's "ClientLogin" authentication scheme. Everything works perfectly, except for one case: when Google responds with a 403 and a response body indicating that I should prompt the user for additional information (specifically, a CAPTCHA request).
The problem I'm having is that in this case, I need to be able to retrieve the body of the 403 response, as the body contains information Google expects me to use to assemble the CAPTCHA (e.g., an image URL, etc.). It looks like Flash fails to populate the URLLoader's data property when it encounters a 403 (which is where the response body would normally show up), so I can't tell the difference between a "403: Login Failed" and a "403: Login Succeeded, but We Want a CAPTCHA".
As a backup, I figured I'd have a look at as3crypto's TLSSocket code, but I haven't been able to make any of that stuff work with Google (or even one of my own SSL certs, for that matter).
Is it possible to access the body ofa 403 response with Flash (and if so, how)? And if not,Does anyone have personal experience with a suitable workaround?
View 1 Replies
Oct 5, 2010
I have a web page with a button that does a redirect to another web page with a flash movie in it. The button on the first page sends http post data as part of it's functionality.
View 1 Replies
Oct 7, 2011
I have a TileList, that i loaded with a PHP script that gives back an dinamically generated xml so i can load the TileList with the images and labels it needs. Now, i want to click on an item of the TileList an retrieve its Label so i can send it to another PHP script that uses the string of the Label to do a search query so i can load latitud and longitude to a map to where that item is located. i have been trying to trace it, but its a no go.
[Code]...
View 2 Replies
Nov 12, 2009
how to display multiple data (retrieved from xml files using a for loop) horizontally in flash. For example, I'd like to display images (fetched from the database using XML) in a flash file where in i want to display 3 records in a row and rest of the images to appear in the next row having the set of 3 images in each rows. I'm having a hard time handling this task.
Code:
// Create new XML Object and set ignoreWhite true
book_xml = new XML();
book_xml.ignoreWhite = true;
[code]....
View 0 Replies
Jul 20, 2010
how to get the ClientUser CPU clock and Physical memory with my Flash movie.
Is there some functions for this?
I assum there must be security warrning for the user, and it's fine for me.
View 3 Replies
Oct 7, 2010
I was wondering if there is anyway to retrieve the time of the last flash update.
So I'm not looking for the flashversion but perhaps something like a timestamp of when it was updated.
View 1 Replies
Jun 15, 2007
is it possible to retrieve all children of a certain type from a parent in actionscript 3?i only see getChildAt,getChildByName, is there a getchild of a certain type like get all childs of object type:Food?!!!
View 3 Replies
Nov 2, 2009
I am building a flash app to retrieve XML data which depends on what a user searches for. The following as3 code places an input field and submit button which allows a user to type in a postcode into the input box and click search and what should be returned in a list of all the properties that have that postcode.
Code:
import fl.controls.Label;
import fl.controls.TextInput;
import fl.controls.Button;
var postcodeLabel:Label = new Label();
var postcodeTi:TextInput = new TextInput();
[Code] ....
However, this doesn't seem to happen. Instead an error is returned. I've never worked with flash and xml before so just taken the above xml bits from online websites but cant get it working.
View 3 Replies
Apr 23, 2010
How to retrieve and show data from database in flash? I want to show data on a page like below,
1. Name1 -- Address1
2. Name2 -- Address2
3. Name3 -- Address3
View 1 Replies
Dec 14, 2002
how to send data to asp thru flash & how to retreive data from an asp into flash...
View 3 Replies
Nov 2, 2009
Im building a flash app to retrieve XML data which depends on what a user searches for. The following as3 code places an input field and submit button which allows a user to type in a postcode into the input box and click search and what should be returned in a list of all the properties that have that postcode.
[Code]...
View 4 Replies
Apr 6, 2010
I am posting a thread regarding passing a javascript returned value into Flash. It is slightly complex due to the solution I am looking for must target Flash Player 6.
I have looked at various solutions including the Flash / JavaScript Integration Kit wrote by the guys at the former Macromedia. Unfortunately the solution involved includes various classes and then import them in Flash which produces the following error:
The class or interface 'com.macromedia.javascript.JavaScriptProxy' could not be loaded.
The Javascript I want to retrieve the value from looks like:
<script language="JavaScript">
<![CDATA[
function CheckIn(){
[Code].....
I just need to pass the returned value into a variable within Flash.
View 1 Replies
May 26, 2010
I am trying to retrieve some information back from my LMS and into variables in Flash with AS3. I used to be able to do this without any problems in AS2, but can't seem to find a way to make this work in AS3. In AS2, publishing with the "Flash with SCORM 1.2 Tracking" option, I could call a line like the following:
fscommand("LMSGetValue", "cmi.core.student_name,_root.stuname");
This would grab the student name from the LMS and store it in Flash in the variable named stuname.
Any way to do this with AS3? I can set values back to the LMS no problem still through fscommand such as score or completion, I just can't get anything back from the LMS such as student name or lesson location.
View 2 Replies
Aug 1, 2010
Old Computer: RAM 128
Browser IE 6 along with Panda Antivirus
I just reinstalled the entire operating system Microsoft XP last night (package 3 was updated today). The O/S installed Flash 9. But, I went through all of this last November and saved the installation program. I went to a website that said I needed to upgrade to version 10.1 and allowed me to click on it. It would open a page to adobe where I could then choose how to download it (cuz I knew I needed to uninstall the 9 first). But this website automatically downloaded and tried to install the new one before I got the old one uninstalled!
So, I cancelled the installation and then uninstalled the version 9. But, when I tried to go back to adobe to install the version 10, the above message was spit out at me (causing me to "spit bullets" of my own!). I've tried to install it again but when I go to the download page, it just sits there and does nothing. I'm assuming my problem was caused by a "crossover" between the attempted installation of version 10 and the uninstall of version 9. The flashplayer version 10 worked perfectly fine on this same exact computer/system until today!
View 3 Replies
Nov 2, 2010
I was saving something on Flash when it crashed on me. Now I can't open it anymore, even though it still exists on my computer. I click on it to open it and Flash tells me that it has 'failed to open' it. I really don't want to start over again because it means another week of missed sleep and meals. Is there any way I can retrieve the document? I was using Flash CS5.
View 3 Replies
May 18, 2010
Am I using TwitterScript to retrieve Twitter data for inside a Flash site. Due to Twitter's crossdomain policy, I need to setup a php proxy...Firstly I made a simple one
<?php
$url = $_GET['url'];
readfile($url);
?>
but I then get this error
URL file-access is disabled in the server configuration
which is only resolved by getting my host to turn fopen() on, which I don't want to do.
Then I found this
<?php
function get_content($url)
{
$ch = curl_init();
[code].....
How do I get the XML data out of that string?
View 1 Replies
Dec 1, 2010
My swf will potentially live on sites with embed codes that do not allow script access to the movie. I need to pull a cookie from response which is typically simple using javascript, but as the swf does not have access to script, javascript is not an option. Can I access cookies or the cookie header in the response? If that is not possible is there any access to the raw response, headers and all?
View 1 Replies
Feb 14, 2011
How to fix date to retrieve minutes/hours with zeros ?
E.g. it's 05:09 AM >
trace(_date.getHours()+":"+_date.getMinutes()); //5:9
But I want 05:09 instead of 5:9 - so how to add zeros?
var _date = new Date();
_min = _date.getMinutes();
//fix date:
var _str:String = _min.toFixed(1);
_min = Number(_str);
trace(_date.getHours()+":"+_date.getMinutes());
= 5:9 ....
View 2 Replies
Nov 28, 2011
I'm using Flash 4.0 as UI tier, and I'm trying to send data to the server side, which runs on Tomcat. I wrote a servlet that the calls are directed to it. But I do not understand how can I see the data that was sent from the flash tier. to clarify, hereby example:
Flash tier:
<fx:Declarations>
<s:HTTPService
id="setCustomerDataService"
[Code]....
how can I retrieve "data" from Flash, in my Servlet?
View 1 Replies
Feb 27, 2012
I can't retrieve an equivalent to selected button on spark .
A bit of code:
_selectedBtn.selected=false;
View 2 Replies
Feb 2, 2009
I am newie to Flash and actionscript. However, I have some years of programming experience, Java, VC++, JSP, ASP, and etc.Now, I have a project to about E-Business. I want a method to embed some data into a flash then retrieve it later. The idea is that I want some secure protection for the data embeded, then the data (maybe audio, video, or photoes) is encrypted first (so the data is changed) and embeded into the flash. When the viewer want to view the flash, it will be prompted to input a password, then the flash will try to use the password to decrypt the data and let the flash player show it.
View 0 Replies
Jun 20, 2009
above.the .swf is already embedded in html page. and i have couple of buttons from .swf file and how do i call call the html page with the button inside .swf file
View 7 Replies