cs3

How to dynamically set print page margins in Flash CS3

99封情书 提交于 2019-12-22 00:29:51
问题 //I can get the right margins by defining a rectangle and giving it the following dimensions: var rect1:Rectangle = new Rectangle(0, 0, 792,612); //When the print button is pressed the following code executes using the dimensions defined by rect1: prntCover_btn.addEventListener(MouseEvent.CLICK, printCover); function printCover(evt:MouseEvent):void { front_mc.visible = false; var myPrintJob:PrintJob = new PrintJob(); var options:PrintJobOptions = new PrintJobOptions(); options.printAsBitmap =

Hovering off DPAD sometimes makes character move infinitely in one direction

别等时光非礼了梦想. 提交于 2019-12-20 04:09:55
问题 I have a DPAD in my game when the player holds down let's say the Left DPAD, if he moves his touch to the Up DPAD and let's go, the player continues going in the left direction. It also works if you hold the a direction, lets say Up continue holding but move off the Up DPAD, sometimes you may continue going in that direction. What I've tried to prevent this: On direction clicks, trigger checks on whether your in motion, or already going a different direction Setting collisions to force these

How to make an image appear when hovering over text in Flash cs3?

故事扮演 提交于 2019-12-13 00:26:49
问题 How would the .fla that has text and when mouse is over that text an image appears look like? I was thinking to make the text a button and then add some script.... 回答1: This is relatively simple First, you'll need to make a MovieClip symbol containing your text. Give that symbol instance a name (say mClip1 ) Then, import your image and create a symbol from that too. Name it (e.g. img1 ) Then, hide the image img1.visible=false; Next, add the MOUSE_OVER and MOUSE_OUT event listeners to mClip1

Is it possible to publish a FLA from the command line?

非 Y 不嫁゛ 提交于 2019-12-12 07:09:43
问题 In our project we have a large number (hundreds) of FLA files created by the artists in CS3, from which we compile SWFs to use in our Flex/AS3 application. As part of a streamlined build/deploy system, it would be really handy to be able to automate publishing all these FLAs, and ideally deploying the SWFs too. I found some ways to do the batch publishing from CS3 using JSFL, but was surprised to discover CS3 doesn't apparently have any command-line functionality for this? This is on a Linux

Suggested php code to read file rating set by Adobe Bridge CS3

北慕城南 提交于 2019-12-11 19:46:00
问题 Background: I have been attempting to read the rating that is assigned in Adobe Bridge CS3 using the creative commons Metadata toolkit for php without success. I am using shared hosting so I do not have an oppotunity to recompile php with different modules. Is php code available that could be used to read the rating that is embedded in the .jpg file? I have read that this is an xmp (xml) formatted section within the file. 回答1: I'm posting my solution here in case someone else has a similiar

Avoiding cursor change over dynamic text fields in Flash CS3

依然范特西╮ 提交于 2019-12-08 16:03:37
问题 I have a dynamic text field inside a MovieClip symbol. Whenever the mouse pointer is hovered over the symbol, the cursor changes to the I-shaped text editing cursor. This may be a very stupid question, but is there any way to avoid this? Not even using mouse.hide() keeps the "I" cursor from appearing. 回答1: Have you tried setting the TextField's selectable property to false? This will prevent the user from dragging the mouse to select the text (thus they can't copy it to the clipboard), but I

How to dynamically set print page margins in Flash CS3

六月ゝ 毕业季﹏ 提交于 2019-12-04 21:02:49
//I can get the right margins by defining a rectangle and giving it the following dimensions: var rect1:Rectangle = new Rectangle(0, 0, 792,612); //When the print button is pressed the following code executes using the dimensions defined by rect1: prntCover_btn.addEventListener(MouseEvent.CLICK, printCover); function printCover(evt:MouseEvent):void { front_mc.visible = false; var myPrintJob:PrintJob = new PrintJob(); var options:PrintJobOptions = new PrintJobOptions(); options.printAsBitmap = true; front_mc.scaleX = 1; front_mc.scaleY = 1; myPrintJob.start(); myPrintJob.addPage(front_mc, rect1

Calling a method inside web service in action script 3.0

自闭症网瘾萝莉.ら 提交于 2019-12-04 16:06:47
问题 I need to call a method inside web service and passing to it it's parameters from action script 3.0 can anyone help me plz? i searched all over the internet and found solutions with flex and i am not working with flex i am working with action script 3.0 回答1: Here is the code that I used in one of my Flex projects... import mx.rpc.soap.WebService; public var service:WebService = new WebService(); override protected function initializationComplete():void { service.wsdl = "http://localhost:1133

Calling a method inside web service in action script 3.0

淺唱寂寞╮ 提交于 2019-12-03 09:14:52
I need to call a method inside web service and passing to it it's parameters from action script 3.0 can anyone help me plz? i searched all over the internet and found solutions with flex and i am not working with flex i am working with action script 3.0 Here is the code that I used in one of my Flex projects... import mx.rpc.soap.WebService; public var service:WebService = new WebService(); override protected function initializationComplete():void { service.wsdl = "http://localhost:1133/YourService.asmx?wsdl" // GetPayload is the method name you're calling on your web service service

remove the right click menu in flash 9

我只是一个虾纸丫 提交于 2019-12-01 16:04:47
Is it possible, using actionscript 3 to disable the right click menu? Any help greatly appreciated! I don't think you can do this in AS3 (Adobe probably never put support in there because it would prevent the user from accessing the security settings). There are ways to do it through HTML, etc. Check out http://www.actionscript.org/forums/showthread.php3?t=175669 You can use: stage.showDefaultContextMenu = false; to hide everything but the settings option. Starting with Flash Player 11.2, it's possible now to override the behavior for the right button click on the mouse, e.g. stage