I have a php/flex value object that I am using to transmit data to/from in my application. Everything works great php->flex, but I am having an issue with flex->php.
In my MergeTemplateService.php service I have the following code. This is the method that flex hits directly:
function updateTemplate($valueObject){
$object = DAOFacto...
Hi have a Spark TextInput control but I haven't figured out a way to make is auto-resize...Does anyone have any code to get started?
...
I have something like this:
private var myVideo:Video;
public var videoDisplay:UIComponent;
...
videoDisplay.addChild(myVideo);
...
nsPlay = new NetStream(nc);
nsPlay.addEventListener(NetStatusEvent.NET_STATUS, nsPlayOnStatus);
nsPlay.bufferTime = 0;
nsPlay.play(pro);
myVideo.attachNetStream(nsPlay);
anybody knows how can I change the...
how to clear cookies , cache , and browsing history in as3
...
Hi everybody.
In my workplace we are mantaining a lot of ecommerce websites, some coded better than others. On some of those, sometimes uncaught exceptions are thrown, and showed by the alertbox from the flash player debug (If you have it installed).
To rise the average user experience I'd like to report all those exceptions throught a ...
How can I set my countdown correctly?
I'm counting from 33,000.00 to zero. It works in a fashion, but the minus operator appears in the textfield.
//Countdown from 33,000.00 to zero
var timer:Timer = new Timer(10);
var count:int = -3300000;
var fcount:int = 0;
timer.addEventListener(TimerEvent.TIMER, incrementCounter);
timer.star...
I know how to load in a .swf from an external file.
However, I don't know how to run one that's already in the library. Is it possible to have a .swf nested within a .swf? I want the final thing to be just one file.
Please help!
...
I'm working on some generative art animations using Flash ActionScript which appear much smoother at a frame rate of 72 FPS compared to 30 FPS or lower rates.
On a Intel Pentium E2200 Dual CPU @ 2.20 Ghz, Flash Player hardly uses more than 9% during the animations at 72 FPS. The animations are meant to run for a quite short period of tim...
What's the better way to make a coin rotation? I tried Math.random, but the coin doesn't wobble correctly.
starter code
//ROTATION
addEventListener(Event.ENTER_FRAME, enterFrameHandler);
function enterFrameHandler(event:Event):void
{
/*
ADD VELOCITY, GRAVITY, ACCELERATION
*/
coin.rotationY += 8;
}
tried this, but it has no gravity o...
Just looking on resources that break down how frames per second work. I know it has something to do with keeping track of Ticks and figure out how many ticks occured between each frame. But I never ran into any resources on why exactly you have to use the methods you use in order to get a smooth frame work. I am trying to get a thourough...
I need a tutorial that explains the basics of Flash and AS3 (including usage of OO in AS3)
Any recommendations?
...
I have a Flex 3.5 application that will serve multiple purposes, and as part of the visual changes that I'd like to make to indicate which mode the application is in, I want to change its background color.
Currently, the application tag looks like this:
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:com="vent...
Hi,
anybody know how to make a custom hslider in Flex 4 (spark) with two thumbs? Since Flex 4 the thumbcount property of the slider component isn't longer available (at the mx component it was easily to set). I have to style the track and the thumbs.
A tutorial would be nice.
thx,
tux.
...
I've a text file with content like this:
id, pixelsize, color, text
block1, 200x60, black, Header
block2, 200x180, white, Body
block2, 200x60, black, Footer
Now using actionscript,
I want to generate a psd file which would generate a 3 vertical block graphics (like this) after parsing the given file. All the blocks are placed verti...
I want to apply some effects to a sound but I couldn't find one library which has all these effects. Do you know any?
Effects are:
Phaser
Delay
Distortion
Cut Filter
...
I'm building a large flash site (AS3) that uses huge FLVs as transition videos from section to section. The FLVs are 1280x800 and are being scaled to 1680x1050 (much of which is not displayed to users with smaller screens), and are around 5-8 seconds apiece. I'm encoding the videos using On2's hi-def codec, VP6-S, and playback is prett...
I am trying to create an ActionScript 3 class that implements two interfaces. The interfaces contain member functions with different signatures but the same name:
public interface IFoo
{
function doStuff(input:int):void;
}
public interface IBar
{
function doStuff(input1:String, input2:Number):void;
}
public class FooBar implem...
I am trying to attach some of my actionscript class, inherited from Sprite, to my Flex application by attaching it to a UIComponent, then add UIComponent to a panel. However, the size of my Sprite class appears to be larger than the panel. So, I try to resize it using DisplayObject.scale property, but I need to know the size of my contai...
Hello, SO
I'm building modular application with 2 modules which share common vo: ShopRegionVO
This vo is also a BlazeDS entity and is mapped to a remote java object. When shell loads first module everything is ok. The second module is a list of ShopRegionVOs and item change is handled with the following code:
sendNotification(CoverageC...
Hi,
Is there any reason why this loop is getting stuck? I can't quite get my head around it:
var i:Number = -1;
do
{
i = Math.round(Math.random() * _totalQuestions);
}
while(_usedQuestions.indexOf(i));
Where _usedQuestions is an array of numbers. This array starts empty.
Thanks!
Edit: I want the loop to end if i is NOT found in the...