ActionScript 3.0 :: Retrieve Information Outside From Function LoadComplete()?

Aug 24, 2009

I load image - and need its width and height in global variables, i dont know the image width and high that will be loaded; does enyone can explain me why it get NaN NaN or 0 0 or how can I retrieve this information outside from function loadComplete()?

[Code]....

View 5 Replies


Similar Posts:


Flex :: Retrieve Information From Sql Database

Sep 30, 2009

I use flex and php to retrieve information from my sql database. What i have been doing is formatting the result from the database query into xml and then putting the result into an arraycollection. It all works fine except one of my database fields contains a lot of text that website users enter and as xml doesn't like tags like <> so I leave it un formatted but I would like to format it. Would I be better using flashvars or text than xml? Or is there another way?

View 3 Replies

ActionScript 3.0 :: Retrieve Some Information Back From LMS And Into Variables In Flash?

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

Android :: Retrieve Objects Item Information From ArrayCollection?

Aug 26, 2011

I am currently using the latest verion of Adobe Flash Builder to create a Mobile Application. For the application one feature is to allow the users to bookmark content an this is done by storing the id of the object to be Bookmarked into an SQLite db on the device. This part has been done successfully and they are stored fine.

Now what I want to do is to pull back the bookmarked id's from the database and pass them to a WebService call which needs to be made to an External Database. When I retrieve the Bookmark id's from the local database they are contained within object, I now need to find a way to take the id's from the database objects in the ArrayCollection and store them in a new array that will be passed to the WebService, as the webservice is expecting an Array of Int's and not Objects. Below is the code I created to see if the object items are within the array list of objects:

