ActionScript 2.0 :: Combo Box That Runs A Diff Script Wit Each Selection
Nov 27, 2006
i want a combo box that will change the mouse to wat ever i want(run a script wit each diff selection). i know it cant be that hard i just cant get it.
View 5 Replies
Similar Posts:
May 4, 2010
I have read several posting on this site and others. I can't seem to find the right solution to get my combo box to work. I am publishing for Flash player 10 and AS 2. The final file will be imported into a Articulate/PPT file.
I am simulating a form that my audience needs to fill out. For 2 text fields, I am using a combo box to allow them to select the proper input. If they leave the form screen, I need to save their answers so they do not have to start from the beginning. I am using global variables.
My problem occurs, when I try to populate the combo box using the audience's previously selected response. I have tried using setSelectedIndex. It works to the extent that the choice indicated highlights in the combo box, but the actual selection is not appearing in the text area. Do I need to set Combobox.text = selection?
View 4 Replies
Sep 7, 2009
can you please tell me how to have multiple selection in flex combo box component
View 1 Replies
Nov 30, 2009
Just as the title says really! How do you check if the user hasn't made a selection on a combo box? Here's what I've tried, to no avail:[code]
View 2 Replies
Feb 15, 2011
I have an editable mx:Combobox. I want to catch two events: When a user enters some text, or edits some text.When a user changes the selection (selects an item from the combo box).Is it possible? I have been using change event, but it is fired in both cases and I can't differentiate it. Is there a better way of doing this?
View 1 Replies
Jul 31, 2009
I need 5 embedded fonts to be added in to a combo box and on selection to apply the font type to several dynamic text boxes.
View 2 Replies
Mar 10, 2011
It might be something simple I'm doing wrong.I have an array populated by XML in a function by doing the following inside the function:
first_special.addItem({label: xmlMenuFile.item.headers[i],data:
xmlMenuFile.item.descriptions[i],data2: xmlMenuFile.item.hints[i]});
The problem I'm having is trying to figure out a way so that the "data2" will fill the text field "hint_txt" on ROLL_OVER of that items name in the list.I've tried to placing an event listener into the function that populates the combo box .this populates the combo box label and data with the Loaded XML File. This works
function changeHandler(ev:Event):void
{
menuText_mc.heading1_txt.text = ev.currentTarget.selectedItem.label;[code]......
View 3 Replies
Dec 21, 2005
I have two combo boxes. The first combo box's data is added through an XMLConnector object, the second combo box, I would like to populate through an on (change) event in the first combo box. The items in the second combo box would relate to the selection made in the first combo box.
I have attempted the following within the Actions for the first combo box:
on(change) {
switch(this.value) {
case "value1":
comboBox2.addItem({Label:"Label",Data:"Data"});
break;
} // end switch
} // end event
which is not working.
should an event be dispatched by comboBox1 and a listener be attached to comboBox2? I can't find any examples of this on the internet.. but i might be using the wrong search terms.
View 6 Replies
Jun 20, 2005
I have a button instance mc "mcBtn", inside this instance i have the actual Btn graphic symbol and AS layer.inside the AS layer i have defined onRollover, onRelease, onRollOut methods.if i rollOver/Out/Press Btn it works fine and Btn animates in some way. I needed to access mcBtn from _parent timeline AS WELL, so i defined a method mcBtn.onPress [one which is not defined inside mcBtn yet], and inside onPress told mcBtn to animate some other content....
What happened is, that onPress works fine and after pressing Btn, requested content is animated, BUT all other methods defined inside mcBtn stopped working! [no animation when rollOvered, rollOut-ed, onRelease-d]
View 3 Replies
Nov 11, 2010
I never realized that fl.getDocumentDOM().selection doesn't retain the selection order... <sniff>. I was hoping to build relationships based on the order. I guess I took if for granted that tools like Maya and Max store the selection buffer in order of what was selected. I'm trying to avoid: Select Object, <Press 'Parent' Button>, Select Parent, <Press 'Parent' Button>
View 2 Replies
May 14, 2010
i have 2 movies clips 1 for navigation, 1 for pages...i cant seem to work out how to load movieclips into the other movieclip that is on the stage from the navigation clip... i know it sounds stupid and simple but only new to as3
View 1 Replies
Sep 6, 2007
i am attaching a number of _mc (my_mc) with a for loop. Inside each my_mc is an input textfield (my_txt)I want to click on my_mc.my_txt and select the textfield .the following code allow this and i can enter text from the keyboard however I want to add text from a _mc keybooard on screen (here called myBtn_mc).As soon as I click on myBtn_mc of course I lose focus ... i have tried to use a variable (select) to keep scope&focus
View 6 Replies
Apr 3, 2009
I have five buttons on the stage Each of them is entirely different looking button icons..What i need is, I want to apply the same effect to different looking buttons.Swaping does not give me the desired effect.. How can this be done programatically..?
View 2 Replies
May 7, 2003
Basically I have two movie clips. I know the x diff and the y diff, now how do I find the angle at which the movie clips are at?
Code:
v MC 2
/|
/ |
/ | < y diff
/ |
MC 1 > /__|
^
angle x diff
View 10 Replies
Jan 19, 2009
I am facing a problem in accessing Local shared object from 2 diff. swfs. Let me explain the scenario clearly.I am developing a radio widget (in maindomain.com for ex)which has a button to open a html page (placed in contentserver.com) as a popup with specific wt and ht. The html page loads the same SWF file of radio widget from "maindomain.com", means whatever changes we do for the SWF in maindomain will be reflected automatically in the popup also.Here where the problem is:
1. Say I am playing radio station "A" in main window and added this station to favourite list (which is done by storing in Share object). So when i open the popup its reflect there.
2. Now when i change radio station "A" to "B" in the popup and added "B" to favourites and closed the popup.
3. When I refresh the main window, I can get both "A" and "B" in fav, as expected.
4. But if without refreshing in main window when I changed to some new station "C" and then open the popup, it has got only radio station "A" in the fav list.
I am pretty sure this is because of Sharedobject.flush(). The thing I am wondering is, why the station "B" which is also pushed to sharedobject when added to favourite is getting deleted when I flush() the SO.?I googled many forums but not satisfied solution for this. Even I tried to get the Sharedobject.getLocal("SO","/") every time before using data in it. but no use.Is it a Flash limitation accessing LSO from diff SWF?
View 4 Replies
Jan 29, 2006
I am thinking of having 2 diff. versions of images in an XML driven photo gallery. The flash movie is full browser (no scale) with elements that adjust to the size of the browser window. I'd like some of the images to be presented pretty large, but only if the user has enough screen resolution. If using a smaller screen, then it would display the smaller version.
Anyway to do this efficiently (yes I am prepared to upload 2 different versions of each image)? Or is this a bad idea with too much maintenance?
View 5 Replies
Jul 6, 2009
My website splash page is around 780x480 and the rest of the flash site is all 800x500. I'm not quite sure how to work this, but I want to have the splash page play automatically then go to the main page of the website. Can someone help me out with this? And does it matter that they are different sizes?
View 1 Replies
Jun 11, 2009
I seem to have an issue with a flash I have written. The person who I made it for is telling me that first time he loads the page with the Flash in it, it loads fine. However, at this point if he navigates to another portion of the site, then goes back to the Flash page, he says it freezes on the loading bar. Consistently everytime, but only on his work computer, not home computer or lap-top. I think it might be a caching issue in IE, but I am kind of stumped, anyone ever experience this?
View 9 Replies
Apr 15, 2009
So, I have a basic Tetris game, which runs quite happily at 15 fps. However, the controls are slightly too sensitive at the moment, as you'll probably see here. Is there anyway way to make the controls less sensitive (specifically the left/right controls)?
[Code]...
View 6 Replies
Aug 31, 2009
The first time you navigate to it the movie never runs properly. One of the animations will only advance about half way along it's intended cycle, or else icons will be blinking visible and invisible, or a host of other things.
View 4 Replies
Mar 21, 2004
I could be mistaken of course.... here is the code.
[AS]
picNames = ["pic1.jpg", "pic2.jpg", "pic3.jpg", "pic4.jpg", "pic5.jpg", "pic6.jpg"];
picNamesB = ["pic7.jpg", "pic8.jpg", "pic9.jpg", "pic10.jpg", "pic11.jpg", "pic12.jpg"];
[code]......
View 5 Replies
Sep 1, 2009
I'd like to show my print portfolio in different slide shows on Flash CS4 using buttons that correspond to categories such as: brochures, posters, logos, etc. I've made the buttons and I created slide shows in Powerpoint--but if there is a better way in Flash, let me know. How do I code the buttons to play their corresponding slideshows? I don't want them visible until the button is clicked.
View 2 Replies
May 14, 2009
[URL].. This runs much slower (about half the speed) in FF than in IE/Safari...its set at
View 2 Replies
Dec 7, 2009
I added a bit of Action Script 3.0 code into a premade flash file that came with my website template.I wanted to link a navigation button to an external url, heres the code:
stop();
home_btn.addEventListener(MouseEvent.CLICK, gotoURL);function gotoURL(event:MouseEvent):void{navigateToURL(new URLRequest("http://www.knirv.com"));}
[code].....
View 3 Replies
Feb 5, 2011
I used the 'Advanced Slideshow' template in Flash CS5 to create a photo gallery. The images in the template are not placed inside of the project but are separate files (the photos). I tested it on my harddrive and it works perfectly. Then I uploaded it to my website and it doesn't show the images. The folder structure is the same as it is on my harddrive, all the files are the same.
View 9 Replies
Jan 27, 2010
I was in the middle of developing a Flex applcation, and then I recently switched from Windows XP to Mac. My app is noticeably less responsive on my Mac than on Windows, and today I proved it's not a hardware issue, because I ran the App on my Mac and a Window XP on Virtual Box side by side, and IS much more responsive on XP. Things like repainting in response to window resizing, selecting/unselecting list items, scrolling up and down(I do have complicated list-item-renderers). Has anyone seen this as well? Is flex/flash just not as well supported on Mac? Or are there tweaks I can do to improve performance on the Mac?
View 3 Replies
Feb 19, 2010
I have an existing AIR app whose main content is App.swf.I would like to have another AIR app that hosts and runs App.swf. When I say run it, I mean displays it's WindowedApplication.Here's the code for the 2 AIR projects (imports are omitted for brevity):
// App AIR Project -> App.mxml -> App.swf (it's just a window)
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml">[code]....
I get the following error while App.swf is being loaded:
TypeError: Error #1009: Cannot access a property or method of a null object reference.at mx.managers::SystemManager/initHandler()[C:autobuildgalagaframeworksprojectsframeworksrcmxmanagersSystemManager.as:3001]
I believe the issue has to do with AirAppHostApplication's SystemManager conflicting with App's SystemManager because they are both living in the same app domain. Can an AIR app be written where a WindowedApplication class isn't statically defined, but loaded at runtime by loading a swf and instantiating the WindowedApplication subclass that's contained in the swf.The reason I want to do this is for an automation scenario where I have to assume I don't have the source code for the app I'm automating, but I do have access to the names of the public classes and their public methods exposed for automation. I have complete control over the environment and don't have to deal with any constraints around that, so I can put 2 AIR apps in the same directory, etc.
View 2 Replies
Jan 22, 2012
Allaboutrajini site tells you to stop your Internet connection to enter the site.I guess it determines whether the connection is on or off with javascript or something like gmail and qoura do.
But how can they store so much of flash animated content locally in the browser in such a short time?
View 3 Replies
Jul 13, 2011
I am working on a piece of software that was written by someone else (that person is no longer available, but part of my job is repairing/maintaining this software).The software has multiple pages, each is a swf that calls loads and plays an FLV file. I've noticed that the audio is inconsistent after multiple runs.For instance, I'll repeatedly run the code in the Flash player by pressing CTRL + E in Adobe Flash (so no html yet). No changes to the code or anything, just play once, close the Flash player, immediately play again, close, and so on. The first few times, the audio loads and plays with no problems. After a few runs, I've noticed that the audio no longer plays.
I put in trace statements to see the state of the player content, and while when it runs correctly, I'll get the usual "playing", "connectionError", etc., on the times when audio does not play at all, the state is "undefined," like the player content was not created.Again, to clarify, this happens with no change in code or file locations. And the problem is always apparent as soon as I run the swf, because on the first page the state is "undefined" if the audio doesn't play (so in other words, it's not like one particular page breaks it partway through). From what I see there is also no persistent data that should carry over from one execution to the next.
View 0 Replies
Apr 15, 2006
I 'm working in a flash website and I used a background music that runs while the flash file is playing, I used action script codes to run this music. Also, I used some simple sounds that plays when the user move his mouse over a button or some items, but I imported these sounds to its frames directly and I didn't use action script to run it.The problem is that I want to make a "MUTE" button to stop all sounds, but the background music only stopped because it was runned through Action Script, other buttons will produce the same sounds when moving the mouse over them Does anybody have an action script code to mute all sounds even if they were imported to frames directly??
View 2 Replies