ActionScript 3.0 :: Enabling Parent Button While External Swf Is Loaded?

Jul 25, 2011

how to load an external swf into my main timeline. As far as I understand this main timeline is the "parent". Hence the loaded, external swf should be the "child" (a quiz).Now the child (a quiz) loads into the flash file and is played properly, but I cannot access the button on the parent anymore. Unfortunately, I really need the home button on the parent to exit the quiz and allow for new navigation within the flash document.

my AS3 Code:

import flash.events.MouseEvent;function onClick611 (event:MouseEvent) :void{  gotoAndPlay("home_einf")}home_btn.addEventListener (MouseEvent.CLICK, onClick611);
import flash.net.URLRequest; import flash.display.Loader;import flash.events.Event; import flash.events.ProgressEvent;

[code]....

View 2 Replies


Similar Posts:


ActionScript 3.0 :: External Swf Loaded Into A Parent Swf

Jul 27, 2010

I have a external swf loaded into a parent swf. It loads fine and plays. I have an EventListener in the external swf, I would like to have trigger a function in the parent swf. Is there a way to do this in AS 3.0?

View 2 Replies

ActionScript 3.0 :: Checking On Loaded External SWF Files Into Parent SWF?

Aug 8, 2011

What is the best approach to add and remove sections if I'm using this method for example.

var myLoader:Loader = new Loader();
addChild(myLoader);
var url:URLRequest = new URLRequest("section1.swf"); [code]......

Do I add this to button click events? for every section? and a remove method for the other sections that are not in use? or is there a better way to setup this more reusable and checking correctly if a swf is loaded or not?

View 2 Replies

ActionScript 3.0 :: Dynamic Text In External Swf Invisible When Loaded Into Parent?

Apr 18, 2010

My website is coming along nicely, just starting to add some content and to make it nice and easy for my client to edit their own content i thought I'd make all the text external.

Works fine in the external swf, when I publish that file alone the text shows up perfectly. But when I load this same swf into the parent movieclip (the main website) the text is invisible. I've put in a trace function and the parent MC can output what is in the dynamic box, but it's invisible in the player.

View 9 Replies

Disabling And Enabling A Button

Aug 25, 2009

I took an object and converted it into a button symbol. I want to be able to disable and enable the button in different situations. I used the action script code "myButton.enabled=true;" and "myButton.enabled=false;" but these don't seem to work. Is it possible to access this property of a button I made? if not is there any way to change the button in the user interface components? if not is there any other way to disable or enable the buttons i made?

View 1 Replies

ActionScript 2.0 :: Comes To Enabling A Button(s) On/off?

Mar 10, 2004

I'm having a pblm. when it comes to enabling a button(s) on/off I have a file; that with Adam14 and Scotty's help, I have working the way I want (swaping _X/_Y values), but when the button is cliked I want to disable it, untill another button is clicked... then enable it, and so on.

I thought of setting _global flags inside the buttons but then you actually have to click them twice to trigger the flags???? so then I took those flags out of the buttons and put them onto a container movieclip that looks something like this:

[Code]...

View 6 Replies

ActionScript 3.0 :: Get A Loaded Swf To Subscribe To Parent Swf's Button States?

Aug 20, 2009

The parent slide show has audio buttons: mute, volume up, volume down, and replayThe loaded swfs will need to play sound based on user interactions, but how do I make it so the loaded swfs play at the appropriate volume set at the parent level? The parent does not exist at compile time, so a parent method call won't work. Somewhere I though I read I could use dispatchEvent to get the child swf to listen to the parent's button changes and make appropriate changes in its own volume levels.In the main class of the parent swf, I instantiate AudioPanel (as audioPanel) which builds the controls, keeps track of the volume and mute state, and dispatches a custom AudioEvent event when the buttons are clicked.The main class of the parent listens to the events dispatched by AudioPanel with this code:

ActionScript Code:
audioPanel.addEventListener(AudioEvent.VOL_CHANGE, volChangeEventHandler);
audioPanel.addEventListener(AudioEvent.REPLAY, replayHandler);

[code].....

View 5 Replies

IDE :: Enabling Browser Back Button

May 12, 2008

I've done some searches on Google and have found some useful information, but nothing to restrictive to AS3. Does anyone have any good references for enabling the back button in AS3?

