Professional :: Jump Out Of UI Loader Image To A Labeled Section Of The Main Site?
Aug 25, 2010
I have my entire site layout in Flash CS4 and using AS3. I was able to successfully segment the site with labels, add UI Loaders to desired sections to make the site smaller and work faster, I was able to put a close button above the UI Loader, which closes it and brings a user back to a designated section of the site.
And then I encountered a problem. I have a few images in each UI Loader which I would like to function as buttons and also bring the user to the desired section on the main site, however it seems to be a problem that the buttons are located inside the UI Loader I can not figure out how to jump out of the loader to the main site.
Is there a specific code for it or the whole layout has to be somehow restructured?
View 10 Replies
Similar Posts:
May 22, 2009
I've got a button that I want to use to jump to a labeled frame within the timeline. When I click on the button I can't get my trace statement to work. The error message I get is:
Error 1061: call to a possibly undefined method addEventListener through a reference with a static type flash.display:SimpleButton
BtnDone is the instance of the button on the stage, btn1867 is the frame label I want to jump to once the button is clicked.
Here's the code:
stop();
btnDone.addEventListner (MouseEvent.CLICK,clickSection);
function clickSection (evtObj:MouseEvent) {
//trace action - what's happening in output window
trace("The button 1867 was clicked!")
gotoAndStop("btn1867");
}
View 3 Replies
Jul 23, 2010
im creating a simple mobile application for a nokia 5230 touchscreen phone in flash. Im just trying to create some code to tell it to jump to the main menu when the user presses
on the screen. I have a key catcher in which i have the following code:
[Code]...
Im not sure if this will work for touchscreen phone because i got it from a sample program from my lecturer in college but i dont know what i should do as it wont recognise a press on the screen.
View 7 Replies
Aug 19, 2010
I recently added a loader page ("loader.swf") to my flash website. Basically, I created a new file and added a loader which shows the percent loaded, and then it loads in the "index.swf" file. My question is: when I upload my site to the web server, do I use the loader page as the "index" page? My dilemma about that is that I don't want the URL to read "[URL]"...
View 11 Replies
May 27, 2011
Using ActionScript can I do with my game, which is running in a browser, verify that the user already has the files needed to run the game installed on your computer? If he had these files do not need anything else that was born and can play the game immediately. If he did not have the files, they would be loaded so that the browser does not erase these files. So when he returned to play the same game day after,as the files already on your computer, nothing need be loaded.How do I remove one of the main memory image that was loaded using the Loader class? I tried using the unload () method but nothing happened.
View 2 Replies
Jun 16, 2011
I want to display a uncommon layout into a HTML Textfield, using AS3/Flash CS4. This is what I need to create, is it possible? [URL]... I have tried some CSS styles, but I didn't found any way to align a span to the left. TLF is out of my range, the related project is closed to CS4, but if it is the only way, someone tell me!
View 1 Replies
Nov 12, 2009
I was wondering how can I make my links in Flash readable for browsers? In other words, to be able to provide link to specific section of my website. For illustration, take a look at Jenson Button's website:The link above points to the "News" section, although the site is in flash.
View 2 Replies
Jan 24, 2008
[URL].. If you navigate to the health+science section on each site, you'll notice in the dev, the XML displays properly. If you check it out in the first one (not dev) you'll notice a break or two between each line.
The swfs and XML are identical. Anyone know of a reason why it would change like that?
View 3 Replies
Nov 26, 2004
On my site I have 5 buttons for navagation along the top, when you go to the Photos section there is a button that appears on stage and, when clicked, loads an external swf onto the stage, no problems so far.If I or the user clicks this button to load this external swf onto the stage and then clicks one of the other navagation buttons to go to a different section of the site, that external swf doesn't disappear.
View 1 Replies
Apr 24, 2011
I'm using the addChild function to a movieclip to load up another section on the site. However,everything behind that loaded SWF is still running,meaning sections are constantly stacking and it slows down the more sections you access.I've been trying to think of ways to resolve this and have yet to come up with a decent solution. I've thought of removing the previous swf,but that would would take the swf with it that was loaded as a child.Here's the important bit of my code you should see:
ActionScript Code:var section2Request:URLRequest = new URLRequest("Tracks.swf");var section2Loader:Loader = new Loader ();tracks_mc.addEventListener(MouseEvent.CLICK, tracksPage);function tracksPage(event:MouseEvent):void{[code]......
View 1 Replies
Sep 24, 2003
I was recently given the task of creating the webpage for my school's physics department. I want to recreate a textbook where you would actually have to flip the page to get to the next section. While searching the net, I found exactly what I was looking for.
link
How on earth can I recreate that effect? I know it has somethning to do with rotations and dragging a mask with the mouse but how?
View 3 Replies
Feb 2, 2011
I have a feeling I will be a frequent visitor.creating a site for a client. The entire site will be in AS3, we're doing one long page with navigation that will always sit in a box to the left. When you click on a button in the nav, we want the site to scroll down to a certain section.
View 2 Replies
Apr 21, 2005
I'm familiar with flash and have used it quite alot... but just for animations and what not. I have never gotton into an understanding of Action Script too well. I want to use a XML based flash menu just like the found on this site here: URL...
-How do I have more than one Main section come up? I understand the basics of the xml part, but not in the AC.
- Also, how to place targets in the links
I would like to make this all horizontal and hopefully I'll be able to insert movieclips as the mouse on and off states.
View 14 Replies
Apr 22, 2009
I want to jump to a specific frame in the swf I load using the Loader class. As it is now it goes directly to frame1 in the file, which I dont really want it to do. I'm using Flash CS4
View 2 Replies
Sep 26, 2010
now we all used to disable the menu until new section of our site gets animation but how do you handle user repeatedly abusing for example back button on the browser when moving though your website?
View 1 Replies
Aug 12, 2009
im working on an image viewer and im loading an image to a loader and then add the loader to the stage.I want the user to be able to drag and drop the image but since it's a loader i dont know how to do it.
I tried
imageLoader.startDrag = true;
imageLoader.content.startDrag = true;
but im getting an error on both.
View 2 Replies
Dec 10, 2009
Flash CS4/Actionscript 3 I am trying to create a section for a site where mousing over a button will play a certain frame of a movie clip, which is sitting next to the button. Mousing over different buttons will play (and stop) different frames in the movie clip.
View 1 Replies
Mar 22, 2010
I have a nice as3 swf that reads and xml file, and loads images with transitionsfor a slide show on an html banner page.This works fine. There are some users that see white space (the stage) before thefirst image loads. Depending on the clients connection, etc this can take aslong as 2 or 3 sec.
I was thinking about placing a jpeg in the fla, and adding it to the stageas a symbol or graphic, so instead of white space (or a color other than white)the user sees an image on the page, and when the xml loader places the first image on the page, the user sees the image, and the slideshow, etc.
View 3 Replies
Mar 13, 2010
I have 5 instances of a movie clip that need to move to a frame labeled "highlight" on Rollover and to a frame labeled "unhighlight" on Rollout. On Release each needs to get a different URL. I got it working, but the script is pretty repetitive. Can someone show me how to shorten the script by creating a function or something similar that would handle the rollover and rollout part? Code for two of the movie clips below.
[Code]....
View 4 Replies
Apr 11, 2009
I have a movieclip in my main scene. Inside the movieclip, there's a button. I wanted to so if I click on the button, it takes me out of the movieclip's timeline and play on the main scene's timeline. I tried gotoAndPlay("Scene 1", 1), but it just take my back to the first frame of the movieclip, not first frame of the main scene (scene 1)
View 4 Replies
Jun 28, 2008
I have a mc, "Transition", on my main stage. It does an animation. At the end of the animation I would like it to gotoAndPlay("music"). The problem is that "music" is on on my main stage. Is there any way possible to jump from a frame of a movie clip to a specific frame on the main stage?
View 4 Replies
Jun 3, 2010
I want to clean up my main timeline by breaking it into 3 sections and putting each section into its own clip. My main timeline is then only 3 frames long with one clip on each frame. Of course, trouble is, the main timeline doesn�t wait for the first clip to play before progressing to the second. Do I need some code in the second main timeline frame to tell it to wait til the first clip has finished?
View 3 Replies
Jul 26, 2010
i am loading all thumbs and images in a container on a single frame using action script..but the size of the swf becomes 1.2 mb so i want to add a loader to it...the loader i am trying to add counts the frames but my file has just one frame so the loader doesnot show up..
here is the script of my gallery..and the timeline has just one frame...
import mx.transitions.Tween;import mx.transitions.easing.*;
this.createEmptyMovieClip("container",1);var imagesNumber:Number = 18;var scrolling:Boolean = true;
for (i=1; i<=imagesNumber; i++) {container.attachMovie("thumb"+i,"thumb"+i+"_mc",i);myThumb_mc = container["thumb"+i+"_mc"];if (i==1){ myThumb_mc._x = (0.0)*myThumb_mc._width;
[Code].....
View 1 Replies
Sep 10, 2004
How do I make the main timeline jump to frame 1 when the mouse moves out of the entire embedded swf?
View 1 Replies
Mar 23, 2004
I am trying to jump from one scene called main to other named tutorial 1-6 here is my code to jump to tutorial 2 as an example
on (release) {
_root.gotoAndPlay("Tutorial2");
}
I've tried every variation that I can think of, no _root gotoAndStop and also putting in _root.gotoAndStop("Tutorial 2", 1);
i dont know if it makes a difference but the navigation buttons are on a movie clip which pops up over the main stage...if that makes sense, that flash file is huge i didnt want to attach the whole thing...
View 1 Replies
Mar 4, 2008
so i have a main timeline and a nested one. the main timeline has a button named "how_btn" that plays the nested mc (named "how"). once i get into playing "how", i have a button named "menu" that i want to bring the user back to the main timeline (where the "how" button is). this is how i scripted:
how_btn.onRelease = function () {
gotoAndStop("how");
}
menu_btn.onRelease = function () {
gotoAndStop("nav");
}
the how button script works, however the menu button does not. is this b/c it's in a nested mc? i tried specifying the root, but that didn't do it either.
View 12 Replies
May 6, 2005
I am trying to create a nav system that expands to show sub-sections when the user rolls over main section buttons.Let me describe exactly (as best I can) how this would work:A vertical list of 5 menu buttons is stacked and distributed at equal distances.The user clicks a button (lets say Button 2) and Buttons 3, 4, 5 slide down to reveal the sub-nav below Button 2. When the user clicks or rolls back to any of the original 5 buttons, that subnav closes up.Does anyone know of a good tutorial for this type of nav or have anything I might be able to dissect and work from?
View 3 Replies
Apr 29, 2010
how to jump to a certain frame number / frame label inside a movie clip on the main time line (ROOT) from ANOTHER movie clip elsewhere. Any ideas?
View 1 Replies
Oct 8, 2010
In my file, I have an introduction playing over and over. When someone hits the "K" button, I need the file to immediately go to and play a frame labeled "waterdepth". What am I missing below? I keep getting an error saying that "keyboard event cannot be loaded."
[code]...
View 3 Replies
Jun 30, 2011
I am developing an ios app, and it is a simple platformer game. I have a 2dimensional sprite that sits in the center of the stage, and never moves.. When the accelorometer is tilted, the stage moves around the main Character, but only horizontally.. How can I get the accelorometer to simply flip the main characters image, so that he faces where he appears to be heading? Again, this game is for the iPhone/iPod platform, so anybody with knolege of coding is greatly needed to explain this to me. This is a simple code I used for moving the stage around the Character
[Code]...
View 11 Replies