Popup With In Flash Movie - Scripting
I have a movie with a table. I need to make it interactive. I have converted some text to buttons. When someone clicks the button I need to have it display some additional text like a pop up. Any help would be appreciated.
Adobe > ActionScript 1 and 2
Posted on: 09/11/2007 03:18:24 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
More Popup Help Scripting
Sorry. The script I have works, but I need to refocus the popup window when the user re-clicks the flash button.
I think the focus statement should go in the html if I'm not mistaken.
Here's what's in flash:
on (release) {
getURL("javascript:myPop.focus()");
}
Here's what's in HTML:
<script language="JavaScript" type="text/JavaScript">
function myPop() {
window.open('http://www.theUrlIwantToOpen.com','popup1','toolbar=no,lo cation=no,status=no,width=640,height=480');
}
</script>
How would I focus the popup???
TIA soo much.
Dru Abrams
Expression Center for New Media
Scripting Html Popup
Hey guys. I need some help getting this to work. Much obliged.
This gets attached to a button action:
on (release) {
getURL("javascript:myPop ()");
}
This gets put in html.
<script language="JavaScript" type=text/JavaScript">
function myPop() {
window.open ('http://www.yahoo.com',popup','toolbar=no,location=no,stat us=no,width=640,height=480');
}
</script>
This is sample script, but I don't understand why it isn't working.
TIA.
Dru Abrams
Expression Center for New Media
Scripting Is Supposed Flash Movie Much Cleaner
Scripting is supposed flash movie much cleaner, there should be a straight forward way to do this.
the example we can call "test.swf"
the movie clip we will call "fade" which resides inside the library
"fade" extends over 50 frames the first 30 have a snazzy animation upon a mouse click on a button in the main menu.
I would like to use this movie clip again just starting at frame 30. My question is can you reference a frame label inside the "fade" clip from the "test.swf?"
Note tell target is usefull by adding a ../ script you can exit a movie clip. Can you preform this code to enter in a clip?
Much thanks
aspiring asssstronaught
HTML Popup From Flash Movie
Hi there
I want to open a new window and control the windowsize, menu, scroller etc.
This is what I have done...
In Flash (buttom):
on (release) {
getURL ("javascript:nyheder()", "_blank");
}
and between the head-tags in the HTML-doc.:
<SCRIPT LANGUAGE="JavaScript"><!--function nyheder(){window.open("http://www.icreate.dk/emma/news.html","nyheder","toolbars=1,location=1,width= 135,height=400,directories=1,status=1,menubar=1,sc rollbars=0");}//--></SCRIPT
...why dosn't it work??
Please help.........
Popup Window For Flash Movie
Hope someone can help with this.
I have graphics on one of my pages and want to popup a window (with no toolbar, location, status an so on) and play a movie within the window when the image is clicked on. There are five images with associated movies to be played.
Thanks
Open A Popup From Flash Movie ..
Hello everybody,
how can I open a pop up with an HTML page in it from flash (my menu is built in Flash) ? ..
I am deadly short on time and if someone can just type in the script I have to add to my button - this would be great! ..
Thanks a lot!
Popup Window With No Buttons In A Flash Movie
Can someone tell me how I would create a link from a flash button that would pop-up a window without any scroll bars or toolbars? I'd also like to be able to set the length and width for the pop-up.
Thanks, in advance, for the help.
HTML Popup Window With Flash Movie In It
I'd like to make a popup window in an HTML page, and put a Flash movie in the popup window. I don't know any Javascript myself, so what I did is I found a popup window that works the way I want it to and copied and modified the source code. What I have now works, except the Flash movie is shifted to the right by 8 pixels. I made sure the window dimensions match the Flash movie dimensions, and the original popup I based mine on does not have the shift. At least I think it doesn't. I considered the possibility that they accounted for the shift by adding "bleed", but I doubt that's the case. Does anyone know how I can prevent the movie from being shifted?
Open My Flash Movie On A Popup Window
Hi!
I have my project ready and I want to make the first page of my web site and static page(.htm).This page will contain a image that when clicked I want my flash movie(web site) to open in another windows the same size of my flash movie.How can I do that?
Flash Movie In Popup Reloading Main Window
Hi,
Just a quick question, I am trying to make a flash movie button in a pop up load a new url in the main window which opened the popup and then close the pop up, does anyone have any suggestions?
Thanks
Ian
Flash Projector - Button Launching Quicktime Movie Popup
I am doing a interactive flash movie projector on a CD. I also have on that CD a Quicktime video.
In the flash projector I want to set a button that when clicked will launch a quicktime movie screen in a popup fashion and run as a quicktime movie and not embedded in the projector. I want it to be seperate from the projector.
CAN ANYONE HELP ME ??
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!
How To Open A Popup Window Exact Size Of Random Gif From Within Flash Movie On Load?
Hi,
i have a flash movie, and on loading, or at a certain frame, is there some way i can have a random popup html window (which will have small gifs of random sizes) open up automatically the size of the gif.
They will be random images or quotes in gif format from a selection uploaded to a folder called quotes.
Many Thanks in advance from someone who will need it spelled out very clearly.
Cesca : )
p.s. i have a macromedia behaviour script that i found a while back, that creates a popup window of a chosen gif and resizes the window to the exact dimentions of teh gif. However this is for use within an html page, and doesnt consider the random factor....if i understood cding better, id probably be able to manipulate the code but i'm more of a doughnut...lol...any help or advise appreciated.
How To Load Movies In One Main Flash Popup Movie As Per Button Click From Navigation
hi,
i am strucked in a practical problem.
I have a navation menu in flash in my homepage.
I have 3 menus>> portfolio1 |porfolio2| portfolio3
so when i click the portfolio1..the popup page opens and one flash movie is opening.
in that popup flash(500px width,300px height)..i have a center portion(500w,15oh) where the portfolio related one small flash will be loading..
Right now when i click one each menu..evrytime by portfilio1 realted small flash file opening..but i want it should load as per button click on main page.
so if i click portfolio2 button..popup should load also portfolio2 related small flash in the main popup flash.
what is the solution for that. I need help..plz
thanks,
Scripting A Button From One Movie To A Labeled Frame Of Another Movie (it's Scene 2)
Hello, I have researched this issue in this forum for days now and although what I have found, including the suggested tuturials, have helped me alot, I am still trying to make this work. The last script I attempted was this:
on (release) {
_level0.gotoAndPlay("Carlos_Portfolio_2005.swf_fra me_label1");
}
which didn't do anything. Not even an error... Before this script I tried this:
on (release) {
loadMovieNum("Carlos_Portfolio_2005.swf", 0);
_root.gotoAndPlay("label1");
}
but got this error:
Error opening URL "file:///Macintosh%20HD/Users/carlosguerra/Documents/My%20Art/flash%20pages%20for%20portfolio/Carlos_Portfolio_2005.swf"
The button itself, that I am scripting from, is named: return_button in the original movie.
I would appreciate any help!
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!
Flash 5 Scripting Vs MX Scripting
ok, I have this script on a movieclip called g_loader:
onClipEvent(load) {
loadMovie("contact.swf",this);
}
onClipEvent(data) {
trace(this.getBytesTotal())
}
this is how it would be written in flash 5, and it worked fine.
I tried to write the same thing using MX syntax:
g_loader.onLoad = function() {
loadMovie("contact.swf",g_loader);
}
g_loader.onData = function() {
trace(g_loader.getBytesTotal())
}
And it WILL NOT WORK!! Am I going insane? Why won't this work!!!????
How To Make The Flash Movie "talk To" A New Popup Window?
Hi. I am having problem to make my flash movie talk to a new popup window.
In my flash movie, I let the user to "mix and match" their own character. And then, I want to provide a function so that when the user click on a button, there will be a popup new window to store their choices of pictures. So that they can keep the character and make a new one if they want.
All of my images are in jpeg or gif format (and I convert them into separate swf file). Is there any method to make this happen?
Any help will be appreciated. Thanks in advance!
Movie Clip Scripting?
I have converted an alpha/color tweened graphic symbol to
a movie clip. It's timeline is 125 frames.
i have it placed in frame 1, scene 1. I have tried
object and frame actions , and labels, and instances,
and "go to" , "With", "play" etc.
when i test movie it appears only for that first frame.
please HELP ME!!!!!!
Movie Clip Scripting?
I have converted an alpha/color tweened graphic symbol to
a movie clip. It's timeline is 125 frames.
i have it placed in frame 1, scene 1. I have tried
object and frame actions , and labels, and instances,
and "go to" , "With", "play" etc.
when i test movie it appears only for that first frame.
please HELP ME!!!!!!
Scripting Not Working Within Another Movie
Well I am pretty sure I have just screwed up the source path or something but I have created a calendar with xml scripting to access info, and it works just fine. But when I try to put it into another flash project some of the actionscripting doesn't work. I really appreciate any suggestions.
Thanks,
Eric Ehle
www.idesigntech.com/calendar.zip
Scripting Movie Clip.......
I went through the tutorials and I got a lot of help from them and it awnsered alot of questions. But im having one problem. I trying to make a game. Your on a bike from an over head view. I want to make it so that when you turn left or right it plays a small MC showing the bike leaning in either direction. How do i go about making it so that when your not pressing anything the bike is striaght and if you turn left or right the bike plays the animation of it leaning in that direction. While im at it i want to make the bike movement on its own layer or layer set. And have the road be on its own layer and have the speed control the road layer. So when your turning your just moving the bike and when you hit the gas or brakes you are controling the road layer. Is this the right way to go about it??
lol I could go on for days but i really would like to know about making the bike's movement work the way i described above. I consider myself to be very artistic and i know how to use html and make webpages etc. Its just stuff like java script and action script that piss me off. So if you know any other good referances for actionscripts please let me know.
Action Scripting Movie Help
Im making a graphical interface where different pictures will be dropped in a box with a specific ID that i give them. The problem is getting the flash to acknowledge that these pictures have a unique id and for the unique ID list to be mailed to myself. Im not very savvy when it comes to action scripting so if there is an example on the site or any help would be much appreciated.
Russ
Action Scripting Help With Movie
Hmm I guess this really comes in 3 parts.
1:
How do i give a specific graphic a variable? IE: I had a square and gave it the variable "Square", circle would be "circle" and triangle would be (of course) "triangle".
2:
Lets say i split the movie in half. One half of the movie has circle, triangle, and square all with their labels. Dragging each symbol over to the other half of the movie it would show the variable name and how many times that specific graphic had crossed to the other side.
3:
Last but not least (eww i think this is mad skills part) but how do i export this information in to a nonflash part such as email the results, displaying on html, or even text. (all would be nice considering i would like to learn any way that it can be exported)
Im very new to flash actionscripting or working with variables but i think the real stuff is in exporting it out of flash somehow. Thanks for the help!!
Scripting Within A Movie Clip
hi!
i have created a movie clip, but wen it gets to the end of it i want it to move to the next frame on my main timeline, not in the movieclip. i have tred the following codes .
gotoAndStop("scene 1",2)
and
_root.gotoAndStop(2)
both don't work.
can anyone help me out please.
cheers
Chris
Pausing A Movie Through Scripting
I have found that when you tell a Flash animation to stop playing, it only stops the top-most timeline, and any movieclips are left playing.
What we have created is a Flash animation that may have one or more movieclips in it. The animation is playing within a web page(displayed in IE) and is controlled by JavaScript. The whole package is a training piece that use HTML to display images and text and has a navigation panel to move through the training. Therefore, the navigation panel also controls any Flash animations for pausing and resuming.
This arrangement works fine for Flash animations that do not contain any movieclips. If there are movieclips they do not get stopped when the StopPlay method is used. It appears that in additon to the StopPlay method, the TStopPlay method must be used to stop each movieclip. Then to resume one would have to start each movieclip individually and then start the main timeline. This seems rather cumbersome, especially if there are some movieclips that do not play the entire length of the animation, you would then have to check the current frame location and know which movieclips to start again.
Is there a way of creating a function in Actionscript such that when the main timeline stops, it will trigger an event an call a function that will then handle pausing all active movieclips. And the same for when the movie begins to play again?
Help With Scripting Movie Clip
For some reason the file did not upload.
Trying again....
I'm hoping someone can help me with this.
Attached is a Flash MX file of a prototype of a
basic navgiation interface that I plan to build
upon. When you open the file you'll notice
everything is built on the main timeline. All
I want to do is to copy all of these frames and
layers and copy them into a new movie clip.
Then I want to delete everything from the main
timeline and drop the new movie clip into the
first frame of the now empty main timeline.
When I do this now and preview the movie it
doesn't work. I know it has to do with "_root."
in the script. Thanks in advance.
JR
Scripting Help For Movie Clip
OK. I've been pulling my hair out trying to get this
to work with no luck so I've attached the Flash MX
file for assistance. The file is a prototype of a basic
navgiation interface that I plan to build upon. When
you open the file you'll notice everything is built on
the main timeline. All I want to do is to copy all of
these frames and layers and copy them into a new
movie clip. Then I want to delete everything from
the main timeline and drop the new movie clip into
the first frame of the now empty main timeline. When
I do this now and preview the movie it doesn't work.
I know it has to do with "_root." in the script.
Thanks in advance.
JR
Scripting For Button Movie Clip
I am trying to have the five movieclips on the left to act as buttons. When these movieclips are clicked on, the single note in the music will be played and a SWF file will be loaded in the rectangle the note outlines. I can not figure out how to get the movieclips to activate the not to play.
The Go mc has no actions applied to it but the gotoAndPlay function for the note mc. I think the problem has to do with the actions applied to the five mc's to expand or shrink.
Any help would be greatly appreciated!!! This project is stuck until I figure this out.
dave
New To Scripting. Question About Loading Within A Movie.
I'm building a portfolio, and i would like to be able to load things as users progressively click through a single flash window.
an example is this site : http://www.definitivejux.net. faster net connections may not notice, butfor slower modems, all of the album pictures and various other aspects of the site visibly load once a section of the site is accessed. i have a hard time explaining it.
edit: this also happens on [url]http://www.kill-bill.com[url]
I can grasp the basics of actionscript. I know how to build a preloader and make a movie go and stop.. but everything else i do is through tutorials
can anyone recommend a good tutorial or at least direct me in the direction of figuring this out?
thanks in advance!
Movie Clip/Action Scripting
I need help with some action script stuff. Can anyone give me a list of some of the onClipevent codes that would help with making a game. Like how do you make a person move...and how do you keep him from staying above ground. Please help.
Help With Scripting Movie Clip File
I'm hoping someone can help me with this.
Attached is a Flash MX file of a prototype of a
basic navgiation interface that I plan to build
upon. When you open the file you'll notice
everything is built on the main timeline. All
I want to do is to copy all of these frames and
layers and copy them into a new movie clip.
Then I want to delete everything from the main
timeline and drop the new movie clip into the
first frame of the now empty main timeline.
When I do this now and preview the movie it
doesn't work. I know it has to do with "_root."
in the script. Thanks in advance.
JR
Using Action Scripting To Type In A Movie
I’m trying to figure out a way to make a movie clip with action scripting in it where I can type in a sentence and have flash type it out for me.
I found this text effect generator that uses texto= “{insert text here}” but theres alot of code I dont understand. I don’t know how to place it inside a movie that can then be duplicated and moved around the stage.
Any help is appreciated! Thanks!!
Popup Movie Clip In Main Movie
When a contest button is pressed, I need a movie clip to come up as a pop up within my movie (this movie clip is a form that will need to feed into a database after the Submit button is pressed within this popup form) I've tried both parts of the tutorial found here:
[L= [L=http://scriptplayground.com/tutorials/as/Building-a-Flash-Popup-Part-1/]]http://scriptplayground.com/tutorials/as/Building-a-Flash-Popup-Part-1/][/L] [L=http://scriptplayground.com/tutorials/as/Building-a-Flash-Popup-Part-1/[/L]]http://scriptplayground.com/tutorials/as/Building-a-Flash-Popup-Part-1/[/L][/L]
and I keep getting an error that it cannot find the action script file that is made in tutorial 1, even though I have it in the same folder as the movie. If anyone has suggestions, please feel free to comment.
Action Scripting Buttons In Movie Clips
I have created a simple movie clip with buttons that i want to goto different scenes . I tried to script it as the standard way in Flash 5 " On Release gotoAnd Stop (the scene)(1) but it will notload the scene when I test it. Is this because the buttons are in the movie and not on the main timeline? Am I using the wrong scripting procedure? I looked in my Flash MX book but they do not discuss the issue of buttons in a movie clip loading to other scenes.
I tested the button on my main movie and it works to load another scene but it will not when it is inside the movie clip.
I would appreciate any help I can get from the masters of the Flash MX universe, Karma points will be added to your life!!
Jean
Menu Scripting And Load Movie Issues
Hi, I'm a newb and I have run into a problem.
I'm working with a menu based on a book I received about a month ago.
It has a cool menu item that utilizes a button inside a movie clip component. The problem I'm having is that if I try to load a movie based on the movie clip on the stage, the "button" animation doesn't seem to work.
I have a little programming experience, and I'm trying to learn this stuff in my spare time. I have been working for about 5 hours on this particular problem.
I've included the flash file that I'm working on, so if anyone has an idea, I'm all ears.
BTW...it is Flash MX that I am using. I thought everyhting was going well and then BOOM..this hits me. It's a little frustrating to say the least.
I don't want to do all my flash with in-betweening as I've heard that will just slow down the movie. I want to have a fairly quick site so I have been diving into books at every opportunity.
I didn't see a problem similar to mine here, so I thought I would post this one.
thanks in advance for any help that can be offered.
Scroll Text Within A Movie - Scripting Issue...
Hi,
I have an issue I have now sat for HOURS on.
I hope sbd can give me a hand on this script. I have attached the file: It is only the first "window" (you'll see) that kills me. The script does not appear to identify the movieClip "txt_education" (telltarget) ... what am I doing wrong? Maybe I am using too many MC in MCs
Thanks in advance for any indication you can give me on this.
Action Scripting Movie Clips Newbie Help
okay, so i've pasted all my scenes into movie clips. Layer 1, for instance is the intro, Layer 2 is my main menu. The problem is that I thought after my movie clip frame plays the next frame should hold a stop action, then the next layer would play. This, of course,does not happen...What am I missing?
Loaded Movie Into Target Loses Scripting
I am trying to load a .swf file into a target movie. The .swf file is basically a simple interface that has lots of its own actionscripting. I am loading it into a target movie that has a mask applied to it. This way the loaded .swf file can be moved and scaled within the mask but still funtion as it would independently. Unfortunately when I load the movie most all of its scripting fuctions dissapear. Not all just almost all except for very basic functions like stop and rollover>go to frame. The rest is completely lost when the movie is loaded into a target with mask applied. When I try loading it into a _level, everything functions fine. But then I lose the whole masking effect which I do not know how to replicate with levels. Does anyone have any advice? Please?
I'm using flash mx 2004 with AS 2.0
Scripting Troubles For A Scrolling Movie Clip
Hey guys, I'm new to this flash scripting thing so hopefully someone can help me out here.
I'm using this movie clip to display text and a picture in a scrolling text box underneath a mask. This scrolling movie clip is controlled by an up and down button I created on the right side. When I publish this in .swf by itself, it works fine.
The problem I'm having is this page it is being used in is being called by a main page. My main page has a blank movie clip that calls in my page with the scrolling movie clip. When I hit the button to bring in the page with the scrolling movie clip, the page shows up, but the arrows dont work to scroll the text and picture the way it should. Instead it will only go down 1 line and back up 1 line with the text and the picture doesn't move at all. I've tried changing the path using a _parent and also a _parent._parent but nothing seems to work.
If anyone can help me that'd be awesome, and sorry for the long post.
- Mike
[F8] Scripting Buttons Witin Movie Clips
I need help writing the correct script to link buttons that are nestled movie clips. In short, I have a main timeline with Movie Clip #1, within it is Movie Clip #2, and within that, Movie Clip #3. In MC#3, I have a set of buttons, and when clicked, I would prefer each button to go to a particular frame number within the timeline of MC#3. All the tutorials I have seen so far only show how to get the button to take one back to the main timeline, which is not what I need. How would I go about scripting a button to go to the next frame in MC#3's timeline?
[MX] Simple Button Scripting To Load Movie
hi there, i have only recently got flash again after a long time not using it so bear with me.
i have the following script for a button:
btn_articles.onRollOver=function(){
this.gotoAndPlay(2);
}
btn_articles.onRollOut=function(){
this.gotoAndPlay(6);
}
i would like the code to include a on release load movie into movie_mc.
can anyone please help?
thanks
Scripting Buttons Which Are Part Of A Movie Clip
I have created a Navigation Bar with several buttons which animate on to the screen and taken together have been converted into a movieclip.
Each button in the movieclip needs to go to a particular scene. In the MOVIECLIP TIMELINE I select each button, one at a time, and in the actions panel under movie control I choose goto and play, and select the appropriate scene. I then return to the main timeline and test the movie.
The navbar comes on fine but when I click any of the buttons all that happens is that the navbar animation is played again (the movieclip). The rest of the stage does NOT change to the appropriate scene.
Does anyone know what I might be doing wrong here?
Flash MX-Mac
Thanks very much.
Jeff
[FMX2004] Movie Clip Scripting Issues
I just finished doing the Falling Snow tutorial on this site, and it works...My issue is::
HOW DO I GET THE SNOW TO STOP?
I want it to play through the first scene, but when I get to Scene 2 it is still going....Any suggestions? If it's a simple stop action, where do I put it?
Any help would be great thanks.
--Doug
Scripting In A Game Issue, Movie Clip Wanders Off..
ok, new problem, everyone..
http://www20.brinkster.com/ian424/85.swf
http://www20.brinkster.com/ian424/85.fla
ok, the movieclip hero kind of wanders after you stop telling it to move (arrow keys)
can someone help me with this? its kind of vital, or the clip can pass through walls..
When I Publish, The .swf Plays As A Movie, Action Scripting Doesn't Work
Using Flash MX, editing as existing .fla file that includes links/buttons created with action scripting.....
I can open and edit the .fla file with no problems.
But when I come to publish, the resulting .swf file only plays as a movie of my website, ie the buttons don't work thus you can't navigate the website properly.
What am I not doing?
How should I be saving / exporting / publishing so that the action scripting works?
Movie Popup
I am trying to make a popup window within my main scene. This popup window is is labeled a a movie symbol in my main library. does anyone know how to do this?
Popup Movie
can u tell me what the code is so when u click a button then another .swf movie will popup?
|