flash-builder

movieClip not stopping always looping

 ̄綄美尐妖づ 提交于 2019-12-24 14:03:16
问题 I have a class that gets a movieClip and then using addChild adds it to be displayed. Problem is that I cannot play or stop it at all. Basically I can't interact with the movieClip. Here is the code: public function Avatar(movieClip:DisplayObject) //class constructor { ... avatarSprite = MovieClip(movieClip) addChild(avatarSprite); avatarSprite.gotoAndStop(1); //this is not working trace(avatarSprite.currentFrame) //always returns 1 trace(avatarSprite.isPlaying) // returns false ... } When I

Using a button within flash movie in flex/flash builder

泪湿孤枕 提交于 2019-12-24 12:13:54
问题 Is it possible to build a UI with Flash CS5 that contains multiple buttons, and then have flex listen to those button events? My current plan is to load the SWF with SWFLoader and attaching listeners to the buttons in a onComplete event would be the proper way to set it up, however i cannot seem to find a way to access the buttons themselves and attach listeners to them. Of course i would give each button its own instance name. Pointers and/or examples would be greatly appreciated. 回答1: Once

Transitioning from FlexBuilder 3 to FlashBuilder 4 … there and back again

淺唱寂寞╮ 提交于 2019-12-24 10:57:55
问题 It's growing pains time again. Some of our stuff requires FlashBuilder 4 and some still requires FlexBuilder 3. Both are installed OK, and no projects use both IDEs. The trouble is, when I go back to work on a FlexBuilder 3 project it takes freakin' forever to build and I get weird errors like these: This doesn't seem to cause any identifiable problems except to throw up a modal dialog at various points in the build process, forcing user interaction. But I do notice that memory fills up fast

Change style of tabs in Flex 3

为君一笑 提交于 2019-12-24 06:42:32
问题 I am new to Flex 3.4. I want to change style of few tabs (highlight them) on click of a button. I came from a javascript background and not able interpret in Flex's way. 回答1: Styling tabs in Flex is sort of tricky - the TabBar and TabNavigator classes have a style called tabStyleName , which is the name of another separate style that defines the look of your tabs. Here's an example which changes a set of tabs from a red background to blue by changing the tabStyleName style on the TabBar -

Flash Builder AIR Project Background Image

三世轮回 提交于 2019-12-24 05:45:25
问题 I'm very new to Flash Builder and am trying to create an AIR app with a custom background. How can I put a background image in my project? I've tried just placing the image in the design view but it never shows up when I run the project. 回答1: Fixed it myself, by adding @Embed(source='/path/to/file.jpg') instead of what the browse function put: /path/to/file.jpg I got the idea from seeing how the icon on a button (which showed up) was written. Edit: After some more tinkering, it seems that

Spark DropDownList Custom ItemRenderer Issue

浪尽此生 提交于 2019-12-24 04:08:32
问题 I have a Spark DropDownList that has a custom ItemRenderer. The ItemRenderer, upon creation, checks the label text and if it matches certain criteria, then the label text color changes. The label text color is changing, however it is for the wrong label. What appears to be happening is that the label color that is actually being changed is in reverse order of how the labels are displayed in the drop down list. For example, the list contains the text labels: One, Two, Three, Four, and is being

Use Flex 4.5 and 4.0 in Adobe Flash Builder 4

倖福魔咒の 提交于 2019-12-24 00:00:27
问题 As the new Flex SDK 4.5 has become a stable release, I want to upgrade my apps to the new SDK. But without losing compilation with SDK 4.0 with which they are working perfectly well. I used Flash Builder 4.0 to build them. Is there a way in Flash Builder to conditionally compile with 4.0 and 4.5 and create two release versions in separate bin-debug folders? 回答1: Flash Builder supports multiple SDKs; but you can only use a single SDK per project. You have a few options: Use a build tool such

How do I manage library symbols with linked classes in Flash CS4 to compile/debug in Flash Builder 4?

这一生的挚爱 提交于 2019-12-23 23:19:57
问题 I'm building a video player using Flash CS4 (hereby referred to as "Flash") to create the graphic symbols and compiling and debugging with Flash Builder 4 ("FB4"). Here are the steps I take in my current workflow: --Create the graphic symbols in Flash. I've created a few different symbols for the player, but I'll focus on just the play/pause button ("ppbutton") here. --In the Library panel, I go to the ppbutton symbol's Linkage properties and link to a class named assets.PlayPauseButtonAsset

How can I use URL parameters while debugging in Flash Builder 4?

淺唱寂寞╮ 提交于 2019-12-23 13:07:29
问题 How can I use URL parameters while debugging in Flash Builder 4? 回答1: Modify your html template In the "html-template" directory in your project open "index-template.html" up and modify the following lines of code to suite your needs: var flashvars = {}; if (swfobject.getQueryParamValue("foo") && swfobject.getQueryParamValue("abc")) { flashvars.foo = swfobject.getQueryParamValue("foo"); flashvars.abc = swfobject.getQueryParamValue("abc"); } Please note that this is for a Flex 4 SDK project.

Does MOUSE_WHEEL have a min delta value before it fires?

走远了吗. 提交于 2019-12-23 08:53:14
问题 I am having some trouble with MOUSE_WHEEL delta values. It seems like the event doesn't fire unless I REALLY spin the dammed wheel. Which makes sense because the only values I get range from 3-30. I was hoping to catch 1-3 as well because if I just spin a few notches, nothing triggers and the app feels sluggish. FYI every other program on my machine feels those 1-notch spins just fine so it's not the mouse. Will AS3 not fire if the delta is less than 3? Here is the code private function