Flash :: Retrieve All MC In A Stage In AS3?
Aug 4, 2011How 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]...
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]...
Let say I have 3 objects of the MoveObject class. There is 1 symbol in the library linked to the MoveObject class. I dragged the symbol to the stage 3 times. Great.
If I type trace(this.x) in the class files it gives me the x value of all 3 objects.
My question is, how do I go through those x values one at a time?
Does anyone know how I can retrieve the "ORIGINAL" stage height and width that was set during compile of an Air/Flash ApplicationI have set the Application to compile to 1920x1080;I have stage.scaleMode = StageScaleMode.SHOW_ALL;and stage.nativeWindow.maximize();But when I trace stage.stageWidth I get 1280 which is the resolution of the screen.I was hoping to get the 1920.I cannot use stage.width or stage.getBounds(stage) because this returns 6000. Due to items being masked off screen.
With the stage.stageWidth being the screen resolution, I was hoping I could use that and mathematically work out the original using stage.scaleX. but even with SHOW_ALL scaling the entire application, stage.scaleX returns 1EDIT: I know what "Show all" does, you do not need to tell me about it.I also know what stage.width and stage.stageWidth do, but stage.stageWidth is returning what I believe is incorrect in this example and need an alternative.
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 Replies1. 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.
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 RepliesHow can I retrieve a session cookie inside Flash ?
($_SESSION['member'])
(I am using Flash 8 and ActionScript 2.0)
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 Repliesi made an ecard application. the "TO:" text box (input) should contain an emaill adress.can user import adress from his outlook contacts?
View 7 RepliesI 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 RepliesI'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?
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 RepliesI 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]...
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]....
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.
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.
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 RepliesI 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.
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
how to send data to asp thru flash & how to retreive data from an asp into flash...
View 3 RepliesIm 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]...
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.
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.
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!
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 RepliesAm 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?
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 RepliesHow 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 ....
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?
I can't retrieve an equivalent to selected button on spark .
A bit of code:
_selectedBtn.selected=false;