flash

Changing tab border color at run time in flex

╄→尐↘猪︶ㄣ 提交于 2019-12-25 01:34:00
问题 How can I change border color of tab in tab navigator control at runtime? I am trying to access it with its id "mytab" and update it's style. this.mytab.setStyle("bordercolor","red"); A TabNavigator has multiple tabs and I have to change style of few tabs based on some logic. StyleDeclaration is applicable for all the tabs under tab navigoter but how can use CSSStyleDeclaration based on componentid? The only shortfall with this approach is that Style can not be changed for individual tab. 回答1

Trigger jquery with flash

邮差的信 提交于 2019-12-25 01:15:49
问题 I would like to know if it is possible to trigger a jquery function to hide something after a Mouse event in flash. I want this to run when something is clicked in flash: $("#googframe").click(function() { $("#googframe").hide(); }); i know how to monitor a click in AS3 but how do i get it to trigger this. By the way i am very basic so a good explanation is much appreciated. Thanks. 回答1: From this source: http://codingrecipes.com/calling-a-javascript-function-from-actionscript-3-flash try in

Actionscript 3 Get clipboard data (fp 11)

﹥>﹥吖頭↗ 提交于 2019-12-25 01:15:37
问题 I would like to get clipboard text in AS3 (flex, flashdevelop). I know I can't just monitor clipboard, because while most other environments can, flash application are evil and can guess when they see a password and to what account it actually belongs. That's why I listen to an MouseEvent.CLICK event, but looks like it changed recently and Flash still says "no, no!". That's why I addEventListener ( Event.Paste ) to a TextField, but looks like the TextField doesn't dispatch such an Event. I

Website image manager with copy/paste? (Flash?)

青春壹個敷衍的年華 提交于 2019-12-25 00:55:34
问题 I'm looking for a web based upload manager, with good support for images. It should be as easy as possible for novice users to "add images to a website". I could use such a thing for two use cases: A CMS for external use, needs proper image support (1-file upload doesn't quite cut it). A Wiki for internal use, to get popular it will need the ability to put in screenshots easily without bothering with "save screenshot to file - upload file - put complicated markup on page to display image".

How to fill a rectangle with any color in AS3?

守給你的承諾、 提交于 2019-12-25 00:53:22
问题 Am drawing a rectangle to move my scrubBar in a progressbar, it's working fine, now i need to fill the rectangle with some colors ? private function startScrubbingOUT(_arg1:MouseEvent){ this.cueCard.stage.addEventListener(MouseEvent.MOUSE_UP, this.stopScrubbingOUT); this.cueCard.stage.addEventListener(MouseEvent.MOUSE_MOVE, this.scrubBarIsMovingOUT); this.scrubbing = true; var _local2:Rectangle = new Rectangle(this.controls_mc.progressBar_mc.x, this.controls_mc.scrub_outpoint_mc.y, this

fixed row width in DataGrid quirk

戏子无情 提交于 2019-12-25 00:29:42
问题 I've got this issue: I've got a dataGrid where whenever I set the column to not be resizable, the width gets messed up; works: var myCol:DataGridColumn = new DataGridColumn("Title"); myCol.width = 180; doesn't work (width is about 40pixels): var myCol:DataGridColumn = new DataGridColumn("Title"); myCol.width = 180; myCol.resizable = false; has anyone come across this or know why this is happening? I'm ready to just create my own dataGrid class now... 回答1: One thing that has helped us in the

How do you make Flash not render an object on the Stage?

橙三吉。 提交于 2019-12-25 00:14:45
问题 This discussion started over here but I thought it would be nice to have a definitive answer... So let's say you have MovieClip on the Stage (or a UIComponent for the Flex audience) - what do you have to do to not make it so that the user can't see the object but also so that the AVM2 doesn't even factor it in when rendering the stage for the user? I always thought the answer was to set visible = false but there is an argument out there that the object has to placed outside the boundaries of

Flash AS3 Attach SWC Symbol Based on XML Element

╄→гoц情女王★ 提交于 2019-12-24 23:37:34
问题 I have a SWC which contains 8 sprites, each of which has a linkage identifier with the pattern Icon01, Icon02, etc. I can create an instance of one of these sprites by doing something of the form var i:Icon01 = new Icon01(); this.addChild(i); However, I have an XML file which contains different messages, and each message contains an image element that is labeled in the same fashion ... <message> <image>Icon01</image> </message> ... I would like to be able to parse the XML and have the

How can I play .SWF in a Java Application?

蹲街弑〆低调 提交于 2019-12-24 23:36:58
问题 Could anyone tell me how to play a SWF file inside a Java application or does anyone know of a free plugin to do this? 回答1: You can also look at JFlashPlayer. http://www.jpackages.com/jflashplayer/ I have only played around with it a little, but it does have a developer license fee. 回答2: Maybe you can try JSwiff . I never used it myself but it seems quite useful plus it is open source ;) 来源: https://stackoverflow.com/questions/917982/how-can-i-play-swf-in-a-java-application

flash builder traces

时光总嘲笑我的痴心妄想 提交于 2019-12-24 23:29:59
问题 Flash builder traces out when swfs are loaded and unloaded eg: [SWF] C:\xampp\htdocs\car_explorer\fonts\Arial.swf - 174,937 bytes after decompression and [Unload SWF] C:\xampp\htdocs\car_explorer\assets\spin\EXTERIOR\BASE_12.swf Does anyone know how to disable these types of traces? 回答1: This question has already been asked, check it here: How to suppress only [SWF] traces when debugging Flash applications 来源: https://stackoverflow.com/questions/3564562/flash-builder-traces