ActionScript 3.0 :: Without SwapDepths Menu List Doesn't Work
Mar 3, 2009
Im working on migrating an old as2 file to as3 and am stuck on a swapDepths issue--Havent had any luck with setChildIndex or swapChildren--Nothing is being dynamically added to the stage and as the clips are nested and consist of timeline layers of textfields and MCs Im not even sure what is a child of what. for some reason on mousing over the menu, the code I have for highlighting the button and showing the text that was appended(on long lines of item descriptions) due to size constraints of the component, is showing up as semi-transparent--I dont understand what is causing it to happen(although I resolved the issue previously with swapDepths)or how to resolve it. The code thats is the issue is in the menuButton MC timeline layer 13...
Here's the link to the file--see button 8--- [URL]
View 10 Replies
Similar Posts:
Feb 17, 2011
My FLVPlayBack integratino doesn't work : menu don't show, the video don't loop .
It's here :
[URL]
And the code generated by flash CS5 pro :
<div id="flashContent">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="385" height="282" id="pic-du-midi-fevrier-2011" align="middle">
<param name="movie" value="videos/pic-du-midi-fevrier-2011.swf" />
[Code]....
View 2 Replies
Mar 22, 2006
i found this nice Mac OS X Dock Menu effect on [URL] (the second link from the top), the thing is, it only works when it is published for flash player 6 or lower... why it doesn't work when it is published for flash player 7...
View 14 Replies
Nov 23, 2009
I have a flash website, with two menu the main menu that loads by Loader class swf files with the respective content. And the secondary menu that changes the language of the site. How do u implement the action of having the site translation?
1)Passing params Load file.swf?langid=n then reading by loader info (this one is not easy to test since loading swf with params doesn't work in flash ide debug env.)or
2) on load complete cast the loader to a movieclip the accessng a main func with the task of translating the whole swf contents(the same func i should have at point 1)
View 0 Replies
Nov 7, 2010
I made a simple website with a flash menu, that opens internal links in an iframe. However, I have a few other (not included in the menu) external links, which open in the same iframe. And after I click on one of them and it loads in the iframe, the buttons on the menu stop working. I'm beginning to think it has something to do with the internet explorer, since it works on some computers. But I'm not sure... not very good at this.
View 5 Replies
Sep 7, 2003
I have a movie clip I am using to display a group of logos i created which are also movie clips. when the user clicks on each logo the logos are supposed to enlarge except, that because of the way the layers are stacked, one of the enlarged logos displays underneath the smaller one. so, someone suggested i use swapDepths. But nothing happens. it won't even enlarge. here's the script:
on (release) {
this.swapDepths("manard");
gotoAndPlay("oataup");
}
"oataup" is a frame label, obviously and "manard" is the name of the movie clip instance I'm trying to swap with. I've never used the swapDepths method before so I'm hoping I screwed something simple up.
View 4 Replies
Aug 11, 2010
I'm using flex 4.1 to write an application. i read in the documents that has the rowCount property to set how many items to display. the does not have that property. how can I limit the list to display 3 items ?
View 3 Replies
Oct 16, 2009
I decided to try to use setInterval for myanimation, which is just a mouse trail.However, I'm trying to get teh mouse trail to be a dynamic mask.In my previous swf this was achieved by using a holder mc with the animation inside and then using this as the mask. But this time I just canpt seem to hit on the right way to get it to work. The code I am using for the mouse trail is:
Code:
var i:Number = 0;
var myInt:Number;
var t:MovieClip;[code].....
in the function, but now the trail doesn't resize and the mask still doesn't work.
View 1 Replies
Apr 21, 2010
I have a button object that I need to scale to align with the variable width of an array of images.However, when I set the width in code, the button does not actually become that width. Tracing out the width gives me the correct value, but on screen.. it's off.
I've proved it to myself by scaling the same button object manually in the properties pane and visually comparing. Both of the buttons below have a width of 410.
Code:
navigatorDown_btn.width = 410;
navigatorDown_btn.x = (stage.stageWidth/2)-(navigatorDown_btn.width/2);
trace(navigatorDown_btn.width); // output: 410
View 4 Replies
Sep 8, 2011
when i use nextSlide() and prevSlide(), which are executed when i click on two buttons. SelectedIndex works when i click on the elements in the List. What am i doing wrong? do i have to dispatch some events? Are there any tricks to doing it with buttons?This is my playlist class
public class Playlist extends List
{
private var dispatcher:Dispatcher;
[code]......
View 2 Replies
Nov 27, 2011
how to make the List and Checkbox (inside a VGroup) to fit into a TileWindow?
The complete source code Text.mxml:
<?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"
[Code].....
View 1 Replies
Jun 3, 2008
I have a combo box on the stage in a main SWF. when the user selects an item in the dropdown list a child SWF is launched into level0 using loadMovieNum and data is left behind using _global variables for the child SWF to use. this works fine and well. but inside the new child SWF that is launched is a button that takes you back to the previous main SWF with the ComboBox. its done using the same method loadMovieNum into level0. and the main SWF loads but you cannot open the ComboBox. it will not drop down. the halo green color on hover over is there and it gets darker when you click, but the list doesn't drop down. here is some code that I think may be significant to the situation...
[Code]....
View 12 Replies
Apr 8, 2011
Let's say I had an AS file that populates a list menu in my movie from ListOneArray.That list menu is used as a navigational tool and when the user clicks on a list item it would take them to, say, frame 2.On frame two I would like that list menu now to have a different list from an array in the AS file called listTwoArray.What would be the best way to go about that? Or, if I have the list menu populated from the AS listOneArray and the user moves to frame 2 by the navigation, can I on frame two access the listOneArray in the AS and change the data?
View 3 Replies
Sep 12, 2010
I have been working on making a menu for list items. The file below has an animated menu. If you click on Artificial Intelligence on frame 60, it jumps to frame 61 (a specific section for that list item). How do I make the Artificial Intelligence button on frame 61 jump back to frame 60? I dont know where to add the action script for the function. I need to add a similar script to all 9 list items, do they go on one actionscript file? if so what location? [URL]
View 2 Replies
Jun 20, 2011
I have an (empty) ArrayCollection that I wrap with a ListCollectionView. Then I add a series of items to the ArrayCollection, but these are not showing up in the view.
public var transactions : ArrayCollection = new ArrayCollection();
public var filteredTransactions : ListCollectionView = new ListCollectionView(transactions);
transactions contains 150 items, filteredTransactions contains none. I originally thought it was the filter I was applying, but even when I remove the filter, I still get no items in the filtered list.
Do I need to add the items to the view as well as the underlying collection (this would seem to defeat the purpose of using a view though...)?
View 1 Replies
Jan 12, 2010
For some reason the menu doesn't load to the URL that I specify in my xml file. When I click on it, it showed up as text underneath the menu itself as Link clicked How can I make it so that the link will actually go to URL that I specify in my xml file?[code]
View 2 Replies
Mar 27, 2011
Have 3 flash games that I would like to integrate in a menu / list in an android app. So when the user selects the game from the list, the game starts with android flash player. Is it best to do this with WebView or is there something better? I do not know where to place the flash games to get them in my compiled application.
View 1 Replies
Jan 9, 2012
I have built simple scrollable list menu for my mobile app - this is just a simple table with 1 column and there is a small jpg and description text in every row. This is built using the ScrollPane component (with scrollDrag enabled) - and within scrollPane every table row is simply a button object. This all scrolls and works just fine.
When you scroll the list - and when you let go your finger to scroll further it thinks that you've clicked and it opens the link. I am using onClick event at the moment (but also tried TapHandler) and they all do the same thing, they work but you can accidentally open unwanted menu item. How to separate swipe from just tap event in the code, so user doesn't accidentally opens the link?
View 0 Replies
Apr 21, 2010
I am currently making an interactive Map, as i rollover to a certain continent, the continent will light up in a yellow highlight, afterward as i click on the continent the box menu will pop up on top of the continent, everything went fine until i browse around inside the box menu( the box menu is bigger than the continent,..wider) cause at one point the cursor will go to a certain area inside the box menu that is not on top of a part of the continent, That's when the yellow highlight went down. I was just wondering how do i make sure the yellow highlight on the continent stays on while i freely browse around the box menu( which is wider than the continent)
View 1 Replies
Apr 17, 2007
I am using the List component as a menu. The user uses the arrow keys to go up and down the items in the component and uses another key to select them. This is all working but now I would like to include infinite menus. I have made a quick animation to show you what I mean: [URL]
I am currently using this code:
Code:
focusManager.setFocus(_root.menu);
lastItem = menu.length - 1;
menu.selectedIndex = 0;
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
if((menu.selectedIndex == lastItem)&&(Key.getCode() == 40)){
menu.selectedIndex = 0;
} if((menu.selectedIndex == 0)&&(Key.getCode() == 38)){
menu.selectedIndex = lastItem;
}
However this results in an "off by one error" and the top item and bottom item cant be selected. e.g. [URL].
View 1 Replies
Aug 3, 2007
I am working on a class for a horizontal list of thumbnails that will function as a menu. The current selected thumbnail will display in the middle with the previous and next thumbnails displayed on either side. In the screenshot shown, the standby images before and after previous and next are also displayed, although they won't be in the final result.
Here's what it looks like at the moment: Everything works apart from the animation itself. When the user clicks a left or right arrow, the thumbnails will slide left or right and change their size an opacity as well.
I have attempted to use the Tween class, but there are four clips to be animated with five tweens (the unused standby thumbnail is simply removed), amounting to a total of 20 Tween instances running simultaniously. That seems to be too heavy on the processor, so I'm exploring a different apprioach, but it dosn't seem to be going all that well.
[Code]...
View 5 Replies
Jul 23, 2009
I have a swf that is pretty complicated, you can interact with the page and go to different keyframes and it stops and/or starts depending on buttons, but I want to put it in a fla or something so I can put other swfs next to it and build it up and put several of them together as one.
I don't care about making it too complicated, I just want one interactive swf to go to the next compiled swf when that movie ends, but when I try importing it or loading it it just runs straight through without stopping or paying any attention to the scripting.
View 16 Replies
Dec 5, 2009
I create a flash site with a XML MENU. When I publish the site the xml menu doesn't move when you scale the browser window, but when I use swfobject the xml moves when you scale the browser (not centered).
View 11 Replies
Jul 7, 2011
Working on an ActionScript 3 project in CS6. Following along with the "Flash Down Under" tutorial on the Macromedia website. In the tutorial, a pop-up menu shows up when the instructor types in part of the ActionScript command. I cannot get this function to work for me, even though the commands highlight when I enter the text in full. Anyone know how I can get the pop-up menu to display?
View 5 Replies
Jul 9, 2011
I purchased a template from template monster. I am tweaking it, trying to replace the flash picture slider with html. I want the flash menu to remain. When I replaced the slider, the menu tabs work but the tab doesn't highlight the page its on. I use flash pro 8 action with script 1.0 & 2.0 .http:[url]......Here is AS code:[code]..
View 9 Replies
Apr 11, 2012
url...In basic tutorial there is extra part of button where you add menu name "home, about us" etc.But I don't need this. I needed more simplier. From xml file I load an image or swf. And then you just mouse over it and it moves and it clicks. No extra 30 pixels for button space.If i change AS line ldr.x=0 to ldr.x=27 then it moves, but there is extra unnecessary empty space between content things. I don't need it. What should I do?
View 1 Replies
Jan 12, 2011
I am trying to create a buttons menu with Array, and for some reason it only show the lastone on the list.
Here is my code (AS3):
var nav1Items:Array = new Array("about", "work", "contact");
//Create text field
var myFont:Font = new Calibri();
var myFormat:TextFormat = new TextFormat();
var label_txt:TextField = new TextField();
//Set text style
[Code] .....
View 3 Replies
Aug 4, 2009
I've found it's often useful to special case the first item in a drop-down menu (ie, an instance of Menu). For example, if I want to pick a color from the list provided by a web service:
<mx:PopUpMenuButton id="colorSelelector"
dataProvider="{colorsService.lastResult}" />
I might also want a special-case, which is "enter a new color", allowing the user to enter the RGB values for a new color which isn't in the list. For example:
var newColor = { label: "Enter a new color", rgb: null };
Then used with:
<mx:PopUpMenuButton id="colorSelelector"
dataProvider="{colorsService.lastResult}"
lastOption="{newColor}" />
So, apart from changing the list I get back from the service, is there any better way to do this?
(and just a preemptive comment: this is a simplification... I'm not actually trying to make a color-picking-list)
View 2 Replies
Jul 30, 2009
I'm struggling with a 2 level menu and it needs to follow this condition: The "menuItem" button should be trigged with MOUSE_OVER to open its SubMenu, cause it needs to be also associated with the CLICK event.I'm managing the objects in the display list like this:
stage
__menu
____menuItem
______bt_title (movieclip that contains textfield with title of the button)
[code]....
how should I manage the EventListeners ?I've done like that:
Code:
menu_mc.addEventListener(MouseEvent.MOUSE_OVER, mouseOverItem);
I should be able to MOUSE_OVER the menuItem to open the subMenu, and leave it open while I'm still able to MOUSE_OVER and CLICK the menuItem.bt_title and every other subMenuItems.If i do:
Code:
menuItem.mouseChildren = false;
then i don't have access anymore to its children. If i do that:
Code:
menuItem.mouseChildren = true;
menuItem.bt_title.mouseEnabled = false;
menuItem.menufill.mouseEnabled = false;
menuItem.tab.mouseEnabled = true;
then I get the "epileptic" effect created by continuously mousing OVER and OUT the menuItem. Is there something to do with the capture / bubbling phase of the event flow?Where exactly should I place the listeners?
View 1 Replies
Apr 8, 2010
I am trying to more between frames using the data returned from a node n_EventID in an xml, when the node returns "1408" I want to move to frame 1 but if it returns anything else I want to move to frame 2. The part where the code moves to frame 2 seems to work perfectly but I can't seem to move to frame 1 when "1408" is returned.
xmlResultFinish = new XML();
xmlResultFinish.ignoreWhite = true
xmlResultFinish.onLoad = loadXmlResultFinish;
[code]....
View 5 Replies