Hi All is there any way to locally define a variable in a function and then pass it to the oher function. I mean to say is it possible the pass a local value from one function to other function.
Somebody Please suggest me the solution.
Thanks in advance
...
In Flex, is it possible to include some kind of MetaData to a property, to be able to list all possible values that a property can use? I want to be able to list the values when calling the property from MXML, as in the case of for example the property enabled or visible, where the user gets a list of "true/false".
...
Hi, I'm looking for some help with an xml based slide show.
As it is the code is a bit sloppy and it's not entirely completed, but atm I just can't get past the current error i'm receiving.
The error i'm getting is (translated) something like:
TypeError: Error #1009: It's not possible to to get access to a property or method with the o...
Hi,
I've got two flash movies on a page. Using the Flash IDE I'd like to implement remote debugging when a particular movie loads. My problem is that the debugger attaches to the first loaded movie - not the one I want.
Thanks,
Josh
...
I'm looking to make a project in Flash that can dynamically load and unload other SWF files, where a SWF file can loaded, and a Movieclip inside can send information to the framework, and the framework can send information to the Movieclip.
Thanks!
...
I'm about to start a project where there will be a Flash application where the visitor customizes a profile with externally loaded images and texts. Then the visitor needs to be able to download that profile as a dynamically created swf with all that external content baked into the swf.
Any ideas how to achive this?
Thank you!
...
Hi when I add a new component using Actionscript I want it to fade in smoothly, for example this component
var df : DateField = new DateField();
df.text = DateField.dateToString(new Date(),stringFormat);
df.formatString = stringFormat;
I tried this
var fade : Fade = new Fade();
df.setStyle("showEffect", fade);...
And by adjacent, I only mean one unit left, right, up, or down. Diagonals don't count. You know the x,y grid coordinates of both positions.
Ultimately this is for AS3, but answers in pseudo code would be sufficient.
...
I have an app where I am looking to make the enter key act like a tab key. I can easily capture the keypress event and setFocus to a textinput field. The problem is figuring out which textinput field to give focus to. I have this code
trace(this.window.focusManager);
//returns TheWindow86.focusManager
trace(this.window.focusManager.ge...
Say I have two functions that expect ...rest parameters
private function a(...myParams):void
{
trace(myParams.length); // returns 3 parameters 1,2,3
b(myParams);
}
private function b(...myParams):void
{
trace(myParams.length); // returns 1 parameter (array) [1,2,3]
}
a(1,2,3);
The function a gets an array of parameters 1,...
Using NetStream to stream content from http, I've noticed that esp with certain exported h264's, if the player encounters an empty buffer, it will stop and buffer to the requested length (as expected).
However once the buffer is full, the playback doesn't resume, but instead jumps ahead, as such- instantly playing the buffered duration ...
Whats wrong with my buttons? here http://hiddenbrookstudio.com/index.swf, see how they rollover and dissappear and takes a second for them to reappear they should look like this http://www.hiddenbrookstudio.com/popup.html . Not counting the last button what did I do wrong here? I am modifying code of a programmer who is not with my compa...
For the attached code, I get the following compile time error :
exception during transcoding: Font for alias 'myFontFamily'
with bold weight and italic style was not found by
family name 'Kundli Hindi Normal'
I have installed other Hindi fonts, and I get the same error for them as well.
Though I don't get any error for standard fonts...
I'm reading this book on C# and .NET and I'm learning a bunch of cool stuff. I've read the part where the author talks about dynamically loading an assembly and creating an instance of a type in that assembly.
In AS3, it's possible to do the same kind of stuff, except for one thing : you can ask the compiler to not compile a set of cla...
My flash game needs to connect to my PHP Socket Server. Because of security things, a policy file has to be send to the flash client when it tries to connect.
The following is what I've done.
In Actionscript / Flex 3 / Flash:
Security.loadPolicyFile("http://[SERVER.IP]:9000/crossdomain.xml");
socket.connect(hostName, port); //connect ...
I'll show you the function first.
private var areaCollection:ArrayCollection;
private function generateAreaCollection():void
{
areaCollection = new ArrayCollection();
areaCollection.addItem({Areal: "Totalareal:", Verdi: int(totalArea * 100) / 100 + " kvm"});
areaCollection.addItem({Areal: "Hovedtakets areal:", Verdi: in...
When you have two of the same records in your data providor (i.e. the same object twice in an array) then the datagrid only allow you to select one of them, see the example below - you can only select the last "Moo".
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute...
Hi,
I'm trying to do an http post from flash on my website to a method in a controller (My site is on Asp.Net MVC) and I'm getting this error:
Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://www.mysite.com/Home/DoSomething
at Main/postToMyWebsite()
Any ideas of why these errors happen and how to preve...
Hi,
Here are a few of the things I need to know:
What do you put for the URLRequest? It's confusing me a bit since Asp.Net MVC is methods and not pages
How do you assign parameters for the POST?
How to you execute the URLRequest to complete the Http Post?
Any information on how to do a Post from Flash to an Asp.Net MVC Application w...
Hi,
I have a method: myMethod() {} that I want to make accessible to javascript. I've done a bit of research and found out you need to add a callback to ExernalInterface, so here's what I have done:
ExternalInterface.addCallback("invokeMyMethod", myMethod);
Now when I load up my web page with the flash on it, I get an error:
Referen...