flash

Adding 2 videos in 2 different scenes doesn't work??? (error #1009)

自古美人都是妖i 提交于 2020-01-06 21:25:38
问题 I've been pulling my hair trying to figure this one out. I thought I am doing something very simple, but it fails miserably. All I am doing is this: I open a new document, import 1 video, then add another scene and import another video into the 2nd scene. I make sure the videos are named instances. Now, I press "Test movie" (Ctrl + Enter), but I only get a 2nd movie playing with the following error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at fl

How do I allow user to select tint amount in Flash Professional using ActionScript 3?

﹥>﹥吖頭↗ 提交于 2020-01-06 21:11:36
问题 So I was in the middle of making a type of test program where I would take parts of a shirt and the user could customize it with different colors. While I was doing that I realized it wasn't realistic as there was absolutely no fade with the color picker tool (code shown below). Is there any way to allow the user to use possibly a slider to change the level of tint on the color(s) being used on the shirt? import fl.controls.ColorPicker; import fl.events.ColorPickerEvent; import flash.geom

IE not retreving Flash Object src from Ajax response

旧时模样 提交于 2020-01-06 20:07:05
问题 I am trying to read the src attribute of the flash file which i get in the response of a url and create a new file through swfobject. But it returns me "undefined" when i read the src of the embed tag. My code below. The page i am doing a post on, only has the flash file in it. The reponse is as below: AJAX REsponse <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="930" height=

to pass variable from one swf to another swf in as3

ε祈祈猫儿з 提交于 2020-01-06 19:49:25
问题 I have a main swf in as3 and I load another swf in as3 in it. Now I want the main swf to pass variable to loaded swf. Which is not happening ? pls. help! Regards, Sagar 回答1: This can be done by Passing parameters to a loaded SWF application by changing the load parameters and using application.loaderInfo to get the variable. loader.load("SWFLoaderApp.swf?test=hi"); 回答2: Take a look at the LocalConnection class. :-) -EDIT- Apologies. I misread your question. I didn't read that the first swf

Using custom graphical assets in pure AS3 project

北慕城南 提交于 2020-01-06 19:35:01
问题 I created some button states in flash (swc), and I want to use them in a pure AS3 project. They are movie clips with class of neatButton_on and neatButton_off respectively. I call them like this: public class neatButton extends neatModule { private var stateOn:neatButton_on; private var stateOff:neatButton_off; private var modContainer:Sprite = new Sprite(); public function neatButton() { addChild(modContainer); modContainer.x = 200; modContainer.y = 200; stateOff = new neatButton_off();

ReferenceError: Error #1065: Variable is not defined when searching for a node by attribute

a 夏天 提交于 2020-01-06 19:27:17
问题 I've done this lot of times, but now I'm missing something.... I'm searching for a node by looking for a value in an attribute. If I try to trace: xmlQuestStructure.page[activePageIndex].label.@priority The trace it's ok, and I can read High, Medium, Low (the values I'm expecting). But if I try to trace this (where calculatedPriority is a String with value High, Medium or Low) xmlQuestStructure.page[activePageIndex].label.(@priority == calculatedPriority) I get ReferenceError: Error #1065:

Can't display .swf files on a page with httpHandler

Deadly 提交于 2020-01-06 19:11:31
问题 Read the last EDIT, please. I have a page in which I should display some media data. For this I'm using html tag, like this: <object type="video/x-ms-wmv" width="320" height="240"> <param name="src" value="some_media_url" /> <param name="AutoSize" value="true"> <param name="ShowDisplay" value="false"> <param name="AutoStart" value="false"> <param name="StretchToFit" value="true"> <param name="bgcolor" value="#ffffff" /> </object> In my case, I should get media data from SQL server by some

Can't display .swf files on a page with httpHandler

允我心安 提交于 2020-01-06 19:10:50
问题 Read the last EDIT, please. I have a page in which I should display some media data. For this I'm using html tag, like this: <object type="video/x-ms-wmv" width="320" height="240"> <param name="src" value="some_media_url" /> <param name="AutoSize" value="true"> <param name="ShowDisplay" value="false"> <param name="AutoStart" value="false"> <param name="StretchToFit" value="true"> <param name="bgcolor" value="#ffffff" /> </object> In my case, I should get media data from SQL server by some

Mouse Over in whole Stage?

人盡茶涼 提交于 2020-01-06 17:14:22
问题 I want to run an Actionscript function when a user has his mouse in my flash stage. Not in a specific button/image on the stage but just in the stage. But when trying to use mouse over action on stage i get this message: "This action requires an object to be selected on stage." So, how can i use mouse over in the whole stage? 回答1: In AS3 there's an event for when mouse leaves the stage so you could do something like this to get if the users mouse is in the stage. var _mouseOnStage : Boolean =

Forward MouseEvent in transparent bitmap to underlying MovieClip

删除回忆录丶 提交于 2020-01-06 16:52:06
问题 So I'm Bitmaping some heavy stuff to try bring down the [pre-render] and [render] which is quite high according to FlashBuilder's profiling. I thought this was going well until I realised that as soon as you change a MovieClip to a Bitmap, you lose the pixel based accuracy of the mouse move events (Over, Out, Move...), all your left with is the entire bounding box of the Bitmap, something which is less than desirable. I've got a game where many Bitmapped assets would be on top of each other