View 7 Replies

ActionScript 3.0 :: Way Of Enabling A Button ONLY After Two Other Buttons Have Been Selecte

Mar 8, 2010

I'm looking to find the most efficient way of enabling a button ONLY after two other buttons have been selected. I've made the following radio type buttons in as3.[code]I'm trying to make the code follow something like this:[code]I only need one item from each of the lists to be true, not all of them.

View 2 Replies

ActionScript 3.0 :: Disabling And Re-enabling A Button After Being Clicked?

Mar 15, 2012

I've been creating my first complex buttons and there're some details I haven't solved yet. How do I disable a button after being clicked and how do I re-enable it after clicking another button? I've come across this "removeEventListener" and tried it but I can't seem to work it out...
 
Here's my code so far:

aempresa.addEventListener(MouseEvent.ROLL_OVER,btnOver);
aempresa.addEventListener(MouseEvent.ROLL_OUT,btnOut);
aempresa.addEventListener(MouseEvent.CLICK,clickAempresaToGoToWebPage);

[Code]....

View 14 Replies

ActionScript 3.0 :: Enabling Button Mode For MovieClip

Sep 16, 2009

I've got a question concerning a button on my site but I can't get it to work. This is my code and I've tried to put
ActionScript Code:
logo_mc.buttonMode = true;
on several places
[Code] .....

View 2 Replies

Flex :: Enabling And Disabling Button In List?

Apr 15, 2010

I have a list with a dataprovider, it lists out buttons encapsulated in an item renderer. All I want it to do is have a skin that it changes to when it is clicked. I can get this to happen, but then it just goes back to its up state. I want it to stick on the down state, which I have to do by disabling the button.

So I tried this:

