Actionscript 3.0 :: Calling Back To Main Page Through UILoader?

Mar 24, 2010

I am using AS3 and the UILoader Component to bring in external .swf files into my main (index) page, works fine.

Here is the problem: From inside an external swf, I have a button that I want to communicate "back" to an object on the main page.

Here is the code I am using to change the alpha of the testbox_mc located on the main page:

Code: Select allMovieClip(parent.parent).testbox_mc.alpha = .5;

I have attached my fla files to run and test. I have a feeling I am just on tweak away from success.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Go Back To The Index Page And Click A Different Button, The UILoader Will Not Show Swf?

Oct 18, 2010

I have an index page with several buttons on. When the buttons are clicked, it takes the user to a different point in the timeline and loads the appropriate swf in the UILOader I have on stage.Everything was working fine, but it has suddenly decided to stop working. Now if you click a button on the index page, it loads the relevant swf just fine, but when you go back to the index page and click a different button, the UILoader will not show the corresponding swf and just appear blank, although I know its there as I can hear the sound of the swf playing! I'm not sure if its simply something blocking the swf, but I don't even know what it is! I'm using addChild to add little panels to the screen when a button is pressed, but they are hardly big enough to cover the whole of the UILoader!

View 1 Replies

On Button Click Page Flashes Back To Main Page

Oct 23, 2009

I have a movie clip that loads in the main timeline, when i click on any of my buttons theres a quick flash of the main page. Im loading my movies on level 1 so i guess my question is, how do i get rid of the movie on the main time line?

View 2 Replies

ActionScript 3.0 :: How To Go Back To Main Page?

Sep 27, 2009

I have a main swf file called index.swf and 3 games files called game1.swf game2.swf and game3.swf respectively.The main.swf is done is AS2 while the games are in AS3.I have 3 buttons on the main.swf,each will load the game out on a new layer...this is the code I used...
btn1.onRelease = function(){

loadMovie("subcontent/game1.swf", 0)
btn1.enabled = false
}

But when I added a back button on the game1.swf using the script...

back_button.onRelease = function(){
loadMovie("index2.swf" , 0)
}
...

it didn't work. Apparently this code doesn't function in AS3.All the games are in a subcontent folder.Index file will call them out on a new layer...and the back button in those games must be able to go back to the index.swf.

View 1 Replies

ActionScript 3.0 :: Go Back To Main Page?

Dec 9, 2009

I have a main swf file called index.swf and 3 games files called game1.swf game2.swf and game3.swf respectively.The main.swf is done is AS2 while the games are in AS3.I have 3 buttons on the main.swf,each will load the game out on a new layer...
this is the code I used...

btn1.onRelease = function(){
loadMovie("subcontent/game1.swf", 0)
btn1.enabled = false
}

But when I added a back button on the game1.swf using the script...

back_button.onRelease = function(){
loadMovie("index2.swf" , 0)
}
...

it didn't work. Apparently this code doesn't function in AS3.Index file will call them out on a new layer..and the back button in those games must be able to go back to the index.swf.

View 2 Replies

ActionScript 3.0 :: Sound Autoplay Overlap When Navigate Back To Main Page

Feb 20, 2010

I have this script (below) and I'm using the next/prev button script to navigate back and forth. When I navigate back to the first page which has the actionscript code to load the music, it begins to load the song again and they overlap. How do I stop loading when song is already on?

var audio:Sound = new Sound();
var req:URLRequest = new URLRequest("MenuBackground.mp3");
audio.load(req);
var channel:SoundChannel = audio.play(0,1000);
var xForm:SoundTransform = new SoundTransform();
musicOn_btn.addEventListener(MouseEvent.CLICK, playSound);
[Code] .....

View 1 Replies

ActionScript 3.0 :: UILoader Content Gets Smaller When Coming Back

Dec 24, 2009

I have several external loaded swf's in my website.For example;When in home and clicking to contact. Then contact gets a little bit smaller.When clicking back on home, home gets smaller and so on..if i repeat this process everything gets smaller and smaller..

View 3 Replies

Professional :: Back Button On Web Browser Goes Back To First Frame Instead Of Actual Last Page?

Oct 21, 2010

I have a Flash website with 3 interfaces( 3 frames with movie clips inside). they have a button that goes to different loaded .html page(text). But once the back button is pushed on the web browser, it always goes back to the first frame instead of the actual last page, which might have been frame 2 or 3.

View 1 Replies

IDE :: Make Back Button In Flash To Go Back To Page?

Feb 27, 2010

i want to know how we can make back button in flash to go back to page same like browser back button.

View 1 Replies

ActionScript 3.0 :: 'BACK Keycode' To Go Back To Previous Page

Nov 8, 2011

In my apps, i would like to:

