Images Loaded But Not Showing
I have an application in three steps: The first is a global one that will contain the two others. The second is a list of products which are shown as images. When you click on one of thoses images, it loads the third one which contains the details for the product in question. My variables used in the third one are section, subSection and product. section is the main menu from which it comes, subSection is the subMenu from which it comes from and the product is the image clicked on the second section.
Example: The first item of the main menu is called "Men". The first submenu of that main section is called "Masters" and in that section you click on the first coat. So section=1, subSection=1 and product=1.
Now when I load the third flash directly from the first one without going through the second one and by giving it the right value for the right variables, it loads the right text but no images are shown. But it sees the path for the image and you can click on them but you can't see them.
What gives?
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 09-21-2006, 03:36 PM
View Complete Forum Thread with Replies
Sponsored Links:
Loaded Images Not Showing Up
so i've got a collection of images loaded via an xml file. it works just fine locally but when i upload it.. all of the sudden it's loading only the beginning 3 images as opposed to all of them. i'm at a loss for words. i got it working then it pooped on me.
ActionScript Code:
var intCounter:Number = 0;
for(var t:Number = 0; t < how_many; t++)
{
boxes[t] = new MovieClip();
addChild(boxes[t]);
loaders[t] = new Object();
loaders[t].loading = new Loader();
loaders[t].theRequest = new URLRequest(myXML.image[t].big_url[0]);
loaders[t].loading.load(loaders[t].theRequest);
loaders[t].loading.contentLoaderInfo.addEventListener(Event.INIT, imgLoaded);
}
function imgLoaded(event:Event):void
{
loaders[intCounter].loading.content.y = 0 - (loaders[intCounter].loading.content.height / 2);
loaders[intCounter].loading.content.x = 0 - loaders[intCounter].loading.content.width / 2;
boxes[intCounter].addChild(loaders[intCounter].loading.content);
intCounter++;
}
View Replies !
View Related
Some Images Are Not Showing
I am making a website in Flash Professional 8. All of the text was created in Flash, but I made the brand bar and a button in Photoshop (TIFF docs).
I sent the site to my boss (she opened the Flash file through Internet Explorer), when she opened it only the brand bar and the button displayed. The text and pictures were not showing. She checked if she has the plug-in for Flash and it said that she does. I don't know what else to do to make these other images display and they want to pitch the site to a client tomorrow...Any suggestions?
View Replies !
View Related
Images Not Showing Up.
Hi everyone, i have just created a flick book in flash 8. Everything works fine when i test the movie (ctrl enter) or when i publish it in the same folder where all my images are. However, when i publish it outside the folder containing all my images, the animation works fine but no images are displaying. I ve looked everywhere and can't find a solution. Please help me!
Thanks heaps
View Replies !
View Related
Images Are Not Showing Up
My presentation is like a slideshow and the images are all loaded in my library and draged and drop onto the stage, which they all can be viewed just fine. All are jpeg and relatively the same file size, nothing really differant about them, but when I preview or publish the presentation, 3-4 images are not visible. A couple of them just don't show up but one image disappears when I go to another frame and come back to it. Example: I view image01, its veiwed fine, I go to image02 and its fine, I go to image03 its fine, I go back to image02 and it doesn't show up!
I don't understand why its happening since there is no actionscript on the image or anything else done to it that I can see. Its just an image. Anybody else had this problem and know what I shoud do?
View Replies !
View Related
Images Not Showing...
I have written some AS that loads images from a server using a simple call to loadVars. The images and thumbs work fine everywhere except at the client site, where the flash movie itself works fine, but when it comes to the thumbs and images, nothing is displaying.
I have tested this out on more than one computer and it works fine.
What could be happening at the client site?
Any recommendations for debugging this at the client site?
View Replies !
View Related
Images Not Showing Up
I am trying to load images externally but I don't think I am using the right code.
I am using the following in flash and it works fine, but when I bring it into dreamweaver it stops working. Any thoughts?
b1.onPress = function(){
startPreload("load/store.swf");
}
My thoughts are that it can't find the files when it goes live. How can I change the code above so that it reads the files once uploaded to a server?
View Replies !
View Related
Images Not Showing...
I have written some AS that loads images from a server using a simple call to loadVars. The images and thumbs work fine everywhere except at the client site, where the flash movie itself works fine, but when it comes to the thumbs and images, nothing is displaying.
I have tested this out on more than one computer and it works fine.
What could be happening at the client site?
Any recommendations for debugging this at the client site?
View Replies !
View Related
Images Not Showing Problem
ok, so I'm kinda new, actually very new to flash. I've pulled off a couple succesful documents and I'm slowly falling in love with Flash. I have MX Professional and I just created a photogaller with a scrolling movieclip containing all of my thumbnails(thanks to a great tutorial). Anyway, it all works wonderfully in the publish preview but when I actually publish it no images show. The background color works and the text I added within flash show up. I have all my images in the same folder(I'm not sure if that was necessary) and its really bugging me. I tested it on netscape and IE with no luck. Any help would be just grand! Thanks
View Replies !
View Related
Offstage Images Showing Up
When I publish my flash, and view the html file in the browser, offstage images show up. I was under the impression that the only objects that are visible are the stuff onstage...do I have to use a mask or something?
View Replies !
View Related
Help With Showing Multiple Images
Hi
I've a prolbme displaying multiple images by using ActionScript 3.0
I store image names in an Array
and want to display the images one by one
but I just simply don't know how to do it
If you have time please enlighten me.
Here is my code
var loader:Loader = new Loader();
var url:Array = new Array();
for (var i = 0; i < imageArray.length; i++) {
url.push(imagesFolder + imageArray[i].name);
}
var urlRequest:URLRequest = new URLRequest(url[0]);
loader.load(urlRequest);
addChild(loader);
The above code just shows the only first image store in the array but I want to show all one by one.How?
Thank you
View Replies !
View Related
Showing Images Dynamically.
Lets say I was presented with this HTML code. (random)
<TABLE>
<TR><TD>Hello my name is Jason</TD></TR>
<TR><TD>This is a picture of me <img src='hello.jpg'></TD></TR>
<TR><TD>Age: 24</TD></TR>
<TR><TD>This is another picture of me <img src='hello1.jpg'></TD></TR>
</TABLE>
How would I go about displaying those images as well as the text in flash?
Thanks much you guys!
-J
View Replies !
View Related
Showing Array With Images
Hi everyone,
I have the following code:
Code:
private function thumbs_mc(){
var request:URLRequest;
var loader:Loader = new Loader();
for(var i=0; i<imagens.lenght;i++){
new URLRequest(imagens[i]);
loader.load(request);
contentor.addChild(loader);
}
var imagens:Array = ["imagens/galerias/alp6_thumb.jpg", "imagens/galerias/c1_thumb.jpg"];
}
What I want to do is to show inside of "contentor" the images from the array. I don't know if this is the right method to do it, anyway, it gives me an error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
View Replies !
View Related
Urgent Help With .swf Not Showing Images...
Hi,
I've been following the tutorial at Kirupa.com on making a photogallery with xml. Everything works fine. Next and Previous buttons work, the titles are displayed and the numbers count up for each picture. I publish the movie and then test it in the location it's supposed to be in and it's fine.
Then when I embed it in an HTML page and load the HTML page everything goes wrong. Ths .swf loads and then that's it, the images don't show, the text doesn't show and the next and previous buttons don't work either.
Any idea what's wrong?
View Replies !
View Related
Load Images Before Showing Them?
i wonder if anyone know how to do this. say i have up to 40 links to pages containing items and they are all loaded from a DB and whenever a link is rolled over i want an images of the product the link leads to, to be displayed. well if im loading the images when the button is rolled over it will take a few seconds to show the images after the links is rolled over....i want to avoid this so i wonder if i can load all the images into 40 diferent frames or perhaps load them all into the library and pull them out when needed. I hope i am clear about what i am talking about.
Thanks.
NOTE: I am not asking how to make a preloader for loading images
View Replies !
View Related
Problem With Xml Images Showing
I have posted all the necessary files so please review... When I load my flash/ xml gallery into another main swf the images are not showing up, yet when I view the gallery alone it works fine. I do have a mixture of as2 and as3, could this be the problem? Some of the AS is within the movie clips. Any help would be awesome, Thank you...
<?xml version="1.0" encoding="UTF-8"?>
<NODETOP>
<NODE>
<TITLE>Title1</TITLE>
<COPY>copy one</COPY>
<LINK>img01.jpg</LINK>
</NODE>
<NODE>
<TITLE>Title2</TITLE>
<COPY>copy two</COPY>
<LINK>img02.jpg</LINK>
</NODE>
<NODE>
<TITLE>Title3</TITLE>
<COPY>copy three</COPY>
<LINK>img03.jpg</LINK>
</NODE>
<NODE>
<TITLE>Title4</TITLE>
<COPY>copy four</COPY>
<LINK>img04.jpg</LINK>
</NODE>
<NODE>
<TITLE>Title5</TITLE>
<COPY>copy five</COPY>
<LINK>img05.jpg</LINK>
</NODE>
</NODETOP>
View Replies !
View Related
Loaded JPG Not Showing Up
hello!
So I have an empty MC on the root timeline called 'picContainer'
in the first frame I have a the following line of code...
picContainer.loadMovie("goddess.jpg");
nothing loads. Both the swf and the jpg are saved in the same directory...yada yada yada...
I also tried just loading a swf and it WORKED
picContainer.loadMovie("testSwf.swf");
So I know my path is right and that everything is named right.
I've done this before and it worked! Does anyone know of any wierd bugs with loading jpgs into Flash?
ideas...thoughts...encountered this before??
thanks,
morgan
View Replies !
View Related
Scrolling Menu Not Showing All Images
I've made an infinite scrolling menu using 20 rollover images.
It seems to be working ok apart from only showing 6 of the image buttons. it doesn't matter how far i scroll up or down- it is only showing buttons numbered 12-18.
Any ideas why this might be?
go to www.dieselmarketing.com for an examle of the type of navigation i'm creating.
Thanks =^._.^=
View Replies !
View Related
Borders Round Images Not Showing?
Hello,
I've got a strange one here. I have created separate image.swfs for about 20 images on each section on my site. When the thumbnails and the larger images are loaded, the black line border on the right hand side and the bottom edge of the picture is missing. They are on the actual image - I used stroke in Photoshop to get an even black line round each one.
Does anyone know why this would be happening?
Look at the images on the accomodation pages and surroundings pages:
www.raptorslodge.com
Any help greatly appreciated,
G
View Replies !
View Related
Problem With Gallery. Images Are Not Showing
Hello,
I'm making a gallery. What gallery would it be without image scaling, right? So I found this code (Which is between //// signs). As you may already understood, I'm a beginner to flash. Now the problem: The image loads at first launch, but when I press buttons next and previous, it doesn't change. Apparently if I put the image path into a variable, the image doesn't display at all. Still, when tracking the path variable, and copying it directly to loadClip function, it displays correctly. I'm using Flash 8.
Here's the code:
PHP Code:
/////////////////////////////// v-PIC SCALE-v ///////////////////////////////////
// Container dimensions
var containerWidth:Number = 640;
var containerHeight:Number = 480;
// Create container movieclip
var container_ref:MovieClip = this.createEmptyMovieClip("container_clip", this.getNextHighestDepth());
// Draw a border for container
with(container_ref)
{
lineStyle(2, 0x000000, 100);
lineTo(containerWidth, 0);
lineTo(containerWidth, containerHeight);
lineTo(0, containerHeight);
lineTo(0, 0);
_x = (Stage.width / 2) - (container_ref._width / 2);
_y = 50;
}
// Create container movieclip
var image_ref:MovieClip = container_ref.createEmptyMovieClip("image_clip", container_ref.getNextHighestDepth());
// Create listener object
var loadListener:Object = new Object();
// Create loader
var image_Loader:MovieClipLoader = new MovieClipLoader();
// Add a listener to the loader
image_Loader.addListener(loadListener);
// This is initated when the picture is loaded
loadListener.onLoadInit = function(mc:MovieClip)
{
var wDiff:Number = 0;
var hDiff:Number = 0;
if (mc._width > mc._parent._parent.containerWidth)
{
var wDiff:Number = mc._width - mc._parent._parent.containerWidth;
}
if (mc._height > mc._parent._parent.containerHeight)
{
var hDiff:Number = mc._height - mc._parent._parent.containerHeight;
}
if (wDiff > 0 and wDiff <= hDiff)
{
var multiplier:Number = mc._parent._parent.containerWidth / mc._width;
Math.floor(mc._width *= multiplier);
Math.floor(mc._height *= multiplier);
}
else if (hDiff > 0 and hDiff < wDiff)
{
var multiplier:Number = mc._parent._parent.containerHeight / mc._height;
Math.floor(mc._width *= multiplier);
Math.floor(mc._height *= multiplier);
}
var xOffset:Number = mc._parent._parent.containerWidth - mc._width;
var yOffset:Number = mc._parent._parent.containerHeight - mc._height;
if (xOffset > 0)
{
mc._x += (xOffset / 2);
}
if (yOffset > 0)
{
mc._y += (yOffset / 2);
}
// Debug traces
trace("Instance Name: " + mc._name);
trace("Original image_clip._width: " + mc._width);
trace("Original image_clip._height: " + mc._height + newline);
trace("container_clip._width: " + _root.containerWidth);
trace("container_clip._height: " + _root.containerHeight + newline);
trace("wDiff: " + wDiff);
trace("hDiff: " + hDiff);
trace("xOffset: " + xOffset);
trace("yOffset: " + yOffset);
}
///////////////////////////////// ^-PIC SCALE-^ ///////////////////////////////////
function muudaPilti(newSlideNode) {
path = newSlideNode.firstChild.nextSibling.firstChild;
pildinimi.text = newSlideNode.firstChild.nextSibling.nextSibling.firstChild;
kaunter.text = (currentPic+1) + '/' + (piltideArv);
// Load picture.
// This only works if I specify the path.
image_Loader.loadClip("albumid/Lambikad/IM000811.JPG", image_ref);
// This doesn't work
//image_Loader.loadClip(path, image_ref);
// This returns the correct picture path
trace(path);
}
myXML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function(success){
if(success){
// proccess
currentPic = 0;
allGalleryData = this.firstChild.childNodes;
for(i = 0; i < allGalleryData.length; i ++){
piltideArv = i+1;
}
// Load the first picture
muudaPilti(allGalleryData[0]);
} else {
trace('Fail puudub');
}
}
but_j2rgmine.onRelease = function() {
if(currentPic < (piltideArv-1)){
currentPic ++;
muudaPilti(allGalleryData[currentPic]);
}
}
but_eelmine.onRelease = function() {
if(currentPic > 0){
currentPic --;
muudaPilti(allGalleryData[currentPic]);
}
}
myXML.load('pictures.xml');
Code is partially in my first language, but it shouldn't be a problem.
Now the output when I test it:
Code:
albumid/Lambikad/IM000810.JPG
Instance Name: image_clip
Original image_clip._width: 640
Original image_clip._height: 480
container_clip._width: 640
container_clip._height: 480
wDiff: 1408
hDiff: 1056
xOffset: 0
yOffset: 0
If you need an example to look at, you can find it here: http://iou.pri.ee/galerii/galerii.html
Tom.
View Replies !
View Related
Server Resized Images Not Showing Up
Hi,
I was finally able to get my RSS feed via PHP and AS3 to display everything in my Flash TextArea. I need to use condenseWhite set to "true" to eliminate all the white space and horrible formatting from the feed. It does a wonderful job except, it is removing the main image. Turn it off, and everything shoes up, but in a nasty jumble. The image has been resized by the sites server. It has no file extension because of this. Can anyone help me with this? I can't find a work-around or a simple solution. Thanks
I have tried using RegExp to add extra information to the image, but I don't think it's working. I was trying to add additional image information to the string. I have read the online help here for this, but I don't think I am doing it correctly. Also, doesn't it need to loop? Not sure what to do. I definitely need help.
See the code at the bottom from the main timeline:
import com.me.xml.*;
import com.me.php.*;
import fl.controls.*;
import fl.data.*;
var info_txt:TextArea = panel_mc.main_mc.info_txt;
var episode_cb:ComboBox = panel_mc.main_mc.episode_cb;
var date_txt:TextField = panel_mc.main_mc.date_txt;
var view_btn:Button = panel_mc.main_mc.view_btn;
var grabber:Grabber = new Grabber();
var reader:RSSReader = new RSSReader();
function dataGrabbed(event:Event):void
{
info_txt.text = "processing xml data";
reader.addEventListener(Event.COMPLETE, rssProcessed);
reader.processXML(new XML(grabber.data));
}
function rssProcessed(event:Event):void
{
var episodeDPataProvider = new DataProvider();
for each(var item:XML in reader.episodes)
{
episodeDP.addItem({label:item.title});
}
episode_cb.dataProvider = episodeDP;
episode_cb.addEventListener(Event.CHANGE, changeSelection);
episode_cb.selectedIndex = 0;
updateText();
view_btn.addEventListener(MouseEvent.CLICK, viewOnline);
}
function viewOnline(event:MouseEvent):void
{
navigateToURL(new URLRequest(reader.episodes[episode_cb.selectedIndex].link));
}
function changeSelection(event:Event):void
{
updateText();
}
function updateText():void
{
var date:String = reader.episodes[episode_cb.selectedIndex].pubDate;
date = date.substr(0, date.length-14);
/*var style:StyleSheet = new StyleSheet();
var styleObj:Object = new Object();
styleObj.fontSize = "bold";
styleObj.color = "#FF0000";
styleObj.textAlign = "right";
style.setStyle(reader.episodes[episode_cb.selectedIndex].description, styleObj);
info_txt.styleSheet = style;*/
info_txt.htmlText = reader.episodes[episode_cb.selectedIndex].description;
date_txt.text = date;
}
grabber.load("grabber.php", "http://www.shopzilla.com/14G_-_feed_id--4/rss.xml");
grabber.addEventListener(Event.COMPLETE, dataGrabbed);
/*var format:TextFormat = new TextFormat();
format.color = 0xFF0000;
info_txt.htmlText.setTextFormat(format);*/
function RegExpExample():void {
var formalGreeting:String = 'img src="http://image.shopzilla.com/resize?sq=100&uid=\d{9}"';
trace(informalizeGreeting(formalGreeting));}
function informalizeGreeting(str:String):String {
var pattern:RegExp = new RegExp('img src="http://image.shopzilla.com/resize?sq=100&uid=\d{9}"', "gim");
return str.replace(pattern, 'img src="http://image.shopzilla.com/resize?sq=100&uid=/d{9}/.jpg" width="100" height="50"');
}
View Replies !
View Related
Showing Images On Stage From A Class
Hi Guys,
I'm having a really hard time here, I'm pretty new to all this OOP stuff, and haven't quite worked out what is inheriting from what yet. Here's what I'm trying to do:
1) load an XML file from the main stage.
2) create objects containing clips based on a series of image URLs stored in the XML file.
3) show the clips on the stage.
Everything seems to be working fine if I load the images direct from the main stage, but when loading them from the class, they won't show on the stage, although there's now no error.
Here's the code of the 1st frame of the timeline:
quote:
import Picture;
import flash.display.Sprite;
import flash.display.*;
import flash.net.*;
import flash.events.Event;
var localPrefix:String = 'http://www.driveinservicecentre.com/';
var picsxmlLoader:URLLoader = new URLLoader;
var container:Sprite = new Sprite();
this.addChild(container);
picsxmlLoader.addEventListener(Event.COMPLETE, makesClips);
picsxmlLoader.load(new URLRequest(localPrefix + "pics.xml"));
var picsxmlData:XML = new XML();
function makesClips(e:Event):void {
XML.ignoreWhitespace = true;
var picsArray:Array = new Array()
var allPics:XML = new XML(e.target.data);
for (var i = 0; i < allPics.picture.length(); i++) {
picsArray = new Picture(allPics.picture.id, allPics.picture.url, allPics.picture.text1, allPics.picture.text2);
}
}
And here's my picture class that I'm trying to create the images on the stage from:
quote:
package {
import com.drivein.Root
import flash.display.*;
import flash.net.URLRequest;
import flash.events.Event;
public class Picture extends MovieClip {
public var picId:String;
public var picUrl:String;
public var picText1:String;
public var picText2:String;
var container1:Sprite = new Sprite();
var pictLdr:Loader = new Loader();
public function Picture(id, jpegAddress, text1, text2) {
picId = id;
picUrl = jpegAddress;
picText1 = text1;
picText2 = text2;
var pictURL:String = picUrl
var pictURLReq:URLRequest = new URLRequest(pictURL);
pictLdr.load(pictURLReq);
this.addChild(pictLdr);
}
}
}
If anyone can help me with this it would be so much appreciated! I've been running round in circles trying to do this for days!
Thankyou so much!
Rufus
View Replies !
View Related
Gallery - Added Images Not Showing Up
I had built this photo gallery a while back and went to include new images.
http://www.nyccgs.com/gallery/index.php
I put the images in the xml file and uploaded them. They will not show up. Any ideas as to why they will not show up. Images 7, 8, 9 and 10 do not show up.
They also do not show up when I preview the flash file while in flash, not an upload to server problem....
Also, For some reason images 1 and 6 will not come in at their correct size. I changed the size for everything and those two images are staying at the original size.
This is the tutorial I used: http://www.kirupa.com/developer/mx2004/thumbnails.htm
View Replies !
View Related
Problem With Gallery. Images Are Not Showing
Hello,
I'm making a gallery. What gallery would it be without image scaling, right? So I found this code (Which is between //// signs). As you may already understood, I'm a beginner to flash. Now the problem: The image loads at first launch, but when I press buttons next and previous, it doesn't change. Apparently if I put the image path into a variable, the image doesn't display at all. Still, when tracking the path variable, and copying it directly to loadClip function, it displays correctly. I'm using Flash 8.
Here's the code:
PHP Code:
/////////////////////////////// v-PIC SCALE-v ///////////////////////////////////// Container dimensionsvar containerWidth:Number = 640;var containerHeight:Number = 480;// Create container movieclipvar container_ref:MovieClip = this.createEmptyMovieClip("container_clip", this.getNextHighestDepth());// Draw a border for containerwith(container_ref){ lineStyle(2, 0x000000, 100); lineTo(containerWidth, 0); lineTo(containerWidth, containerHeight); lineTo(0, containerHeight); lineTo(0, 0); _x = (Stage.width / 2) - (container_ref._width / 2); _y = 50;}// Create container movieclipvar image_ref:MovieClip = container_ref.createEmptyMovieClip("image_clip", container_ref.getNextHighestDepth());// Create listener objectvar loadListener:Object = new Object();// Create loadervar image_Loader:MovieClipLoader = new MovieClipLoader();// Add a listener to the loaderimage_Loader.addListener(loadListener);// This is initated when the picture is loadedloadListener.onLoadInit = function(mc:MovieClip){ var wDiff:Number = 0; var hDiff:Number = 0; if (mc._width > mc._parent._parent.containerWidth) { var wDiff:Number = mc._width - mc._parent._parent.containerWidth; } if (mc._height > mc._parent._parent.containerHeight) { var hDiff:Number = mc._height - mc._parent._parent.containerHeight; } if (wDiff > 0 and wDiff <= hDiff) { var multiplier:Number = mc._parent._parent.containerWidth / mc._width; Math.floor(mc._width *= multiplier); Math.floor(mc._height *= multiplier); } else if (hDiff > 0 and hDiff < wDiff) { var multiplier:Number = mc._parent._parent.containerHeight / mc._height; Math.floor(mc._width *= multiplier); Math.floor(mc._height *= multiplier); } var xOffset:Number = mc._parent._parent.containerWidth - mc._width; var yOffset:Number = mc._parent._parent.containerHeight - mc._height; if (xOffset > 0) { mc._x += (xOffset / 2); } if (yOffset > 0) { mc._y += (yOffset / 2); } // Debug traces trace("Instance Name: " + mc._name); trace("Original image_clip._width: " + mc._width); trace("Original image_clip._height: " + mc._height + newline); trace("container_clip._width: " + _root.containerWidth); trace("container_clip._height: " + _root.containerHeight + newline); trace("wDiff: " + wDiff); trace("hDiff: " + hDiff); trace("xOffset: " + xOffset); trace("yOffset: " + yOffset);}///////////////////////////////// ^-PIC SCALE-^ ///////////////////////////////////function muudaPilti(newSlideNode) { path = newSlideNode.firstChild.nextSibling.firstChild; pildinimi.text = newSlideNode.firstChild.nextSibling.nextSibling.firstChild; kaunter.text = (currentPic+1) + '/' + (piltideArv); // Load picture. // This only works if I specify the path. image_Loader.loadClip("albumid/Lambikad/IM000811.JPG", image_ref); // This doesn't work //image_Loader.loadClip(path, image_ref); // This returns the correct picture path trace(path);}myXML = new XML();myXML.ignoreWhite = true;myXML.onLoad = function(success){ if(success){ // proccess currentPic = 0; allGalleryData = this.firstChild.childNodes; for(i = 0; i < allGalleryData.length; i ++){ piltideArv = i+1; } // Load the first picture muudaPilti(allGalleryData[0]); } else { trace('Fail puudub'); } }but_j2rgmine.onRelease = function() { if(currentPic < (piltideArv-1)){ currentPic ++; muudaPilti(allGalleryData[currentPic]); }}but_eelmine.onRelease = function() { if(currentPic > 0){ currentPic --; muudaPilti(allGalleryData[currentPic]); }}myXML.load('pictures.xml');
Code is partially in my first language, but it shouldn't be a problem.
Now the output when I test it:
Code:
albumid/Lambikad/IM000810.JPG
Instance Name: image_clip
Original image_clip._width: 640
Original image_clip._height: 480
container_clip._width: 640
container_clip._height: 480
wDiff: 1408
hDiff: 1056
xOffset: 0
yOffset: 0
If you need an example to look at, you can find it here: http://iou.pri.ee/galerii/galerii.html
Tom.
View Replies !
View Related
Slideshow Problem - Showing Images
So i created a simple slideshow for a website. Its supposed to be made so that it loads images into an mc which are shown from top left corner out regardless of current size of the stage (i dont care if it simply cuts off larger images or shrinks them down).
Thats why i put this code in startup:
Code:
containers_mc._height = Stage.height;
containers_mc._width = Stage.width;
containers_mc._x = 0;
containers_mc._y = 0;
for(var container in containers_mc){
containers_mc[container]._alpha = 0;
}
containers_mc is an MC containing two MCs in which images are loaded (for nice fading effect).
but it doesnt seem to to the trick.. the images are all scattered around the stage. Here is an example:
http://www.kirupa.com/forum/attachme...1&d=1216161800
All the slideshows are the same, just different sizes (changed as i embed them). Background is added so you can see the problem.
So what could be the problem? I only want images to have their top left corner on 0,0 coordinates and thats it.
Thanks!
View Replies !
View Related
Flash Images Not Showing Up In FireFox
Has anyone had any trouble with images in their flash galleries not showing up in Firefox. I just go a new update for the Mac FireFox/1.5.0.8 and now that I look at my Crimson Fox website the images are not showing up in the gallery areas.
Can someone have a look in their version and see if they are getting the same problem? and/or has anyone had this problem before and know if it's a coding issue?
Thanks.
View Replies !
View Related
XML Images Sometimes Not Showing In Flash Site
Hey everyone,
I'm new to XML in general, and especially XML into Flash, but I thought I had it down and made my new site using XML to load my portfolio images and flash videos in. It seems to work fine, but more than one of my friends tell me that when they go to view the content (the stills or the video) the loading bar loads, and the border resizes correctly around the size of the content, but the content itself is just a white box (for images) or nothing at all (for videos.) All my videos are flv, and all my images are non-progressive jpgs. On the other hand, some of my other friends let me know that the site works perfectly for them... I'm really confused.
The site is danletarte .com
If anyone has any insight to this, or would like me to post code or send the fla, please let me know.
Thanks in advance,
Dan
View Replies !
View Related
Showing How Much Of An External MP3 Has Loaded
I am trying to make a sound player for my website which downloads external MP3s and then plays them (not streaming) and I want to display the percentage of the file which has downloaded while the user is waiting. I've tried everything I know but can't get it to work. Anyone have any ideas?
View Replies !
View Related
Preloader Not Showing Until 50% Loaded
I've tested my site using the bandwith profiler at 56k and It is showing my first frame as being about 128k which is where my preloader is placed and frame 2 which is my main movie being about 100k. My preloader doesn't even come on the screen until about 50% of the movie is loaded.Why does it do this when my preloader is very small? How does one go about making their movie start showing the loader from 0% like I see with so many flash sites?
Thanks in advance
View Replies !
View Related
Showing Loaded Percent
As I learned Flash some months ago, I was told this code to give to the first frame as preloader:
if (Number(_framesloaded)>=Number(_totalframes)) {
gotoAndPlay (3);}
else {
percents = Math.round((_framesloaded/_totalframes)*100 );}
I was also told that Flash could not recognize if some part of a frame is loaded, so - if I have a Flash consisting of three frames, in preloader it will only be shown 33, 66, 99-100% loaded. But as the time goes, I had visited many flash site, and found out, that alost everyone have loading in percents one after another (1%, 2%, ...)
So I need help - how to do it?
Thanks a lot.
View Replies !
View Related
Loaded External SWF's Not Showing Up
I have a host flash movie, which I have several external (sub) swf's that I wantto load into movie clips. The A.S. is by the books, and when I test it locally it works; however, when I upload it to my server and test online they do not load or show up? I have all the swfs in the same directory (flash). Any input.
Thanks.
View Replies !
View Related
FLVs Not Showing In Loaded EXE
I'm loading an EXE using the code:
Code:
fscommand("exec", myList[myValue].launch);
...where myList[myValue].launch contains the location of the file. This part works fine, however when the EXE loads, the FLVs which are part of it's presentation do not. I have all the files where the need to be (in the fscommand folder) and have run the EXE manually from that folder and the FLVs display without a problem, yet they do not when called by fscommand.
As a side note, the EXE being launched is a separate presentation so simply displaying the FLVs through other means is not an option I have available to me.
Thanks for any help I can get with this.
View Replies !
View Related
Loaded Bitmaps Not Showing
I have a strange problem related to Bitmap Object.
What I do is loade an Image to a MoveClip attach a Bitmap to another MovieClip and draw the loaded image to the bitmap. The standard way of smoth loaded images.
Code:
public function onLoadInit( mc:MovieClip) {
var reflectonBitmap:BitmapData = new BitmapData( mc._width, mc._height, true);
smalReflecktionClip.attachBitmap( reflectonBitmap, smalReflecktionClip.getNextHighestDepth(), "auto", true);
reflectonBitmap.draw( smalImageClip);
}
this works just fine when when compiling and running it in flash but when I put the swf on a webserver a strange thing happens. If the loaded image is from the loacal file system everything works just fine. But if the loaded image is from another domain the image is visable on the movie clip it was loaded into but the bitmapattached MovieClip have the right size but it is white, with no image.
Any one got an Ide way this happens?
View Replies !
View Related
FLV In External AS2 SWF Not Showing Up When Loaded To AS3 Swf
OK. I have an AS2 swf that plays an external FLV. This SWF works fine. I am in the process of rebuilding a site using AS3. When I load the AS2 file into an AS3 file it loads fine. When I click on the button in the AS2 file with the FLV the videos audio can be heard but the video does not show up.
To put it another way... the file index is an AS3 file with a button that loads an external AS2 file. That part works fine. The external AS 2 file, has a button that loads an external FLV. When the button is clicked, nothing seems to happen (no player shows up), but the audio from the FLV can be heard.
What I am hoping for is someone who can point me in the right direction about loading external FLVs in AS2 files that are then loaded into AS3 files so I don't have to rewrite the entire site in AS3.
Thanks
View Replies !
View Related
HELP - Preloader Showing After 100% Loaded
I use the same SWF file on multiple pages. even if it is loaded 100%, if you click another page link it will show that preloader for a fraction of a second and then play the already loaded file...how do i get that preloader only to show the first time and not on subsequent pages that use that same SWF file
see here:
http://www.corusa.com/
~Connor
View Replies !
View Related
Can't See The Loaded Text, Not Showing Up?
Hi
I have tried a few "dynamically load text/var into flash" and It never works. I can't get the info to show up. I am using Flash MX.
The text won't show up. not at all.
What is the problem?
I made sure that the text color was different to the background. I just don't know what's going on. Is it my own stupidity. I am getting really upset. I would really apprecaite a response as to what the problem could be.
Please, anyone?
View Replies !
View Related
Showing An Mc Dinamically Loaded
Maybe I'm stupid, but...
I have some mc (video1.swf, video2.swf, etc),
dinamically loaded into main movie.
The mc are loaded, using loadMovie, inside an empty
mc ("loader"), placed inside another mc ("window") that
stay on stage.
All .swf has first frame empty, with the AS "stop();".
What I want is that a button, placed inside mc "window", can
start the play of loaded mc caricato; if at this time the mc
loaded is, i.e., "video1.swf", the button must move the
playhead on second frame, and start the movie.
But, how I can target the "gotoAndPlay(2);" action to the
"videoX.swf"?
View Replies !
View Related
[CS3] Flash Movie Showing Images Outside The Stage
Hello,
I currently have a 800x600 stage size swf with a slide show of couple images. The image zooms out and zooms in on the stage with a motion tween so some part of the image goes out of the stage. When I publish it to HTML, I can see the image that's outside of the stage or sometimes seeing the white bg of the stage. My swf video is set to 100% height and 100% width because I want it stretch to fit the whole page as a background (it is a liquid layout). What can I do to avoid this from happening?
Masking doesn't work...although it covers the image, it is showing the white bg at the back.
Help?
Ka-ka
View Replies !
View Related
Alternative To TextArea For Showing Images And Text
Can someone suggest an alternate container/control where I can show text and image nicely formatted together? I had tried using TextArea but it has some bugs due to which I'm not being able to display images in it (I was checking https://bugs.adobe.com/ also and reading a few bugs there I found that perhaps a bug exists in Flex.)
I'm using Moxie 3 beta 3 build 190133.
View Replies !
View Related
Attaching Multiple Movies Not Showing Images
Hi There,
I'm using Flash 9.0 and i'm trying to attach multiple jpg files to my movie. Everything seems to work up to the point where I try to attach the movies. I'm trying to get a table like layout of thumbnail images on the screen.
like: image | image | image
Can someone help me fix the code please?
Thanks in advance
!------------ trace
pages/page01.jpg
Target not found: Target="page00" Base="_level0"
pages/page02.jpg
Target not found: Target="page01" Base="_level0"
pages/page03.jpg
Target not found: Target="page02" Base="_level0"
pages/page04.jpg
Target not found: Target="page03" Base="_level0"
pages/page05.jpg
Target not found: Target="page04" Base="_level0"
!--------------------------------
myBook.enabledProp = false;
_root.attachMovie("thumbOverlay","thumbOverlay_mc" ,1000);
thumbOverlay_mc._x = 200;
thumbOverlay_mc._y = 300;
var ALLXML = myBook._cache.extXML;
var imageURL;
var imgIndex = 0;
var pages:Array;
var numimages = myBook.pagesSet.length;
var pgenodes = ALLXML.firstChild.childNodes[19].childNodes;
for (i=0; i< pgenodes.length; i++) {
var thePath = pgenodes[i].firstChild;
trace(thePath);
thumbOverlay_mc.attachMovie("page"+i,"page"+i,i,{_ x:0, _y:0});
loadMovie(thePath, "page"+i+".loadhere");
tellTarget ("page0"+i) {
}
View Replies !
View Related
Images Not Showing In Dynamic Html Textfield
Hi,
I'm loading html dynamically into a textfield. This html is coming from xml into an array value then placed into the htmltext. The html seems to be loading correctly but the images aren't.
I did a test eliminating the xml by hardcoding test html into a variable and the images showed fine. I traced the html from the original and the path of the image is exactly the same in the <image> tag.
Can anyone suggest why this is happening? Thanks
View Replies !
View Related
Alpha Level Images Showing Up Different On Net Than On My System
Here's a mindbender. I built a website for a client who absolutely wanted a certain pig image included as often as possible throughout.
Each page was built in Flash so I could use the image over and over again on each side of the page, as a border. I turned the transparency of the pig image down to 10%, as a background.
After building each page in Flash, I then inserted each Flash movie into its own html page.
It plays beautifully on my system. Sent it up to the server and when I go to the website, I see a beautiful page with no outlines around the images, etc.
What the rest of the world is seeing is: each pig in a little, off-colored block, every time the image is repeated.
Grrrrrrrrr!
The background color within Flash and within the html page are the same! So what is causing this?
(Nobody get upset at the name! It is a music site!)
The site itself is: kicksomepigs.com
2 samples of the pages in question are:
http://kicksomepigs.com/Music_page.htm
http://www.kicksomepigs.com/InTheLeavin.html
This is turning into a disaster because I don't know how to fix it. My viewing is perfect. The rest of the world sees these little square blocks with pigs.
HELP!
View Replies !
View Related
XML Images Not Showing On Certain Machines, Whats Wrong?
Here is a project I am working on (at the moment everythings just temp content) using a modified version of the slideshow gallery tutorial here on kirupa:
http://www.crossrealms.net/work/timeline/
It works fine on my computer and also at my office. I'm using the SWFObject workaround for that new tricky IE update that deactivates active content by default. Although admittedly I'm still trying to figure out SWFObject fully so I'm wondering if I set it all up wrong.
My client's machine and others they know, couldn't display it at all. It would state that they didn't have Flash Player although I installed it. So I tried some other iepupdate solutions (the one officially released by Microsoft etc.) and got it to at least display everything (including the XML imported text) except the images which are in a separate folder and are put in using an XML file to refer to them as in the tutorial.
I'm not sure if it's the new ieupdate that's making it go like this or something else.
Does anyone know what could be wrong? I tried as many ways of embedding it as I could find but none worked on their machine and I can't figure out why. I'd really appreciate any help.
And if you have a computer with Windows fully updated etc. I'd appreciate it if you could tell me if it's working for you... and anyone else for that matter.
View Replies !
View Related
Image Gallery Problem (images Not Showing Up)
so i was working on a tutorial (http://www.youtube.com/watch?v=cylX1lThTN0)
the video is great and even though it's in as 2.0 i was able to write all the code for as 3.0
but for some reason when i type
Code:
thumb1.addEventListener(MouseEvent.CLICK, thumb1click);
function thumb1click(event:MouseEvent):void
{
gotoAndPlay("img1");
trace("button 1 click works fine");
}
what i don't understand is that
Code:
thumb1.addEventListener(MouseEvent.MOUSE_OVER, thumb1Over);
function thumb1Over(event:MouseEvent):void
{
thumb1.alpha = 1;
}
thumb1.addEventListener(MouseEvent.MOUSE_OUT, thumb1Out);
function thumb1Out(event:MouseEvent):void
{
thumb1.alpha = .5;
}
which is written on the same actions frame work just fine but not the click that shows the pictures.
i have attached a link to download my fla (my file is too big to upload) in case anyone would be nice enough to try to help me figure it out. if it seems too involved, then i understand.
i tried everything from making sure my pictures were sent to front, checking the alpha transparency, etc ...
i used trace statements on the buttons and they work fine. i did everything i could think of and i just can't get the last step to work.
help is greatly appreciated.
http://rapidshare.com/files/135742581/myGallery.zip (just click Free User to download)
thanks
View Replies !
View Related
Showing Percent Loaded Of A Particular Scene
PLease can someone tell me what I need to change in this preloader script so that instead of showing the percent of the total moviw loaded it shows the percent of Scene 1 (say) loaded.
textPre is the text box.
Here's the script:
onClipEvent (load) {
textPre = " ";
}
onClipEvent (enterFrame) {
textPre = _root.getBytesLoaded() / _root.getBytesTotal() * 100;
if (_root.getBytesTotal() == _root.getBytesLoaded() ) {
textPre = "done";
}
}
Do I need to change the _root to the scene1 somehow?
Thanks
Jill
View Replies !
View Related
Preloader Not Showing For Loaded Movie
Howdy,
I have a main movie at level 0. This main movie has 6 buttons, each links to an external movie that loads into level 1. The external movies that load into level 1 have two scenes, a preloader scene and a main scene.
When testing my main movie (level 0) with the streaming option on, the external movies' preloader is not displayed when they are loaded into level 1. Is this because when testing a movie, the streaming option does not effect the external movies that are loaded? It just seems like it should. Is actually posting it on the internet the only way to test such a movie?
Thanks,
mperla
View Replies !
View Related
CreateTextField - Fonts Not Showing Up When Loaded By Another Swf
I have the following problem:
I have a Flash file that uses an embedded font in the library with ActionScript linkage.
That font is used in Textfields that are dynamically created with createTextField(), .
The text shows up fine when I am running my swf.
But if I load that swf into another swf (aka preloader) with loadMovie(), the text doesn't show. I have to embed the font into my Preloader also, which becomes quite big (101kB just because of the font, otherwise it is 3kB), so that my main swf is not much bigger than that.
Anyone got an idea what I can do?
View Replies !
View Related
|