I am going to make a test application that will present tests to students. I am thinking that there will be two parts to this project; a test "writer" and a test "reader" (the reader is what the student will see as the test). My question is, can I create an external file which is populated by the "writer" and also read by the "reader" into arrays at run time.
my virtual keyboard is up and running. I am on the last leg of this project and what I need is, I am assuming complicated. Senario... the user types the department, suite number, or name of a particular person, the typing ends up in an input text field, with an instance name of "dirsearch". then the user clicks the button "Enter" and in theory the input text field, searches a file, and retrieves information which will be displayed above the keyboard. Most likey a bio sheet of what ever the user typed. But I need it to be flexable on the spelling of what the user typed into the input text field.
So I have this database that's filled with data, but I would like to use Flash as an interface.
So I've got a couple questions, first of all, is it possible to create a text box that when the submit button is pressed, goes to another frame "results" that displays the results, each preferably a link to yet another slide "info" that displays the full entry info?
I already know all the PHP for this, just wondering how to integrate it with flash, and show the results and entries inside flash.
I'm trying to create a balance beam for an education video game and am having trouble making the balance look just right.When the student slides the weight on a triple beam balance, the beam rotates from its pivot to show how far off the weight is. The student then continues adjusting it until the weight matches. My problem occurs because the length of the weight arm means the rotation values are very small, range -4 to 4 degrees, and when the student gets within a few grams it appears level.
My question is how to create a mathematical curve. Like 100 = 20, 50 = 15, 20 = 10, 1 = 4, .2 = 2, etc, so that I can have large movements towards the more accurate side and less when the weight is far off.
I'm trying to test a custom Flex 4 skinnable component, using the FlexUnit UIImpersonator class. If I run my tests from a FlashBuilder Spark only project everything works fine. If I try to test from a project with the mx component set on the classpath I get a "getElementIndex not available in non Flex 4 projects" error.Can I unit test spark components in FlexUnits visual test environment while still having the mx component set on the classpath?
UIImpersonator delegates it's method calls to a "testEnvironment".The implementation used for this "testEnvironment" is decided by the VisualTest EnvironmentBuilder class and the FlexEnvironmentBuilder class. If the FlexEnvironmentBuilder class can find the "mx.core.Container" on the classpath it returns a MX environment, else a Spark environment. Only the spark environment has valid implementations for Flex 4 relevant method calls on the UIImpersonator - like the addElement method.
My buttons only work when I click on them on the stage while having the "enable simple buttons" option on. They do not work if I try to "test movie," "test scene" and publish it to a SWF. Nothing responds whenever I am in these modes. I am using Adobe Flash Professional CS5 Actionscript 2.0.
i have a movie that has worked fine in past during Html test but ive been doing some dubugging using the flash test latly and it runs fine here but when i go back and try to test in Html mode no errors come just the movie never fully starts (starts up about as much as if there was an error).
I have two scenes in my flash file and in scene 1, first button takes you to frame 2 where movie clip is -works
on (release) { gotoAndStop("scene1",2); } second button takes you to frame 3
but on scene 2 that performs same function as scene 1, the first button
on(press){ gotoAndStop("scene2",2); }
instead of going to frame 2 goes to frame 3. and the second button goes correctly to frame 3.that happens when i test scene! when i test movie all buttons work properly.
In FlexUnit 1 it is possible to access the name of the currently-running test using the TestCase.getName() method because all tests subclass TestCase. In FlexUnit 4, however, there's no base class for tests; the tests are identified by annotations. So, how can I replicate the getName() functionality in FlexUnit 4?
Is there a simple scene management/rendering 2D engine for Actionscript 3 there? All I need is simple engine, wich I don't have time to write on my own for. I googled and found pushbutton, but it seems to be too big for my needs. I need simple scene and rendering.
I'm thinking about learning a flash 3d engine. I need some advice on which one to use. There's quite a few out there. Which is the best? I'm also considering whether there're a good bunch of tutorials on the web, that can make the learning easy.
My new project consists in setting a CD containing a structured data sheet (CVS, XML or Excel) and a serach engine. The idea is to allow the user (even not connected) to make searches live on the CD. There will also be a up-to-date version of the data on internet so if the user is connected, the application will prioritary load the online data.I was thinking at using ACTIONSCRIPT and XML.My questions are:1- Is ActionScript + XML a good choice?2- Is it possible to think at PHP + XML (so how to embed PHP on a CD without a sever?)
I am in need for some 2D physics seen from "above and straight down". Basicly I can sum it up with a "throwing balls into walls" kinda physics.
There seem to be quite a few physic engines for as3 out there, but I wonder if anyone have anyone special to recommend regarding my particular need as well as performance of the engines.
I recently benchmarked the four most popular 3D engines (Papervision3D, Away3D, Sandy, and Alternativa3D). The latest versions of each. Default settings, no mip mapping or any advanced features turned on.My main reason for doing this was to see how my 3D engine compared, performance wise. But I thought I would post the benchmarks, as I'm sure some of you might find them interesting, or useful, if you use Flash 3D engines.First I'll explain the benchmark and why I did this particular test. It's 1000 texture mapped planes, 100 by 100 pixels, each comprising of 2 polygons. So that's 2000 polygons and 4000 vertices being rendered per frame.Now my reason for doing textured mapping is because the vast majority of people are going to use texture mapping in their 3D work, as opposed to wireframe or vector filled polygons, so obviously the texture mapping performance is important.And I decided to do 1000 small planes, rather than just one huge 2000 polygon plane because this test has a significantly larger amount of vertices than 1 big plane, thus being more of a test for the 3D transformations.Also being that there are 1000 planes, it tests how quickly the engines traverse the list of models, do the transformations, and add them to the renderer each frame. Again, this is more of a task than having just 1 model.Now as for the results, funnily enough, they are pretty much ranked in terms of popularity Papervision being the clear winner, then Away3D, then Sandy, then Alternativa.I get 19fps for Papervision, about 11fps for Away3D, 7.5fps for Sandy, and a shocking 2.5fps for Alternativa.It's given me a new found respect for Papervision. It has very respectable performance, much faster than the rest in terms of raw poly pushing power. I previously thought PV was overrated, and it's success mainly due to great marketing etc, but no. From the demos etc, I thought away3D would be faster, but actually PV is almost twice as fast.It's impressive that they've created a very easy to use, versatile and user friendly engine, with pretty good performance to boot. I think underrated PV before, because I'd seen fairly simple things like a 3D menu, or some 3D images run at like 10 frames a second and use 75% of the CPU. In hindsight, this was obviously just some horrible programming, by people who didn't know what they were doing.
I thought I would stick up for Alternativa though. It might lose badly in terms of raw polygon pushing, but it's a very advanced engine, and goes about things in a different way. The reason it can handle those big scenes in the demos on their site is because of some fairly advanced clipping and dynamic triangulation, minimising the amount of polys being rendered at any one time. Particularly the dynamic triangulation. Objects that are further away have their polygons reduced dramatically, then more polygons are added when viewing up close, particularly at an angle.Kind of surprised about Sandy. Having a skim through the classes, it seems pretty well written and fairly lightweight and streamlined. Papervision seems a bit bloated in comparison. But PV's code is clearly far more efficient.I'd also like to say this doesn't mean you shouldn't use Away3D, Sandy, or Alternativa. Obviously I explained A3D above, and I know Away 3D has a lot of features that people like, and things generally look quite good in Away3D.
just uploaded my first flash website..and I'm having difficulty working out how to get google to 'see' it. I've registered the site with google and have a very specific phrase in the <title> tag of the html code but the more I investigate, the more complicated it seems..Can anyone point me towards a step by step tutorial or something to get my site in the top 10 results?
How to create a search engine in Flash. My website has an embedded swf top navigation in HTML.
how to create a search box in the swf top navigation. So when a user clicks on a "Search" button, it would direct him to a new page in my website, listing out the relevant URLs of my website.
I would like to write a very simple 3d engine just to learn it. I have some knowledge about 3d in as3 and perspective concept but I would like to see some tutorial about where to start to build it.
well so far i have this [URL].. and there are some collision problems
the player is _root.loadplayer the walls are _root.block the player mc is _root.loadplayer.MC i'm not sure how to fix this problem :s but heres the AS code for you to look at