ActionScript 2.0 :: Using The Same Script For Two Different Operations?

Aug 25, 2010

I am trying to use the same script, an image uploader (that uses PHP), twice to upload two different images into two different scroll panes using two different buttons, while displaying the current action in a text area.I would have thought this could be done by changing the names of the buttons etc and then changing them in the script to match, but I'm not entirely sure how to go about doing this (I am completely new to Flash!)

ActionScript Code:
//Allow this domain
System.security.allowDomain("http localhost/");

[code].......

View 1 Replies


Similar Posts:


ActionScript 1/2 :: Resetting Operations In Particular Frame

Nov 6, 2009

I've created a application where the viewer could change colours, add text, add logos, rotare them, etc... How do I create a reset button which resets everything to back normal in a specific FRAME? What functions do I have to use?
E.g.
Frame 5 is used to Add colours and text, etc...
Frame 10 is used to Add logos,scale them, rotate them, etc...
I need a reset button in Frame 5 to make only the things which were changed back to normal.

View 1 Replies

ActionScript 3.0 :: Low Level Text Operations

Aug 2, 2011

I need for my little project know a way to do following things:

- Getting any character from string (preferably operating on strings like on 1 dimensional arrays)

- Get ASCII code for character

- Convert number which contains ASCII code to character

View 7 Replies

ActionScript 2.0 :: How To Unload Whatever Operations Cause That Layer

Sep 9, 2005

url...when you click on DATES it will bring up an event calendar everything works fine but when i click on another nav link like PHOTOS the dates remain visible!this is a serious problem and i cant figure out how to unload whatever operations cause that layer.

View 3 Replies

ActionScript 2.0 :: More Short Hand Operations?

Jul 27, 2006

This is what Have done but will take up a lot of lines

Code:
check.onRollOver = function(){
_root.check.gotoAndStop(2);
};
check2.onRollOver = function(){

[code]....

View 7 Replies

Flex :: Event - Shoots Out When All The Operations In A Mx:state Tag Are Done?

Aug 28, 2010

Let's take the next example:

<mx:State name="sayHello">
<mx:SetProperty name="preText" target="{this}" value="Hello"><mx:SetProperty>
</mx:State>

Can I somehow know when preText property has been set to hello?

[Code]...

View 1 Replies

Flash :: Bitwise-shift Operations In AGAL?

Jan 18, 2012

If I encode all colors into one single float value (RGB) as:

//Each Channels are from 0 - 255
red << 16 | green << 8 | blue;

How can I retrieve those color channels back in AGAL? There doesn't seem to be any bitwise operators.

View 2 Replies

Actionscript 3 :: Number Type And Bitwise Operations

Feb 29, 2012

I want to pack epoch milliseconds into 6 bytes but i have problem. Let me introduce it:

[Code]...

View 2 Replies

ActionScript 3.0 :: Understanding Transfer Matrix Operations

Nov 14, 2010

I'm editing the MotionPath LinePath2D by Greensock to make it become LinePath3D. However I'm stuck in editing this method:

[Code]....

I don't get the operations Greensock does to find the y and x inside the atan2. Why does he multiply xChange (which is a scalar and it should be the delta-x of the Line segment [IMG]) to the b component of the matrix and then sum it to the other thing?

[Code]....

View 0 Replies

ActionScript 3.0 :: Math Operations In Text Field

Mar 22, 2012

I'm trying to make a calculator to convert radians to degrees. I can do it with radians in decimal form (0.523 instead of PI/6, for example) with no problem. I'd like to do it in the correct way, but I don't know how to make math operations directly in text field nor introducing the PI number.

View 2 Replies

Actionscript 3 :: Flex WebService Using WSDL - How To List Available Operations

Jun 28, 2009

I'm using WebService class with WSDL.How to list available operations in WSDL and their parameters?There is operations property but it's empty.

View 2 Replies

AS3 :: Conditional Drag And Drop Operations In Flex Tree

Mar 25, 2010

I am currently working with a hierarchical tree structure in AS3/Flex, and want to enable drag and drop capabilities under certain conditions: Only parent/top level nodes can be moved Parent/top level nodes must remain at this level; they can not be moved to child nodes of other parent nodes Using the dragEnter event of the tree, I am able to handle condition 1 easily.

[Code]....

View 1 Replies

ActionScript 3.0 :: Number Operations - Multiply 17.4*32.8 The Result Is 570.7199999999999?

Feb 13, 2011

I am working on a project where I need a lot of calculations.I found a really strange and very annoying problem in Flash: If you try to multiply 17.4*32.8 the result is 570.7199999999999 !!! This is just a single example.In this way my application looks buggy sometimes. What's the reason for this wrong result?In my application I don't want to round the numbers .

View 5 Replies

ActionScript 3.0 :: Perform Operations On Filters - Specifically The DropShadow Filter?

Feb 9, 2009

I was wondering whether it would be possible to perform operations on Filters, specifically the DropShadow filter, such as resizing it. Are there any known ways to do it?

View 7 Replies

Actionscript 3 :: Turn Negative Number To Positive With Bitwise Operations?

Jul 16, 2011

Is there a direct way how to turn a negative number to positive using bitwise operations in Actionscript 3? I just think I've read somewhere that it is possible and faster than using Math.abs() or multiplying by -1. Or am I wrong and it was a dream after day long learning about bytes and bitwise operations?

What I saw was that bitwise NOT almost does the trick:

// outputs: 449
trace( ~(-450) );

If anyone find this question and is interested - in 5 million iterations ~(x) + 1 is 50% faster than Math.abs(x).

View 4 Replies

ActionScript 3.0 :: Disable Anti-aliasing Of Graphics Operations In Sprites?

Nov 1, 2009

I'm doing a lot of lineTo() operations within a sprite but now I need to draw a line WITHOUT anti-aliasing applied. I assumed it would be easy enough to disable anti-aliasing either for a single draw operation, or in the very least for the entire sprite - but I'm really struggling to work out how to do that.

View 6 Replies

Flex :: Bitwise Operations Without Bitwise Operators?

Sep 19, 2009

Here's an example I ran across:

private function bitwiseAnd(a:int, b:int):int {
var result:int = 0;
var n:int = 1;[code]....

So basically all I need then is bitwiseOr and bitwiseNot and I'm set.The reason is that Pixel Bender doesn't support bitwise ops (inexplicably) but does support various math operations. Also they don't support loops for Flash either, but the above can just be expanded out.I thought about doing bitwise ops without bitwise operators a while back, but couldn't picture how to do it. I wouldn't know how the above was derived logically either.

View 2 Replies







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