Skip to main content
Participant
October 25, 2009
Answered

uiloader visible online

  • October 25, 2009
  • 2 replies
  • 1188 views

Hi,

i'm new to flash and i have a question...

i'm using uiloader to load my portfolio images... and when i test my movie the images appear, but when i put them online they don't... all my site is ok but my portfolio images just don't appear...

i don't know if i'm missing some code... here's what i have in my actions layer:

prox_btn.addEventListener(MouseEvent.CLICK, proxIma);

var imageNumber:Number = 1;

function checkNumber():void
{
    prox_btn.visible=true;
    ant_btn.visible=true;
    if(imageNumber==3)
        {
            trace(imageNumber);
            prox_btn.visible = false;
        }
       
    if(imageNumber==1)
        {
            trace(imageNumber);
            ant_btn.visible = false;
        }
}

checkNumber();

function proxIma (evtObj:MouseEvent): void
{
    trace ("proxIma");
    imageNumber++;
    imageLoader.source = "logoPort/0"+imageNumber+".jpg";
    checkNumber();
}

ant_btn.addEventListener(MouseEvent.CLICK, antIma);

function antIma (evtObj:MouseEvent): void
{
    trace ("antIma");
    imageNumber--;
    imageLoader.source = "logoPort/0"+imageNumber+".jpg";
    checkNumber();
}

imageLoader.addEventListener(Event.COMPLETE, imageLoaded);

import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;

function imageLoaded (event:Event)
{
    trace ("Image has been loaded");
    new Tween (imageLoader,"rotationX", Back.easeOut,90, 0, 2, true);
}

Am i missing something? or do i need to put some code in Dreamweaver to upload my images or something??

Thanks

This topic has been closed for replies.
Correct answer kglad

i see what you mean, just rewrote it like you showed me and the same thing is still happening. shows completely fine, but on the site still shows up blank. already rewrote my folder files so no spaces would be involved. :/

////////////////////////Image 1////////////////////////

if(MovieClip(this.parent).imagetxt.text == "a"){

    var imgurl:String = ("Slideshow1.swf");

    var myrequest:URLRequest = new URLRequest(imgurl);

    picload1.scaleContent = true;

    picload1.load(myrequest);

}


the swf corresponding to the top left button has not been uploaded (or is not in the correct location).

once you do that, make sure your loader picload1 is added to the stage so it's visible.

2 replies

Participant
January 16, 2013

Did you have any luck with this? I have am facing the same problem right now. When I test it in a preview, it works fine, but when I test it on the browser, the UILoader is the only thing missing.

kglad
Community Expert
Community Expert
January 17, 2013

post a link to your url and indicate what needs to be done to see the problem.

Participant
January 17, 2013

http://melindaubera.scaleticket.com/architecture.html

when you click on each picture as hopefully you can see, it pops up a gray box and in that gray box, that where the UILoader is supposed to pop up. this is the code i have written for it

////////////////////////Image 1////////////////////////

if(MovieClip(this.parent).imagetxt.text == "a"){

    var imgurl:String = "H:/Website/Local/images and html/Flash/Slideshow1.swf";

    var myrequest:URLRequest = new URLRequest(imgurl);

    picload1.scaleContent = true;

    picload1.load(myrequest);

}

and i uploaded this also so you can see what i want to show...this is the .swf file i uploaded to the uiloader that wont show up in my original

http://melindaubera.scaleticket.com/SlideshowPreview.html

Ned Murphy
Legend
October 25, 2009

On the server, where is the Flash swf file relative to the html page that holds it (directory-wise)?

Participant
October 25, 2009

hmm... they're both (swf and html) in my public_html and my portfolio images too (in a folder)