ActionScript 3.0 :: Regarding The Capabilities Of The EventDispatcher?
Sep 21, 2010
I have a question regarding the capabilities of the EventDispatcher. Is it possible for flash to dispatch an even and be able to push out information like an int or string?
View 2 Replies
Similar Posts:
May 25, 2011
I'm trying to allow users to take pictures with their webcams and save it. How can this be done? I am looking for something similar to Facebook or dailybooth in terms of their UI. I know smoe PHP/jQuery but I'm also wondering how I could save the pictures once "taken"?
View 1 Replies
Sep 1, 2008
As a web developer we are always concerned with SEO. I understand that Flash now supports SEO to a certain extent. What can we can do to maximize the SEO capabilities of Flash?
View 6 Replies
Aug 25, 2009
I made a swf that is heavy on graphics, it works great if the computer is good. But for the older, slower computers I'm hoping there is as3 code that can detect if the playback rate or quality is being compromsed due to processor overload? I'd like to use it in an "if" function that removes some of the uneccessary graphics when it finds the computer can't handle them all.
View 1 Replies
Feb 13, 2012
I have created a actionscript with Capabilities function It works good, but I want to ad a If else statement on the capabilities for language.I'm running in English so the capabilities shows " EN ", but I want the if else statement to change " EN " to = English, and if we are running in different language it would say " Other language"
This is what i have at the moment.
var versionString = Capabilities.language;
var label2:TextField = createCustomTextField(0, 60, 200, 20);
label2.text = "language: " + Capabilities.language;
how to use the if and else statement ?
View 1 Replies
Mar 1, 2007
Scenario: I have a MC (KidsPort).Within this I have several MC's acting as buttons labeled KidsCirc1, KidsCirc2, etc. on (press) each button moves the _parent MC (KidsPort) to another _x location on the main timeline. Ex. When you press button KidsCirc1 it moves MC (KidsPort) to an x location of 290. At this point I want to remove the capabilities to press. With the capability intact it simply repeats over and over the transition from it's previous x location to the x location of 290.
View 4 Replies
May 9, 2009
The problems im encountering seem like they have a simple answer, but i cant find it. The program has people generate 6 numbers that i need to record in a file so i can analyze them later in a stats program. Here is the code for the write to file portion. Some of the code may be redundant, not needed, or just plain wrong, as I kept changing things based on the error messages i got.
String(ce_0);
String(ce_1);
String(ce_2);[code]......
problem 1 is that when i click the check syntax button it says no errors, but 2 pop up in the compiler error box. The first is a 1084 saying it is expecting a right parenthese before the colon,the second is a 1078 (label must be a simple identifier).To see if it would work I removed the identifiers and the colons, and I get problem number 2. 3 errors pop up now. First,it says the resolve is a call to a possibly undefined method through static type. Second, it says iso is undefined (im assuming this is becuase it doesnt have the String identifier).Third, it says in the writeMultiByte method there is a coersion of Number types with String types(im assuming this is also becuase it is missing the identifier)i was also wondering what capabilities AIR has to write to Excel.I can go all the stats on the numbers in Excel,and if i can put the data directly in it would cut out a step,I just havent been able to find anything saying what AIR can and cant do regarding excel.
View 3 Replies
Oct 23, 2010
I recently purchased the CS5 Master Collection and am struggling to understand the uses for Flash Professional and Flash Builder 4. I was inspired by Jay Pavlina's Super Mario Crossover game and wish to make similar applications.
However, I am confused about whether I should be using Flash Professional or Flash Builder 4 or both? I purchased the two books that Jay Pavlina recommended "ActionScript 3.0 Animation Making Things Move!" and "Essential ActionScript 3.0". I've been trying to find resources that will help me understand exactly the purpose of each of these applications. It appears to me that ActionScript 3.0 is used in both? So which one should I be using? Or both? Or is one more design oriented and the other more development oriented? Can one make flash game like Jay's using just one or the other?
View 9 Replies
Jan 15, 2009
the script needed to accept an incoming rss video feed for a custom player?
View 0 Replies
Aug 13, 2009
I want to run a switch to detect if Im using my application insode a browser or just run in a player during testing. I'm wondering why I cannot findwhat Capabilities._internal gives me yet....
View 1 Replies
Jan 30, 2012
I'm wondering if anyone might be able to give me a general overview on the state of implementing 3d in flash. More specifically, realtime 3D rendering on the fly, for something like making a game engine.not that i'm planning to start work on any projects on the subject just now, but i'd like to know if it's worth considering some 3D work in futurethus far i've only seen two games which use 3D in flash:This one is a strange car driving game. Three things strike me right away:1. The player's car is just a wireframe, and has a very simple mesh2. All the level components are just planed, with a few exceptions3. Most of the ground parts share the same texture.
Maybe i'm reading too much into it, but to me these things suggest some pretty heavy resource limitations.The other one is: htthis is an fps, of sorts. Again some things stick out glaringly, and i'm not certain whether they're design choices or working around limitations:1. Generally low poly models, things look blocky2. low res textures too3.Fixed camera angle.it reminds me of the sort of graphical quality we had when 3D was first being introduced to mainstream PC gaming. Are these games a good representation of the kind of 3D rendering flash can currently handle? Is it possible to make things much more detailed, that can run smoothly on average hardware?
View 5 Replies
Mar 25, 2010
I am making a fighting game in Flash and while I have everything running, I am missing something: a victory/loss screen.Logically,I know how to do it:
if character.hp < 0
{
character.dead = true;
dispatchevent("death", event)
}
My problem is that I have no idea as to how to code it. I know I will use two classes and my two .fla files (unless I am wrong).I have two .fla files that are in play here: the Menu.fla file and the Arena.fla file. Menu.fla contains the entire navigation of the game, options, character selection screens, etc. and when it is time for the player to engage in battle, it loads the Arena.fla file, which contains only the backgrounds (depending on the selected stage) and for now is set to a length of one frame only. For Arena.fla, the real action happens in my classes, but logically, I would only need HP.as and Character.as.
In Character.as, I have declared the following variable:
var isDead:Boolean = false; //is character dead?
In HP.as, believe I should have the following:
if(currentHp<0)
{
currentHp = 0;
character.isDead = true; //declared as var `character:Object;`
EventDispatcher.dispatchEventListener("playerDead", playerDead);
}
And finally, in Arena.fla, I want to be able to detect the above-mentioned eventlistener and simply move on to a second frame which will display a message in the style of "PLAYER ONE HAS WON" or "PLAYER ONE HAS LOST" with a button that will allow me to go back to the character selection screen. This is the first part in which I am stuck: how do I detect the dispatched event listener in my main .fla file?
Secondly, if the player clicks on the "CONTINUE" button, which displays regardless if the player has won or lost, how can my Menu.fla (which loads the Arena.swf) detect this click event, unload the game, and go back to the character selection screen?
View 2 Replies
Aug 24, 2011
I have several classes with some eventListeners in my project that interfer with each other. I.e. i have a mouseclick event that is not triggered, when i have another class with init events running at the same time. when i remove that other class, the mouseclick event is triggered correctly.
now i am not 100% sure, but i think the solution to this has something to do with EventDispatcher.can anybody please tell me if that is correct and how i can add EventDispatcher to my code without recoding everything?
View 6 Replies
Dec 14, 2011
Is there an open source Ruby framework that allows working with multimedia (video, sound, etc) similar to Flash, including Display Object hierarchy, that is not targeted for video games?
I'm looking for something between Ruby/Processing with a more object oriented API.
View 1 Replies
Feb 25, 2011
Every Time I am getting Pixel Aspect Ratio as 1:1 when i use Capabilities class. How can I get the actual ratio when it is Non-square pixel?
View 1 Replies
Feb 25, 2011
I am trying to use the StageVideo object for hardware acceleration capabilities. I am compiling code in FlashBuilder4 and am using sdk Flex Hero (4.5.18623), and Flash 10.2 I think given these settings I should be able to use StageVideo. However when I import flash.media.StageVideo, I just get an error message, telling me that flash.media.StageVideo cannot be found. How can I get StageVideo to work, are there some settings that I should be changing.
View 4 Replies
Nov 23, 2003
I really need to make a transparent button, so it needs to just look like floating text but with button capabilities. But I was confused about a couple things: Initially I was using the "FPushButtonSymbol" but was unable to make it transparent, although I tried like this:
[Code]...
This left some shadow though So, I utlized a post from [URL], which said to just make a square and then do Insert->Convert to Symbol and make it a button symbol. When I converted into a symbol, I also exported it for use with ActionScript. So I have been making instances of my new button (TermButt).... But can I still use generic button functionality like labeling, text fonts/colors, button size:
[Code]...
View 1 Replies
Jan 21, 2010
I am developing an educational game for our thesis and It's quite bugging me to see the interface look jagged when I lower my screen resolution.instead of using "System Capabilities"I want to know how I can use _quality to enhance the quality of a dynamically loaded image inside a <b>scaled movie clip</b>.i tried to use mc._quality="BEST";ut it doesn't seem to work.If I use "System Capabilities", I will end up creating different images of different sizes. I created a sample file.lease take a look at it
View 4 Replies
Jun 29, 2010
i am currently developing a standalone video application that will interact with our backend database and display the proper video, video title, video description and color scheme that you choose.Everything's working hunky dory, until I asked some of cohorts to see if they could break it before I show it off to the world. On the very first try, when my colleague went to full screen, the video was distorted, cut off by the bounds of the monitor, and not perfectly centered as it has been performing on my monitor.
And then it hit me... He was opening the browser in one of his computer's monitors, bringing the browser to the other monitor (we all have a dual monitor thing going on here), and THEN clicking the full screen button.I noticed that when you refresh the page, the variables I get to determine the fullscreen dimensions are being set, but NOT on EnterFrame.
After quickly changing this little glitch, I saw that the variables are still not being changed when you drag your browser window from one monitor to the other (hopefully they are set at two different resolutions, otherwise it defeats the purpose of even checking for this)how I can get my Flash application to recognize when it has entered into a new resolution.
View 1 Replies
Feb 10, 2012
For some while I am researching on dispatching Events on AS2 which can bubble as it happens in AS3. This is not the first time in this world and I hope you all know how to do it in AS2. My issue is not on addEventListener but the removeEventListener which is not removing that particular event from that object.Cause the handler argument in the mx.events.EventDispatcher is throwing undefined where that should be [type Function]. At the time of registering on addEventListener it is registering the handler as [type Function], but it throw undefined on removeEventListener method.
[Code]...
View 4 Replies
Nov 6, 2009
I am trying to dispatch an event from one class to be received by another another class.The second class has a function that shoud trigger when the event is caught.When I compile I get this error:1067: Implicit coercion of a value of type flash.events:MouseEvent to an unrelated type String.
Here is the class that dispatches the event:
package{ import flash.display.MovieClip; import flash.events.MouseEvent; import flash.events.Event; import
[code].....
View 2 Replies
Jul 12, 2010
I'm working on a an interactive map of the Lewis and Clark Expeditons' experiences along the Missouri River in Montana and I'm running into some difficulty using the EventDispatcher class.
I have a couple of classes that I am working through this issue with. Relevant code is bolded.The first is a Main class that I am using as my Document Class:
[code]....
View 2 Replies
Aug 8, 2010
I was wondering when you guys extends EventDispatcher in your class. It seems to me that as long as we have import event package, we can dispatchEvent without problems....I saw sometime people extends EventDispatcher in their clas
View 1 Replies
Nov 6, 2010
How to dispatch events from a class (.as) to a document (.fla) ? In my example there's no compiling error but nothing displayed by trace(). What's wrong and how to do to make it works? example.fla
[Code]...
View 8 Replies
Dec 17, 2010
I just don't get it. I've studied a lot, looked, researched but I don't understand why this isn't working.
Code:
package
{
import flash.display.Sprite;
import flash.events.*;
[Code]...
View 4 Replies
Jan 16, 2006
These days I'm learning the different usages of EventDispatcher class and understanding it's working.
[code]...
Considering the above code if for example I want to broadcast the event of onLoad of xml to different listeners objects with the scope of movieClip in which the xml object is declared, so that later mcs from the library can be attached dynamically.However this approach does not seem to work.
View 4 Replies
Jun 15, 2006
Theory question, more than anything.
Code:
var page = _root["pageinstance"+num]; //num is a variable,
page_li:Object = new Object(); // page_listener object
page_li.onPageLoad = function() {
trace("hey, look, the page loaded");
page.display();
[Code] .....
The code is much more complex than this, but thats the skeleton of it. Anyone, my question to you is that I need to use this over and over again, for each time the user presses a button. My problem is that Flash seems to have trouble when I try visiting a page I've already been to, because the events don't properly execute. I've tried page.removeEventListener(); and delete page_li; but both seem to be ineffective. Basically, how can I whip the slate completely clean, so that the next time when Flash goes over this code, it executes properly?
View 2 Replies
Apr 1, 2007
How to write as2.0 using class to respond a simple event handler for several mc's?[code]does anyone have some good examples of using eventDispatcher method in a class?
View 1 Replies
Feb 23, 2011
i am looking for class or something to proportional outside scaling of stage and all included objects (internal or external).I know SWFfit and LiquidStage. I have got many problems with integrating SFWfit to my code (resizing is not affected to included objects). LiquidStage seems to be ok but it`s not freeware . I am looking for free possibilities to do it.I am trying to connect that with GAIA framework.
View 3 Replies
Feb 22, 2010
The sorting capabilities that are available in Flex assume that you have access to all the data, but I'm using a paginated datagrid (with custom code), the datagrid is binded to an ArrayCollection instance, on the next page call I change the data of the dataprovider and everything works ok, but for sorting I need to override the click or event better override the sort method of the arraycollection
All this is to be able to do a server-side sorting.
View 4 Replies