Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Loading External Image Into A New Window...



I am working on an online catalog for someone, and he wants a bigger version of each image to pop up in a new window when clicked upon. I have the javascript, but what would be the proper code for the button? Would I have to make a swf out of each graphic and use LoadMovie or can I just use plain graphic files, like .jpg?



ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 09-22-2005, 03:31 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Loading External SWF's Into A New Flash Window Instead Of A Browser Window?
I have this flash presentation where I have buttons when clicked on, a (_blank) browser window pops-up and begins playing external SWF's.

The problem is that, with windows XP, every time I click the button(s) to have the browser window pop-up, to play my externals, the damn 'virus protection notification' thing pops-up first, asking me if this content is allowed. Is there a way to turn this off? My client does not want to have to "allow" the browser to play the external SWF's everytime. I've tried everything but no luck.

Better yet, is there a way to have the external SWF's pop-up in a totally new flash window, on top of the main (presentation) window? I don't want the external SWF's playing in the same window, but rather show in a new window entirely. Can anyone help me? This project is past-due and it needs to go out today. I'll attach the current scripting I'm using so far, if it helps. Thanks so much!



bottingsAd_mc.onRelease = function() {
getURL("exampleAds/bottingsports2_001.swf", "_blank");
};

Load External Image In New Window
Hi, how do i load an external image from a button so it opens in it's own pop up window?
Thanks guy,
Mark.

Loading External Image > Image Appears Invisible
Hé,

I'm not posting here very much, so hi to anyone new.
I tried search for a solution to my problem, but I couldn't find one.

I'm using a button to load an external image:

code: on (Release) {
_root.temp.loadMovie("img.jpg");
}

Don't worry, both img.jpg and _root.temp (a box-shaped MC) excist.

When I press the button, _root.temp should be swaped by the image. Instead, it disappears, but no image appear. I have absolutely no idea what I'm doing wrong! I'm using Flash MX btw.

Here are my files:

http://www.cmd.tech.nhl.nl/users/regne200/test/

Auto Window Resizing To External Image?
Hi,
I have created a swf with an image library made up of thumbnails.
When you click on a thumbnail it loads an external image into a new browser window.
I would like that browser window to resize to the image, and also to lose all its attributes, like address and status bar etc.

Here is the code I currently have attached my thumbnails/buttons:

on (press) {
getURL('gallery/001.jpg', 'blank');
}

What do I need to add to this?

Chich.

Loading An External Swf Into New Window
this may be posted before...but i couldnt find it.

im trying to load an external swf file into a new window, like a link that you press and it loads up a swf file. can anyone help me with that?

Loading External Swf Into A New Window?
Hi I was wondering if anyone knows how I would load an external swf file into its own window? If you cold show me what code to use that would be a huge help!

Thanks

Loading An External .txt Into A Scrolling Window
I am trying to make a news section that my client can update with a .txt file. I have gone through the tutorial for scrolling (which is great) and it uses a .txt, but uses it to generate .html to place in the actionscripting. The second part of the tutorial says it will load an external file in it, but I couldn't seem to find it (did I overlook something?)
So...
1. I need to have a .txt file load automatically into a scrolling window without access the .fla. Is that possible?
2. I couldn't figure out how to have a link in the scrolling text. I checked the html option for the dynamic text, but...

I have also tried using a DHTML scroller, but it doesn't seem to have a way to load a .txt file, either. I am a novice when it comes to this programming stuff, if you haven't gathered! Thanks.

Loading External .swf Files Into A Pop-up Window
I was successful using getURL to target a website address and entering code into a html file. Now, from the mc button, I'd like to get a pop-up to work using an external .swf or.mov file.

Loading External Jpg Into Draggable Window
I am having problems loading an extenal jpg into flash 5 into a draggable mc called 'draggable'.
I have created a mc called 'slide' within the 'draggable' mc on a seperate layer from the drag window graphics, but am stuck on the right actionship to apply to 'slide' to make the external jpg load.

Anybody

KAINCJ

Loading External Swfs Into New Window
How would I go about loading an external swf into it's own window?

This is the as I'm using:

btn1.onRelease = function () {
loader1_mc.loadMovie("surfer.swf");

}


Thanks

Loading External Swfs Into New Window
How would I go about loading an external swf into it's own window?

This is the as I'm using:

btn1.onRelease = function () {
loader1_mc.loadMovie("surfer.swf");

}


Thanks

[F8]Help Loading External Text In New Movie/window
I basically want to set up a library or reference source from hundreds of text files I have, and be able to reference multiple text files at one time using multiple windows/movies/swfs.

So I need to be able to have a button that would open a new blank swf (based on a template with scroll?) and then this would open the requested text file. Is this remotely possible? I know I can load external text files into a scrolling box, but is it possible to do what I am trying to do without creating a swf for each text file?


Thanks,
Hal

Loading External Text Into A Attachmovie Window
Hello all,

The current project I am working on is: http://www.steadyscene.com/clubaddiction

The owner would like to update the INFO, CONTACT and LINKS sections of the site but does not have Flash. Having the owner edit a text file in notepad and then upload that to the server would be ideal. (I have seen the Kirupa tutorials but they do not satisfy my requirements)

What I want to accomplish seems to fall in the "Loading external text into a flash movie" category.

However, here is my situation and here are my requirements:

- The text has to be loaded into a attachmovie window. The buttons on the site use attachMovie which snap to an empty mvie clip called "HOLDER"

- currently on the site, you see that I have created standard Dynamic Text boxes with the instance of "infotxt". So the instance name needs to stay as it is, unless there is another method that accomplishes the same thing. This is a basic method of scrolling the text box with a button, using simple actionscript:

on (press) {
infotxt.scroll
infotxt.scroll -= 1; }

Currently, when the navigation buttons are clicked, the attachMovie are loaded into the empty mc "holder". Once the attachMovies are loaded, you see dynamic text fields with buttons to scroll.

Please provide feedback as to what to implement to satisfy my requirements.

Regards,
Daniel

Loading An Swf Into An External Window And Other Scripting Queries.
how you all doing? beginner here...
i have a page with some photo thumbnails, each have been given an instance name.
if i want to load them into an external window, what code should i use?
the layout is 6 pics on one page and each should load in its larger size in another window.preferably once one is loaded and another thumbnail is clicked, the old one could disappear. i've already made individual swf's of the large size pics.
any help would be greatly appreciated!

also, i've always wondered...but on most sites that have preloaders, how does the preloader always show up b/w each sections. say i have my preloader in keyframe 1, with the script written...and each section on say keyframes 10, 15 and 20 resply. is there a script that one needs to put down [like a gotoAndPlay(1)] to play the preloader each time a section button is clicked and the page is loading?

Loading External Text Into A Attachmovie Window
Hello all,

The current project I am working on is: http://www.steadyscene.com/clubaddiction

The owner would like to update the INFO, CONTACT and LINKS sections of the site but does not have Flash. Having the owner edit a text file in notepad and then upload that to the server would be ideal. (I have seen the Kirupa tutorials but they do not satisfy my requirements)

What I want to accomplish seems to fall in the "Loading external text into a flash movie" category.

However, here is my situation and here are my requirements:

- The text has to be loaded into a attachmovie window. The buttons on the site use attachMovie which snap to an empty mvie clip called "HOLDER"

- currently on the site, you see that I have created standard Dynamic Text boxes with the instance of "infotxt". So the instance name needs to stay as it is, unless there is another method that accomplishes the same thing. This is a basic method of scrolling the text box with a button, using simple actionscript:

on (press) {
infotxt.scroll
infotxt.scroll -= 1; }

Currently, when the navigation buttons are clicked, the attachMovie are loaded into the empty mc "holder". Once the attachMovies are loaded, you see dynamic text fields with buttons to scroll.

Please provide feedback as to what to implement to satisfy my requirements.

Regards,
Daniel

Loading External Image N2 MCs
Can we call an external .jpg or .gif into an 'empty' movie clip of a Flash movie?

Just got a call from a guy who wants me to call an external image into a premade Flash template which contains an imported image which will be overlayed.

I don't hava all the details, but it's like this. The Flash template is a mailbox overlay of like tole painting or some crap like that.

He wants to be able to have a folder in which a customer submits the image of his/her mailbox, it drops into a folder and is immediately read, via loadvariables (of some sort) and the customer can see what a beautiful mailbox it would be with the elfen paintings on it, via the overlay template.

I know how to bring in text and .swf movies, but I'm not having much luck bringing in straight up .jpg or .gif images per loadvariable.

Any guidance would be greatly appreciated. Thanks.

External Image Loading?
Hi, I already posted this question, but the solutions didn't help...

Now I've attached a file, so if anyone can help me?

I want to load an external image(.jpg) into a movie...

What am I doing wrong?

I've used loadmovie().

Thx already,

ilClandestino

Loading External Image In MC Only Once
I wonder if anyone would be kind enough to help me out.

I'm trying to load an external image into a placeholder inside a MC that reloads everytime the fame is loaded. Because of this the image loads time and again and i get a screen flicker. Can anyone tell me the code to load the image at the begining of the swf and only call it once inside the mc.

I'm a actionscript newbie and i'm just using the following to load the image inside the mc and then resize it:

loadMovie("images/image02.jpg", "pic01");
_width = 21;
_height = 21.4;
resize("pic01", _width, _height);

I know i'm probably being dumb, but i just don't know how to do it

Loading External Image
Im trying ot load an external image with this line:


Code:
_root.a1.loadMovie("./imgs/a1.jpg");
I used it on another scene, and it worked ok. But on the scene this line is, the image do not appear. I assure you the name and path of the image is correct, and that the MC is called "a1".
This is not the first time it happens.
Any ideas?
Thanx in advance

Loading External Image
Hi,
Can anyone explain to me how do I load an image into an empty movieclip that I used to load a text file. Is loading the text file and image the same way?

Cheers

External Image Loading Help Please
I am currently trying to load 10 different jpgs into a tweening movie (basicly fadeing in from alpha 0) and these will follow a simple time line one fadeing in after another, i can do this with swf files, but this needs to be done with jpgs from another directory.

External Image Loading
I need soime help retrieving an external image using actionscript. I tried loadMovie(), attachMovie, and loadVariables() but it doesn't seem to respond. Perhaps I'm using them wrong. The attached fla file is a partial sample. the process is simple: click on Project button (left) and the project image and description pops ups (right). can someone help me out with this seemingly simple problem. Thanks in advance.

External Image Loading
for (a=0;a< My_TotalSlides;a++)
{
thumbnails_mc.createEmptyMovieClip(("t" + a), (1001+a));
thumbnail[a] = My_ParentNode.childNodes[a].attributes.filename;
thumbnails_mc["t" + a].loadMovie("photos/" + thumbnail[a], 1001+a);
thumbnails_mc["t" + a]._xscale=20;
thumbnails_mc["t" + a]._yscale=20;
_root.mcwidth=thumbnails_mc["t" + a]._width;

}


The above script works fine expect for the last line (_root.mcwidth=thumbnails_mc["t" + a]._width. can anyone please help? I need to know the width of the images that are being loaded.

Loading An External Image
Hi -

I have a page with text variables that load external text from a .txt file.

I also want to be able to define an image to load from the same .txt file and be next to the imported text on the page.

How can I do this?

iam using CS3 and AS3 also...

Thanks

External Image Loading
I have created a slideshow using LoadXML. The slideshow changes images every 3 seconds and there is a manual navigation element as well where the user can stop the show and go forward and back with individual buttons. The problem I am having is that sometimes the image does not load quick enough but the slideshow moves on.. missing some images. How do I tell flash to make sure the image as loaded completely before continuing on to the next image?
any help would be greatly appreciated.

Help Loading External Image
hi all
i need to know how to load external image with scale it down like the loader component but i don't want to use the loader component

thanks

Loading External Image
Hi,
Can anyone explain to me how do I load an image into an empty movieclip that I used to load a text file. Is loading the text file and image the same way?

Cheers

Loading External Image
Hi,
Can anyone explain to me how do I load an image into an empty
movieclip that I used to load a text file. Is loading the text file
and image the same way?

Cheers

External Image Loading
I’m looking to load random backgroud jpg’s into a Flash movie upon load. These images will just sit there looking pretty. Ultimately, I will likely have an additional image with a higher “depth” that I will set a blend mode on – blending with the stationary background images.

My questions:
Is a loader instance the best “container” for this approach?
Would using a Sprite be a better practice & why?
Commonplace to put loader instances inside(as children) of sprites? – beneficial here?
Anything wrong with sending various images to the same loader instance or is that the logical solution?

Thanks

working test so far


PHP Code:



//constructorsvar imgLoader:Loader = new Loader();var sRequest:URLRequest = new URLRequest("images/bg/plants.jpg");//event handleimgLoader.addEventListener(Event.COMPLETE, onComplete);imgLoader.load(sRequest);addChild(imgLoader);function onComplete(evtObj:Event):void{        trace("loaded");    }//----------------------------------------------------//test button to verify multiple images go into single loadervar spr:Sprite = new Sprite();spr.graphics.beginFill(0xFF0000, 1);spr.graphics.drawRect(0,0, 100, 22);spr.graphics.endFill();var btn:SimpleButton = new SimpleButton();btn.upState = spr;btn.overState = spr;btn.downState = spr;btn.hitTestState = spr;btn.useHandCursor = true;btn.x = 20;btn.y = 20;btn.addEventListener(MouseEvent.CLICK, clickHandler);addChild(btn);function clickHandler(event:MouseEvent):void {          imgLoader.load(new URLRequest("images/bg/tulips.jpg"));     } 

Loading An External Image
From the tutorial "Loading an external image" I learned how to load an image externally using AS3. My question is how do I apply tweens to the image once it is dynamically loaded. I was able to do a simple motion tween but I couldn't figure out how to stretch it, resize it, or even see the image to make sure the crop works within the design of the page. Any thoughts?

Loading External Image
Hi,
Can anyone explain to me how do I load an image into an empty movieclip that I used to load a text file. Is loading the text file and image the same way?

Cheers
:( :( :confused: :confused:

Help With External Image Loading
I am new to Flash and have been searching for an answer that I could understand to solve this problem, but I cannot.

I realize that there may be a better way to do what I'm doing, but this is the best way I could figure it out.

I have create a simple scrolling slideshow and used the UILoader component to make external images load into each frame.

However, after I did this, the images load each time the slideshow changes so I have a second of just white background before the next image shows. How do I make this a smooth transition? Do I need to create code to have the external images preload and stay loaded while the movie is running?

I have attached my .fla file and photos. Please advise!

~Mike

Loading External Movie In A Target Window With Its Size
Okey I have a root movie and when I press button my external movie loads:
on (release) {
loadMovie ("logo.swf", "main");
}

The name of movie is logo.swf and I wanted it to load in a specific target window which in that case would be main (a movieclip symbol). Problem is that it get rids of window (which is fine) but it also loads movie with its original size. So I have a root movie with something on right corner that looks like logo. But I want it to be in the window with size of that window. So how do I do load movie into spefic target with target's size.

Loading An Image From An External Source
how can i load an image from an external sourse when my project has been compiled.

i want to be able to load an image into my flash project from a certain url.

can this be done?

Lookin For Help(loading External Image)
as we can load the external text file by using
loadvariable;

what i want to ask is?
is it possible to load external image.

External Image Loading Whha?
Does anybody know if thres a way to load an external image into a flash movie? I'm trying to make a dynamically updatable portfolio that loads using LoadVariable so I have the text ready but I want to put images too. Any help would be appreciated.

Loading External Image Files
I am trying to find the best or easiest method to load external image files into a movie... Any ideas?

THANKS!

Loading An External Image In Movie
Hi,

I want to display an external image(gif, jpeg,png,...) into a flash movie at a certain position.

can anyone help me out?

thx already,

ilClandestino

Loading External Image Problem
I am using flash mx when i use

loadMovieNum("image.jpg", 1);

to load an external image in a movie it appears at the top left of the screen if the image size is smaller than my movie size.
How to currect this if i want the position of my movie to be at x 100 and y 200 or is there some other way.

Thanks for any help in advance .

Loading External Image Under Mask?
Hi all,

I noticed that my question comes up quite often, but I haven't seen a definite answer on this. Is it possible to load external images into a movie under a mask?

I am using Flash MX 2004. I hope someone can help me out here.

Currently I am using the following code:
Code:
loadMovie("pic1.jpg", "_root.fotoblok.picholder");


I also tried to no avail:
Code:
loadMovie("picholder.swf", "_root.fotoblok.picholder");


Thx in advance.

Regards,

RF

HELP External Image-loading Problem
hey there!

i'm making a website for a client of mine.
i've made an dynamic textbox where he can type in his own text.


my question is:

can he also (up)load pictures somehow without having a perticular place reserved for it on the flashpage? like in the textbox or whatever??


hope you can help me out
thanks a million!

[F8] External Image Loading Woes
Not everything is in the most cleaned up of states because I'm just trying to get it working before I refine it all. If you'll test the movie you'll see in console something like:

DEBUG: loadNewImage: finished loading images/ad7.jpg (43084bytes) in holder: _level0.images.holder1
DEBUG: holder: its loaded and width=573 and height=362 and totalBytes=43084

But some of those images will be of width and height 0, which, of course, means they won't show up at all. The movie clip is supposed to resize correctly when the image is finished loading. It seems like some of them do and some don't. It changes each time I run it. The fla and the images I'm using are attached.

Here's one bit of code:

Code:
function loadNewImage(url:String){
myMC.loadMovie(url);
this.onEnterFrame = function() {
myMC.stop();
myMC._visible = false;
if (myMC.getBytesLoaded()>25 && myMC.getBytesLoaded() == myMC.getBytesTotal()) {
trace("DEBUG: loadNewImage: finished loading " + url + " (" + myMC.getBytesLoaded() + "bytes) in holder: " + this);
status_txt.text = "url = " + myMC._url;
loadedStatus = true;
myMC._visible = true;
//myMC._width = 500;
//myMC._height = 500;
trace("DEBUG: holder: its loaded and width=" + myMC._width + " and height=" + myMC._height + " and totalBytes=" + myMC.getBytesTotal());

this.onEnterFrame = undefined;
}
}
}
A smaller issue is that of the next and previous buttons. There's a function on the third frame of the Advertising scene called checkFades() that is supposed to call fadein and fadeout function in the next_btn_mov and previous_btn_mov symbols when they're at the last or first image in the series. It doesn't and, of course, since this is flash there are no errors giving indication of whats wrong.

Thx in advance.

Loading External Swf On Sliding Image
hi there

I was looking through the flash demos on flashkit, for examples of what I am trying to do, I found something but the problem I have now is trying to understand what script is used to load in an external swf.

For example the zip folder example_01.zip attached to this thread contains the fla example. there are three buttons at the bottom, when you click the button the image slides across to the next section. Because this is done with the script

on (release) {
/:xpos = "647.4";
}

the number being the position along image, how do I then get an external swf to load in once the image has slides across into positon. I understand I could just attach a 'loadMovieNum' to the buttons, but this would mean that the movie loads in straight away as soon as button is pressed before the image has stopped sliding into position. Does this make any sense????

basically ,once the image has stopped moving into position I would then like an external swf to load in.

get any one explain a little more on how this is done, I'm still trying to get my head round action script so please go easy : ) Please would you have a look at the example file and tell me what you think!

....many thanks

External Image Loading Problem
Hi, i've made a gallery, which loads external jpg's using loadMovie("images/"+ct.text+a+"1.jpg", "img1");. Everything was perfect until i uploaded it to the server. The images don't come up. Any idea what happened? If u need some more details go ahead, i dunno what else to add.

MX 7.0, AS 2.0, WinXP.

Loading External Image Slideshow
Does anyone have any info on creating a slideshow that loads external images? I only want to load about 10 and then for it to end on a final frame... just not sure how to do it... any help would be greatly appreciated!

Loading An External Image And Using It's _height Value
I'm trying to load images of varying heights that will have text loading underneath the images, dynamically from an XML source. This is working in multiple sources, not just the flash.

The major problem I'm having is that I'm trying to get the _height value from the image that is loaded into the movie in the NEXT part of the code, to set the text beneath it.

No matter what I try I can't seem to get the code to 'wait' for the JPG to load before taking the _width value for the text, so it comes out as '0'.

Forgive the code being a mess, I've been trying so many things, here's the core of the specific problem area:


Code:
var thumbListener:Object = new Object();

thumbListener.onLoadInit = function(thumb_container:MovieClip) {
thumb_height = thumb_container._height;
};

var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(thumbListener);

var currentThumb_mc = createEmptyMovieClip("thumbnail_mc"+portfolioLoopIndex,portfolioLoopIndex);
currentThumb_mc._y = portfolioCounter;
var thumb_container = currentThumb_mc.createEmptyMovieClip("thumb_container",portfolioLoopIndex);
mcLoader.loadClip(""+portfolioNode.childNodes[4].firstChild, thumb_container);

[F8] External Image Loading Woes
Not everything is in the most cleaned up of states because I'm just trying to get it working before I refine it all. If you'll test the movie you'll see in console something like:

DEBUG: loadNewImage: finished loading images/ad7.jpg (43084bytes) in holder: _level0.images.holder1
DEBUG: holder: its loaded and width=573 and height=362 and totalBytes=43084

But some of those images will be of width and height 0, which, of course, means they won't show up at all. The movie clip is supposed to resize correctly when the image is finished loading. It seems like some of them do and some don't. It changes each time I run it. The fla and the images I'm using are attached.

Here's one bit of code:

Code:
function loadNewImage(url:String){
myMC.loadMovie(url);
this.onEnterFrame = function() {
myMC.stop();
myMC._visible = false;
if (myMC.getBytesLoaded()>25 && myMC.getBytesLoaded() == myMC.getBytesTotal()) {
trace("DEBUG: loadNewImage: finished loading " + url + " (" + myMC.getBytesLoaded() + "bytes) in holder: " + this);
status_txt.text = "url = " + myMC._url;
loadedStatus = true;
myMC._visible = true;
//myMC._width = 500;
//myMC._height = 500;
trace("DEBUG: holder: its loaded and width=" + myMC._width + " and height=" + myMC._height + " and totalBytes=" + myMC.getBytesTotal());

this.onEnterFrame = undefined;
}
}
}
A smaller issue is that of the next and previous buttons. There's a function on the third frame of the Advertising scene called checkFades() that is supposed to call fadein and fadeout function in the next_btn_mov and previous_btn_mov symbols when they're at the last or first image in the series. It doesn't and, of course, since this is flash there are no errors giving indication of whats wrong.

Thx in advance.

Loading An Image From External XML File?
Hello! I am trying to load an external image via an external XML file into Flash. I have Flash loading a CSS and XML file ... which works great ... but I want to call an image to load in as well ... how can I do this? The only threads that I have found regarding this are tut's for NON external XML. Thank you so much.

Sincerely,
Brian Griffith

Help In Loading External Image And Sacle It Down
hi all

I need help to know how to load external image and scale it down dynamically like the loader component

thanks

Copyright © 2005-08 www.BigResource.com, All rights reserved