I am trying to access an XMLList item and convert it to am XML object.
I am using this expression:
masonicXML.item.(@style_number == styleNum)
For example if there is a match everything works fine but if there is not a match then I get an error when I try cast it as XML saying that it has to be well formed. So I need to make sure tha...
Hi all,
I have a datagrid with custom itemRenderer. Now I need to setfocus int the grid cell by cell. For that I Googled & got a way i.e
var findrowindex:int = 0;
//nextButton Click Handler
var focusedCell: Object = new Object();
focusedCell. columnIndex = 3;
focusedCell. rowIndex = findrowindex;
dg.editedItemPosition = focuse...
I have a custom HBox as so....
public class MyBar extends HBox {
public function MyBar() {
super();
this.height = 65;
this.percentWidth = 100;
var newButton:Button = new Button();
//.....
newButton.y = 20;
var spacer1:Spacer = new Spacer();
spacer1.percentWidth = 50;
var spacer2:Spacer = new Spacer();
spacer2.percentWidth = 50;
t...
I have a flash movie that is being used for several websites. On each site I would like to specify a different XML file inside the markup. How do I grab that string and use it in ActionScript?
in markup i want to do this:
<object ...
<param name=FlashVars value="urlXML=myXML.xml" />
</object>
in actionscript 3.0, im trying to do ...
I have this code which makes the ball bounce, but what I am looking for is to shoot bullets from the ground and once they hit the ball they should bounce it back upwards. The goal is not to let the ball hit the ground. I am sure this has been done before, but I guess am too dumb to figure it out.
The Code:
package {
public class ball ...
Does anyone know how to determine the "apparent width" or visual width of a Plane or DisplayObject3D that has a variable rotationY.
Ie
plane.width,
containerSprite.width
etc?
...
I'm using BlazeDS to connect Flex with Java. I'm having trouble passing ArrayLists of custom objects from Flex to java.
I have two objects, one is called Category, the other Section. A Category has an ArrayList of Section objects. I can send an ArrayList of Category objects back and forth between Flex and Java, the problem is when ...
Hi,
I have a flash file that contains actionscript3 in it. I am trying to export my file as a .mov to play in quicktime. Sometimes it will work, then if I make a change to my file (moving a few frames around, but not changing the script at all), it will then export an empty file.
Does any one have any tips on what I can do? Maybe how to...
So I want a way to set up events so that I can pass data without creating closures \ memory leaks. This is as far as I have got:
package com.events {
import flash.events.Event;
public class CustomEvent extends Event {
public static const REMOVED_FROM_STAGE:String = "removedFromStage";
public var data:*;
public f...
Is there a way to correctly tween/animate meshes in Flash authoring tool?
Shape tweens don't recognise movement of specific vertices, don't preserve connections and generally mess things up. Shape hints are too few for any non-trivial mesh, and too much manual labor anyway.
I am trying to accomplish smooth animation between two mesh sh...
I am loading an as2 swf into an as3 swf. When I am debugging the as3 application (I am using flex builder as my ide) I can see the debug output from the as2 app. You can't call functions or properties of an as2 swf from within an as3 swf so I have no way of knowing what is going on within the as2 swf programmatically.
Is there a clever ...
Hello all,
I wish to upload from my Flash Application (AS3) to imageshacks XML API. I wish to know how I can do this.
"In Flash, we must POST the data using the UrlRequest and UrlLoader classes, however we run into a limitation of the Flash API. The data property of a UrlRequest can either be a UrlVariablesByteArray object. There is no...
This is a question specifically about creating a custom Loader class as a followup to http://stackoverflow.com/questions/758322/how-do-i-modify-existing-as3-events-so-that-i-can-pass-data. If this wasn't the right way to go about this, let me know.
I have a custom Loader class and a custom LoaderInfo class. What I can't figure out is ho...
I have a main .fla file that I am using to load a sequence of three games. If the user wins a game, they go on to the next game. Is it in any way possible to pass to the main project whether the user has won the game? I have tried using loader.content, but that does not seem to be working. I am using Flash CS3.
...
Hi,
I have a little HTML based Adobe AIR project I'm playing with and I'd like to add an existing SWF to the project. Now, I can see it running via the trace/log messages coming through from the SWF, but I can't seem to call any function within the SWF. I've read that the ExternalInterface function isn't available within the Air cont...
Hi
how to decrease the number of digits before decimal point in action script.
for example 10000 means it prints only 10 and
12345=12;
90000=90;
...
I want to create a a application in actionscipt 3.0 that allows the user to listen to music and read descriptions of the music. For this to happen i suppose there should be a database where the textbits and music is located and then flash fetch the info when the correct buttons are pushed. The database will contain up to 100 tracks and t...
I have a Flash/AS3 project I am trying to add a call back on, I added the call back like so:
ExternalInterface.addCallback('force_refresh',force_refresh);
and I am calling in from JS like this:
function thisMovie(movieName) {
if (navigator.appName.indexOf("Microsoft") != -1) {
return window[movieName];
} else {
...
I am currently developing a rails application that tries to copy/move videos from one bucket to another in s3. However i keep getting a proxy error 502 on my rails application. In the mongrel log it says "failed to allocate memory." Once this error occurs the application dies and we must restart is.
...
Observed behavior:
I have a page of UI sliding onto the screen.
On slide complete, activate buttons.
If mouse already over a button, the rollover does not happen (since MOUSE_OVER hasn't technically occurred)
Desired behavior: 1, 2 the same, but on 3, I see my rollover.
Is there any way to easily do this, aside from something brut...