Hi,
I use the code below to create 3 movie clips.
var A:Array = new Array();
for (var i:uint = 0; i < 3 ; i++) {
A[i] = new hayvanSec();
A[i].x = 240+i*160;
A[i].y=300;
addChild(A[i]);
}
I have 10 image files in the library. I want to show one of these images inside those dynamically created movie cli...
Hi there,
I am trying to add some Sprite objects as the contents of an array, and I would like to be able to "clear" them from the stage. I would assume that if there are loaders involved, I need to do
_imgArray[i].close();
_imgArray[i].unload();
And if I am using a sprite, I can do:
removeChild(_imgArray[i]);
None of the above ...
I was playing around with papervision3D and want to create a reflexion to a group of planes.
I load dynamically images through XML...
Using bitmapMaterial the result of reflexion doesn't appear in right order place. Does anyone know how to fix that?
ex:
pic1, pic2, pic3, pic4 (normal pics above)
pic2, pic4, pic1, pic3 (reflection appe...
I saw that you can embed meta-data into images very much like you can in mp3s, here.
Can someone point me to a tutorial of how to embed and read this sort of information w/ photoshop and flex together?
I really wouldn't know where to start... Tried googling but I'm not sure I have the right keywords down.
Thanks!
...
I have an image loader that I am attempting to resize dynamically.
I would like to make sure that the aspect ratio is kept intact so that the image doesn't stretch.
When I reload the image (re-populate it with another image via the loader), there is a resize function that is called. I would like to know what I might be doing wrong with ...
I created a swf that I have on my website. The swf loads xml data. it works fine when I test it locally. But when I upload it to the server, I get a IOErrorEvent(). Why is this occurring?
Here is the code for the XML file:
<?xml version="1.0" encode="UTF-8"?>
<menu>
<col>///~~~~~~~~~~~~~~~~~~~~~~~
<tile>
///The "thumb" tag should indi...
I want to show some html in a text area control.
Is it possible to embed swfs in the html?
...
In Flex I'm using the following code to allow sorting in a DataGrid (the data is paged and sorted serverside).
protected function headerReleaseHandler(event:DataGridEvent):void {
event.preventDefault();
var c:DataGridColumn = columns[event.columnIndex];
var index:int = c.dataField as int;
var isDesc = c.s...
In Flex, how can one set the TextInput to "unselected" (which mean not only focus is out but also, that if you text on your keyboard, the TextInput won't be changed) on the event of pressing the Enter key? I know how to change the component that has the focus using the FocusManager, but I don't want to change the component that has focus...
Hi,
After some search and reading the Graphics class document, I can't find a way to specify the line style of a line. I mean whether the line is a solid one or a dotted one. Could anybody help me?
Thanks!
...
Hi,
in my project, I let users pick pictures using the FileReference class. I then load these pictures into their .data properties, using the load() function. After this I perform some local manipulation and send them to the server.
What I would like to do, is to be able to iterate over the picked FileReferences again, load them into ....
I am trying to load my png file to my application. here is the code
var map:mapLoader = new mapLoader();
map.loadMap("tile.png");
Then here is my file that loads it. it throws the error right when it gets to
loader.load(new URLRequest(currentMap));
if I comment it out. then the error goes away. below is the code in its entirety
p...
Flash is throwing an error saying that my constructor has 0 arguments when in fact, I have one. Below is my code. Thanks in advance for your help.
package com.objects {
import flash.display.Sprite;
import flash.events.*;
import flash.display.Stage;
public class Ball extends Sprite {
private var yDir = 1;
private var xDir:N...
Relevant things:
I had fullscreen code working before I did a security update on the flash player.
Nevertheless, I still can fullscreen Youtube right now
I'm doing the fullscreen activation in response to user clicks (therefore no security is blocking it AFAIK)
stage.displayState is null all the time, in the main timeline and even afte...
I am trying to center an image in the middle of the stage and scale it proportionally to the correct aspect ratio based on its loader's size when the image is loading.
In my main app runner I do:
private var rec:Rectangle = new Rectangle();
private var img:BitmapDisplay = new BitmapDisplay();
stage.addEventListener(Event.RESIZE, setRec...
Hi,
is there any way to sort Strings correctly in different languages than English? In German we have Umlaute, and e.g. 'ä' should come right after 'a' in the ascending sort order.
I am using ObjectUtil.stringCompare(), but it puts those special characters always to the end. Any ideas how to solve this? I thought the locale (de_DE) wou...
I have tried several different ways, but it seems that it never sends the empty array value to the server
_vars["myObject[array_list][]"] = null;
_vars["myObject[array_list][]"] = [];
It only seems to work if I provide a value (which I am trying to avoid). What I would like for it to do is send the url param: myObject[arra...
I'm fading out a Bitmap in AS3 by repeatedly applying a ColorTransform every frame to its BitmapData;
_bitmap.colorTransform(_bitmap.rect, new ColorTransform(1, 1, 1, .9, 0, 0, 0, 1));
When applying the apparent reverse to fade it back in I get a discoloured image.
_bitmap.colorTransform(_bitmap.rect, new ColorTransform(1, 1, 1, 1.1...
I'm building a Flash app (as3) that allows users to embed photos of themselves in a scene--think carnival-style cutouts (or faceInHole). I like the interface design for image manipulation at FaceInHole, which puts anchor points and a skeleton around the boundaries of the uploaded image and lets users drag the image to change its positio...
I did the following code. I know it's horribly written, but it's only a box with two combo boxes and a textinput bellow being added to a VBox, whose id is "garage". The problem, is that, however I do it, when I open the combo box the program slows down so much it's unbearable to use it any longer. I'd like to know if you have any idea on...