1)have a pop-up menu when a button is touched, then ok to close but still in the same page as it is
2)invoke the popup menu by using samsung's "MENU keycode",then ok to return the same page as it is
3)having the user to swipe 5 images to view them, left image as 1st and 5th image as last image with smooth transitions
4)and also using the "BACK keycode" to go back to previous page

View 3 Replies

ActionScript 3.0 :: UILoader On Main Timeline - Enter Frame Event

Nov 30, 2009

I have a UILoader on the main timeline, then I have to load an external mc with a ENTER_FRAME event in it. When I load something else, I found the ENTER_FRAME event is still working. Why doesn't it unload with the mc?

View 2 Replies

ActionScript 3.0 :: UILoader Doesn't Fill The Page?

Feb 12, 2010

Made the part I'm having problems with bold

import com.greensock.TweenLite;
import com.greensock.easing.*;
import fl.containers.UILoader;[code]....

stage is set to 700 height/850 width, and I've tried that too, but to no avail. Here's a link to how it appears:[url]....

View 1 Replies

ActionScript 1/2 :: Back From The Bottom Of A Long Page To The Top Of The Page?

Jul 14, 2009

I have made a Flasch website with long pages. I look for a possibility to jump from the bottom of the page to the top of the next page (is in the next frame).
 
When I make a button "preview frame" on the bottom of the page, the page change into the next page, but at the bottum of that page.

View 1 Replies

ActionScript 3.0 :: Back To A Page Or Refresh A Page?

Aug 8, 2009

Is there a way for Flash to remember which frame it's on and what it's doing when you come back to a page or refresh a page?

View 9 Replies

ActionScript 3.0 :: Buttons On The Main Page Doesn't Goto And Stop At Other Frames In The Main Scene

Jun 14, 2010

I added a website preloader in a separate scene to the main frame of my website and scripted it to go to and Play the main scene or frame of the website when finished loading. I then put a command in the first frame of the main scene for the movie to stop (); at that point. The problem is that now the buttons on the main page don't respond to any behaviour commands to go to and stop at other frames in the main scene. I'm not sure if this is a conflict between the stop(); command in the main scene and the button behaviour command to go to and stop at another frame or an error with the way I'm identifying the scene and frame.

View 5 Replies

ActionScript 2.0 :: Load External Swf Into Main Page And Remove When Nav To New Page

Jan 7, 2009

I am trying to load an external swf with a number of quotes into an empty movie clip on the home page. then I want it to obviously disappear when nav to any other page.

1) know that you need a loaderEmpty_mc to load the swf into

2) don't know code for how to get it to load on entering the home page

3) don't know how to cdde for leaving the home page and making it disappear

View 3 Replies

ActionScript 3.0 :: Calling Libarary Objects Referring Back To The Timeline?

Jul 20, 2009

How do I call an object from the library in ActionScript 3.0? Once I do, how do I refer back to the timeline in ActionScript 3.0?

View 7 Replies

ActionScript 3.0 :: Sending A Value From A Class Back To The Maintime Line & Calling A Method

Sep 22, 2009

I'm now finding the great need for classes as my current project is getting quite gummed up with too much scripting in the main document. Becoming a real pain to find stuff with in my code.

So I started writing a class to takes an id passed to it from the main time line, accesses my mySql DB, pulls the related info and the processes it. What I can't seem to figure out, is how to pass a variable back to the main time line. The traces all work, so I know my class works. I've searched here and via google, but I must not be searching the right stuff because I get a lot of results with are usually very complicated questions that don't yield the answers I need.

so here we go. my main.fla (and question):

Code:
import Name;
var theUserName:String = "Joe";
var processName:Name = new Name(theUserName);

[Code]....

ps: what's it called when trying to call a method from the main time line? or passing a property back to the main? are there specific terms for these?

View 10 Replies

ActionScript 3.0 :: Calling Function From Main.as?

Sep 1, 2008

I have a buttons class I would like to access but not sure of proceedure. Here is the Main.as

and here is the button class

this is actions layer:

View 1 Replies

Linking Back To The Main Timeline?

Aug 26, 2010

I recently started creating a flash website from a template that was created back in 2004. I have very little knowledge of either AS 2.0 or AS 3.0. I am currently attempting to link my buttons that are in separate movieclips back to specific parts of the main timeline "scene 1". Currently when clicked, the buttons just cycle through the varying pages that have been created, "s1" , "s2" etc.

