I've been creating a calculator as part of an assignment. I've created button instances in actionscript and then putting a text field over it. The problem is the text field blocks my button so it is difficult to press.exaple code:
var equals_btn:equals = new equals();equals_btn.x = 247;equals_btn.y = 369.9;equals_btn.width = 115;equals_btn.height = 45;this.addChild(equals_btn);
var equalText = new TextField();equalText.x = 276.1;equalText.y = 349.9;equalText.width =
I don't know if it's an AS3 thing, or a Flash 10 thing, both of which I don't work in frequently..... (usually, I'm working in Flash 8, and AS2 for most of my projects)
Basically, when I have invisible content over a button in my flash movie, the button no longer works. Like I said, it's something that's never been an issue before.
Where it shows up is when I want to make a piece of content visible over a button when the user mouses over the button, so the piece of content would start over the button with its alpha set to 0. I would typically change the visibility of the object I want to make visible when the button is rolled over. But now when that object is over my button at 0 opacity, the button no longer works....and again, I've never had this be an issue before.
made a site with several buttons that load other .swf on level 1 which cover the entire stage, but the buttons that are on level 0 can still be clicked on. Is there anyway to block these buttons while the level 1 .swf is playing
I would like to block mouse overs/buttons beneath a movieclip that has played. This should be straightforward by creating a new layer and inserting a string, however, these techniques haven't worked for me and one of my questions here is, "Are these solutions not working because my movieclips play from external swfs in a container?" Either way, I'm up for hearing any solutions you may have and trying them out even if I've tried them before.
Secondly, I would like to create a "back button" which excutes from my movieclip and unloads all movieclips. I need it to return to my main menu. Unfortunately, I've tried buttons which include the command unloadMovieClip and that seems to prevent all movieclips from playing again. This could have something to do with what I mentioned above - all of my movieclips are called from external swfs into a container.
The least important of these (since I need the first two things to work before I do this detail) is... if one of my buttons is pushed starting a movie clip and the user then pushes another button that also starts a movie clip before the first clip has finished playing, How do I interrupt the first movieclip so the second can begin playing? Currently, my movieclips will play through until the end before they will respond to a new clip being loaded.
Can I shrink the textfield down to the width of the text without squeezing it? Code: public function Notification(Message:String) { notificationText.text = Message; notificationText.mouseEnabled = false; }}
Im designing a site with accessible controls, and the best way for me to do this is load each external swf into a container movieclip that then has all the controls applied to it.This container movie then also has another layer above with a movieclip on top of that acting as a filter layer to invert the colours. This is controlled by a keyboard press.Now when I run my project with this filter layer movieclip it prevents me from mouse clicking on any of the buttons in the externally loaded swf, without it they work fine.Is there any way that I can get through this movieclip so I can mouse click / rollover those buttons?
lets just say in simple words that i hve on a layer(lets say LAYER1) a button that on rollover moves an other set of buttons which are on an other layer underneath the first layer(LAYER1).the problem is that i cant use the underneath buttons because the LAYER1 button is blocking their functionality
I have various buttons on stage that will initiate a popup box upon hover. But some of the pop up boxes are too big and covers some buttons which disables the button.Is there anyway around this? Logically, when a button isn't hovered, its popup box shouldn't cover what's underneath it. I have tried moving the layers around, although this works, but now the buttons are on top of the pop-up boxes which is no good.
I am working on a data provider application for class and wanted to take it a step further for usability and add tabbing for navigation, but the tabIndex code I have below does nothing. I would like to tab between the buttons and the textfields. Does tabbing work with data providers?
I'm creating dynamic buttons, I'm using textFields to make them.I have a problem with the text on them.I want the text to wrap, autosize and be multiline - ie I want the button to be a certain width and if the text is longer for a particular button the button will be higher with the text going onto the next line.Here is the code I'm using...
c._y = 40 * i; c.createTextField("chap" + i, i, 10, 100, 150, 35); var tf = c["chap" + i];[code]....
how Flash handles accessibility of htmlText in Textfields? I know that no additional steps are needed to make Text Fields accessible. But it doesn't say anything about the content. For example, if there is an html link in the textfield, will that link be made accessible to a screen reader program so that the user may "click"/activate it? Below is some sample code. The implementation isn't so important to know, but it may give some insight to the question.There's a textfield on the stage with the name "myTextField".
function linkHandler(link_event:TextEvent):void{ trace("link_event.text"); }
I open up Flash CS5 and make a simple INPUT TEXTFIELD. I run the program, and I can't even use all the characters. It is under ARIAL font. This is literally destroying my soul. Look, if I want to embed fonts, I will embed fonts like in CS4. What is the crazy idea that now we have to embed every font we want to use? Is that how this is going? If I want to use ARIAL, I literally have to embed it? Did APPLE get their hands on Adobe developers and do something seriously this sick to the CS5 world?
I want to make simple input textFields like in the past, without having to embed fonts.
if it's only textFields that you can make a custome scrollbar for? I found some custom scrollbar code, and it works fine on textfileds, but I have a container movieclip that holds some dynamically loaded movieclips. I want to be able to scroll the container if too many child clips are created. Also, how to you tell a container movieclip to not show the overflow of it's child mc's? The current container has it's child mc's overflowing through the bottom boundary.
This is about a self assessment quiz.There will be four options and each one has a scale from1-5 i.e., "option a" has 1mark, "option b" has 2marks,"option c" has 3 marks, "option d" has 4marks and "option e" has 5 marks and we count the answered and we display the score for example if there are 20 question in it if they answered "option e" 5 times the score will be 25 and option d 5 times the score will be 20, and if "option c" for 5 times the score will be 15,and "option b" for 3 times the score will be 6 and "option a" two times the score will be 2, and we add up all the score and display in a dynamic text field called "score" and the total score is 68.
And I have another dynamic text field called "tsc" where I have to display the tags like excellent , good, better ......etc. Till now every thing is fine but I am unable to compare them it is displaying excellent even if i get 10 marks. If the score is greater than 55 "tsc" should display Excellent, if the score is greater than 41 or less than 55 "tsc" should display Best, if the score is greater than 26 or less than 40 "tsc" should display Better,if the score is none of the above "tsc" should display Poor.
This is my code on the submit button: on (release) { gotoAndStop("sQ"); if (scor>=55) { tsc = "Excellent"; } else if (scor == 41 && scor<=55) { [Code] ..... Where:"sQ" is the frame name where i am displaying the score details"scor" is the var name for the dynamic text field for displaying total score"tsc" is the var name for the dynamic text field for displaying the tags llike good, Excellent, better, poor.....etc.
this concerns flash cs5 and the timeline.Everybody knows the effect you get when you use appendText() to add text to a multiline dynamic textfield, right ? Well, I have a movieClip as a container, and I would like dynamic textfields to populate this movieclip in the same manner as textStrings would populate the dynamic Textfield.
How would this work?I have buttons that trigger addChild() function so as to populate the movieclip with textfields, but how do I make sure that the textfields make up an arbitrary list as a menu user chooses which buttons to click? Let's say this is the visible text when the swf runs.(I cut away some of the code to make this more to the point):
var buttonTrace:TextField=new TextField; addChild(TextClip.buttonTrace); buttonTrace.x=0; buttonTrace.y=0; buttonTrace.text="Breadcrumbs";
Now for each time I click a button in the menu I've made, a new textfield appears with the name of the button. This is how I want it. BUT......... How do I control the display properties and positioning of dynamic textfields within a movieclip ? How do I control persistent visibility, and how do I make these textfields appear one after the other in the order they were clicked.
I'm trying to implement some dynamic classic TextFields, but I am seeing errors when the text tries to render. What I am doing is trying to implement a system that shows tolkens and a cash eguivent, I'm using the code
[Code]....
I'm thinking there is something in the TextField that is not set correctly, I tryed to set the autoSize to CENTER but that didn't fix much...
I've got a strange thing in attached fla: my gotoAndStop command won't go past a photo?First I've got the 'background' layer. On it is a red rectangle on frame 1 and 2. Frame 3 changes it into a jpg.
On the actions layer I've got a gotoAndStop(4), which should show the photo and trace a command. But it won't get past the red square? It's like the jpg photo blocks the gotoandStop(or Play for that matter) command. It doesn't trace to prove that the gotoAndStop command is executed on frame 4 and it keeps showing the red square on frame 1 and 2. Where it should show the photo which has already been placed on frame 3. when I replace the photo with a normal Flash shape (rectangle e.g.) it works fine.
I am creating a very simple interaction. I have a symbol as a moviclip which I can move around the screen using the arrow keys. I want to block certain parts of the stage so that the movieclip cannot pass into them. For example if I have a fence on the stage I don't want the movieclip to move over the fence I want it to stop when it reaches it. This will keep the user moving in the directions that i want, lead them toward another area of interaction.
I have an animation, when i preview it looks fine, but when i use the timeline to scroll through the animation (and when i export as .avi) - there's this strange white bar over the text! I have tried to remove the object from the library, but then the text disappears (also when i preview)
If you wonna check it out, the .fla file is here (5mb) : [URL]
I'm working on a simple website for A level ICT and am having some difficulties. My site has a javascript based drop down menu, as well as two .swf files embedded. When the drop down buttons in the menu are scrolled over, the .swf files disappear.index1.jpg is a screenshot of the page normally, index2.jpg is a screenshot when the menu link is scrolled over.I am also having difficulties with flash working with java on another page, the same .swf files do not fade into the background like the rest of the page when images are enlarged in a javascript gallery within the page. gallery.jpg shows this.
I have a first SWF, the interface, which loads external SWFs, the pages, throughattachMovie. The pages themselves contain clickable buttons. What I am trying to do is enable and disable the buttons on the pages, without altering the code of the pages. I can only change the contents of the interface.I have tried using a blocker, a movieclip with :
I'm trying to use PNGEncoder to encode a bitmapData object into a png ByteArray so I can send the data to the server. Everything would be peachy except the bitmapData is 4000x4000px and when I run the PNGEncoder.encode function on it the whole app stops (UI is blocked) for 5-8 seconds while it runs. Does anybody have any suggestions on how to not make it block so bad, I read about chunking up the process (since you can't multithread in AS3) but can't find any sample code on chunking up the process.
An image says a thousand words:URL...A flash object in a CKEditor dialog is being blocked by the IFrame element. This only happens on Chrome. I have tried changing the z-index, that didn't work at all.
I have a button (with actionscript) under some dynamic text. The dynamic text, including some small transparent space around it, is blocking the hit area of the button. How do I solve this problem?
I have a Flash movie that loads an html file with a link that should open a new window when clicked. The problem is that Firefox blocks the new window from opening, and I don't know how to solve it. Unfortunately, I have no access to the HTML page where the Flash will be included, so I couldn't use Javascript in that HTML page.This is the code in the HTML file that is loaded into the Flash movie:
<p>This is the company that makes Photoshop:<a href="http:[url].... target="_blank">Adobe</a></p>
I've created a client that communicates with a server via XML-RPC through a network using the URLRequest object to contact the server.
When activating the client through flashplayer, explorer or chrome, the xml-rpc messages are sent. When using firefox, for some reason these xml messages are blocked, and are not seen on the server.
What's causing firefox to block xml messages to a remote server and how can I make it work??
In developing (and learning) some OOP gallery class structures, I seem to hit a snag with the non-blocking nature of AS3.[code]However, I need to get these into a grid, and I have a grid class written that takes an array input. So, ideally I would push the i and v instances into the array, and have the grid class loop through and put them in a neat little block. However, I can't access the width and height of the img and vid class instances. I tried getters, and am thinking of having to do some custom events but I'd rather not. Surely there's something I'm missing?The closest thing I got, but it still triggered late, was an Event.ADDED in the img class.