apache-flex

Flex SEO & Google

元气小坏坏 提交于 2019-12-12 01:22:13
问题 I wrote a trivia game in Flex (flash). The site is written entirely in Flex. Almost all of the text is pulled from a database. It also has a fair number of images. The image file paths are pulled from the db. My site's not getting any hits. If I check on google site:mysite it the url appears only. I know that inbound links are important and I'll try to get some. At the moment, I don't have any inbound links. In google webmaster tools, if I look under the site's keywords, there are 0. My sites

How does Flex 3 datagrid paging work?

爱⌒轻易说出口 提交于 2019-12-12 01:17:12
问题 How does paging work, must Flex load in all the database records to determine how many pages to generate? Let's say I have a table with 10,000+ records and want to split it into pages of 10 records per page into a datagrid component. Does Flex load in the complete 10,000+ records, or just some of them? I would like to use PHP and AMF on the backend. 回答1: We also tried to make this a bit easier in Flash Builder 4 (and support any kind of data/server technology). 回答2: Here is a good article on

Unit Testing questions

六月ゝ 毕业季﹏ 提交于 2019-12-12 01:15:08
问题 I just start to study Unit Testing (using FlexUnit). I still have not sure how to use them. I created a new flex project, and created a class named Car . Then, I created a TestCase class, for Car class. This is the default template that FlexBuilder gave to me, and I put some traces. package flexUnitTests { import flexunit.framework.Assert; public class CarTest { [Before] public function setUp():void { trace('before test function'); } [After] public function tearDown():void { trace('after test

Creating a horizontally laid out group of items in HTML

我的未来我决定 提交于 2019-12-12 01:09:12
问题 In Flex there is a container component called HGroup that lays out it's contents horizontally. What would the equivalent to the following be in HTML: <HGroup gap="10"> <button width="50"/> <button width="10"/> <button width="100"/> </HGroup> The features of the HGroup, for HTML developers, are that each item in the HGroup tag is positioned after the previous item. In the code above each button would be placed after the last. The gap property specifies how much space is between each item. The

Flex SpinnerList - how animate spin?

非 Y 不嫁゛ 提交于 2019-12-12 01:08:03
问题 How to programmatically set the spin of component SpinnerList (Flex mobile) so that it can spin for a few seconds and then stopped at selected index? 回答1: private function scrollToIndex(index:int, animationDuration:int = 1000):void { if ((index != -1) && (list.layout != null)) { var spDelta:Point = list.dataGroup.layout.getScrollPositionDeltaToElement(index); if ((spDelta != null) && (spDelta.y != 0)) { var target:DataGroup = list.dataGroup; var animation:AnimateProperty = new AnimateProperty

How to define an object in actionscript 3 using a custom class

跟風遠走 提交于 2019-12-12 00:59:59
问题 Hi my problem is i have to be able to reference certain fields inside my Customer object.] I am studying AS3 at the moment and being taught custom classes, but we are taught to use the toString method of returning a value i guess you could call it, what i need is to be able to call one field to identify the object i.e. name field from the object in the array, here's my code package valueObjects { public class Person { //instance variables protected var name:String; protected var address

Flex local SQLite BLOB display

若如初见. 提交于 2019-12-12 00:51:55
问题 I'm building an application from Flash Builder 4.5. I'm a newb to SQLite and here's where my questions come in! I've got 3 columns in an SQLite db I built with Firefox's handy SQLite Manager. So, I created 3 columns, an index/reference that's just an incrementing INTEGER for easy reference, a descriptive title of the image (so it can be searchable later) in a TEXT, and a BLOB type that holds the pngs. I'm trying to add this in an assets folder into my project (as a pre-populated database) and

“Error #2038” : while file upload in flex

与世无争的帅哥 提交于 2019-12-12 00:28:19
问题 I figured out an error as Error #2038 for IOEvent while file uploading in flex. I googled out but i didn't find any proper solution may be how to implement that. The code is working properly before. But now its showing this error. This is working in IE but in other browsers its showing error. Any body having idea ? Okay here is the AS3 code...please check it out package com.firstplanet.views.actions { import com.adobe.serialization.json.JSON; import com.firstplanet.events.ErrorLogEvent;

Flex Mobile 4.6 TIC TAC TOE Computer Move

牧云@^-^@ 提交于 2019-12-12 00:23:49
问题 I have a Flex 4.6 mobile problem. I have 9 boxes on the screen. When I click on the first box (named using an ID name), it should place the text X . What I want is for the computer to generate the next move in one of the remaining boxes by inserting an O . I believe you should use math.random or an array? It's for a Tic Tac Toe game. Any help would be much appreciated. Thanks. 回答1: I made this in html/javascript, is an example of a tic-tac-toe game using minimax AI, hope it helps as a

Flex/FlashBuilder :: Spark List / IconItemRenderer:: Disable Selection Highlight / No Selection / Remove Selection

情到浓时终转凉″ 提交于 2019-12-12 00:05:22
问题 I had trouble removing the selected and down state colors for a spark list using IconItemRender. If you are making a mobile app and using IconItemRender (instead of ItemRenderer) there is no autoDrawBackground property. I figured I'd drop it in here after figuring it out thanks to this page: http://www.sajeevkumar.com/2012/01/08/flex-4-6-list-mobile-iconitemrenderer-background-image/ 回答1: You can do the following to muck around with the down and selected colors. For more control over items in