Image Slideshow Window Popup Problem
Php output:
&tekstA0=annonse&bildeA0=dress3.jpg&tekstA1=tes t a&bildeA1=dress13.jpg&tekstA2=aaaaaa&bildeA2=dress 12.jpg&
rader2=3
Flash script:
stop();
loadVariables("php/annonse.php","_root");
//Exicutes the code when i have the data from the php.
onData = function()
{
cellWidth2 = annonse_hoved_mc.annonse_cell_mc._width;
center2 = Stage.width/2;
raderA = _root['rader2'].substr(0,1);
//Make the moviclip scroll over the screen.vertical
_root.onEnterFrame = function()
{
reelSpeed2 = (_xmouse-center2)/20;
annonse_hoved_mc._x += reelSpeed2;
leftStop2 = center2-annonse_hoved_mc._width+cellWidth2/2;
rightStop2 = center2-cellWidth2/2;
if (annonse_hoved_mc._x < leftStop2){
annonse_hoved_mc._x = leftStop2;
}else if (annonse_hoved_mc._x > rightStop2)
{
annonse_hoved_mc._x = rightStop2;
}
}
//makes new movieclips by duplicating a moviclip.
for (i=0; i<raderA; i++)
{
originalClip2 = _root.annonse_hoved_mc.annonse_cell_mc;
newClip2 = originalClip2.duplicateMovieClip("cellA"+i, i);
newClip2._x = i*170;
newClip2.annonse_info_txt.text = _root["tekstA"+i];
content2 = newClip2.annonse_holder_mc;
content2.loadMovie("bildearkiv/" add _root["bildeA"+i]);
/*????????????????????????????????????????????????? ?????????????
The problem is:
this code makes a button function on the moviclips and runs the javascript.
The rest of the java code is in the html file.
The mening of this code is to open a new html window with the picture that i clikked on.
There are 3 moviclip showing with 3 diffrent images
When i clikk on one of the moviclip it opens a window.
The window contanes a image.
The images that are showing are all the same as the image that are showing in the last movieclip. I annyone knows a solution to this problem please post it in her
*/?????????????????????????????????????????????????? ??????????
myUrl = "java script:launchwin(
'bildearkiv/" + _root["bildeA"+i"]+', 'newwindow',
'toolbar=no,width=500,height=300,left=0,top=0,
status=no,scrollbars=no,resizable=no')"
_root.newClip2.onRelease = function()
{
getUrl(myUrl);
}
}
}
mychos
FlashKit > Flash Help > Flash ActionScript
Posted on: 03-31-2004, 12:38 PM
View Complete Forum Thread with Replies
Sponsored Links:
[FL8-AS2.0]Open Popup Window With Image From Xml
Hello everyone!
I made a different version of the carousel.
Practically my carousel is an image gallery and when i click on each thumbnail I would like to open a popup window with the bigger image(whose url is in the second attribute of the xml instead of the tooltip).
In the "for" loop just after i initialize the xml I load also the second attribute:
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function(){
var nodes = this.firstChild.childNodes;
itemNumber = nodes.length;
for(i=0;i<itemNumber;i++){
var t = home.attachMovie("item","item"+i, i+2);
t.angle = i * ((Math.PI*2)/itemNumber);
t.onEnterFrame= mover;
t.icon.inner.loadMovie(nodes[i].attributes.image);
t.popups = nodes[i].attributes.popup;
t.icon.onRollOver = over;
t.icon.onRollOut = out;
t.icon.onRelease = released;
}
}
function released()
{
for (var i=0;i<itemNumber;i++)
{
var t:MovieClip = home["item"+i];
getURL(??????????????????????);
}
}
But then in the moment of the release I really don't know where to crash my head.
I tried with geturl but I don't think it is the right approch for my intentions.
Can anybody help me, pls?
THank you!!
View Replies !
View Related
Popup Window From Open Image Link?
Hello,
I have dynamic text in my movie that when clicked opens different image jpgs in _blank window. I would like to be able to have the blank window open at a set size so that when the link is clicked it doesn't open the image in a full window.
This is the AS which creates the links. Any suggestions? Thanks
Code:
<a href='http://" + currAttribs.link + "' target='_blank'>
Keep in mind that I'm not calling actual html pages but rather jpg files to open in _blank pages.
View Replies !
View Related
Making An Image Popup In A HTML Window From Flash
Hi all, I was wondering, how do you make an image pop up in a window javascript style, from flash?
i have a variable in flash, equal to something like "images/image.jpg", and I want to make a button so when you click it it opens up a popup window thats a certain size, without menubars/scrollbars etc, to display that image, like a javascript on your standard HTML.
I read that flash has a javascript API, so there must be a way to do it huh? Is it getURL stuff, maybe with a POST of my variable?
View Replies !
View Related
Popup Style Draggable Window For Viewing An Image (bigger Version)
Hello again
I've been looking around for quite a while, and i'm surprised but i really cant find something so simple like i am looking for
Does anyone know a tutorial or example file of this:
I have a thumbnail and a button, when the button is clicked it opens a window within flash, which is draggable and has a button to close the window again. All that i would like to be displayed in this window is a image which is located from a variable with a value such as /images/thumbnail.jpg
I cant seem to find another site with an example to show it
View Replies !
View Related
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
View Replies !
View Related
Firefox Doesnt Display Image In "popup Window"
I followed the instructions from the tutorial "http://kirupa.com/developer/flash8/centered_popup_window.htm" and the popup windows opens fine in IE and Firefox, however when it opens in Firefox it doesnt display the image. Any ideas? the only code i changed was in the HTML and it was the width and heigth and took the scrollbars off oh and disabled resize. The image is a .png (transparent) thanks in advance.
View Replies !
View Related
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().
View Replies !
View Related
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!
View Replies !
View Related
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
View Replies !
View Related
Photo Slideshow With XML - Image Gap On First Cylce Through Slideshow
Hello,
I am new to this site, and I went through the tutorial on this site, "Photo slideshow using XMl and Flash, " http://www.kirupa.com/developer/mx20..._slideshow.htm
but I encountered a problem where my images lag the first time they cycle through all the images in the XML file.
The first time the flash page loads and starts the slideshow, I don't want the gap between the transitioning of the images where the movie backgound shows. I think it has something to do with the images loading for the first time, so I tried to load each picture in a different movieclip with an alpha of 0 before the slideshows starts, but it didn't work and there is still the gap between the images the first time the pictures cycle through the slide show.
Please offer any advice on how to stop the image lag the first time the slideshow cycle through all the images in the XML file.
View Replies !
View Related
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!
View Replies !
View Related
GetURL - Targetting The Parent Window Of Popup Window?
Hello!
Yet another thread on getURL but I did a search and couldn't find anything related to my question, so here goes...
I have a website which launches a 900x400 popup window which contains an interactive flash movie. From within this movie, I am loading in HTML from a text file which populates a scrolling textfield.
I was pleased to learn that href links within the text file work as links within the flash textfield. What I want to do is have these links open in the parent window that spawned the popup.
If I use target=_blank on these links, the pages open up in a new browser window.
If I use target=_parent on these links, the pages open up in the same popup window and obviously replace the flash movie content (goes to the link instead of launching it in the parent window).
Is it possible to use the _parent target to launch these links into the main website that spawned the popup or is _blank the only one?
If anyone has any tips or experience on this matter it would solve a huge headache for me.
Thank you!
View Replies !
View Related
[F8] Target Parent Window From Popup Window
I launch a popup window from a flash movie in the main window. When I close the popup window, I need to target the main movie to go to the next frame, depending on weather the the movie in the popup has played to the end. I tried making use of Javascript with a url quaryString when opening the popup:
window.open("popup.swf?variable1=stringvar")
I also tried Flashvars in the param and embed tags, but do not know how to send the flashvar to the popup. Then update the Flashvar when the movie in the popup is done. Then when I close the popup, communicate with the movie in the main window to go to the next frame.
This need to be done without php, cause I need to deploy this in a LMS environment.
View Replies !
View Related
Problem With Alert Window On PopUp Window
Hi guys,
I am making a Interview application in which i am showing a Pop window with close button enabled (using mx.managers.PopUpManager class) in which User can edit the content.
Now I want to track If User has changed the content and tried to close the Pop Up without saving changes. In this situation, So I tried to show an Alert window for confirmation to discard changes. Here I am getting Problem with Flash getting struck and giving message "A script in this Movie is causing to Flash Player to run slowly...blah blah". This is my problem.
I tried removing other Event Listeners also but no luck.
Thanks for your help.
pandu
View Replies !
View Related
Targeting Another Window From .swf In A Popup Window....
Ok...
I have an .swf in a small popup window.
At the end of this movie, I have a button.
I want this button to open the new link in the window that originally launched my popup window.
I'm aware of the javascript function "window.opener", but I'm not sure of the AS syntax I should use.
Can anyone help me out with this?
Thanks so much.
Tone.
View Replies !
View Related
Popup Window Instead Of Explorer Window?
I see alot of websites that when you open them the first thing that comes up is a smaller window that is not resizable. Then after either watching the intro or bypassing it, the main page opens in the explorer window. How is that done? If I have a two swf files and I want one to be the intro page and the other to be the main page how do I make the first swf file viewed in a "popup window"?
View Replies !
View Related
How To Constrain A New Popup Window Window
Hi all,
This is just a quick question which I am hoping has a few lines of code as the simple solution.
I have a mvie clip in flash that resides in a html page. When you click a button in the swf the actionscript tells it to open a new window to display the link.
What I want to know is how do I do it so that when it opens it contrains the new browser window to a certain size,
Any help would be much appreciated.
Thankx pixelmagik
View Replies !
View Related
Image Slideshow Cant Remove Previous Image
Hi there I have a basic image slide show loading external images that fades out after each image and then I want to load the next image. However I can't figure out how to remove the old image, at the moment when the image fades out you can see all the previous images fading out too.
Here is the code I am using:
Code:
var imageNo:Number = 1;
ImageLoad("images/home/" + imageNo + ".jpg",imageHolderMC);
// image preloader
function ImageLoad(u:String,target){
var targetClip = target;
var _loader:Loader = new Loader();
var request:URLRequest = new URLRequest(u);
_loader.load(request);
targetClip.addChild(_loader);
_loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
_loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
}
function loadProgress(event:ProgressEvent):void {
var percentLoaded:Number = event.bytesLoaded/event.bytesTotal;
percentLoaded = Math.round(percentLoaded * 100);
}
function completeHandler(event):void {
imageHolderMC.alpha = 1;
imageHolderMC.addEventListener(Event.ENTER_FRAME, fadeOut);
function fadeOut(evt:Event):void {
if(imageHolderMC.alpha > 0){
imageHolderMC.alpha -= .02;
} else {
imageHolderMC.removeEventListener(Event.ENTER_FRAME, fadeOut);
imageNo++;
ImageLoad("images/home/" + imageNo + ".jpg",imageHolderMC);
}
}
}
I think it is something to do with removeChild() but I can't figure out where to put it.
Any help would be really er... helpful!
Cheers,
Bob
View Replies !
View Related
Xml Slideshow Tutorial - Fade From Image To Image?
I am building a slideshow for a client based on Kirupa's fantastic tutorial http://www.kirupa.com/developer/mx2004/xml_slideshow.htm
I want to change it so that instead of new images fading in from the background color, they fade from image to image. To that end, I have created another instance of the image mc the same as "picture" but called "bg_picture". I have placed it in the same layer as picture, but sent it to the back so it would lie behind the main picture.
My thought was to load the current picture as a background picture before p got incremented (or decremented) and the new image fades in. That way, the fade will be from one image directly to the next. I have edited the code as follows:
Code:
function nextImage() {
if (p<(total-1)) {
bg_picture.loadMovie(image[p], 1); //added this line
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
slideshow();
}
}
}
When I test the flash file, the slideshow performs as expected except that when the new line is called, the image showing blinks out to the background color momentarily, then reappears before the new image fades in.
I thought it might be a question of the background image not being preloaded, so I tried the following code to force the background image to load before the transition starts. Unfortunately, there was no discernable difference in the display.
Code:
function nextImage() {
if (p<(total-1)) {
bg_picture._alpha = 0; //added code starts here
bg_picture.loadMovie(image[p], 1);
bg_filesize = bg_picture.getBytesTotal();
bg_loaded = bg_picture.getBytesLoaded();
if (bg_loaded == bg_filesize) {
bg_picture._alpha = 100; //added code ends here
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
slideshow();
}
} //added code
}
}
Does anyone have any idea what I can do to have this transition smoothly?
View Replies !
View Related
Popup Window Loading Extra "object" Window For No Reason...
hey all. Following this thread on the subject of popup windows...
http://www.flashkit.com/board/showth...hreadid=397960
Using the code from the Flash-db.com popup window page, I'm getting a second window opening up on top of the window that is supposed to load. The second window contains nothing except the word "object".
sample of code
on (release) {
getURL("javascript:NewWindow=window.open('http://hybrid.concordia.ca/~4919580/dfar351/guineapig/photo/26.html','newWin','width=640,height=520,left=0,top =0,toolbar=No,location=No,scrollbars=No,status=No, resizable=No,fullscreen=No'); void(0);");
}
I'm wondering if it has to do with possibly my personal browser specific settings, or if anyone else gets the extra window as well? No one in the thread mentioned anything about it, but it's driving me nuts... help is greatly appreciated.
ry
View Replies !
View Related
Popup Window
hi everyone,
i want to open a new browser window with no scrollbar or topnav at a set size and a set location. anybody know the code to do this from a release button action?
View Replies !
View Related
Popup Window
Hey,
alright i have a flash enter page. i have a button that says enter, when i click on that button i want a popup window with my page on it. i want that window to have no toolbar. what actionscript do i put on the enter button to make this happen?
L8
View Replies !
View Related
Popup Window
How do i get my flash movie to popup into a seperate window with no browser stuff from my html link. example http://www.smithsports.com
thanks for your help
View Replies !
View Related
PopUp Window
I have a index html page where there is a button that when pressed it opens a popwindow with my flash movie. Now it looks fine in Netscape but in IE 5 the window is about 10 pixels off around the border . Does anyone have a script that will fix this I just want the flash movie to fit excatly to the popup window .
View Replies !
View Related
POPUP Window -- WHY?
Why do alot of Flash sites pop up in a 'Tollbarless' window? Ive done several all-flash sites and have never done this before. Is there a specific good reason?
Please infor me.
Thanks---and this is nothing more than a basic Javascript popup window with No toolbar, etc. etc. and Loaded with the SWF file only correct?
Thanks again. tvance
View Replies !
View Related
Popup Window
I need to center a popup window relative to the viewer's screen. Right now I'm using this code:
<HTML>
<HEAD>
<TITLE>index</TITLE>
<SCRIPT LANGUAGE="Javascript">
function OpenPopup()
{window.open('aitest.html','window','toolbar=0,loc ation=0,directories=0,status=0,menubar=0,scrollbar s=0,resizable=0,width=600,height=400,top=0,left=0' );
}
</SCRIPT>
</HEAD>
<BODY ONLOAD="javascript:OpenPopup()"bgcolor="#FFFFFF">
</BODY>
</HTML>
Any help is appreciated.
View Replies !
View Related
Popup Window In IE6
Hello to everyone,
Anyone knows how to open a popup window in IE6, I've tried all the codes I had but none of them works.
I want to open it without toolbar,address bar....
Thanks in advance...
Andres
View Replies !
View Related
More Then One Popup Window?
Ok i finally worked out how to get a popup window to work from flash but i can only get one to work!!?
Button in flash contained this:
getURL ("JavaScriptop();");
The html file has this code in it:
<SCRIPT LANGUAGE="JavaScript">
function pop()
{
window.open("popup.html","","height=250,width=525, left=0,top=0");
}
</script>
How do i make another button to open another file??
View Replies !
View Related
Popup Window
I'm trying to open multiple popup windows from within a flash movie.
I obtained the following script:
<SCRIPT LANGUAGE="JavaScript">
function pop() {
window.open("popup.html","","height=200,width=200, left=0,top=0");
}
</script>
That means that a specific button in the flash movie will execute the 'function pop()' command and open #popup.html'.
But what if I have another button which is supposed to open another, different popup window? If it executes another 'function pop()' command it would open again 'popup.html'? How do I have to alter the command to open a different url?
Thanks a lot.
View Replies !
View Related
Popup Window
the problem which prevents me from sleeping:
index.html incorporates a button that opens movie.html which has movie.swf embedded (window size: 500x450)
Once movie.swf is open, the swf-file has 3 buttons:
Button A, Button B, and Button C.
If Button A is clicked, popup window A (which includes another swf-file A) is opened (size of the popup window: 200x200)
If Button B is clicked, popup window B (which includes another swf-file B) is opened (size of the popup window: 210x500)
If Button C is clicked, popup window C (which includes another swf-file C) is opened (size of the popup window: 300x450)
I’m desperate to find the correct javascript codes for those actions.....!!! How can I open differently-sized popup windows with specific contecnt from within the main swf-file??
U can’t imagine how much I thank u for your advice.
Thank You.
View Replies !
View Related
Popup Window
I'm having difficulties with borderless popups. I have added this JavaScript to my index.html in which all the swfs open/load:
<SCRIPT LANGUAGE=JavaScript>
function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}
and I've added this action to a button:
on (release) {
getURL("javascriptpenNewWindow('my.html','thewin ','height=400,width=400,toolbar=no,scrollbar=no')" , "_blank");
}
But it doesn't work. A new window opens, but with the "javascriptpenNewWindow etc" in the url/address field and nothing else happens.
What am I doing wrong?
View Replies !
View Related
Popup Window
Im using flash mx and I want to open a new window without any toolbars, scrollbars or anything except the title bar.
It needs to be 547px*398px and what I really want to know how to be able to do, is, make it popup in the center. Of the screen no matter what resoulution the users screen is at.
View Replies !
View Related
Popup Window From A Popup Window
I can call a popup window from my Flash MX movie without a problem, but when I display my Flash MX movie from within a popup window, it won't bring up a new popup window.
I have placed the java code in all of the html files.
Any help is appreciated.
View Replies !
View Related
PopUp Window
I am displaying a swf file in a popup window.When i try to close the window by clicking on close button my swf gets unload but not the movie.
I have written the code.
on release()
getURL("javascript:window.close()"
Second thing i want to change the name of the ppup window.I have written the code as
On release()
getURL(javascript:window.open("intro.swf","DEMO"," width=600,height=500")
But it is not taking the name of the window as demo.
All this is done in FLASH 5.
Please help me out as this the last stage of my project.
View Replies !
View Related
Popup Window
hi i want my window to pop up in the middle of the page but it allways pops up in the top left ???? can anyone help
on (release) {
getURL ("javascript:NewWindow=window.open('http://www.my site.html','newWin','width=400,height=300,left=0,t op=0,toolbar=No,location=No,scrollbars=No,status=N o,resizable=No,fullscreen=No'); screen_width = window.screen.availWidth; left_point = parseInt(screen_width)-400; setTimeout('NewWindow.moveTo(left_point,0)',100); void(0);")
i think its the left=0,,,,e.c.t. but i am not sure
View Replies !
View Related
Help With Popup Window
Hi...I have my thumbnail as a button and I want to open "pic1" in a popup window. Can anyone help with the actionscript to open "pic1"? Right now, I have my larger pictures (jpegs)(pic1 - pic18) in the same folder as all my other flash files. I have about 18 thumbnails that I want to open in there seperate windows if the viewer chooses....how do I do it??? Do I have to put them each in an html file then open them that way, or can I open them just as they are in jpeg format?
View Replies !
View Related
Popup Window
hi
is it possible to specify a popup window opening centre of the browser within flash? or do I have to add a javascrip function to the html of the popup?
thanks
ravenotice
View Replies !
View Related
Popup Window Help
Ok I have a website that is flash and I want to add JavaScript style popup windows without a browser or any of that stuff. I make my buttons and put them in and this is all on one page so I need to find a way to make all my buttons open to there specific windows. I also when back and used a code from the boad to see if it worked and it did but what I need is a code that makes it possible for me to resize the windows once I've published flash and all that and I also need to add scrollbars to each window. I want the windows to be able to be different sizes set to there specific page once you click the link. I hope this makes sense and I hope some one can writing me out a code that I can add to my html and a code to put in the getURL action in flash for each button...Please help...Thanks
View Replies !
View Related
|