Pop Up Inside A Popup? Can It Be Done
ok, i have a flash website that is a popup, so how do i make a nother popup window come up when i hit a certain button in the first popup flash? i hope this makes sence here is my site www.hispassion.net
FlashKit > Flash Help > Flash Newbies
Posted on: 12-12-2003, 01:59 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Popup Inside A Popup?
Hi.
I'm trying to do some popup windows from flash. Having a small problem.
Trawled the forums for a bit but didn't find anything of use to me.
I have a flash button inside of my main window which opens a popup window just fine. When I put a button inside the popup to try and get it to open yet another popup,
nothing happens. Am using the same function parameters, tried changing the window names and the function name, but it won't do it.
I'm not a flash programmer, so class structures, parent/child stuff etc. defy me.
Is there a simple way to do this?
My code is posted below:
Javascript:
<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}
</script>
<SCRIPT LANGUAGE="JavaScript">
<!--
function openWindow(url, name, w, h) {
popupWin = window.open(url, name,'width=' + w + ',height=' + h);
}
//-->
</SCRIPT>
Actionscript:
on (release) {
getURL("javascript:openNewWindow('http://www.mysite.ca/test.html','window','height=200,width=500,toolbar= no,scrollbars=no')");
}
Any help getting the buttons inside the popup to open another popup
is greatly appreciated!
cheers,
arno
Popup, Inside .swf?
Hello again everyone :-)
I have a problem, since I'm trying to embed zoomify viewer (www.zoomify.com) into a project. I need to point my flash project to the zoomify viewer and make it open the image in a small popup window, very similar to the function at:
http://www.kongedragter.dk when the zoom button is clicked at the statue to the left.
The thing is that the file that feeds the zoomify viewer with it's images is a html file, and I can't figure out a way how to have all the information from the html display in flash without the use of getURL("location of zoomifyimagepath") in the browser, which popup blockers will catch.
Tried looking around for any way to embed a html file into a movieclip without luck... Does anyone have some kind of script that can make a new window within the flash file, where a larger html file can be displayed?
Popup Inside Flash
How do you open a mini window inside a flash movie, draggable of course and with a close X, im talking inside the SWF
not a new Explorer win.
Thanks.
How Make A Centered Popup With A QT Video Inside :)
Hi (sorry my english is not perfect)
I am realy a beginner, and i want to make a centered video popup.
At this time i only know make a button open a new page opening the QT video, but the background of this page is gray.
I will like to only get the video and is controler bar, with my portofolio home page for background.
I found many tuts for making popup, but how integrate the QT video in a html page in witch i can include the javascript for open it like a popup window ?
Thanks a lot for help
http://bihan.free.fr
PS
(in futur i want to make it in flash but at this i am to much beginner to do it )
How Can I Have A Popup Launch From Inside A Scrolling Text Box?
Is there a easy way to have "hot text" launch a popup window from inside a scrolling text box and have it load inside the main movie clip window? I have tried several different types of scrolling text boxes trying to make this work, but I keep running into dead ends.
Thanks,
Mike
Part Of Sfw File Inside New Popup Window?
Hi guys,
I wrote the actionscript for opening a new popup window. In most of the websites it is working very well. But on one page 5 of the 6 are not popping up in the right way. Just a fraction of the sfw file is showing. I have to click with my right mouse to review it in "Show All". I have checked everyting on dots, spaces etc. but the commands are everywhere the same. What am I doing wrong. It seems that sfw is not building up a full page to show inside the popup window. All the sfw files on itselves are ok.
Please help me out..... I really getting crazy.
Anita
Targeting Object Properties Inside PopUp Object
In my project I am creating a window using the PopUpManager. The symbol used to create that window has several objects.
For the sake of discussion we'll discuss the object message_txt inside myWindow.
How do I reference message_txt.text from actionscript after the object is dynamically created?
"popup And Drag Window" Inside "infinite Stage" Movieclip
Hello,
I’m having some problems with my "future and first portfolio" website that I'm trying to create… Can someone help me, please?!
(This is my first attempt in Flash, so excuse me for my small knowledge about the subject)
So far I created an “infinite stage” movieclip that has some “numbers” on it.
For example, if you click on number “3” you can send me an e-mail (that happens because there is an e-mail link button over each number “3” on the stage).
My problem is that I want to have a “popup and drag window” associated with the rest of the numbers on the stage.
I’ve been trying to create a button over each number “1” on the stage to than open the “popup and drag window” that I’ve already created… but this is not working so far and I don’t know why is not working and how to make it work…!!
Enclosed are two files: one is the website that I’m trying to create (and that has the problem that I’ve already told you about) and the other is the “pop up and drag window” that is working here but is not working on the main file.
I really appreciate if you could help me in this matter.
Many thanks!!
"popup And Drag" Window Inside "infinite Stage" Movieclip
Hello,
I’m having some problems with my "future and first portfolio" website that I'm trying to create… Can someone help me, please?!
(This is my first attempt in Flash, so excuse me for my small knowledge about the subject)
So far I created an “infinite stage” movieclip that has some “numbers” on it.
For example, if you click on number “3” you can send me an e-mail (that happens because there is an e-mail link button over each number “3” on the stage).
My problem is that I want to have a “popup and drag window” associated with the rest of the numbers on the stage.
I’ve been trying to create a button over each number “1” on the stage to than open the “popup and drag window” that I’ve already created… but this is not working so far and I don’t know why is not working and how to make it work…!!
Enclosed are two files: one is the website that I’m trying to create (and that has the problem that I’ve already told you about) and the other is the “pop up and drag window” that is working here but is not working on the main file.
I really appreciate if you could help me in this matter.
Many thanks!!
"popup And Drag" Window Inside "infinite Stage" Movieclip
Hello,
I’m having some problems with my "future and first portfolio" website that I'm trying to create… Can someone help me, please?!
(This is my first attempt in Flash, so excuse me for my small knowledge about the subject)
So far I created an “infinite stage” movieclip that has some “numbers” on it.
For example, if you click on number “3” you can send me an e-mail (that happens because there is an e-mail link button over each number “3” on the stage).
My problem is that I want to have a “popup and drag window” associated with the rest of the numbers on the stage.
I’ve been trying to create a button over each number “1” on the stage to than open the “popup and drag window” that I’ve already created… but this is not working so far and I don’t know why is not working and how to make it work…!!
Enclosed are two files: one is the website that I’m trying to create (and that has the problem that I’ve already told you about) and the other is the “pop up and drag window” that is working here but is not working on the main file.
I really appreciate if you could help me in this matter.
Many thanks!!
PopUp Window Help - Toggle Control Between Popup And Stage?
How do you toggle control between a popup window and the main timeline?
I have a button that opens up a pop up window. The popup window is going to contain some text instructions. I would like to have the text instructions visible and allow the user to control a movie clip on the stage. Unfortunately, right now once the popup window appears, the user can no longer control the movie clip on the stage until they close the popup. I'm using MX 2004.
Here is the code I have on my button - this creates the popup window (I got this from some other postings):
on (press) {
import mx.containers.Window;
var win = mx.managers.PopUpManager.createPopUp(_root, Window, true);
win.setSize(375, 262);
win.closeButton = true;
win.contentPath = 'text';
win.click = function() {
this.removeEventListener("click", this);
this.deletePopUp();
};
win.addEventListener("click", win);
}
This is my first posting, please let me know if I haven't provided enough information or if I'm going about this completely wrong. My project will not be posted on a website, it needs to be executed off of a CD so that's why I didn't use a getURL().
Popup Window From Flash, Making Everything Load In Just 1 Popup
I have a simple thumbnail gallery in flash.
When a user clicks a thumbnail, I want a popup to appear. I got this far... now for my problem.
Without closing the window that has popped up, if you click another thumbnail, ANOTHER window pops up so I decided to keep the name of the windows the same to prevent this.
Now... when you click on the thumbnails, everything loads in just the one window without popping up a new window everytime you click a thumbnail but... the popup window stays minimized or "behind the main window".....
any help would be appreciated, thank you!
Problems Openin Another Popup From An Existin Popup
helo.....
The first popup window is fine...
but when i use this method again on the swf in the popup to open another popup... it fail... y is this so????
Thankz alot for spendin time to go thru the script...
Script in flash...
------------------------------------------------------
on (release) {
getURL ("javascriptpenNewWindow('XXX.htm','popuppage',' width=430,height=90,top=0,left=0,scrollbars=no')") ;
}
-----------------------------------------------------
Script in html...
-----------------------------------------------------
<script language="JavaScript">
var newWindow
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName,width=400,height=160, windowFeatures);
}
var height = window.screen.availHeight;
var width = window.screen.availWidth;
window.moveTo((width /2)-400,(height /2)-200);
</script>
------------------------------------------------------
Load Jpg Into Popup, Size Of Popup Based On Jpg?
How do I dynamically load an external jpg into a new popup, but with the popup size based of those of the jpg, so as to leave a 30 pixel border around the jpg???
I also want to dynamically put a short description of the photograph at the bottom.
Please help!!!
PopUp Window Gets Blocked By Popup Blockers
Flash CS3
Actionscript 2.0
I have text on the flash website that is being called from an external .txt file. The problem i'm having is that any links called from that .txt file is blocked by popup blockers upon clicking on them.
I have another popup window in the flash itself from on of the navigation buttons, and that one does not get blocked... but the ones in the .txt files do.
However with the design and the content of the flash, I really need that link to be in the .txt file.
Not really sure how i should go about resolving this.
Any and all help will be greatly appreciated, thank you
Popup Window From Flash, But Have Only 1 Popup
I have a simple thumbnail gallery in flash.
When a user clicks a thumbnail, I want a popup to appear. I got this far... now for my problem.
Without closing the window that has popped up, if you click another thumbnail, ANOTHER window pops up so I decided to keep the name of the windows the same to prevent this.
Now... when you click on the thumbnails, everything loads in just the one window without popping up a new window everytime you click a thumbnail but... the popup window stays minimized or "behind the main window".....
any help would be appreciated, thank you!
Firefox Saying Popup Block : But Its Not Popup
I've made simple flash document and added invisible hotspot to link to a website and put following code
Code:
on(press) {
getURL("http://www.site.net",
_blank, "POST");
}
when link is clicked firefox display message Popup blocked. I've seen many other site in which firefox don't display any popup message when we click in link how its possible? i've visited and clicked cnet.com flash ad which opens in new tab without any message. i want to make like that.
Next is my flash is not looping in firefox but looping in IE7. I'm using Flash MX 2004.
any suggestion.
thanks.
Tweening External Dynamic Text Inside A MC Inside Main Timeline
I've seen a hundred and a half posts on similar subjects, but goshdarnit, I just can't make this work. Let me explain the problem, and I've included a link to a Zip file with my .fla file and the away.txt file I'm calling the variables from.
Basically, I want to create an interactive menu thing, that starts with a row of each of the 26 letters of the alphabet. When one clicks on a letter, the letter is tweened to a larger faded state, and so is the rest of the alphabet, and I want the names of the schools starting with that letter to then fade in. I have a movie clip inside the last frame of the main tween, which should then tween (fade in over 12 frames) the graphic symbol containing my dynamic text box, which is supposed to be linked to the text variables in the external file. The text variable is created on the first frame of the main timeline using Actionscript on the static header layer, and so I should be able to load it inside my movie clip (I think). Everything looks fine to me, but then I've only been using Flash for 2 weeks.
To sum up, I need to tween the graphic symbol. The graphic symbol contains the dynamic text which references the external text file. The graphic symbol is inside a movie clip, inside one frame of my main timeline. The text isn't showing up, only the empty text box is.
My Zipped source files can be found at: http://www.tolcs.org/athletics/away.zip
If anyone would be willing to download my source files and give some wonderful advice, I'd revere and adore them forever.
Button Inside Movie Clip Inside Scrollpane Doesn't Work In Xml
This is sorta odd but I'm hoping somewhat easy to fix. This is in AS2 and is the last problem I have in a very small project of mine.
I have button called button01 inside a movieclip called movieclip01 which is the contentPath for a scrollpane called scrollpane01. I'd like the button to work, and depending on the code it will work in the normal .swf but won't when I embed my movie into xml.
If I put the code inside movieclip01
button01.onRelease=function(){
_root.gotoAndPlay("Frame Name");
}
It will work when I test it but not in the XML. So what I want to do is go to the main timeline where the scrollpane is and write the code there. That is where I'm stuck.
I've tried scrollpane01.movieclip01.button01 and tried movieclip01.button01 and also tried scrollpane01.button01. Just for giggles I also tried scrollpane01.movieclip01 but none of that works
Last night I had a similar problem with buttons inside a movieclip that was on the root stage. They worked in the swf but not when I embedded the file - so I found this which worked (typed in the root stage)
movieclip01.button01.onRelease=function(){
Can't Seem To Get The Paths Correct When It's Occuring Inside A Movie Clip Inside
main movie on _level0, navigation loads into _level1, icon is dragged and dropped loading another samples.swf into _level2.
drag and drop works fine running outside of main movie but not inside main movie. i'm assuming i've messed up paths.
i tried to include the code (twice now) but it keeps cutting off my message.
it's an action on a button inside a movie clip inside a movie loaded into _level1. it needs to reference a movie clip on the main timeline of the _level1 movie. what would the path be?
Rotating Movieclip Inside A Button, Inside A Scrolling Menu Bar
Hi all,
I'm pretty new to actionscript, and I'm kinda moving along; up until now.
I've used the the infinite scrolling menu tute at kirupa.com, created my own button graphics, and have a nice scrolling menu. On the buttons, I'm adding an image (which seems to need to be a movie clip to work), so when you rollover the button, the image will spin.
The code for the spinning works. I've tested it on the root frame of a new movie, and in the button of the infinite scrolling menu movie. I've added the code to spin the image on the "over" frame of the button timeline. With the button scene open, I run "test scene", stop it, and move between the frames. When I advance to the rolloever frame, the image spins like a top, but when I test it from the root of the movie, the image does not spin. I've also added a color change "that works" from the root when you rollover the button, but the not the spinning image.
I've added the image by editing the button from the library. I select the image, and add the code inside an onClipEvent(enterFrame) action.
I've also tried adding the code to the keyframe of the root scene in layer 1, and tried calling the image by the full path (_root.one_button.buttons.button1.spin1._rotation= blah) thinking it needs to know exacty where the image(movie clip) is at in the heirarchy to no avail. I've even went back and gave everything an instance name up unto the button I'm trying all this on.
Any help would be appreciated, since I'm about ready to shed tears over this.
Thanks!
-Sam
OnRollOver() Inside MoveClip Inside MovieClip Doesnt Work
could someone help with this. i dont know why the onRollOver function doesnt work for my submenu button. trace("over main btn") for mainmenu button works fine but trace("over submenu btn"); doesnt work :/
ActionScript Code:
CreateMainMenu = function (x, y, depth, node_xml) {
var cNode;
var cItem;
var cMenu = this.createEmptyMovieClip("mainMenu", 0);
for (var i = 0; i<node_xml.childNodes.length; i++) {
cNode = node_xml.childNodes[i];
cItem = cMenu.attachMovie("mainMenuBtn", "mc"+i, i);
cItem._x = menu_x+i*(cItem._width+5);
cItem._y = menu_y;
cItem.menuname = cNode.attributes.name;
cItem.node_xml = cNode;
if (cNode.nodeName != "menu") {
cItem.arrow._visible = false;
}
cItem.onRollOver = function() {
this.gotoAndStop(2);
h = 0;
clearInterval(newInt);
trace("over main btn");
subMen = this.createEmptyMovieClip("subMenu",200);
newInt = setInterval(openSubMenu, 50, this._x,this._y,subMen,this.node_xml);
}
cItem.onRollOut = function() {
this.gotoAndStop(1);
this.subMenu.removeMovieClip();
};
}
};
openSubMenu = function (x,y,clip,node) {
if(h<node.childNodes.length) {
subM = clip.attachMovie("subMenuBtn","subBtn"+h,300+h);
subM.menuname = node.childNodes[h];
subM._visible = true;
subM._y = subM._height*(h+1);
subM.onRollOver = function() {
trace("over submenu btn"); //<------------- it doesnt work :(
}
h++;
} else { clearInterval(newInt); }
};
var menu_x = alertArea._x;
var menu_y = alertArea._y;
menu_xml = new XML();
menu_xml.ignoreWhite = true;
menu_xml.onLoad = function(succeed) {
if (succeed) {
alertArea._visible = false;
CreateMainMenu(menu_x, menu_y, 0, this.firstChild);
} else {
alertArea.alert = "error: XML not successfully loaded";
}
};
menu_xml.load("menu.xml");
sample xml file for this menu:
ActionScript Code:
<?xml version="1.0"?>
<menu name="XML Menu">
<menu name="firm">
<item name="about" link="http://#"/>
<item name="portfolio" link="http://#"/>
<item name="contact" link="http://#"/>
</menu>
</menu>
does anybody know what is the problem ?
Rotating Movieclip Inside A Button, Inside A Scrolling Menu Bar
Hi all,
This question is going ignored in some other boards, so I thought I'd try here....
I'm pretty new to actionscript, and I'm kinda moving along; up until now.
I've used the the infinite scrolling menu tute at kirupa.com, created my own button graphics, and have a nice scrolling menu. On the buttons, I'm adding an image (which seems to need to be a movie clip to work), so when you rollover the button, the image will spin.
The code for the spinning works. I've tested it on the root frame of a new movie, and in the button of the infinite scrolling menu movie. I've added the code to spin the image on the "over" frame of the button timeline. With the button scene open, I run "test scene", stop it, and move between the frames. When I advance to the rolloever frame, the image spins like a top, but when I test it from the root of the movie, the image does not spin. I've also added a color change "that works" from the root when you rollover the button, but the not the spinning image.
I've added the image by editing the button from the library. I select the image, and add the code inside an onClipEvent(enterFrame) action.
I've also tried adding the code to the keyframe of the root scene in layer 1, and tried calling the image by the full path (_root.one_button.buttons.button1.spin1._rotation= blah) thinking it needs to know exacty where the image(movie clip) is at in the heirarchy to no avail. I've even went back and gave everything an instance name up unto the button I'm trying all this on.
Any help would be appreciated, since I'm about ready to shed tears over this.
Attached is the zipped fla file
Thanks!
-Sam
Behavior On Buttons Inside A Movie Clip Inside A Button.
I would like t create an animated button with menu inside, how do i do it.
something like on here http://www.demarchelier.net
hidden menu on left side (contents) but on flash. I have flash 8. any tutorial that explain how to do that ?
Tween Inside A Button Inside A Movie Clip
Say I have 3 squares, from left to right, blue, red, yellow. The 3 squares together are a MC that move from off the stage on right, across the stage to line up on the left. Now say I want to make the left blue square a button so that when you roll over it, it has a orange frame and then when you press down on it it dims, and a larger version of it shows up above it. how would I do this? What i've done so far is made a button inside the MC, then on the down state of the button made a graphic button for the blue square, but it doesn't stay dimmed, and I don't even know how to make the larger blue square appear.
Is this too confusing?
please help.
thanks
Load A Movie Inside Blank Clip From Inside Itself?
Hi,
I am working on a site and I have a blank movie clip called contents. I have a button that when clicked, loads a swf (2.swf)inside of it. then I have a button in 2.swf, when clicked, I want it to load a swf in contents (the same movie clip that it was loaded into). I have tried using _root. and _parent. infront of the loadmovie code, but those aren't working. What code would I use to do this?
Thanks, Matt
SetInterval Inside A Loop Inside A Function - Am I Crazy?
I've got a menu loading from XML data - however I'd like the mc's to appear sequentially, maybe 1/10th second apart. I know setInterval should do this, but I'm still new to flash and despite trawling Google for 24 hrs solid, nothing seems to show me the right way.
Here's the script:
Code:
function CreatePortMenu(port_xml)
{
var portClients = port_xml.firstChild.childNodes;
var xPos = 0;
var yPos = 0;
var xSpacing:Number = 90;
var ySpacing:Number = 35;
var i = 0;
for ( i = 0; i < portClients.length; i++ )
{
switch (i) //splits the menu items into columns of 4 (max 12 items)
{
case 0:
case 1:
case 2:
case 3:
yPos = ySpacing * i;
break;
case 4:
case 5:
case 6:
case 7:
xPos = xSpacing * 2;
yPos = ySpacing * (i - 4);
break;
case 8:
case 9:
case 10:
case 11:
xPos = xSpacing * 3;
yPos = ySpacing * (i - 8);
}
var currentClient = portClients[i];
var portHold = portHolder_mc.attachMovie( "jobOption", "pb"+i, i, {_x:xPos, _y:yPos});
portHold.jobTitle.jobText.text = currentClient.attributes.title;
}
}
So I *think* I should be inserting two lines, one creating a setInterval, and one clearing it, but where? Some guides say inside the function, some say outside, some say only the clearInterval should be inside, some have the function inside the loop... I also *think* I've tried every possible combination, but no soap. Please help!?
Tabbing Inside A Form, Inside ScrollPane Component?
I have several forms but one of them needed to be scrolled because it's too long. I've been using the fieldname.tabIndex on all my forms but when I try to tab this form that contains the tabIndex it pops outside the ScrollPane component every time. I setup the form like the rest then gave it an instance name of "form," I set the linkage on the properties to "form." Next I placed a ScrollPane on the main timeline and assigned it to "form." When I try running the movie and tabbing between the fields in the form it pops out of the component to another instance.
What do I do?
I've given the url address to the movie:
See the movie here, select "MENU" then "Nominate" to view the problem
Thanks - Rob
Openning A Popup From A Popup?
Hi,
I'm able to open a popup from a normal sized window but the code doesn't seem to work in a popup. Why????
This is what I used.
on (release) {
getURL ("javascript:window.open('" add url add "','" add winName add "','width=" add winW add ",height=" add winH add ",top='+((screen.height/2)-(" add winH/2 add "))+',left='+((screen.width/2)-(" add winW/2 add "))+',toolbar=" add tools add ",scrollbars=" add scroll add ",resizable=" add resize add ",menubar=" add menu add ",status=" add status add ",directories=" add directory add ",location=" add location add "'); void(0);");
}
Thanks
POPUP POP-UP Popup Pop-up >>the Easy Way
No scripting, just follow the links and do the tutorial
>center popup
http://www.macromedia.com/exchange/flash/
under the support info link:
Tutorial: http://www.geocities.com/p_shevlin/centerpopuphelp.html
or if you want to stay in tha house
http://www.flashkit.com/movies/Smart...64/index.shtml
[Edited by tputtemans on 10-12-2001 at 01:37 PM]
Popup Winthin A Popup
how do i create a pop up windwo within a popup window?
i used this code for the initial pop up window:
javascriptpenNewWindow('popup.html','thewin','heig ht=250,width=100,toolbar=no,srollbars=yes')
but when i put the same code on the button within that window what ends up happening is that the next movie opens in the same window
please help =)
Launch Popup From One Popup
Hi,
Sorry for this newbie question, but how i can open a new popup from a previous popup? I mean, I launch one popup and then from this popup I need open a new popup.For now the flash popup open the new inside the same window.
Thanks!
Using External .txt Inside Movie Clip Inside .fla
I've seen a hundred and a half posts on similar subjects, but goshdarnit, I just can't make this work. Let me explain the problem, and I've included a link to a Zip file with my .fla file and the away.txt file I'm calling the variables from.
Basically, I want to create an interactive menu thing, that starts with a row of each of the 26 letters of the alphabet. When one clicks on a letter, the letter is tweened to a larger faded state, and so is the rest of the alphabet, and I want the names of the schools starting with that letter to then fade in. I have a movie clip inside the last frame of the main tween, which should then tween (fade in over 12 frames) the graphic symbol containing my dynamic text box, which is supposed to be linked to the text variables in the external file. The text variable is created on the first frame of the main timeline using Actionscript on the static header layer, and so I should be able to load it inside my movie clip (I think). Everything looks fine to me, but then I've only been using Flash for 2 weeks.
My Zipped source files can be found at: http://www.tolcs.org/athletics/away.zip
If anyone would be willing to download my source files and give some wonderful advice, I'd revere and adore them forever.
Can't Tab Inside A Form, Inside ScrollPane Component.
I have several forms but one of them needed to be scrolled because it's too long. I've been using the fieldname.tabIndex on all my forms but when I try to tab this form that contains the tabIndex it pops outside the ScrollPane component every time. I setup the form like the rest then gave it an instance name of "form," I set the linkage on the properties to "form." Next I placed a ScrollPane on the main timeline and assigned it to "form." When I try running the movie and tabbing between the fields in the form it pops out of the component to another instance.
What do I do?
I've given the url address to the movie:
See the movie here to view the problem, goto "Menu" then to "Nominate
Thanks - Rob
Button Inside Swf Needs To Target Label Inside Different Swf
I have two different swf files (valet.swf and transit.swf) loaded into 2 different container MCs on a main timeline. One is in the container MC contentsValet the other is in contentTransit. I have a button inside the transit.swf that when pressed needs to go to the label "valet" inside the valet.swf file and am not having any luck with getting it to work.
Here is the code I tried to use on the button
on (release) {
_root.contentsValet.gotoAndPlay("valet");
}
Addressing A Timeline Label Inside A Mc Inside A Mc
? how would you write:
if(c=1){
gotoAndPlay.home.trans "contact";
}
... .home is a mc that contains .trans mc and "contact" is a label in the .trans mc timeline.
I get the
contactbtn.on(press) {
gotoAndPlay ("next"); // address label within the current mc
}
but am unclear how to do this correctly when the timeline label is within a movie clip inside another movie clip.
thanks for the clarification
Self taught... still learning actionscript flasher
Using SetInterval Inside A Function, Inside A Loop
I'm very confused by this now
I'm trying to use setInterval to delay what happens on a rollOut function, which is added to every button inside a loop.
Can anyone help me with the syntax, I'm totally lost!
Thanks,
James
PHP Code:
for (var i = 0; i<=(node.length); i++) {
currentButton.num = i-1;
//----attach the projectButton movieclip from the library----//
attachMovie("projectButton", "projectButton"+i, i);
//----move the button to the right place----//
currentButton = _parent.portfolio["projectButton"+i];
currentButton._y = 1+(26*k);
currentButton._x = 2+(230*j);
//----put the name of the project onto the button----//
currentButton.projectID.text += node[i].attributes.title;
//----rollover function----//
currentButton.onRollOver = function() {
currentButtonNow = _parent.portfolio["projectButton"+this.num];
currentButtonNow.projectID.text = "";
currentButtonNow.projectID.text += node[this.num].attributes.description;
};
//----rollout function----//
currentButton.onRollOut = function() {
APause = setInterval(GoBack2, 500);
//calls a function called GoBack every 'x' seconds//
function GoBack2() {
// SOME FUNCTION HERE!!!!!!!!
clearInterval(APause);
trace('clearing interval of '+currentButton.num);
}
currentButtonNow = _parent.portfolio["projectButton"+this.num];
currentButtonNow.projectID.text = "";
currentButtonNow.projectID.text += node[this.num].attributes.title;
};
//----release function----//
currentButton.onRelease = function() {
loadMe = node[this.num].attributes.id;
gotoAndPlay(10);
//gotoAndStop("portfolio");
};
//---- take out the leftover one idiot ----///
if (currentButton.projectID.text == "undefined") {
_parent.portfolio["projectButton"+i].removeMovieClip();
}
//---- watch the old variables mr greig ----//
k++;
//---- slit the list into 2 columns at which point? ----///
if (i == (8)) {
j = 1;
k = 0;
}
HitTest Problem- In A Button Inside A Mc Inside
hi,
anybody can give me a simple code using hitTest();
I did'nt know what is the right syntax for this command and where is the right place to put it.
here's the situation:
I have a 'gallery' movieclip and nested to it is a gallery button and when you over it, it txt color change.
but d problem is i didn'tknow where is the right location to put the hitTEst code and what is the right syntax?
i put this in frame1 of code frame
stop();
profileNav.onPress=function() {
gotoAndStop("profile"); }
galleryNav.onPress=function() {
gotoAndStop("gallery"); }
pressNav.onPress=function() {
gotoAndStop("press"); }
contactsNav.onPress=function() {
gotoAndStop("contacts"); }
and this code to galleryNav movieclip
on (release) {
//Goto Webpage Behavior
getURL("D:/Normz/Graphic Design/projects/mary-2nd/flash-new/gallery.swf", "main");
//End Behavior
}
pls help me. thanks
norman-RP
Centre Popup Window / Title Popup Window
Hi
Can anyone help? I would like my popup window to sit centre of the browswer and have a title on the top can I define it within the following actionscript?
on(release){
geturl("javascript:window.open('myfile.html','winO ne','height=400 width=450');void(0)");
}
Thanks ravenotice
Button Inside Mc Inside Mc Not Working...
Hi there
In the main scene I have a movieclip "Map" which contains a movieclip "BakerStreet" which contains an invisible button. I am trying to call up different actions inside the "BakerStreet" movieclip using a rollover but am having problems, it just doesn't understand. Can someone help please.
This is the code I am using on the invisible button inside "BakerStreet".
on (rollOver) {
_root.BakerStreet;
gotoAndPlay ("BakerStreetRollover");
}
Thanks for your help.
Paul
Button State Inside Mc Inside Another Mc With As Over It
Hi everybody,
I'm having a little problem with a button state. Any help is appreciated.
Here is my issue;
On the main timeline I've got 2 movie clips. When you move the mouse over mc x shows the mc y.
Onside mc x I have a button that has a motion tween applied to it. Inside that button I would like to change the color of the font on Over state.
When I use ActionScript to show or hide mc y the button state doesn't change to Over. As soon as I remove the Action script, it works just fine.
Please help me understand why this happens and how I can resolve it.
Thanks in advance!
Here are attached files.
button.zip
Swf Inside A Swf Inside A Swf Resize Problem
I wonder if someone would be willing to help me privately with a simple but annoying problem. I've inherited a Flash-based site which was originally done in Flash 5. I have re-exported every SWF into Flash 7, but have made no changes to scripting, because the job would be enormous. It all works except for one new element I am trying to add.
The site uses a blank loader movie into which the main interface (another SWF) loads. Inside that the different content (more SWFs) load. And inside those other SWFs load. A total of around 60 different small SWF files. Which makes it fast to load and easy to update.
BUT...
I am trying to add another SWF (call it "e-card showcase") which loads inside a SWF inside a SWF. And in my new SWF, other separate movies will load. Those movies are sample e-cards.
The e-cards utilize Sham Bhangal's Flash Camera component, which uses Action Script to control the stage size, and do zooms and pans without physical tweening.
Here is the problem: When I test the e-card showcase SWF alone, the e-cards all load at the correct size, which is 550x400.
When I test it inside the main movie-inside a movie-inside a movie (stage size 800 x 600), the e-cards load at 800 x 600, which is too big. What's more, if I click to load a new e-card while another one is still playing, the new movie loads at whatever size the Flash Camera has set the stage at that moment.
The Flash Camera script uses the size of the _root stage as its reference, which I suspect is the heart of the problem. But I cannot alter the Flash Camera script because I do not have the source FLA files for most of the e-cards.
I therefore need a way to force each e-card to load at 550 x 400 when the button is clicked.
I've posted a similar question with the relevant Action Script about two weeks ago and got zero responses. I wonder whether someone would be willing to help me privately. I'm sure there is a simple answer to this issue, but it helps to have my FLA files to do the testing.
If you're willing to help, I'll be happy to do you a favour in return with a little Flash cartoon illustration for your own site.
Cheers.
Trigger A Button Inside A MC From Another Btn Inside Another MC
Hi,
I have a series of buttons inside a MovieClip, that contain ActionScript. Inside another MovieClip I have another button that I want to trigger the actions from a specific button inside the first MC.
Here is the code for one of the series of buttons (i.e. Menu):
Code:
on (release) {
_root.container.unloadMovie();
_root.container.attachMovie("geral_respCorp", "liveContainer", 1);
this._parent.A.NewY = this._parent.A.OrigY;
this._parent.A.gotoAndStop(1);
this._parent.B.NewY = this._parent.B.OrigY;
this._parent.B.gotoAndStop(1);
this._parent.C.NewY = this._parent.C.OrigY;
this._parent.C.gotoAndStop(1);
this._parent.D.NewY = this._parent.D.OrigY;
this._parent.D.gotoAndStop(1);
this._parent.E.NewY = this._parent.E.OrigY;
this._parent.E.gotoAndStop(1);
this._parent.F.NewY = this._parent.F.OrigY;
this._parent.F.gotoAndStop(1);
this._parent.G.NewY = this._parent.G.OrigY+this._parent.Control.FH-this._parent.Control.ButtonH;
this._parent.G.gotoAndStop(1);
play();
}
This code is for the button named "A" inside the MovieClip "MainMenu".
Now, in the movieclip loaded in the container MC, I have a button named "Next", and basically this button unload the MovieClip loaded inside the container and load another one, but I want to assign the code of the "A" button, to this button.
I had tryied to make somthing like this:
Code:
on (release) {
_root.container.attachMovie("business_key", "liveContainer", 1);
MainMenu._parent.A.NewY = MainMenu._parent.A.OrigY;
MainMenu._parent.A.gotoAndStop(1);
MainMenu._parent.B.NewY = MainMenu._parent.B.OrigY;
MainMenu._parent.B.gotoAndStop(1);
MainMenu._parent.C.NewY = MainMenu._parent.C.OrigY;
MainMenu._parent.C.gotoAndStop(1);
MainMenu._parent.D.NewY = MainMenu._parent.D.OrigY;
MainMenu._parent.D.gotoAndStop(1);
MainMenu._parent.E.NewY = MainMenu._parent.E.OrigY;
MainMenu._parent.E.gotoAndStop(1);
MainMenu._parent.F.NewY = MainMenu._parent.F.OrigY;
MainMenu._parent.F.gotoAndStop(1);
MainMenu._parent.G.NewY = MainMenu._parent.G.OrigY+MainMenu._parent.Control.FH-MainMenu._parent.Control.ButtonH;
MainMenu._parent.G.gotoAndStop(1);
play();
}
But nothing happens. can someone help me in this matter?
thank you
Eduardo Ribeiro
|