I had written movie player for my website few months ago and I'm upgrading it by adding some new functionality from time to time. Not long ago I've observed quite curious behavior of my browser. If my site is opened in one of tabs in browser, the cursor is blinking, from arrow to handcursor, when I'm rolling over links. Interesting is that it happens in every tab opened in browser, if only one of them contains my website. Closing my site returns every other tab to normality. I tried opening my site with blocked this one .swf file (my player) and also was everything ok. I've tested this on few different browsers and systems and it seems to happen in MacOS (tested in Safari, FF2, FF3 and Opera) Windows (in FF2, FF3, Safari, Opera IE6, IE7 and Chrome), no matter if installed version of FlashPlayer is 9 or 10. On Ubuntu Linux it doesn't happen in FF3, nor in Opera (only this two browsers tested).
I've built my player in Flash CS3, using AS2. Unfortunately, I don't know in which version of my application the problem has occurred. Of course I could examine whole code line by line, but that's about 2.5k lines and it is not the work I want to do if not necessary... I've searched lot of forums, but I found solution nowhere. Maybe someone had spotted such a strange browser behavior or simply does know, what may cause it?
The problematic site is [URL]. If you want, open it in one of tabs and try to play with links in other, you'll see what I'm writing about.
Is there a way to tell if a Flex TextArea has a blinking cursor? One indication is if the component is focused: focusManager.getFocus() == textArea
But it's possible to have a blinking cursor without having the focus. I'm not sure if the converse is possible (focus without blinking cursor).
Edit: The rub here appears to be a distinction between "component-level" focus and "player-level" focus (per the FocusManager docs). I haven't yet found any great explanation of the latter or APIs to it.
I've got a main textfield myTextfield01. When I put focus on another textfield which is empty (either manually by clicking on another field, or like below using setFocus) I want the focus to go back to myTextField01 again. And put the blinking cursor and the very end of whatever is typed into it. So I tried this.
But that didn't work. It went back to myTextfield01, but the blinking cursor stayed at the empty textfield and any text typed would be added to that empty field.When I put this in frame one:
myTextfield01.onKillFocus = function(newFocus:Object) { if (newFocus.text == "") { nextFrame()); }}; And this in frame two: Selection.setFocus(myTextfield01); Selection.setSelection(myTextfield01.text.length-1, myTextfield01.text.length);
it did work. Both focus and cursor where in myTextfield01 again.So why doesn't it work when I combine it all in one frame?
I am using a text Input component that captures a phone number. What I am trying to do is have an "-" be inserted after the first 3 (area code) digits have been typed and again after the next set of 3 digits.
[Code]...
Everything is working fine except that the type cursor does not move to right after the "-" has been added.
I have input text that I want the user to be able to type in, but it's a game, so I don't want them to see the blinking cursor. I could make an input off screen and have it send the text into a dynamic text field, but I was wonder if perhaps there was just an easier way of hiding the blinking cursor?
I'm making a text box where the user can type in whatever they want, but they can press "Enter" to make a new line. I am using the following code to do this:
stage.focus = txt_firstnameEdit; I need to make the blinking cursor at the txt_firstnameEdit when I enter the stage. but the blinking cursor appeared infront of string_0. string_0 is pre-entered in the textbox in my code.
For example this is what I see in the textbox... INameless I = The blinking cursor. How do I make the blinking cursor go behind like this? NamelessI
I'm in and out of AS2 and it's been awhile.if this is possible to reliably create this state for an Input text field.Ideally the text area has some text in it as a prompt tot he user, and the cursor is blinking at the end of the prompt text. When the user clicks on the box, it resets to empty content and the user can type their question.I have the text area set up with prompt text, instance name. Tried this code and it does not work:[code]Right now when i click on it, the text prompt text remains and the cursor shows one line below the prompt text.
I'd like to set up my splash page (all Flash) so that the login form is ready and waiting for input, without the user having to move the pointer to the first input text field and then click it.
I have to display a movieclip image in flash depending on a variable is set or not, and when the variable is set to True it should blink as below.Show the movie clip for 500msec. Hide for 500msec and then show again for 500msec etc..
If the variable is set to false then it should be hidden immediately.
Presently i tried this using Timers and visible property of image.But this is not looking like natural blinking.Is there a way to achieve the blinking effect with built in properties of flash?
i am trying to make my movieclip blink, it blinks when it is hit by something, to create the effect of a game.i have a hit test when it is hitted, caught is called on the object.the caught function of the object will make it stop and start to blink based on a timer.My timer is set on new Timer(400); why does my object not blink? my conditions seem to be correct.
if (hit.hitTestObject(f.hit)) f.caught(); private function blinkingHandler(evt:TimerEvent):void
I'm creating bullets for a tank object to shoot.The tank is a child of the document class. The way I am creating the bullet is:
var bullet:Bullet = new Bullet(); (parent as MovieClip).addChild(bullet);
The bullet itself simply moves itself in a direction using code like this.x += 5; The problem is the bullets will trace for their creation and destruction at the correct times, however the bullet is sometimes not visible until half way across the screen, sometimes not at all, and sometimes for the whole traversal.Oddly removing the timer I have on bullet creation seems to solve this.The timer is implemented as such:
if(shot_timer == 0) { shoot(); // This contains the aforementioned bullet creation method shot_timer = 10;
My enter frame handler for the tank object controls the timer and decrements it every frame if it is greater than zero.
Edit: I made a demo apk, so you can understand what I mean: [URL]
For my application, I want a kind of "Super Power Point", or a keynote (the commercial team will present the product to their customers) using all the Android goodness, gestures, etc... on an Android tablet. As Honeycomb is not yet ready and because we need it before march, we choose some random Froyo Tablet (Archos 101), but my issue is for every tablet/phone I tried.
I made a really great application, but for some animations during the presentation, the customer wanted to use flash animations. Because I couldn't code animations (sort of little movies/ animated graphics) that easily in Android and the lack of time, that seemed to be a good idea.
So, after some search on the Web, I used webview and this code:
This work pretty well, but on every device I tried (Archos 101, Nexus One, Nexus S, Galaxy S, Xperia, Desire, HTC Hero, and really more) every activity with a webview blink, a few milliseconds of black screen, then the animation finally appear.
For my application, I want a kind of "Super Power Point", or a keynote (the commercial team will present the product to their customers) using all the Android goodness, gestures, etc... on an Android tablet. As Honeycomb is not yet ready and because we need it before march, we choose some random Froyo Tablet (Archos 101), but my issue is for every tablet/phone I tried.
I made a really great application, but for some animations during the presentation, the customer wanted to use flash animations. Because I couldn't code animations (sort of little movies/ animated graphics) that easily in Android and the lack of time, that seemed to be a good idea.So, after some search on the Web, I used webview and this code:
This work pretty well, but on every device I tried (Archos 101, Nexus One, Nexus S, Galaxy S, Xperia, Desire, HTC Hero, and really more) every activity with a webview blink, a few milliseconds of black screen, then the animation finally appear.
I have made my flash banner, when I open it it's cropped at the right size, however if I click and drag the window to make it bigger then I can see everything which is off the stage. Is this normal? Or am I missing some kind of last stage in the design process where I have to hide everything or crop the banner? Just want to make sure the banner is prepared properly before giving to the client.
have doing my project in flash cs5.5. But then suddenly my file cannot open it.It appear like this "an error occurred opening file C:....menu.fla" and also "Flash cannot parse this document." "The following JavaScript error(s) occurred:".
I have my html where I embed third-party flash video by means of iframe. When I click play on the video a popup is opened. I was wondering id there is a way to add a javascript function to my html that would close such a popup immediately when it is opened?
I have a webpage (popup) with flash content. When a user clicks a button inside the flash content, it opens up another browser popup window. Next, I need to close the window with flash content from the newly opened popup window through javascript.
The problem is that the window.Opener is null as the popup is invoked inside from flash content. Moreover we dont have access to flash (.FLA) file.
I'm working on a Mac Pro with Mac Os 10.6.5 installed with the 64bits version.It was pretty good to see that Flash Builder can now work with Flash CS5. But if I don't work on Flash Builder or Flash CS5 for several minutes, Flash crashes everytime ! I have never worked once on the combo Flash CS5 / Flash builder 4 without having Flash crashing !It is very annoying, and a huge waste of time
what is the code needed to create a simple .swf file that once double-clicked on opens and all it has inside it's window is an iframed website (scrolling and resizing are optional), basically a simple flash mini-browser if you will, with no navigation features of any kind just the ability to click inside and maybe refresh the page...
i need to track the mouse movements(and register what component is under the mouse), it is done already, but i meet new problem, if click right button then context menu will be opened and no any new events(mouseMove, mouseOver) received by my components. I understand that this context menu is more browser then flash/flex and afaiu the is no way to disable context menu at all. So may be somebody know any trick to avoid this events blocking?
I am making use of a custom cursor on itemRenderers in a List component. The custom cursor works just fine except when I mouse over the Text component which is a child of the itemRenderer at which point I get two cursors, the custom and an iBar one on top of the other.Here's the code:
so the custom cursor I'm using works on the main timeline of my project. However, there are buttons in the application that load in movie clip pop-up windows and when this happens the cursor stays on the main timeline behind the movie clip resluting in the cursor not being seen. This is the code I'm currently using:
Working on a small kiosk app that runs in Firefox for Ubuntu. Mouse.hide() works for everything else, but the cursor is showing up in Firefox for Ubuntu
Is it possible to make a custom cursor with restraints (meaning you only see the cursor when you put your mouse in a certain spot, by defining both the max and min of the x & y), that is placed inside a movie clip; then make the movie clip move on the stage when you click certain buttons.