buttonList.selectedItem.enabled = false;
for(var i:Number = 0; i< buttonList.numChildren; i++)
{

[Code]....

View 2 Replies

ActionScript 3.0 :: Unloading A Loaded External SWF With A Close Button On The External SWF To Unload?

Aug 15, 2011

[URL]I have: main.swf (a menu) and I have module.swf (content)If you navigate to Subsea Wellhead Systems/SS-15 BigBore II and click on that I have it load an external swf which covers most of the parent. So far so good. My problem is unloading the loaded 'Child' swf with the button provided on the loaded 'Child' swf.below is the code I used to load the file but I cant, for the life of me, find a way to unload it. 
 
var bigboreLoader:Loader = new Loader();btnbb2.addEventListener(MouseEvent.MOUSE_UP, bigborecontent);
function bigborecontent(event:MouseEvent):void{var bigboreRequest:URLRequest = new URLRequest("moduletemplate.swf"); bigboreLoader.load(bigboreRequest); stage.addChild(bigboreLoader);
 
I am certain it requires the Child to communicate with the parent somehow but I am at a loss. If I could get a bit of advice or a link to something deal with this, it would be a big help. I just need to have my links load my modules and the remove them when the close buttong is hit on the loaded swf. I promise I have done searches and I admit I have found asnwers but still they are not working. I found the code below:
 
Main FLA: 
function removeF() {
removeChild(bigboreLoader);
}

[code]....

View 10 Replies

ActionScript 3.0 :: Tab Indexing Loop Through Parent, External Child Swf, Back To Parent?

Nov 11, 2009

I have a parent swf which loads many child swfs (though only one is displayed at a time). My intention was to use the loaded SWFs document class to retrieve an array of objects to be assigned a tab index, combine this with the parent's own array of objects and apply sequential tab indices to them all. But what happens is actually that the parent's objects are assigned an index, but the external swf is unaffected. In fact, the external swf retains its automatic tab indexing, when I would expect that having set a value for InteractiveObject.tabIndex, automatic tab indexing would be disabled.

I've seen similar tales elsewhere. Most posts I've read are wanting to load an external swf, give it focus and loop through those objects, then close the swf and return to looping through the parent. However I would like loop through all objects as one. including manipulating the focus manager(s), and basically fiddling with every tab-related property I know.

View 2 Replies

ActionScript 3.0 :: Loaded Swf Tell The Parent Loader To Unload Itself After The Loaded Swf Finishes Playing?

Sep 23, 2010

I have a shell swf that is loading a swf. How do you have the loaded swf tell the parent loader to unload itself after the loaded swf finishes playing?

View 4 Replies

Flash :: Loaded Font Doesn't Show Up When Parent Swf Creates TextField In Loaded Child Swf

Jun 14, 2011

Im working on a project that has a main swf file associated with the document class. It loads XML that provides the text content for the project, then it loads a swf that contains a font in its library, then it loads the first of several content module swfs. When the font swf has inited, I'm registering its library font with Font.registerFont(), and using it in a TextFormat object. After everything is done, I can add code to the document class to create a text field on the stage of the main swf and format it successfully with the TextFormat object, but when I try to do the same thing inside the loaded content module swf, the text doesn't show up there at all.

View 1 Replies

ActionScript 3.0 :: Loaded Font Doesn't Show Up / When Parent Swf Creates TextField In Loaded Child Swf

Jun 15, 2011

I'm working on a project that has a main swf file associated with the document class. It loads XML that provides the text content for the project, then it loads a swf that contains a font in its library, then it loads the first of several content module swfs. When the font swf has inited, I'm registering its library font with Font.registerFont(), and using it in a TextFormat object. After everything is done, I can add code to the document class to create a text field on the stage of the main swf and format it successfully with the TextFormat object, but when I try to do the same thing inside the loaded content module swf, the text doesn't show up there at all.

View 7 Replies

ActionScript 2.0 :: Button Won't Work When Loaded As External Swf?

Jul 7, 2004

i am using Kirupa's Transitions Between External SWFs tutorial to design my site. One of the external swfs i am using has a pic scroller with thumbnails, but when a thumbnail is clicked, nothing happens. When I load the pic scroller movie by itself, it works fine.

check out these links to see what i am talking about... (only the first two thumbnails of pic scroller have actions)

movie with transitions

pic scroller alone

The actionscript that is actually on the thumbnail button is:

on (release) {
loadMovie("detective.swf", "_root.content");
}

i am guessing there is something wrong with that _root part? Also, you have to click on 4 movie clips before you actually get to the button, so that might be causing some problems.

View 1 Replies

ActionScript 2.0 :: Button Stopped Working On Loaded External Swf?

Feb 17, 2011

the swf that I am loading has a button in it that when I click on it, it will print the screen and it will email it to an email address.Everything works perfectly fine if I use the application(swf) on its own.however, I created a swf file that will load the above swf file in it when a button is clicked. the loading part is fine and it works as it should be. but the button for printing the screen stops working once the swf has been loaded!

View 3 Replies

ActionScript :: Making A Loaded External Image Into A Button?

Jun 15, 2009

My name is Steve Oatman I am a student atAIO for a Web Design Diplomaclass: Interactive Telecommunications IMD412 XAProfessors to bussyI have a flash web site that I am putting together. I am using AS to load some images from an external source. These images are being loaded into a movieclip. These images need to become buttons once they are loadedThe images will link to the particular menu category pages beef, chicken, etc.The images are loading fine they just are not responding like a button or link.I am getting two error referencing the buttonMode and usehandCursor. Below is just one image that I am working on till I get it to work.I am getting these two Compiler error code:1119: Access of possibly undefined property buttonMode through a reference with static type flash.display:Loader.1119: Access of possibly undefined property useHandCursor through a reference with static type flash.display:Loader.This is what I have.

var myLoader01:Loader = new Loader();
myLoader01.load(new URLRequest("entrees_images/beef/beef01.gif"));addChild(myLoader01);myLoader01.x =

[code].....

View 3 Replies

ActionScript 3.0 :: Replace A Loaded External Swf File From Button Within Itself?

Oct 17, 2011

I've got button events that load swf files into the main movie. Within the loaded swfs are additional buttons. When these buttons are clicked I want the targeted swfs to replace the current swf. I guess I don't understand how to reference the Loader var within the main movie.

Currently, when the links are clicked in the loaded swfs, the movies are loaded on top, rather than replacing them.[code]...

View 0 Replies

ActionScript 2.0 :: Button Wont Work When Loaded As External Swf?

Jul 7, 2004

i am using Kirupa's Transitions Between External SWFs tutorial to design my site. One of the external swfs i am using has a pic scroller with thumbnails, but when a thumbnail is clicked, nothing happens. When I load the pic scroller movie by itself, it works fine.

check out these links to see what i am talking about...(only the first two thumbnails of pic scroller have actions)

movie with transitions

pic scroller alone

The actionscript that is actually on the thumbnail button is:

on (release) {
loadMovie("detective.swf", "_root.content");
}

i am guessing there is something wrong with that _root part? Also, you have to click on 4 movie clips before you actually get to the button, so that might be causing some problems.

View 1 Replies

ActionScript 2.0 :: Adding Custom Scroller Button On External Loaded Text?

Jul 9, 2007

I have been following all the wonderful tutorials in this forum to learn about AS and flash. This time I tried to combine 2 tutorials and make a text field with external loaded text and custom scroller button, but I failed.....

I tried to look for different tutorials to find the answer, but It didn't work out either...

View 1 Replies

Actionscript :: Class Loaded Into Parent Class / Get Parent Variables

Apr 20, 2009

I have a child class that is loaded into the parent class when the swf begins, like so: var myvar = 'hello'; public function Parent() { this.child = new Child(); }; How can I retrieve the variable 'myvar' from within child?

View 1 Replies

Communicate Between Loaded And Parent Swf?

Mar 8, 2009

I started learning the basics of as3.0 a year ago by doing a lot of experiments.. I never read a book or took lessons or something.. I guess i'm still missing important logics when i'm programming. I'm creating my personal flash imagegallery but I can't figure out how to communicate between a loaded swf and its parent swf.

I have a main.swf file with document class main.as which loads external swf files into a movie container. I am also loading a background sound like[code]...

The only work around I was thinking about would be to keep showing the stop/start sound button from the main.swf when a slideshow instance is called.. but then I'll screw up my design I want a second button inside the slideshow that can also stop the main bg sound.

View 1 Replies

ActionScript 3.0 :: Accessing Parent From A Loaded Swf

Jun 8, 2010

Well, I know how to access the loaded swf variables from its parent, but how do I access the parent SWF variables from a loaded SWF?! I'm trying it.. But get no results.

View 6 Replies

ActionScript 3.0 :: Positioning Parent MC In Order To Center Child MC On Parent's Parent MC

Feb 5, 2010

[code]All clips are squared.Ok, on the PlayerPlane, there are little soldiers, which have hotkeys. The effect I'm trying to create is I want to position the GameStage so that the currently selected soldier appears in the center of the GameClicker clip.The GameStage is movable by the player (to scan other areas of the map)by holding the CTRL key, so it's easy to kinda lose track of where your players are.I have tried using localTo Global and globalToLocal techniques, but I think I'm lost on the actual math of getting the GameStage to move the correct distance so that the selected soldier is centered to the GameClicker.[code]

View 2 Replies

ActionScript 3.0 :: Child Swf With Component Loaded In To Parent Swf

Feb 13, 2010

I have an elearning course, a .swf, that loads multiple .swfs as the user progresses through the course. At the end, there is a quiz.

The quiz.swf uses the radiobutton component. I have developed some custom skins to use on the radiobutton component. I have figured out that:
I have to add an instance of a radiobutton in the main .swf for the radiobuttons in the quiz .swf to show.I have to copy the radiobutton intance from the quiz swf library to the main swf library if I want my custom skins to show in the quiz swf While, this works fine. It is not practical. I want the quiz.swf to more modular. So I can pop it in to any course and not have to go back in and add the radiobutton skins to each course.

View 2 Replies

ActionScript 3.0 :: Loaded Swf - Prevent It From Having Access To Parent?

Jun 25, 2009

I want to load an external swf movie into the parent one using for example the UILoader component and I want it to have access only to one object of the parent (the main swf movie). I tried sth like my_uiloader.content.parent = null, but obviously it doesn't work as the parent property is read-only.

View 15 Replies

ActionScript 3.0 :: Substitute A Parent MovieClip With A Loaded One?

Jul 9, 2009

is it possible to load a .swf and play it in such a way, that this loaded clip will become a root effectively substituting a loading clip on top of the hierarchy?
 
Saying this another way round - rather than loading external .swf as a child of a "host" movie I would like it to replace host movie entirely.

View 4 Replies







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