as2

Create key pair for BizTalk AS2 connection

I need to create an AS2 connection in BizTalk Server 2006 R2 to communicate with a business partner. I've worked with BizTalk AS2 config before and the BizTalk docs have pretty good walkthroughs about how to configure everything, but they don't talk about how to get/generate a certificate, and I don't have much experience there. What is...

Has anyone used the AS2 protocol for EDI?

Hi I dont know if anyone can point me in the right direction of writing code to send a file by AS2? Many thanks Mark ...

unresolved symbols / missing ] after element list

I'm removing the button interface from a Flash AS2 drawing tool. All the actions performed by the SWF buttons are now called from the HTML via JS and ExternalInterface. The drawing tool can add text creating a TextField, and draw or add an image creating an empty MovieClip When the JS code calls the method to create the TextField, Fire...

Parameter sourceBitmapData must be non-null.

I am trying to copy the pixels of a bitmap data. but I keep getting the following error Parameter sourceBitmapData must be non-null. it happens in the method drawImage. exact after my trace that says "got canvas data". canvasData.copyPixels(image,tileRect,tilePoint); Below is my code package com.objects { import flash.displ...

How do I change a fill colour using ActionScript 2?

I have a very simple .fla file. There's a shape on the stage with a fill, and I want to change its colour when the movie starts. Googling seemed to suggest: myColor = new Color(myClip); myColor.setRGB(0xFFFF00); but it didn't seem to work. Any suggestions?.. ...

AS2 XML Driven FLV Player

Sounds fun right? Here's my as2 code. Which I think is the only thing worth looking at because I'm pretty sure that's where my error is. Right now, this code draws no errors, but nothing is shown on screen. I have a New Video instant on stage labeled as videoPlayer AS2: import mx.transitions.Tween; import mx.transitions.easing.*; va...

Loading Series of Multiple Swfs in a MovieClip in AS2

hi guys, Im trying to load series of external Swfs into a Movieclip on stage. The swf are 800 x 600 in dimension whereas as the container is 400 X 400. Whenever i try to load the external swf in the container,the container takes the size of the loaded swf instead of 400 x 400 .How can i overcome this? I want to any swf loaded into th...

Calling a movieclip present on a different scene in flash

Hi, I have two scenes : 1: Menu 2: MainScene Now, the menu scene has a movieClip called adds : Menu->adds Adds has a label fadeIn : Menu->adds->fadiIn. If I am on scene MainScene and want to call Menu->adds->fadeIn in as2.0 how will I go about doing that? ...

Dynamicly added movieclip from library tween problem

Hi, I'm having trouble with tweening (with TweenMax) movieclips added dynamically in a for loop. The targeting works fine but the tweens are just not happening. :( My second problem is that I need to randomize my array but I dont know how. Anyway here is my code, and thank you for your help. :D import gs.*; import gs.easing.*; stop(...

access netStream or movieClip from a loop AS2

I've got a load of videos var ns1:NetStream = new NetStream(nc); container1.compMa.theVideo.attachVideo(ns1); ns1.play("sukh_diesel.flv", 1); // var ns2:NetStream = new NetStream(nc); container2.compMa.theVideo.attachVideo(ns2); ns2.play("sukh_beneath.flv", 1); //and 4 more, which I've left out to be concise I want to pause them ...

Flash MovieClip width and height always zero

I'm loading a flash MovieClip (Test.swf) like below. The problem is I can't read the size of mc (mc.width and mc._width both return 0, for the height as well), but I need to scale it. I have the stage size, I can scale, but I don't have the size of Test.swf, so I can't scale it to fit into the stage... ActionScript2, not actionscript3. ...

flash external ExternalInterface call in as2

I have an external interface call which should retrieve some text from the html that the swf is embedded in. var name:Object = flash.external.ExternalInterface.call( "function(){return JSObject.get('Resource', 'name');}"); When I put the variable name into a textbox I get the correct text. when I use geturl with a clickTag, unde...

Loadclip in AS2 file nested in an AS3 container fails.

I have an old AS2 project that needs to run in an AS3 container. When the AS2 swf is loaded, it communicates with the AS3 container using gskinner's SWFBridge. Once a connection is established, the AS2 file loads in all necessary xml data. When this is complete it calls a function that begins the process of loading external images. The f...

Actionscript Mouse control on ONE movieclip only?

In Flash/ActionScript2, is it possible to capture the mousemove, buttonup and down event but only within one MovieClip? At present, i can capture mousemove etc. via a listener, but only for the entire stage... I need to draw a rectangle for selecten, and then press a save button. The problem is i save the coordinates on mousedown and up...

Load flash file fom inside flash, but with parameters?

Question: I need to load a swf file from inside my flash. Now, normally I would use loadClip, but I need to pass a parameter (filename) to this swf. How can I pass a parameter there? ...

Scatter Algorithm

I need to randomly scatter a variable number of objects in a Flash movie. Just randomly choosing locations doesn't result in a visually pleasing output. Objects end up on top of each other, all clumped together on one side, etc. I'm looking for something similar to the algorithm that Photoshop uses to create a Difussion Dither when co...

How to send a request to javascript in AS2?

How can I pass a variable to javascript in actionscript 2? Thanks. ...

AS2 TweenLite : using TintPlugin

Hi, I have a problem with the TweenLite Tint Plugin in AS2. Is there a way to decrease the alpha color ? For instance : TweenLite.to ( mc, 1, { tint : 0x586AB4, blurFilter : { blurX : BLUR_FILTER, blurY : BLUR_FILTER }, dropShadowFilter : { blurX : BLUR_X, blurY : BLUR_Y, distance : SHADOW_DISTANCE, strength : SHADOW_STRENGTH, angl...

XML url link in Flash

Hi, I am new to XML and am having a small problem in Flash. I have a number of buttons. Each of these buttons need to open up a different URL which is in a xml file (I have added only one button for now (banstead), as I wasn´t sure how to add more). My XML: <?xml version="1.0" encoding="utf-8"?> <banstead targ="_self" href="http://www....

How to permit debugging on dependency AS2 SWF files?

I have a SWF that I wish to debug on with the flash debugger. I have the debug flash player and the 'Debugger' context menu option is greyed out. If I check the 'Permit debugging' option in the SWF publish settings, this does not become enabled. My hunch is that this is down to the fact that my SWF is being loaded by another parent SWF....