private function loop():void
{
var index:int;

[Code]....

View 1 Replies

ActionScript 2.0 :: Performance - Retrieve Information Of Different Tables In Mysql?

Oct 4, 2004

I'm building a Flash website with database information with php>mysql>xml>Flash mx 2004. I'm having some major problems!I need to retrieve information of different tables in mysql, and was worried about performance issues.The first query gets the whole model list...The second query will be performed after a model is clicked. Something like: select * from modelinfo where modelID=modelIDinFlash.

The third query is what I have a lot of trouble with! This has to run on the same time or immediatly after the second query. It reads the picture urls and id's from that particular model. I need the filenames for the picture viewer.But everytime I try this third query, the site becomes very slow and have problems displaying the model info.NOW I have a temporary solution: in the first table I have a field which states how much pics each model has, and this number Flash uses to build the nr buttons. But this is not a very solution since I want to keep everything dynamic. I also want to build a drag and drop function... something like a shopping cart. For that to work, every picture must have an unique ID.

View 1 Replies

ActionScript 3.0 :: Retrieve Information About Size (in Pixels) Of Loaded FLV File?

Feb 25, 2009

how to retrieve information about size (in pixels) of loaded FLV file? Video object returns 2 pairs of parameters (width,height) which are useless because returns always parameters passed in constructor of Video() object. Another pair is (videoWidth,videoHeight) which is always (0,0). I gave up...


I need this information to scale proportionally video clip to size of area designed to display this video.

View 3 Replies

Eclipse :: Retrieve Build Information After Build Completes In FDT?

Jul 30, 2011

Using FDT, when I have a debug configuration with several operations in the launcher chain and the final launcher opens in Flash Player, how can I retrieve the build output from the console once the build is complete and Flash player is running?

It seems that once Flash Player has started the console clears to make way for the application's trace output, but I need to be able to look back over the events and build times for each item in my launch chain while Flash Player is running. Is there a setting I can enable to either log my build output to a file or to preserve it in the console?

Edit: I know I can still read the info when building normally, this question is specifically for building with the debugger.

View 1 Replies

Flex :: Set Flashvars Of A SWF In It Before LoadComplete?

Nov 15, 2009

I have a Flash applet which I want to embed in a Flex file this loads a panorama file inside a SWF player (Immervision's PurePlayer)-[code]...

View 2 Replies

ActionScript 3.0 :: LoadComplete Event + Src Images In Anchors?

Feb 21, 2011

Suppose one does:

var myLoader:URLLoader = new URLLoader();
myLoader.load(new URLRequest(xmlPath));
myLoader.addEventListener(Event.COMPLETE, processXML);

[code]...

here xmlPath is the path to an RSS feed. I parse the xml and what not but then i define a dynamic text box in processXML which uses the parsed data. for example:

bla.htmlText = "<p><a href="http://www.fandango.com/drive+angry+3d_131568/movieoverview?wssac=123&wssaffid=11840"><img src="http://images.fandango.com/r84.9.1/ImageRenderer/69/103/images/no_image_69x103.jpg/131568/images/masterrepository/tms/94283/94283_aa.jpg" alt="Drive Angry 3D" title="Drive Angry 3D" border="0" /></a> Opens Friday, Feb 25, 2011</p><p><a

[code]...

This is fine except that because the loader event fires after loading the xml file the text is showing up "before" the src images inside this html actually are loaded...

View 1 Replies

ActionScript 3.0 :: Retrieve Value Outside The Function?

Oct 22, 2009

for example:

var retrieveMe:String;
box_mc.addEventListener(MouseEvent.CLICK, boxClick);
function boxClick(event:MouseEvent):void

[code].....

View 5 Replies

ActionScript 3.0 :: Retrieve Value From One Function To Another?

Aug 18, 2010

ActionScript Code:
package com
{

[code]....

View 5 Replies

ActionScript 3.0 :: Retrieve Value Out Of A Function?

Feb 9, 2010

i want the value of "newAngle" to be accessible outside of this function.

I am doing something dumb i'm sure....

Code:
function aim(e:MouseEvent):void
{
adj = mouseX - gun_mc.x;
opp = mouseY - gun_mc.y;

[Code].....

View 6 Replies

ActionScript 3.0 :: Retrieve A Value From A Function(e.MouseEvent)?

Oct 25, 2009

I would like to retrieve a value from a function(e.MouseEvent)?

[Code]...

When not, which solutions does replace this attempt?

View 24 Replies

ActionScript 3.0 :: Retrieve Data From Inside Another Function?

May 4, 2010

My previous several posts had to do with this, but now it's driving me nuts. I'm trying to use the same imgArray data in the xmlLoaded function in the initThumbs function.[code]...

View 1 Replies

ActionScript 2.0 :: MX Retrieve Javascript Function Returned Value Into Flash?

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

ActionScript 3.0 :: Load Xml Var Information Inside Other Function

May 21, 2011

How can I call a funtion and set a parameter to call a variable and load that information inside other function?

ActionScript Code:
//LOAD XML TEXT TO AS3 VARS
function loadXML(e:Event):void {
xmlData=new XML(e.target.data);

[Code]....

View 1 Replies

ActionScript 3.0 :: Assign Value To Loader And Retrieve From Event.COMPLETE Function?

Aug 19, 2009

i'm loading in multiple images using the same loader using a for loop. what i'm trying to figure out is how can i tell when the first 4 images are loaded. is there away to attach and index to each loader and then get it from the event in the on complete function? below is the code i'm using:

[Code]...

View 1 Replies

Get Information From A Flash Input Textfield To A Javascript Function

Aug 25, 2009

I have a web page with a couple of Flash Input TextFields. When I press a button on my web page, I am using javascript (jQuery) to get all the values from the text fields and checkboxes etc on the page.
 
In order to get a value out of my Flash TextField, I understand that I have to use the ExternalInterface API. I am using ActionScript 3.0 and Flash CS4.
 
In the flash IDE, I have a layer with just the textbox instance and another layer 'actions', which has all the actionscript.
 
As soon as I put: import flash.external.ExternalInterface
 
in my code, then the textfields full functionality does not seem to work on the webpage.
 
I assumed what I had to do was something like:
 
import flash.external.ExternalInterface;
ExternalInterface.addCallback("getFlashFieldText", getText);
function getText():String  {
return myTextField.text;
}
 
then I thought that perhaps I had to call a javascript function to return the textfields value like so:
 
function getText():void  {
var word:String = myTextField.text;
ExternalInterface.call("alert", word);
}
 
but nothing is working, and I think it is strange that the textfields functionality (some letters being styled) does not work as soon as I import the ExternalInterface class. I have tried putting the ActionScript 'actions' layer in a package, but it didn't help. As you can probably tell I am new to Flash and Actionscript, and I would be very greatful if someone could point me in the right direction.

View 3 Replies

ActionScript 3.0 :: Send Some Information To A Javascript Function On The Same Html Page As The Swf File Is In?

Nov 3, 2011

I am trying to send some information to a javascript function on the same html page as the swf file is in. I used the tutorial here on Kirupa but for same way it doesnt work.

ExternalInterface.call("fillForm('"+ l.x, l.y +"')");
ExternalInterface.call("fillForm", l.x, l.y);

These are the variations I tried.

View 1 Replies

ActionScript 1/2 :: Getting Information From XML Information Sent To Flash File From The Socket Server

Jul 5, 2009

I'm kinda noobish when it comes to getting information from XML information sent to my flash file from the socket server. OK so for example the server sends me this:

[Code]...

I want to get the name of the user and the X and Y position! Is there a way I can get this information without a load of fuss from functions and other junk remember im kinda noobish.

View 1 Replies

Flash - Obtain System Information Or Cpu Information Using Adobe Flex?

Feb 11, 2011

I want to build a program built around my pc specs. Is there a way to access such information as how much ram I have or how much cpu usage is being consumed, etc.?

View 2 Replies

ActionScript 3.0 :: XML - Using Outside Event Function - Use The Information That GotList Provides Outside Of GotList Itself?

Jul 20, 2010

I'm having a major issue with my XML.. I want to load it up and then be able to use it elsewhere outside the function that is called by the loader.. but so far haven't had any luck on this whole thing. I've tried static, global, etc. Even did a return within the "gotList(evt:Event);" function... so how do I use the information that gotList provides outside of gotList itself? Full code is below.

[Code]...

View 9 Replies

ActionScript 3.0 :: Can Not Retrieve By Name

Aug 5, 2009

I have this XML data that is coming in and am unable to find out why it will not match a image name with the requested name. It seems to when traced to be showing [object Loader]. I tried converting it to a string, but it will not accept the attribute as a string[code]...

View 5 Replies

AS3 :: Php - Retrieve And Set Page URL From SWF

Jan 2, 2012

I have seen more than a couple of sites using flash content and displaying it based on the URL string.

For example, accessing http://domain.com/ loads the site normally and the SWF object displays the home page and sets the URL to http://domain.com/#/home. Then accessing the About section sets the URL to http://domain.com/#/about

Also, if accessing http://domain.com/#/services directly (from the browser's address bar), loads the site and the SWF displays the Services section automatically.

View 1 Replies

C# :: Retrieve Variable Value From Flash

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

Php :: How To Retrieve Variable From Flex

Jul 12, 2011

an easy answer for 99% of you. I have a custom class 'Users()'. In PHP I have all the values being populated correctly. When I go to Flash Builder - and do the test function - All the data comes back properly. However, when I click a button and refer to the lastResult property of the CallResponder - it comes up NULL the first time, and then if the button is clicked a second time it will return the correct result. What step am I missing? I had the same problem with something simliar last night and am getting BEYOND frustrated - especially since I know it is some SMALL detail I'm overlooking.So just for clarification - lets say there is a button named button1So button1's click handler:1) Validates the text input properties2) Asks the server if that user and password match3) If they do - then I want it to grab all of that specific users info and put it into a User class. Again - when I test this function/method from within Flash Builder all the values come back as they should. It's just on the first button click they come back NULL...he second click they populate fine - I.E.-

Alert.show(currentUser.userFirstName); (First Click - NULL)
Alert.show(currentUser.userFirstName); (Second click - "Jack")

View 1 Replies

Flash :: Retrieve All MC In A Stage In AS3?

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

ActionScript 2.0 :: Cannot Retrieve Statements Value

Nov 20, 2009

well after I made all of the conditional statements I came to the conclussion and the annoyance that I cannot retrieve the statements value, I need help:[code]it does not return the value.. why?

View 5 Replies

ActionScript 3.0 :: Retrieve IGraphicsData

Feb 21, 2011

I have a MovieClip and need to get the drawing information from the graphics property. Is there any way to retrieve an IGraphicsData vector from the graphics property? In fact is there any way at all of retrieving the drawing information?

View 2 Replies

ActionScript 3.0 :: Retrieve The Array Name?

Mar 21, 2011

basically i have a custom function for the array class. and within it i can refer to the aarray by using "this" however in a trace statement i want to be able to get the name of the array.

Code:
// i think getDefinitionByName() might be of some kind of help.
var myArray:Array = [1,2,3,4,5]
Array.prototype.functionName = function(){

[code]....

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved