ActionScript 2.0 :: Focus Manager For Textfields?
Aug 7, 2007where I could locate a focus manager class for text fields?
kinda wanting to do something along the lines of textfield.Onfocus(true, background._alphaTween);
where I could locate a focus manager class for text fields?
kinda wanting to do something along the lines of textfield.Onfocus(true, background._alphaTween);
I'm struggling to get around an error that is constantly thrown in my application when I press the tab key.
I have a modal dialog box that contains a form with 3 form items. Whenever I press the tab button flex throws an error saying
"ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller."
I've tried setting up a focus manager in the initilize handler of my title window to no avail
private function init(e:FlexEvent):void
{
focus=new FocusManager(myform);
focus.setFocus(firsttextfield);
[Code]....
[Code]...
when i have this line active(the red one) it gives me automatic focus, so no clicking to be able to detect key input so i got that going for me which is nice BUT when i have it active(not commented out) i get this big yellow line which goes away when i click it(seeBelow)
Does anyone know how to do this in AS3?
View 3 Repliescan I set the keyboard focus for a TLFTextField? I tried stage.focus = myTLF but there is no cursor...
View 2 RepliesI have a TextField called textField on the first frame of the main timeline, and this simple code.
Code:
import flash.events.KeyboardEvent;
import flash.events.FocusEvent;
[code]......
im using flex builder 3 to write my AS3 classes for a slideshow. I want to use the transition manager, but when i attempt to import the class..
Quote:
import fl.transitions.*;
i get this error..
Quote:
1172: Definition fl.transitions could not be found.
I am not sure if this means the class is missing from my folders or something else?
Where from i got transform manager as3 for free
View 5 RepliesManager to not recognize the just upgraded Flash CS3 install?Message says: "This extension requires the following products: Flash 9 or greater. The extension will not be installed."
View 3 RepliesI made a swf that interacts with other site on the internet (which has a crossdomainfile for me).in the main.mxml there is a definition of webservice (mx:WebService)(which is not in my domain). Therefore when loading the swf, there is a first call to crossdomainfile.xml.I put this swf on my server so that my clients can get it.
When i connect to my server to download the swf, i expect to be asked if i want to allow the swf connect to foreign webservice domain.Do i always need to define exception in Global Security Settings panel?I don't want my client do define special things..Is there a best practice for that? Why when i surfing the net other swf can do this? I read about the FlashPlayerTrust, can i define there a website i trust my swf will connect to?
I've been away from Flash as3 for a while, but today I need to write a map link application using it and i'm pulling my hair out with an annoying problem!
I just want an overlay to appear when a map movieclip is clicked and fade out when somebody then clicks the map. The fade in works fine, but the fade out doesn't do anything!?[code]...
I was just out and about looking for a tween class to rotate an image and I came across "Transition manage"
[Code]....
trouble is, the transitionManager doesn't work... flash just asks me "what is transition manage!? - I'm assuming I followed a bizarre walk through because I've never heard of transition manager? Also "rotation" or .rotate isn't a property for the tween class to be able to change? What am I doing wrong?
find, or mash together, a load manager that supports FLV, SWF and JPG as well as text documents and XML.So what I am working toward seems to be kind of an update for Bokel's LoaderClass (08/06/2003) you can find here:
[URL] combined with the LoadQueueManager(01/31/2004) as laid out by Michelangelo which you can find here:[URL] Now what both of these lack is handling of the preloading of FLV files, I came up with a sequential preloader for FLV files based on the code found on LiveDocs here: http://livedocs.macromedia.com/flash...=00001573.html
Code:
stop();
var connection_nc:NetConnection = new NetConnection();
connection_nc.connect(null);
[code]....
I would like some help if possible. Ive been working with tween Manager (the laco and robert penner tween proto) and i found simply using the scaleTo function on images which have drop shadows causes distortion. So did some searching and found a resize function which implements the tween manager tween function.
It works well, BUT I would like some help in converting it into a class or prototype , even better build it into tween manager so I can call it like the scaleTo function. I call it frequently for transitions ive created which is why i would like to be able to call it simply
[Code]...
Im running a flash website, Im getting around 15,000 visits per day, and I have allocated 4 areas of the site for advertisements. I want to have 2 types of advertisements: pay per click, and pay per impression/view.Ofcourse there are many php ad managers out there, but how can I display the ads inside of flash? I don't mind if I manage the whole thing in a php page, but at the end, I want the advertisements to be displayed within flash, and ofcourse have all necessary changes made when a user clicks on an Ad (pay per click), or when the Ad is displayed (pay per impression).
View 3 RepliesI'm running app in air. When I'm trying to print the print manager window show up, i choose printer and click 'ok' and nothing happens. Printer icon showup for few seconds but have no print tasks. Of course it's not becouse of the printer managar (it works fine when printing from e.g. word).My code looks like this:
[Code]....
How to make as3 do Task Manager priority = high? I found out that , when I was playing my game on the flashplayer.exe . I went to task manager "set priority" to high on the flashplayer and boom everything running smoothly and it was lock on 30 fps every frame.
View 1 RepliesI have the following code
TransitionManager.start(babyPreloader,{type:Fade, direction:Transition.OUT, duration:0.5, easing:Regular.easeOut});
var tempPreloader:DisplayObject = babyPreloader as DisplayObject;
this.removeChild(tempPreloader);
But since this does not wait for the transition to complete. I cannot see the transition happening. Is there a way to have a even listener for transition complete?
I am developing a a game in Flash using the PureMVC framework. From time to time I need to show dialog pop-up window to get a user response back (e.g. "Cancel", "OK" and other kinds of asynchronous user feedback) while "locking" the background for interactivity.
I need some management for my pop-ups: all pop-up notifications should be stacked up, so that if two (or more) pop-up messages are initiated at the same time I show them one by one.
What's the best practice here? Should I employ a proxy to manage my pop-ups (sounds unreasonable). How do I get feedback back from my dialog? using notifications?
I'm trying to detect when pop ups are visible (including tool tips if possible). The reason is that I need to hide or freeze (capture a snapshot) the Stage* components (StageWebView, StageVideo, StageText etc) when pop ups appear.
View 1 RepliesI use this transform managerblog.ryantan.net/2010/08/free-transform-manager/I'm trying to add bounds support.But it doesn't work fine:ki44321.ho.ua/testmanager/Here is source (FlashDevelop project):ki44321.ho.ua/testmanager/source.rar
View 0 Repliesi have been developing a game that runs in an on-line version as well as offline. so far everything has been cool, UNTIL! the ID's wanted the ability to make pop-ups in the xml that feeds to htmlText, so that was a little tricky but using TextEvent i was able to turn their links into external interface calls. everything was perfect then i remembered that this thing must be fully functional without any sort of internet connection, SO long story short is there a way to launch/open/prompt the settings manager without intertubez?
if you don't know what the settings manager is, it's this thing, [URL]
So I've got a video player that works great. You hit 'play', it calls the public playVideo() function in the FLVPlayer class to begin playback, and then other things happen accordingly (the PlayerControls class updates to show playbar progress, etc). Currently, it's easy: there's only one type of 'playback', and it talks directly with the FLVplayer class (and PlayerControls, etc).
However, we're adding different types of 'playback' now, where a poster image could optionally show for xxx seconds ahead of the video (and still needs to update the playbar to show progress). We're also doing the same for a video bumper, which plays between the poster image and the video as well (and also needs to update the playbar class).
In all these cases, there is a common "playback" that needs to be able to be paused (in some cases automatically, like when you click on a menu button in the menu to open a separate section) or restarted. Rather than do a check to see isVideoPlaying || isPosterPlaying || isBumperPlaying, it seems to make better sense to lump all these things into a common playback manager interface.
Let's say I'm trying to build a thing where there are hundreds of different objects on the stage and each of them does something that requires enterframe. Since it's better to group all the enterframes into one huge enterframe (ty to this thread!), I was thinking that each time one of the objects wants to execute something via enterframe, it would use the enterframe manager, which adds the demanded function.In order to manage all this, I was thinking of using an array which keeps track of all the objects that need enterframe and the functions each of them want to execute, but then again it seems pretty awkward to keep an eye on all this and remove the object and its function when I want to
View 6 RepliesI need to make a site 100% in flash but this site has to be update by the client.So my is how to add more pages to the site with a content manager?I read the forums and i understand how to dynamic create more menus without any problem with a CMS using xml, i also know how update a specific part of the site. i mean i can create dynamic text fields and update them with no problem also using xml. Well i can update fields that allready exists on the flahs it self. but in case that my client decide to add a new menu.. it has to redirect to a specific frame where the content of that specific theme is but if it don't exist.
View 4 RepliesI am trying to do the background images for a website, but I want them transitioning. So what I done is import each image onto its own layer (four images in total), and I turned them all into a movieclip. I am then trying to add some code to make them transition between each other. I am attempting something like
var myTM:TransitionManager = new TransitionManager(my_mc);
var myTM1:TransitionManager = new TransitionManager(my_mc1);
var myTM2:TransitionManager = new TransitionManager(my_mc1);
myTM.startTransition({type:Fly, direction:Transition.IN, duration: 3, easing:Back.easeOut}) myTM.addEventListener("allTransitionsInDone", doneTrans);
function doneTrans(e:Event):void{
[Code] .....
Is there a more logical way to do this? Each image is a movie clip and I basically want them like a background slideshow?
I want to develop an AIR application that will let users of my website download multiple files in a single process. My database stores details of all the files uploaded by a user so I want them to be able to simply choose a location on local disk then download all files they have uploaded to this location.
Are there any good tutorials or source code examples for a simple yet effective AIR download manager developed using Flash CS4. I have come across a Flex based tutorial, so how would I go about using this to develop it in Flash?
I am doing a small transiction using TransitionManager.start() function. how can i call a method after finishing the animation? i mean how to add event handler for this?
View 0 RepliesIs it possible to edit the .mxp-files that you install with the extension manager? The extension I have in mind is an API with some functions that need to be tweaked.
View 5 RepliesI've worked with PHP/MySQL for some time but have basically been editing existing OOP scripts or coding my own using procedural programming. I understand some about objects and how they work and I've read books but I am one who learns best by experimenting and trying to find solutions to my failed experiments.
That being said, I'm trying to create a simple window manager with it's own container. However, I can't get the container to display anything as I apparently don't understand how the stage works in flex applications. Here is my code, there are no errors but nothing gets displayed.Additionally, how do I get the current width & height of the application?
UI.mxml
Code:
<?xml version="1.0" encoding="utf-8"?><s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" initialize="init()" minWidth="955" minHeight="600">
<fx:Script>
[code]....