ActionScript 2.0 :: Nav Stay Highlighted To Represent Where A User Is By Detecting What Page It Is On?
Dec 6, 2005
Just curious to know if its possible. I have a nav that is in flash and will be in many .asp pages. Could a corresponding button in the nav stay highlighted to represent where a user is by detecting what page it is on?
i have a menu http[url]....that i want to have the month and day stay highlighted depending what page you are on. you will have to check it out to see what i am talking about
the menu sits on an asp page so the whole site is not all in flash but when someone clicks and month and day i want it to stay colored in even after they are taken to that page. i know their has to be a way to do this without making a menu for each month.
What I want to achieve is active links like in HTML websites.I have 3 buttons on the stage, when the user clicks on the first button it should be highlighted and should remain in that position till the user clicks on the next button. When he clicks on the 2nd button the previous one should come in normal state and the 2nd one should become highlighted and so on....
I have a flash menu that I'd like to use on a HTML page. I'd like to make it so that when a user clicks one of the buttons, that button will remain highlighted on the page that uploads. An example of this would be at [URL]. How is this possible with action script? I was told in another board that it had to do with variables, though the person did not give a clear explanation that I could understand. I'm new to action script but am learning bit by bit!
i've made some buttons that on mouseover shows a larger picture above the button. when the cursor leaves that button though the picture disappears until the user mouses over the button again. is there a way to ensure that the picture stays up until the user mouses over another button (then they would see another image)?
I'm working on a dress up game and I have one problem with it. There are so many items of clothing (which are movie clips with the basic drag and drop code) that I had to create different pages for them. I have buttons (labeled like "dresses", "pants" etc) that when clicked on make that group of items appear. So, great. It's just that once an item has been dragged over to the doll and put in place, I want it to STAY there. But as soon as you click on a different page, that item disappears. Is there any way to make items stay on the doll, even though they're part of a page?
I'm trying to figure out how to get my logo to stay at the bottom right of the page all the time. I used Stage.align and onResize but the problem is that my logo ony aligns when you go to resize the window, and it "jumps" into place. I want it to pop up in the bottom right and then stay there, regardless of the window size. You can view it at This is my code:
Is there a way to detect when the user accepts the Privacy Pop-up?
Basically, I'm using the microphone to record a voice message. I'd like to start a countdown timer that tells the user how much time they have to record their voice.
I start the countdown timer on the same event that I call nsPublish.attachAudio(microphone), and the countdown starts immediately, even though the user sees the privacy pop-up.
Much to my chagrin, my FLVPlayback video enters the 'pause' state rather than 'buffered' when the bandwidth forces the player to pause. Unfortunately, that's the same state as when a user presses the skin's pause button. Therefore, I can't detect whether the video is paused based on a user action versus a lack of downloaded video data.
That is, I can trigger an event based on either occurance, but I can't tell which caused the video to enter the paused state.
It sounds like others have had this problem as I've caught a couple discussions outside these forums describing how to code around this problem and, well, the descriptions are too sparce for me to code myself.
How can I tell when a user has been idle for say 5 minutes on my Flex app? When I say "idle" I mean the user has not interacted with the application at all.
I am having a problem with correctly detecting a user's camera settings.
If the user has selected "allow" and "remember", then the camera.muted setting is false (not muted)
However, if the user has selected "deny" and "remember", then the camera.muted setting is true. (camera has been muted by the user)
BUT, if the user hasn't selected anything and the "remember" checkbox is unchecked, the camera.muted setting is ALSO TRUE (the camera is again muted, but it's only because someone hasn't "allowed" the camera yet)
Is there a way to differentiate between when a user has chosen to deny a camera forever for a particular site (by checking the "remember" check box) OR when they just haven't allowed the camera in the first place?
The second page Safety_mc has some external links to .pdf & .jpg files. When I am on Safety_mc page and click a link it opens a pdf file in same window it is fine. But when I click on back button on web browser, it takes me to Home_mc instead of Safety_mc. How to resolve this problem?
I'm working on a project for a client, they want a simple drawing api which requests the user to draw a circle, or a shape on screen. The circle is then analyzed and a Score/Percentage of correction is returned. The drawing I have covered, how to assess the drawn circle against a perfect circle?
My first idea was to put invisible trigger points around the circumference of the shape and check for hit tests when the user is drawing. Another would be to track the dimensions of the left, right, top and bottom most bounding box and then find the radius, or something to that effect.
I am trying to have a local shared object in flash to detect whether a user is a new user or a returning user. If they are a new user I want to do newUser function and if they are a previous user I want to do a previousUser function. This should all be happening on an onEnterFrame.
Here is my code I have so far: //shared object - cookie newUser_test = SharedObject.getLocal("newUser"); newUser.text = newUser_test.data.title = "new user"; newUser.text.onEnterFrame = function () { newUser.text = "new user"; } newUser.text.onEnterFrame = function(){ newUser.text = newUser_test.data.title = "previous user"; newUser_test.flush(); }
How do i change content on a page each time a user visits or refreshes the page? example: the icon on kirupas header changes when the page is refreshed or re loaded. I have searched using dynamic content, but didn't quite find it...I only want to change 1 image..
Let me ask how to program an html page to move to a new web page on user's clicking an item of an embedded flash movie? But , in detail, I actually want to do a little different thing. I want that the parent html page remains there ,instead I want a child html frame has a new page after user's clicking the list item of the embedded flash movie.
I need to use the same flash menu for 2 different languajes. The swf menu are just buttons with photos but is there a small text that should reflect the current page languaje
IE:
index.htm should have menu.swf in english but index_spanish.htm should have menu.swf and show only the texts in spanish.
I though just using dynamic txt fields with a var name "lang" to set the text to "buttonname" or "nombredeboton" depending on what page the swf is located.
So what I need is a method to swf detect whether the page is english or spanish (perhaps based on browser url?) that way I could use just one swf file for both languages.
I've embeded my swf file in .net application and after navigating to some pages in swf file and pressing f5 or refresh, its navigating to starting page of swf file and browsers path always shows the same path (main.aspx page) in which I am embedding the swf file. After navigating to some pages in swf file also it shows the sam path. So its refreshing the aspx page and giving the starting page. How can I control the browser to stay in current page of swf file.
In my flex app I have custom tooltips on buttons that hide and show based on user context. The problem that I dealing with is that when I call my showTips() function I only want to show tooltips on the buttons that visible in the view. So buttons that on a un-selected tab (tabNavigator) should not show the tooltips. For some reason all tooltips are showing. Is there a way to detect if a button is not in current view, like on a un-selected tab?
I've got about 6 buttons laid out, one on top of the other in a list format. In their normal state the buttons are grey in colour, when I rollover them, the buttons flash and turn to orange. Now, what I need to happen is this: I want the buttons to stay orange once clicked and only roll out back to grey when the user has clicked on another button in the list. I've been told that the best way to do this is via adding a listener, however I am a little unsure as to how to go about this. I've checked the flash help file and have a basic understanding of how listeners work...but can't really wrap my head around applying it to this situation. Perhaps I will need to have all the buttons as separate broadcasters?
At the end of the movie I would like to check if the user is still connected to the Internet (they maybe on an unstable dial-up connection and lost connection). Is there anyway to do that? I mean, is there a way to check if a user is connected to the Internet using ActionScript?
Trying to detect a browser close event and send some data to the database when the user closes the browser window...but can't seem to get it to work.[code]
So, I'm writing an AS3 program that tiles floor tiles. I want the user to be to be able to create their own floor schematic represented by different rectangles. It'll be drag-and-drop. They will lay out their schematic (which is composed of different size rectangular tiles) and drop colors/patterns onto them.
This schematic will then be tiled on a 3D plane to represent what the actual floor would look like.
I've got the 3D part working, drag-and-drop working, etc. What I'm missing is the floor schematic stuff. I've spent a lot of time trying to figure out the best solution, but I can't QUITE get there.
Here are some examples (out of a WHOLE bunch of possible combinations) of how the floor schematics could look:
The different tiles within the schematic are the droppable regions. My problem: How can represent these schematics in XML? Don't worry about tiling, sizing, etc. I've got that all figured out already. I just literally do not know how I can represent a tile schematic in XML and draw it correctly with AS3.
I have 4 Sliders that I want to represent 100% of a total Number; Say the number is 100 and you start all the sliders off at 25. Each Slider has a Min of 0 and a Max of 100, to represent 0 to 100 percent of the Total number.So if one slider is all the way to 100% the rest of the 3 are at 0%;
Example: All Sliders are set to 25, and you slide the top slider to the right (increasing) say to 40%; The Sliders should say 40%, 20%,20%, and 20% since it would decrease the rest of the sliders accordingly, so they all add up to 100%;.