ActionScript 3.0 :: Create An Lso To Stop My Header Menu From Refreshing?
Oct 15, 2011
I need some assistance with coding out how to make a local shared object remember the users last frame, so that when they click the next flash link button for a different page, the movie doesn't default to the beginning.
I've tried this code, but it's all wrong - I don't even know if it's truly AS 3.0 or 2.0[code]...
I am trying to create a header with a menu bar that will be embedded at the top of each page of the site. I have it looking like I want it, but I am having trouble making it do what I want it to do. I have three text areas that I have made into movie clips. I want them to "fade in" one after the other, then stop with all three visible, then wait for a click on the menu bar. I can make them fade in, but not stop. I have tried several different things, but no success.
However, after an unpredictable amount of time it will stop refreshing - appearing as if it has frozen. But escaping the app out of fullscreen mode will cause it to instantly revive into action as if nothing had happened. Returning to fullscreen then will once again "freeze" after time, but its not technically freezing due to memory issues, it just won't continue to display unless escaped.
I'm making a slide menu that loads a xml file and creates buttons dynamically. Another functionality it has a sliding menu also, and I can't stop it. Heres goes the zip file, which contains .fla and .xml files. What I want to do is when I put the mouse at the top of the mask, the menu stops on the first option, and when I put the mouse at the bottom, the menu stops on the last option. Is it possible? [URL]
When someone clicks a menu item, lets use "products" for example, a Products header appears and the content is loaded.In the products area of the site they have a choice of products to choose from. Let's say they choose the Product "Dog Food". After clicking the link for product "Dog Food" the content is loaded, and at the top where the initial "Product" header is i would like a secondary header product "Dog Food" to be dynamically typed.In between the "product" header and the "Dog Food" header i would like to have a arrow shape.Thus the header would look like this after product "a" was clicked:Products > Dog Food.The word "Product" would be a mc, the word "Dog Food" however i would like to be produced via actionscript. There may be a additional link past the "Dog Food" such as "Health Info"
The header would have two functions.. first as a navigation reference, and secondly as a go back buttons. The user would be able to click "Dog Food" when looking at the health info and it would bring him/her back to the "Dog Food" page.Both the "Dog Food" and "Health Info" would have a drop shadow effect.in a cool effect, such as typewriter or something to that idea... i can figure out the effect myself, just thought i would let you know where we are heading with this.Now what i need in a nutshell is a actionscript that does the following:
1. Finds the length of the mc that contains the first header.. in this case it was "products" however there are other ones such as "Locations" which is longer....
2. places the arrow icon about 7 pixels away from the "products" header
3. type out the subsection .. in this case "Dog Food" and apply the drop shadow filter to it.
4. Create the "dog food" header as a button, linking to its content page. Initially this won't do anything but refresh the page, but when they go into the next subsection.."Health Info" it will act as a go back button
5. When "Health Info" Sub Sub Section is pressed find the end of the x axis value if "Dog Food" and about 7 pixels away place a arrow icon.
6. Find the X axis location of the second arrow icon and type out the "health Info" header. Create the new "Health info" button with link to it's content page.
I have an HTML website with a flash header and dropdown menu.In the beginning, the flash dropdown menu would not show at all untili found the wmode=transparent trick.The menus are now showing properly except for one specific page wherethe text on the page show up OVER the dropdown menu. In all otherpages, the dropdown menu shows up on top of any text that may be inthere.There's nothing on that particular page jumping at me that would causethe problem. In fact, the page uses the same CSS file as the otherpages. I'm really clueless.I'm not sure if it's a flash problem or HTML/CSS problem.
The only difference i could think of was that the page was called froma combobox change event. But i switched the page called to anotherpage i know works with the menu and it was fine. So the problem doesnot come from the combobox calling the page, it really is the pageitself.Does anyone have a clue?Working page sample (sorry its in french)click on Nos Services. You can see how the menu shows up over the bolded text.Now click on the combobox and select the first item listed in it.
I wrote this with the idea that it would stop my header from replaying a million times for repeat visitors. However it doesn't seem to be working correctly. I need a little direction, has anyone else done something similar to this? Also Isn't there a way to have it expire? like in a week or something?
Code: user = SharedObject.getLocal("user_profile"); if (user.data.name == undefined){
i'm gonna make a flash header in cs4 to be placed on the webpage of a friend. the flash header is going to contain some small images and some text, all this is easy to do, but i'm wondering about how to publish it to the web, is a swf file and the html file enough? i want to create a text document where my friend later can exchange the images and the texts for his webpage by himself, without him having to do this in a flash programme. is this possible?
here is an example of how i want the header to look like, when you have the mouse hovered over the one big image[URL]..
I have created a sliding menu. But that is static( the number of rows are fixed). i want to create a menu with the number of rows dynamic.I have attached the fla file here.
I'm looking to create an infinate menu BUT navigating my menu from left to right using drag rather than the position of the mouse. If there's any links or tutorials around Pleeeeese let me know.
I'm trying to make circular menu with 5 buttons, that rotate around the center and stop when the mouse is over a button. Since I know very little about AS2, I've based my code on those "Creating 3D Carousels" tutorials at [URL] So far, I've managed to put everything into position, but I can't figure out how and where to implement roll over and roll out function.
So far, the code looks like this: Code: Select allvar rotX:Number = 290; var rotY:Number = 140; var Centre:Number = Stage.height/2; var vitesse:Number = 0.1; [Code] ..... Or you can look at the fla [URL].
So, i have an infinte menu (actionscript (AS2) posted bellow)When the mouse moves out of the movieclip over or under, it stops. However if i drag the mouse to the right or left of it, it just keeps on speeding up.
On the attached swf you'll see my slowly rotating menu. Each of the icons around the outside is a button which takes u to a specific page. When the user rolls over the button I want the menu to stop rotating, and if the user moves the mouse away I want the menu to continue rotating. Should I be using mc instead of a button?
First, I am an ultra newb who has read about 50 tutorials in the past two weeks or so.So, here is what I am trying to do. I have a header navigation box in my flash page. I want, when someone opens the page, for an animation to play. Then, I want it to stop and display my menu.
What I have done: I created two frames and put my animation in one inside the movie clip. The second frame has the menu. When I try to test it, The frames flicker and the animation doesnt play.I tried putting stop() at the end of both frames. This just made it...not do anything and just display the menu. A friend suggested putting "root.gotoAndStop(2);" at the last frame of my animation, but then I get an error.
I have been sent this website. When you click on an option from the menu, the menu and the background fade out to bring in a new background. The problem I am having is that I am trying to stop the menu fading out and just have the background change.The flash file for the part of the website I am working on can be found here:
My sliding, gliding thumbnail menu is located at the bottom of the page, and it reacts to the cursor movements as intended. However if I were to move the cursor around the page somewhere on the top the menu is still reacting to the cursor movements. I would like it to become inactive once the cursor off the menu. You can check the page at [URL] and then go to "applications".
The menu consist
[Code]....
The position of the cursor moves the Sliding Gliding animated menu even if it is not on bgClip_mc. For the first time it works as it should but once it is activated and I move the cursor away from the bounding parameters of the bgClip_mc the Sliding Gliding Menu is still reacting to the mouse movements.
I got this scripts from a tutorial site. It's a 3D rotating menu/panels, reacting to the mouse movement. On mouse click, it will expand to a certain size, but I can't stop the rotation. How can I stop the rotation with the specified panel facing front when mouse release, and return to rotating and its original size upon second mouse click?? And, I notice it's a little buggy, sometimes the panel shink to a smaller size.
i'm trying to do everything in flash vs is exporting the menu to dreamweaver, and i can seem to have the buttons go to a certain frame and stop? this is the action script i'm using in the dropdown menu mc to get the button to work because if i do it in the to level of the scene i get error saying can access button
I have a home page and five other pages. The five pages have a main menu at the top containing buttons that allow you to go to the other pages:
on(release){ gotoAndPlay("gallery"); }
I have an actions layer. Each section has the following action in the first frame: stop(); When I view the website the home page works correctly. However, any page with the main menu automatically switches to the next page after about six seconds. The code seems pretty straightforward so I have no idea what I'm missing.
I am in frame 20 which is playing a video, How do I get it to stop sound and video when some clicks a menu button to go to another frame? Where do I put the code?0
I have a problem with my slideshow script. I have embedding a flash video file into my website with this slideshow called monoslideshow, and everything seems to work perfectly. Trouble is, when I am clicking on another menu button that should jump to another frame, it still keeps playing the video and sound while displaying the new menu data.So I will probably need some code that stops the video instantly, when another menu button is clicked. But how do I write it and where do I put it?
Here is my actionscript for the video file to show:
var loaderSlide:Loader = new Loader(); var monoslideshow:Object; loaderSlide.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete); addChild(loaderSlide);
[Code]...
It would be great to get a solution to this problem, otherwise my website will be kinda messy ;)
I have a problem with gotoAndPlay option.I have 2 layers with 3 keyframes, on 2nd frame i have movie clip image_mc which has a dropdown menu and here i will stop the timeline. On mouseover of image_mc I will get a dropdown in which if I click on 1st menu the timeline should go and stop on 3rd keyframe of main stage, but its going to 3rd frame inside movie clip, how to come out of mc on click.
I am having a hard time trying to create a sub-menu using xml. The main menu works but the sub-menu is not being populated. Here is the AS and the XML Code: Object.registerClass ("item1",src.button); Object.registerClass ("item2",src.button); Object.registerClass ("item3",src.button); Object.registerClass ("item4",src.button); import src.button; [Code] .....
I'm trying to create a menu through XML and i'm using 2 attributes in dat XML one is buttons name and another is link.This link is not a URL this is a name of another swf which i wanna load.