How do I link a movieclip/button back to "s8" in the main timeline?The AS 2.0(I think it's AS 2.0 anyway) that currently exists is as follows:

PHP Code:

on (rollOver) {
gotoAndPlay(2);
}

[code]....

I understand what first rollOver and rollOut commands are and they work fine, but the "On (release)" doesn't seem to go where it needs to.

View 2 Replies

ActionScript 2.0 :: Back To Main Timeline?

Mar 1, 2010

i have a button and i would like to send the user back to the main timeline once click using on (release) does anyone know what code it is to send it back to the main timeline?

View 6 Replies

Actionscript 3 :: Calling Functions In Main From A Another Class?

Feb 17, 2011

Even I am programmer I am very, very, new to as3.

Problem: I have define a classA in aA.sp file.

package{
import flash.display.Sprite
.......[code]...........

When test on cs4 (contol>enter) I get following error 1061: Call to a possibly undefined method playVideo through a reference with static type flash.display:Sprite

View 2 Replies

ActionScript 2.0 :: Calling Function From Main Timeline

Oct 13, 2008

I decided to rewrite my question from an earlier post...I'm using the TextMetric class: URL...The code below currently resides on the attachedMC timeline, and is written twice with different variables for each time called for each dynamicText.[code]What i am trying to do (emphasis on trying) is write the code on the main timeline, so that it can be called from any attached MC, a sort of global function if you will. Another thing to note is that there are multiple dynamic Texts using the function at the same time.[code]

View 4 Replies

ActionScript 3.0 :: Calling Main.function Does Not Work

Mar 15, 2009

I can't seem to access functions (methods) of my document class from any other class in the same package. What i need to do is create some global functions like menu reset, title change, etc. Maybe i'm not fully understanding the OOP concept, because this seems simple and it should totally work, but it doesn't and no documentation has been able to tell me why.

I have a document class called Main.as like this:

Code:
package
{
import flash.display.Sprite;

[Code]...

View 5 Replies

ActionScript 3.0 :: Root Back To Main Website Swf

Feb 19, 2009

In AS2 when I had a button on an external page swf that was loaded into the main website swf and I wanted that button to go back to the main website swf main time line and change to a specific frame I just used ...

Code: _root.gotoAndPlay("$/pmp/engine/"); ...in the button's release code. How do I do that in AS3? I guess I just need to know how to get to the main swf since root refers to the external page swf's main timeline. Garrr this is annoying. My structure is this:

main.swf's main time line has a button. Click that button, it loads preloaderpmp.swf into a blank movie frame with the instance name container. preloaderpmp.swf loads pmp.swf in. In pmp.swf's main timeline there is a movie clip inside a movie clip which contains a button that I want link back to main.swf and go to the frame "$/pmp/engine/" once it is released. What can I replace _root with since this is AS3?

[Code]...

View 3 Replies

ActionScript 3.0 :: Back Button To Reload Main Swf?

Nov 17, 2009

My main swf loads other swf's via this timeline code:

var req:URLRequest = new URLRequest("scene1.swf");
var loader:Loader = new Loader();
loader.load(req);

[code].....

View 1 Replies

ActionScript 1/2 :: Getting Back To Main Timeline In Loaded Ext. SWF

Jul 7, 2009

I have a project I'm working on where the user is presented with an overhead shot of a building and is able to mouse-over the different rooms to choose one to "enter." Once clicked, the chosen room is an external .SWF that is loaded that has options to view other external .SWFs within that room. Problem is, within the first loaded .SWF, I have a "home" button that is supposed to take the viewer back to the main overhead view but I can't get the AS to work. I've tried _parent and _root with no luck (not sure I even typed out right code).

View 29 Replies

ActionScript 3.0 :: Back To Main Menu Button

Jul 16, 2009

I'm working on a little project where I have a list of working text I converted to buttons and scituated vertically along the left hand side of the stage. Each button when pressed, triggers a different image with some text. This all works great. The problem is that I have a "Back to Main Menu" button located at teh bottom center of the stage. When depressed, I want this button to clear out the image and text on the stage and leave the user looking at just the original list of buttons along the left hand side of the stage.
 
I can easily get the main menu button to do this for my first image and text. Here's the code for that:
 
gbtext_btn.addEventListener(MouseEvent.CLICK, playGearbox);
menu_btn.addEventListener(MouseEvent.CLICK, stopGearbox);
function playGearbox(event:MouseEvent):void {    gearbox_mc.visible = true;   

[Code].....

View 1 Replies

Actionscript 3 :: Getting Back Data To Main Application

Oct 26, 2011

I have created a spark titlewindow (using mxml component) which there I select some stuff and want it to get back to the Main application variables.For example, in the main application I have a var name currMaxPlayers:int and in the TitleWindows I have created a form which you can choose number of players, when selecting the number and then pressing submit button, I want the number that was selected to get back into the currMaxPlayers var in the MainApplication.I have followed the instructions here url... with no success.

View 1 Replies

ActionScript 3.0 :: Navigating Back To Main Timeline?

Jul 14, 2009

Lets say i have a button on the first frame of my main timeline that leads to another frame on my main timeline. On the second frame, i have a button that has tweening animations inside it's over and down states. At the last frame of the tweening, i want to have a button that navigates to the first frame of the main timeline, and not the first frame of the tweening.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved