ActionScript 2.0 :: Load Image Into Separate Swf?
Oct 15, 2007
I'm building a gallery on a website with lots of different size images. I've got all my buttons set out in one swf and placed on the page and I want to put a seperate swf on the page to display the images. The only problem is I can't work out the script to put on the button to open the image in the 2nd swf.
View 1 Replies
Similar Posts:
Aug 15, 2009
i've been reading and searching all the related articles but still in the dard...i've 2 movies m1 and m2 - in m1 there are thumbnails and in m2 i need to open the zoomed view of appropriate thumbnail - both the movies are on same page but in different cells of a table.
View 2 Replies
Nov 11, 2009
I've seen this done on many sites (it even happens on here when attaching links), where the screen darkens and an image gallery or form loads.
My question is, can this be done through Flash, but more importantly how to load a swf file this way. I noticed that the new Nike Running site has done it for their login functionality, where it loads the login box on a darkend screen, not sure whether the actual login is Flash but it's opened from within Flash.
[URL]
View 1 Replies
Mar 28, 2010
I'm now writing a simple socket application for my own learning purposes. It will be a really simple BlackJack application.I was thinking for ways to manage 52 different cards in my app. I could make those 52 cards, as 52 images and then, maybe load them into movieclips at runtime. Or, I could take one big image with all of the cards on it, and create a masked movieclip, and then, shift and slide the image's position, so that the correct graphic of the card shows.y question is: which way is faster? Will flash be better with handling 52 small images, lets say 20x40 (in reality, i will only load like 6 of them in the display list, since black jack almost never deals with huge amount of cards). Or would it be faster, if I had a big image with all the cards (~160x160 maybe) and just reused that with different masking, calculated on runtime?
View 1 Replies
Dec 2, 2009
I am trying to add a separate image in the background of a carousel...when a carousel image is clicked on, it moves back and the new image appears with it - but nothing loads in the new image. I thought this would be how to do it, but it's not working...what am I doing wrong? here is what it looks like so far: [URL]
[Code]....
View 2 Replies
Jan 12, 2010
I am a bit of a beginner to Flash and found a template online to use for my website. One issue I am having is that an image with a link is opening in the main window and I want it to open in a separate window. I am going to attach the code as it is now. Can someone tell me what I need to add or change to make the url link open in a separate window?
onClipEvent (load) {
imageProperties=_root.getCurrentImageName(0);
loadMovie(_root.url+imageProperties['name'], this.cont.pic);
loadMovie(_root.url+imageProperties['name'], this.cont.pic1);
url=imageProperties['linkToOpen'];
targetWindow = imageProperties['target'];
}
View 1 Replies
Jan 13, 2010
I am a bit of a beginner to Flash and found a template online to use for my website. One issue I am having is that an image with a link is opening in the main window and I want it to open in a separate window. I am going to attach the code as it is now. Can someone tell me what I need to add or change to make the url link open in a separate window? If you want to see the site and where the issue is, go to: http:[url]... and click on "main page" It is the "web" images that I am talking about. I really need them to open in a separate window when you click on the image. The action code is below:
onClipEvent (load) {
imageProperties=_root.getCurrentImageName(0);
loadMovie(_root.url+imageProperties['name'], this.cont.pic);[code]....
View 34 Replies
Jan 12, 2010
I am loading some separate .swf image galleries in my main .fla; when you go to different sections the image galleries still stay there. How do I make them go away? When you click on the background it takes you to another spot on the timeline and the gallery should disappear, but it just stays there.
View 9 Replies
Oct 29, 2010
I have one png image with few icons there. So now I need to load that image, to brake it apart and to use those icons as MC-s.
View 2 Replies
Nov 19, 2009
I am trying to adapt the gotoandlearn carousel to fit a dog rescue's needs and learn something in the process. What they want is for a 2nd image to load when the first is clicked on. (so it zooms up and a 2nd image loads that is also contained in the XML file).I was able to get the 2nd image's instance to appear and disappear properly, but I can't seem to get anything to load into it no matter what I do[URL]
View 11 Replies
Sep 8, 2011
I believe I am using AS2, I have cobbled some script together from the internet and it seems to be mostly working, but there is one issue I have.Okay here goes with my explanation. I have an SWF that loads a random quote from a txt file which is located on the same server as the SWF file. The quote has an 'a href' tag around the text so that when clicked it will load a URL. - This is all working fine! Here is the problem:I would like to use the same SWF file on a separate server (server 2), that then calls the quotes from to the txt file on server 1. I have added the complete path to the txt file, but when i run the SWF on server 2, it gives me an error. Here is the script I am using in the FLA file.
Code:
/****************************************
**Random Quotes Script*******************
[code].....
View 2 Replies
Jul 30, 2009
I am currently working on a flash site that loads external .swf files. Is there a way to make these separate swfs transparent by adding code to the .html as done in many other similiar circumstances with one swf? Or is there any kind of code I can add with an as file or inside a frame in flash?
View 0 Replies
Apr 4, 2010
In my project I need to dynamically load (with an XML file) images (icons) into a flash cs3 file with as3. Every icon needs to have it's own URL. So far I succeeded in loading the icons into the file and adding the imageLoader an external link, but I can't seem to be able to figure out how to load every image into its own loader so that I can give
it separate url references. I also want to a hover effect on the images.
[Code]...
View 3 Replies
Aug 7, 2009
I'm having trouble figuring out how to get this image slideshow to have separate links for each picture. I've researched online and I can't seem to make sense of what I've found in relation to the code I have.
ActionScript Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
[code]...
View 0 Replies
Jan 31, 2010
I am trying to change a version of the gotoandlearn carousel to add an additional image that appears along with the first image when it's clicked on. I can get the additional image movie clip to appear/disappear properly, and can get ONE image to pull from the XML file and appear in the movie clip. However, it's not pulling in all the photos - just the same one each time. Here is my XML file and action script code: ("the2nd" is the movie instance, "image2" holds the photos in the XML file that need to appear). Adding these lines either load the same image over and over, or all the images and the carousel stops. Can someone tell me how to get it to the correct photo from the XML file when the first photo is clicked on? What am I doing wrong?.
home.the2nd.loadMovie(nodes[i].attributes.image2);//this line alone works 1 pic the2nd = home.attachMovie("item","item"+i,i+1);//loads all pics but stops carousel
XML file:
Code:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<icons>[code]..............
View 0 Replies
Mar 9, 2004
I am loading a scrolling image bar into a separate movie and it works great with the coding I have managed to piece together (since I am not an AS master) the problem I am having is that when the mouse moves out of the scrollbar area it is still controlling the motion from the rest of the movie it is imported into. I am pretty sure that it revolves around a _root.drag._y script command but since I am still learning scripting I am not sure of exactly how to code this....the scrollbar is 90pixels in height and I want the images to keep scrolling at +2 when the mouse leaves the designated area, just not to move with the mouse movement when moving around below the scrollbar.
mc = _root.drag._x
if (mc>250and mc<360){
for (i=1; i<=nomc; i++) {
mx = getProperty("/a" add i, _x);
setProperty ("/a" add i, _x, mx+2);
[Code] .....
[URL]
View 14 Replies
Jul 14, 2009
I understand the Flash and AS3 is single-threaded, at least at the user level. I would like to understand how asynchronous data loading is handled by the Flash player.
For instance, if I run CPU-intensive code that runs beyond the normal frame (lets say it runs on ENTER_FRAME, and consumes 1/4 per call). Does this leave any CPU cycles to load data from a URLLoader?
If http loading is truly synchronous, right down to handling the TCP/IP stack, one would get horrible performance. In Windows programming, I can do http access asynchronously (in which case the Windows libraries are doing either input on a separate thread, or doing hardware-level interrupts to handle the data -- I provide an asynchronous callback that may be on its own thread). Or, I can do synchronous download, in which case there will be hardware buffering, but my application is actively waiting for each buffer of data to be delivered by the hardware/OS combination.
URLLoader is asynchronous, but what does that mean? Does it mean that I can run the CPU and still download data? Or, will my download speed slow to a crawl if my Flash application is under heavy CPU load? Understanding how this works will help me design my product better, which both uses a lot of CPU, and downloads a lot of data (to the bandwidth limit of the network, if possible).
View 2 Replies
Dec 2, 2011
My code doesn't work.I use flash 8 (AS 2.0). When I click a button, I want it to load another flash file but not into the same parent/web page. I need the file to load in it's own window.
on (release) {
loadMovie("MyAccountPage.swf", "_blank");
}
After this, I still do not get a respond when I test run the script.
View 2 Replies
Oct 28, 2009
I am trying to change a version of the gotoandlearn carousel to add an additional image that appears along with the first image when it's clicked on. I can get the movie clip to appear/disappear properly, but I can't get the photo to pull from the XML file and appear in the movie clip. I've tried everything and what I think should work doesn't. Here is my XML file and action script code: ("the2nd" is the movie instance, "image2" is the photo in the XML file that needs to appear).
XML file:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<icons>
<icon image="carouseldogs/icon1.jpg" image2="carouseldogs/icon1a.jpg"
tooltip="How we help"
[Code]....
View 0 Replies
Mar 10, 2009
how to load images so they pop up in a seperate window to the flash movie, to see what mean check out this site and click one of the images [URL]
View 4 Replies
Jan 28, 2011
In my project I used main document file, which could load multiple nested animations as a separate files. In the main document I had a global function, for example:
_global.onAnimationEnd(mc:MovieClip){...}
and in animations (could be nested) I just called it like:
onAnimationEnd(this);
View 2 Replies
Dec 10, 2009
I am trying to parse a RSS feed and load the data into separate labels.
For example i want to pick up all the title values within each item of the RSS feed and place that in a designated label.
I am parsing the feed correctly but i am having trouble trying to load the data into the label's, i've tried using the below but the same Title value is entered for 9 out of the 10 labels[code]...
View 1 Replies
Oct 22, 2009
I am working on a flash piece that is composed of one master swf that has five options/sections within it. Each option loads two separate swfs that operate at the same time. Within those swfs are url links which open in the same window, replacing the page with the flash piece on it. Is it possible to link back from the opened url in a way that will go to the frame in the main swf's timeline that will reload the relevant swfs?
I had suggested just targeting a _blank window but the person I am attempting this for doesn't want that.
View 1 Replies
Jan 15, 2012
on (release) {
_parent._parent.buttonClick("movie name", _parent._name);
}
For the above script, am trying to load a swf file to load into an main movie file. This is for a flash website am working on, and i wanted to know if the above .Since having all the pages (6 pages) in one flash file, it would take long time to load, so am planning to have each of the 6 pages in an separate swf file and load these into main swf file, on click of a button, Also there needs to be a loading bar for each page.
View 1 Replies
Apr 18, 2010
What I need to do is assign 5 separate dynamic text fields to 5 seperate buttons and at the same time to those same five buttons i would like to add 5 images that i would be able to change merely by swapping out the images in the file theyre in on the server.I would also like to get a nice transition between the images...ALSO i want to dynamically load the images for the buttons that will be used for switching from picture to picture(which im thinking i will be able to do after i know the how to do point the aforementioned things.)
Through tutorials I've found around the net I've been able to get most of the parts together... but i get lost because what they show you for AS2 they don't for AS3 and vice versa, at least that ive seen.so... I guess my question is... would i need to set up 5 seperate dynamic text fields on the stage and then set each one of them to one of the corresponding button. If so what AS code would i need to use to do so. And if not what would i need to do?
The other part of the question would be I know about the UILoader... would i be able to use it as my buttons and images, if so would i need 5 seperate ui loaders for both the Thumbnail buttons and the images or is there a way that would be better to do it? and once i do that would i do the transitions using frames and tweens like with AS2?
View 2 Replies
Jun 29, 2009
I have created a small image gallery for use in a CBT Program.What I am looking to do is, each image in the slide when clicked needs to go to a separate html page.I currently have it working as far as being able to execute a single External Call to go to a HTML Page, but it is working for the entire gallery not individual pictures.I am thinking of separating the way the MC are loading into the container, then tying External Calls Specific to the individual clips.
below is the current code.
--------------
import mx.transitions.Tween;
import mx.transitions.easing.*;[code].....
View 0 Replies
Aug 19, 2009
If I create a new flash AS3 file and create two blank keyframes in my actions layer I can add actions to each keyframe separately no problem. I can then easily switch between the actions frames from the menu bar on the left of the actions input panel. However if I try and do this on any of my projects i've been working on for a while when I create a new blank keyframe in the actions layer and try to add actions to it, I get sent straight back to my first actions keyframe and not a nice blank page. Can I even apply seperate actions to seperate keyframes?
View 6 Replies
Jan 17, 2011
This is NOT the same as my last thread as i am after three and NOT ONE as last time. In the attached movie there are three seperate movies loading into three seperate tweens. Please note that i am happy with this movie as it is, and do not want to change anything about it except for the script itself. It refurs to three seperate clips "b.a","d.c" and "f.e". What i want is for the script to incorperate all three clips under one name of "mc" And instead of have three seperate widths, "width 1","width2" and "width3" i want the script to also incorperate all three widths and heights into just one name of "width" and one name of "height".
View 9 Replies
Aug 9, 2008
I am working on a school project that requires me to load external .swf or .jpg files. I currently have all of the buttons working and are loading an external .swf file on to the screen. The problem I am having is that when I go from one button to the next the loaded .swf stays on the screen and the next .swf gets loaded on top of it. I know that I need to unload the file but I am not sure where to put the code for the unload or what code exactly to use. I would like when the button is pressed to unload the previous loaded .swf and load the new .swf without having a separate button to unload.
[Code]...
View 3 Replies
Oct 14, 2009
I am trying to load a colour image and then it is changed to black and white image. Here I am using a mask. But it is not getting worked. The code that i am using for this purpose is attached following: import
[Code]...
View 7 Replies