ActionScript 2.0 :: Tabbed Content With SwapDepths Not Working Right?
Apr 2, 2009
I followed this tutorial on making Tabbed Content with swapDepths, but mine isn't working quite right. When you click a tab the text and icon disappear behind the tab. So each tabbed page is an mc and there is a button for each tab that has this AS on it:
on (release) {
_root.btn1.swapDepths(3) ;
_root.tab1.swapDepths(2) ;
}
View 3 Replies
Similar Posts:
Jul 17, 2009
I am currently designing a website for a fiend and would like to make the content of the website tabbed. What I mean by this is I would like the visitors to click on a tab (e.g. Contact) and the tab would slide out with the appropriate information inside. Okay so that part is easy, the problem I am having is that when one tab slides out all of the tabs on layers below the contact layer get covered up. I would still like for all of the other tabs to be visible. I would like for all of the tabs to slide out as if they were behind all of the other tabs.
The link is: [URL]
View 2 Replies
Mar 12, 2009
I'm trying to set up an app that moves one movie clip to the top of the screen, regardless of where it is or how deeply it is nested. To do this, I take the full path of the movie clip and go in, movie clip by movie clip, putting the depth of each nested clip on top. This part works perfectly. Afterwards, I want to move everything back to where it was. In the first step, I store the current depths of everything in an array before changing depths. In the second step, I'm trying to change everything back to its original depth, as shown in the array.
The code is below:
_global.videoPath = _root.clip1.clip2;
var pathString = String(_global.videoPath);
var videoPathArray = pathString.split(".");
var depthArray:Array = new Array();
[Code] .....
View 1 Replies
Feb 21, 2011
difference but Im using Flas cs5 with AS2. but my clock timer is still behind. Ned, I used your suggestion of putting my dynamic text into a new mc (create sybol method, the only one I know) then I made a new movieclilp named time_mc. I then pasted the actionscript with the 30 minute countdown timer on it. It is still behind. The clouds have to stay on the last depth and the timer has to stay on the top. The rest can go whereever. Not sure what i am doing wrong. I bet Im doing something incorrect but cant figure it out. I kept playing around with codes, but nothing worked. Here is the final non-working code. Working on this issue three days. The timer works if I remove all other layers but it stays hidden once I put them back,
[Code]...
View 4 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
Oct 17, 2006
I am trying to create a carousel effect with AS3. It all works good except that I get my swapdepths to work. I have a CarouselItem class
ActionScript Code:
package{
import flash.display.Sprite;
public class CarouselItem extends Sprite{
private var _angle:Number;
public function CarouselItem(){
super();
[Code] .....
I get the depth of the current object and then swap it with the one with the higher index.
View 9 Replies
Jul 18, 2010
I have been battling this for 2 days now and can't seem to find any solutions. I am making a flash Statistics chart for my website which pulls the stats from the database and loads them into corresponding arrays in the actionscript. Once all the information is pulled, it goes to the next frame and duplicates the existing stat bars on the flash document depending on how many stats were retrieved. The loaded stats are then calculated to adjust the stat bar heights to fit the grid. So far, everything is working up to this point.Now for the problem... Directly above each stat bar, I have a text field which I want to fill with the value of the specified stat. The stat text fields are duplicated by the duplicateMovieClip function. For some reason, stat text fields are not visible at all even when using the depthManager function I found in my research.[code]
View 2 Replies
Jan 14, 2010
what I'm trying to make first, so: [URL] the big main box that shows the lastest stuff You can mouse over the small boxes and the content in the main box changes, and if you don't do anything, it goes through the different stories like a slideshow [URL] - like the ign box but hovering over it doesn't do anything, you have to click the button for the content to change So I'm trying to create a mix of the above two, like a slideshow but doesn't change when you mouseover, instead need to click it (see attached file).
What I've done so far is add the time interval, and created links on each page to each other, but if I click a link or let the slideshow run more than one loop it starts speeding up uncontrollably. I think I need to use clearInterval or something, but can't find any tutorials that actually make sense.
View 1 Replies
Sep 29, 2011
My app has 3 categories of buttons, I want to have a tabbed panel I can use to switch between the 3 categories like in this example:
My app is a mobile app though so I can't use mx components. When I try searching for mobile tabbed navigation etc., I come up with only viewnavigator examples.
View 1 Replies
Mar 6, 2012
i have a tabbed panel in the flex having various tabs and i m using this to get the selected tab index
private function handleInspectorAreaButtonClick(e:Event):void
{
var selectedIndex:int;
[code]....
View 2 Replies
Jan 19, 2009
I have a mp3 player I am trying to make/modify for a website I am working on. It has three tabs for different CDs. Each tab is its own .swf file being loaded in with its own player. When you click on another tab it unloads the swf and loads a new one in. My problem is that some of the player's info is not being unloaded. If you swap tabs a couple times the progress bar will not work and things start to get a little quirky. How would I completely unload the files to make this work how it should? here is the live example [URL]
[Code]...
View 3 Replies
Apr 18, 2011
I have a project that has 4 views where I'm using the tabBar with viewStack/NavigatorContent. I have a couple HTTPServices set up gathering the XML and converting to Bindable ArrayCollections. When and how is the best way to pass that data to such things as charts, dataGrids, etc. that aren't seen until the user clicks a tab? Right now I have each item set up with creationComplete functions that pass it then. Although it seems to be working, is this the best way, or is there something better and maybe even quicker?
View 2 Replies
May 25, 2011
I am working on a Flex TabbedViewNavigatorApplication with three tabs (ViewNavigator elements). I would like to switch from one ViewNavigator to another based upon a user action (via ActionScript code).I know that switching between Views uses pushView and popView, but I'm working with ViewNavigators, and my searching revealed nothing useful.I'm trying to switch from Tab2 to Tab1 when an event occurs. In this case, Tab2 contains a list, and when the user makes a selection, I want to jump back to Tab1.
<s:TabbedViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
creationComplete="onAppReady(event)">
[code].....
View 2 Replies
Oct 22, 2009
I need to prototype a tabbed interface in Flash, AS3. I was thinking of 3 MC buttons on my timeline (let's say there instance names are; tab1, tab2, tab3).
In theory I would have a respective MC (instance names; content1, content2, content3) for each tab and when the tab was clicked on, it's MC would appear below (i.e. tab1 was clicked and in result shows content1).
Any guidance as to how I would structure this in Flash I'm blanking on the code structure to get this working and can't use easy goto's on frame ids as once performed in AS2
View 4 Replies
Jan 9, 2009
I'm trying to set up a user interface with a tabbed panel design.I've set it up with 2 frames within a parent MC. Basically to switch between the panels, the playhead is moved between frame 1 and 2.The Actionscript that controls the buttons on both tabs (frames) is on the parent timeline. Problem is that when I switch to frame 2 and back, buttons that were working on frame 1 are no longer working. I figure that by going to frame 2 and back the instance name is 'forgotten' by the AS.I can fix this by simply putting the AS on each of the 2 frames, but was wondering if there was a more elegant way of doing this ie keeping all my AS in the parent timeline.
View 4 Replies
Apr 2, 2011
how to create just tabs in flash but I can't find none which explains how to create associated subpanels and switching between them.
View 1 Replies
May 12, 2011
I'm very sleepy right now, so this is just an example of what I want (obviously this code is wrong):
<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
[code].....
View 1 Replies
Aug 19, 2009
I have a movie clip that loads thumbnails from images folder by reading the location of image from xml file...The problem is I have put up a scroll bar but its not working i.e its not scrolling the thumbnails' movie clip contents. I am uploading the fla...any line of code I need to change I think its the scrolling function. The scrolling script I used is from kirupa. I don't want to use classes in this...and want the up n down buttons to remain.
View 6 Replies
Feb 23, 2009
I have to create a map in flash (I'm most likely going to be bringing in graphics from fireworks, but that's a separate issue).I have been provided with an xml document which (I am hoping anyway) will dictate which country on the map should change to a clickable state. This xml document is being output from a database for which some countries will have a 'story' behind them some won't .. but over time each country gets a story.
Primarily, the flash movie therefore needs to 'know' when a country has something to display.Thus far, I reckon the xml document will have to have a value for each country which says content = true or false (or content="0" or "1" .. meaning the same thing).The flash movie then needs to parse the xml value to enable it to display a clickable version of the country visible (layer / movie clip visibility?) IF that country now has clickable content .. else it just sits there in a different colour (i.e. greyed out) and isn't clickable. Hopefully the xml document will eventually also contain the URL which the button needs, so the right page opens when it's clicked. how do I link each country to it's bit of the xml document to control the movie clip visibility and pull it's getURL data to achieve this?
View 1 Replies
Aug 28, 2011
Plain and simple, I have a button that does not work if it exists on a layer below a loaded SWF. If I drag the button layer up above the layer where the eternal SWF is loading into and publish, the button works fine, yet if the button is below the layer that the clip is loading into it does not work at all, even when no content appears over the button. There is no button at all in the loaded clip that would interfere...
View 5 Replies
Aug 10, 2010
am building eLearning courses using a Flash-based AS 3.0 course playerI use SoundMixer.stopAll to stop sounds when progressing through the course, pressing buttons etc also call SWFs made in Captivate into my courses. These SWFs have audio in them. But when I progress through these slides (by clicking a next button), the sound from the captivate made slides overlaps (keeps playing). SoundMixer.stopAll does not seem to work for captivate SWFs
View 1 Replies
Jun 23, 2009
I've looked everywhere and keep getting the same answer. I have a standard flv player component with the instance name of 'movies'. i have a button, that when clicked i want it to load a certain flv into said player... so... ive got behind the button (for example..)
on (release){
_root.movies.contentPath = "http://www.mywebsite.com/mymovie.flv";
}
it compiles, i run my flash and my flv player doesnt play my content.. why?? the url is 100% correct as if i put it in manually, it works fine.
View 5 Replies
Mar 1, 2010
I got an issue and i can not figured out why this utton not working. So. Here is the code which i use to navigate between pages:
[Code]..
View 3 Replies
Aug 18, 2009
I'm trying to load an XML file and place the content into a dynamic text field. The XML nodes contain content within CDATA sections that have basic <b> and <i> tags. Once I have the content loaded into a variable and trace it, I can see all my tags within.
I then place the content into a dynamic text field with html set to true but for some reason it doesn't show any formatting, the tags appear to have been rendered because they don't show up inline. I thought maybe this was due to embedded fonts but i have all of my bold, bold italic, italic and regular font's within a text field embedded so I wouldn't think thats an issue. Is there something I'm overlooking?
View 6 Replies
Jul 26, 2009
I've tried for hours and days to make my vertical text content scroller working in a flash fake 3d environment with rotationX / Y. But because of vector>bitmap conversion when 3d roationing, the scroller fails to works. I know the stratDrag method fails to work in a 3d environment. other than using PV3D or so ? cause I don't know how to work with PV3D, it's just tooooo complicated to get it for me.
View 1 Replies
Mar 16, 2011
how to use swapDepths(). I know the alternative way is swapChildren(), swapChildrenAt();I need to know, how to use swapDepths();
View 2 Replies
Apr 2, 2004
I wanted to swap the depths of two movieclips one located in _level0 the other located in _level2! I can get it to work when the MC's are on the same level but not when thier in different levels.
This is the code I've tried...
Code:
_level2.buttons.swapDepths(_level0.caption);
View 1 Replies
Feb 19, 2010
I did the 3d carousel tutorial from gotoandlearn.com and I manage to create a background color that will load once you click an image with a movie clip called dim . However this movieclip dim keeps appearing atop my icons. I tried Swapdepths to change the orders but its not working.
[Code]...
View 17 Replies
Jan 19, 2009
If anyone can get these mc's to swapdepths when clicked!
View 2 Replies
Feb 20, 2010
I did the 3d carousel tutorial from gotoandlearn site and I manage to create a background color that will load once you click an image with a movie clip called dim. However this movieclip dim keeps appearing atop my icons. I tried Swapdepths to change the orders but its not working. On function released. I want the var dim to be behind the var t:Movieclip =home. in the preview the movie clip dim with the alpha of 80 appears on top the var t that has the carousel images.
Code:
import mx.utils.Delegate;
import mx.transitions.Tween;
import mx.transitions.easing.*;
var numOfItems:Number;
var radiusX:Number = 300;
var radiusY:Number = 75;
[Code] .....
View 0 Replies