ActionScript 2.0 :: Swf Loads But The Script To Close The Menu Does Not Work

Nov 12, 2007

I have a swf that is being loaded into another swf without a "container" clip (which i am not quite sure how to implement). The loaded swf has _root references so in the very first line of script i placed this:

[Code]...

I also have embedded MC that refer to this _root script. So my problem is that the swf loads but the script which is supposed to close a menu when one menu is opened does not work, they just all stay open when i click other menus.

View 14 Replies


Similar Posts:


ActionScript 2.0 :: When The Xml Menu Loads Swf File Its Structure Loads But Not Its Data?

Feb 23, 2010

have this flash xml menu that loads external swf files like this:

Code:
<item title="ABOUT"content_path="http://mysite.com/folder1/folder2/folder3/about.swf"target=""mouse_rollover_color="0xFFFFFF" mouse_rollout_color="0xDDDDDD" />

and I have this swf file with cms that I'd like for this menu to load. Currently the swf file load external text using this code:

Code:
if (contenturl1 ne "") {
loadVariablesNum(contenturl1 + "/" + userid + "/content.txt", 0);[code].....

but when the xml menu loads this swf file its structure loads but not its data.I tried using :

Code:
this._lockroot = true;

in the loading swf main time line but it did not work.I should also mention that the dynamic data that loads onto the swf that is to be loaded by the menu, resides not in it main time line but 4 movie clips deep .I don't know if that makes a difference or not.

View 1 Replies

Actionscript :: 3 - Making The Drop Down Menu Close Whenever The Mouse Is Not Over The Menu

Nov 21, 2011

I'm creating an animated (in and out) drop down menu. I've managed to get the menu to open when the user mouses over, with the buttons all selectable. However I can't seem to find an efficient method of making the drop down menu close whenever the mouse is not over the menu. Actions:

[Code]...

View 2 Replies

IDE :: Close Popup Before Menu Is Active Again?

Apr 16, 2009

i'm working on a project where i would like to build a menu of 3 buttons in the bottom of my screen, when 1 of these buttons is clicked a little popup MC pops up with a X sign to close it. WHen the popup is active the background (the buttons) fade to a 30% alpha and a re not clickable anymore. When i close the popup MC with the X sign then the buttons are active again. I seen a tutorial how to do this but i lost it.

View 2 Replies

ActionScript 2.0 :: How To Close Menu Or Reset It Back

Jan 29, 2009

I have a movie clip that sits just of my stage. When clicked the mc slides out based on the _x,_y position. The problem I have is how do I close my menu or reset it back to it;s original position as to appear closed. Heres the code I've placed in the timeline:[code]indicate what code would I use within the 'else statement'. I have this cmmon problem when I want a button to provide a loop type function. I.e toggle sound on and off with one button.I want this menu to be available all the time so it would sit in the _root (index swf file). The rest of the pages are called using loadMovie as external files.

View 1 Replies

ActionScript 2.0 :: Close Drop Down Menu On Click?

Sep 24, 2009

This feels pretty hacky, but don't have a better way yet. I put an invisible button on the stage behind the drop down and gave it the onclick event to close the menu. Sometimes it works and sometimes it doesn't. Seems like it is being covered up by something occasionally, but there is nothing there to cover it up and it is VERY inconsistent as to what mouse locations it does and doesn't work in.

View 5 Replies

Professional :: Can't Get Close Button To Work

Dec 9, 2011

am using flash cs5.5, action script 3 and can't get my close button to work. the code is below. if you are able to help me that would be wonderful.
 
tried this:
 
// add an EventListener to the button
Vid.addEventListener(MouseEvent.CLICK, buttonClick);
// the function that runs when after button was clicked

[Code].....

View 3 Replies

Professional :: Drop Down Menu's Don't Close With Fast Mouse Movement?

Jul 8, 2010

I am an extreme novice in Flash and I've built a drop down menu following a tutorial from YouTube - sadly this took me days! It functions BUT fast mouse movement away from the menu drop down seems to prevent the drop down menu from closing. Does anyone know of a fix for this?
 
Second question - I know how to create text links but when I do this the text's position jumps down without me having told it to. So is there a way to apply a link to a button rather than the text in the button, and is it possible to also apply a link to a movie clip?[URL]...

View 1 Replies

ActionScript 2.0 :: Getting A Close Button To Work Within A Mc Popup Box

May 24, 2011

Have been having difficulty with this issue of getting a close button to work within a mc popup box (it is doing my head in !) Basically I have a Button on the stage that launches a popup mc. To close this popup, I have a 'x' for the user to click on to close this box. I don't want the box to become 'invisible' or for the whole box to close when clicked on (I have tried both but not what i am after). It is important for user to be able to relaunch this box by clicking on the button after closing previously.

It would be great if anyone would be able to view the fla atatched and explain what needs to be included, and perhaps upload a working verison.

View 4 Replies

ActionScript 3.0 :: Socket.Close Does Not Work In Windows Browsers?

Nov 11, 2009

I have an FTP program written that uploads ByteArrays through sockets. It works great on my Mac! I open a command connection, then a data connection, send the ByteArray and then use socket.close() on my data connection. This causes the server to disconnect me and sends the 226:transfer succeeded message back through my command connection. The problem is that in IE8, FF 3.5, and Safari 4 on Windows the socket.close() func does not make the server close the connection. The fact that it works in all of my Mac browsers, and the IDE, but not in Windows browsers makes me think that it's something to do with the Flash Player.

My FP version check data:
MAC 10,0,32,18
WIN 10,0,32,18

View 1 Replies

IDE :: RemoveChild - Make The Close Button Work On Project?

Feb 3, 2010

trying to make the close button work on this homework project. This app scatters photos on the stage, randomly and at random angles. They are drag and droppable and the clicked photo comes to the fore. Each photo has a close button intended to remove the photo from the stage, this last is what won't work. I know its a common topic, but nothing I've tried has worked so far. onClickCloseBtn is the problem.

Code:
package
{
import flash.display.*;[code]........

View 1 Replies

ActionScript 3.0 :: Creating Menu That Loads SWF Onto Stage

Sep 21, 2008

I am real new to action script 3 and I am looking for a way to create a menu that loads my swfs onto the stage, I want the swfs to replace each other when a new button is selected but dont know what function to use.

View 8 Replies

ActionScript 2.0 :: Dynamic XML Menu That Loads Data From DB

Dec 3, 2011

Develop a menu that dynamically loads data from a db, but problem is that the flash does not read the php.

Flash code:
Code: Select allstop();
gerar_menu = function(container, name, x, y, depth, node_xml){
//declarar variaves
var corrent_item;
var corrent_menu = container.createEmptyMovieClip(name, depth);
for(var i=0; i< node_xml.childNodes.length; i++){
[Code] .....

View 2 Replies

ActionScript 2.0 :: How To Get Images Menu When Site Loads

Apr 7, 2005

How to accomplish the images menu when the site loads?

View 2 Replies

ActionScript 3.0 :: Actions Between Swf's - Menu And Loads Other Swf's Into Holders

May 25, 2009

I have a master SWF which has a menu and loads other swf's into holders so they can be animated. I have button's in one of the loaded swf's but i am unable to make these buttons alter whats in the main swf. I.e. addEventListener to button and root(but the root doesnt seem to root to the holding swf).

View 2 Replies

ActionScript 2.0 :: Code Does Not Work After Using The Close Button To Unload The Movie?

May 21, 2007

i have a movie called with:

Code:

_root.attachMovie("biography", "biography", _root.mylogo.getDepth()-1, {_x:Stage.width/2, _y:Stage.height/2});
and within each i have a close button with:

Code:

close_bt.onPress = function() {
unloadMovie(_root.biography);
};

but now i have a problem, im trying to use:

Code:

if (!_root.biography) {
_root.attachMovie("biography", "biography", _root.mylogo.getDepth()-1, {_x:Stage.width/2, _y:Stage.height/2});
}

to call the move again if there isnt already an instance of it but it only works the first time the movie was called, it wont work after i use the close button to unload the movie..

View 6 Replies

ActionScript 2.0 :: Flash Xml Menu That Loads External Swf Files?

Feb 23, 2010

have this flash xml menu that loads external swf files like this:

Code:
<item title="ABOUT"content_path="http://mysite.com/folder1/folder2/folder3/about.swf"target=""mo

[code]......

View 8 Replies

ActionScript 1/2 :: Load A Menu Bar As Movie Clip Loads?

Apr 5, 2009

I have a horizontal menu bar across the bottom of a site I manage, and I would like to load it as the Moive content loads. I have made the menu bar into it's own movie clip, but I cannot work out the code to relate the Menu bar movieclip to the parent movie clip.[url]...

View 9 Replies

Preloader Does Not Work Or Loads From 80% Onwards?

May 6, 2009

I have a preloader and it works fine but as soon as I put a movie clip on to it it either does nor work or loads from 80% onwards.All I want is 1 timeline and then have a movie clip come in on frame 8 or so, but in the bandwith profiler it shows content loading in frame 1 when there is nothing there

View 5 Replies

ActionScript 3.0 :: Main .swf With Buttons On A Navigation Menu That Loads External .swf(s)?

Dec 18, 2011

I am using a main .swf with buttons on a navigation menu that loads external .swf(s) - these load external videos (I use them as their backgrounds).In the main .FLA I have used the following code (in the first and unique frame):

CODE

var Xpos:Number = 110;
var Ypos:Number = 180;
var swf:MovieClip;
var loader:Loader = new Loader();
var defaultSWF:URLRequest = new URLRequest("swfs/eyesClosed.swf");[code].....


I can make each button on the menu load each external .swf correctly with videos included - but when I leave that .swf using the navigation buttons to go to another section, the video and audio keep working in the background.

View 4 Replies

ActionScript 2.0 :: When Click A Subject On The Menu; A Corresponding Movie Loads On The Stage

Sep 4, 2004

On a menu I have various school subjects. I have a separate movie for each subject. When you click a subject on the menu; a coresponding movie loads on the stage.

The actionscripting is quite simple:

on (release) {
loadMovie("Art.swf", "_root.Facilities");
}

Yet however I try I can't get the swf to load .

I realise I need to configure the target so the swf loads in the right place but I'm unsure if this is the problem.

View 3 Replies

ActionScript 3.0 :: User To Be Able To Rollover Menu Button And Click It When The Page Loads

Jul 31, 2009

When the page loads, the first menu button (PORTFOLIO) is automatically OnClick. I want the user to be able to rollover it and click it when the page loads. I attached my file.

View 0 Replies

ActionScript 3.0 :: [CS4] Dynamically Loads External Swfs When Click The Menu Buttons

Dec 18, 2009

I am currently doing a project that to create a full flash website. The website contains a preloader, an introduction movie, and dynamically loads external swfs when click the menu buttons. I am struggling with the preloader part. My preloader movie does not shown until 50% and disappears at 90%. I have searched for solutions on the internet for days but could not find any. I attached my source file as well as the swf.

View 7 Replies

ActionScript 2.0 :: Amazing Group94 - Accomplish The Images Menu When The Site Loads?

Apr 7, 2005

[URL] how to acomplish the images menu when the site loads?

View 2 Replies

ActionScript 2.0 :: Main Page And Directions Pages Work Fine, Others Get Stuck When The % Reaches Close To 100%?

Mar 30, 2003

I am a rookie with this, I copied and pasted from a tutorial. the main page and directions pages work fine, but for some reason the others get stuck when the % reaches close to 100%.

View 2 Replies

ActionScript 2.0 :: Make That Effect On Website Where When The Sliding Menu Gets To A Point It Loads A Movieclip

Mar 15, 2002

i need to know how to make that effect on [url].... website where when the sliding menu gets to a point it loads a movieclip and a movie starts.. i have so far for the sliding menu..

buttons : on (release)
_root.menu.Xpos = 0
on (release)[code]....

View 14 Replies

ActionScript 3.0 :: Get A Simple Preloader To Work And Then Disappear Once The Movie Loads

Jun 9, 2010

I am trying to get a simple preloader to work and then disappear once the movie loads.  This preloader does not move, or leave the stage at all. take a look at the project: [URL]

[Code]....

View 3 Replies

ActionScript 3.0 :: Website Intro / Nav Change - Frame Work Of The Gallery To Draw Itself In As The Page Loads

Apr 10, 2010

I'm relatively new to Flash and AS3. I've created a website thats a dynamic photo gallery. The site is self-contained (no scrolbars) and I want the frame work of the gallery to draw itself in as the page loads. The frame work is just simple lines and drawing objects on the maintimeline. Do i combine the lines (the "frame work") into a mc and then somehow use the deco tool?  How can I acheive this in action script?

View 3 Replies

ActionScript 3.0 :: Click To Open Menu Then Click To Close?

Sep 28, 2011

I've got a drop down menu. I want to click a tab to make it drop then, if it's open, click it again to close. I've tried a million variations on the script below:

var btn_grp1:String
function main1Down(event:MouseEvent):void {
if (btn_grp1 != "dwn") {

[Code]....

This works too (once). So the drop down buttons all disapear again, but it won't re-set. The drop down menu stays up from then on.

BTW i'm not set on this method, it just seemed the most obvious i.e. if menu hidden, then show it, set some variable to down (showing), else hide the menu, set var to up (hidden). Not working though.

View 2 Replies

ActionScript 2.0 :: Close Browser By Clicking On Close Button Embedded Swf?

Jul 27, 2009

i want to close browser by clicking on close button embedded swf. I have tried fscommand("quit"), but which is not working on browser.

View 9 Replies







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