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








The Code For Positioning Images In Txt Files


It is possible to place and position images in txt.files that are being imported into movies but I have lost the script can anybody remember?




FlashKit > Flash Help > Flash ActionScript
Posted on: 06-29-2004, 05:09 PM


View Complete Forum Thread with Replies

Sponsored Links:

Positioning Images In A Textfield
When you place an <img> tag in a textfield in mx2004, how do you make a <br>. Cause it doesn't place my text underneath the image... Also when you want place two images, 1 underneath the other, it places the second image on top of the other instead of under it.

View Replies !    View Related
Positioning When Importing Images
Hello!

I have a very strange problem and I'm not sure if this is something resolvable or simply a bug in Flash MX under Vista.

I have a previously saved file, and whenever I wish to import an image into it, the image gets imported at a totally idiotic location, eg. x=0, y=0.5, or x=-319.5, y=60, etc. However, when I do the same with a new movie, they import perfectly to x=0 y=0. (in both cases, I imported 640x480 jpgs into a 640x480 swf. I also tried importing into a movie clip, but even then some constant seems to influence the positioning and images get placed to such insensible places.

Theoretically, if I import an image on the 1st frame of a totally empty layer of the root movie, its positioning should not be affected by any registration point issue. Is this right?

Can you give me a hint on this?

Thanks a lot,
Peter

View Replies !    View Related
Positioning Images In A Textfield
When you place an <img> tag in a textfield in mx2004, how do you make a <br>. Cause it doesn't place my text underneath the image... Also when you want place two images, 1 underneath the other, it places the second image on top of the other instead of under it.

View Replies !    View Related
Positioning 2 Loaded Images Together In MX
I'm having trouble trying to work out how to centre 2 loaded images via XML. I found some code by scotty that will centre one image but of course when I'm loading 2 images, they are both stacked ont top of each other.

I think I know what I need to do but not sure how to transfer that into ActionScript. ie - I want to get the width of picture1 and picture2, put a bit of space in between and then centre them both on the stage.

Here is the code I have for that part (let me know if I need to post any other part of it). Can anyone help me amend what I've got to achieve what I need or do I need to do it a different way?


Code:
p = 0;
var cx = picture._x;
var cy = picture._y;
var dx = picture2._x;
var dy = picture2._y;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal() && picture2.getBytesTotal();
loaded = picture.getBytesLoaded() && picture2.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
if (picture2._alpha<100) {
picture2._alpha += 10;
}
if (ClientMC.client_txt._alpha<100) {
ClientMC.client_txt._alpha += 10;
}
if (DescMC.desc_txt._alpha<100) {
DescMC.desc_txt._alpha += 10;
}
}
picture._x = cx-picture._width/2;
picture._y = cy-picture._height/2;

picture2._x = dx-picture2._width/2;
picture2._y = dy-picture2._height/2;

};
Thanks

View Replies !    View Related
Positioning Dynamic Images
Hello,

This is my first but probably not last time that I will be asking a question.

I am creating a fully dynamic XML based flash site.

here is a sample of some of my code:

myXML = new XML();
myXML.ignoreWhite = true;
myXML.load("gallery.xml");
myXML.onLoad = function() {
numimages = this.firstChild.childNodes.length
logospacing = 70
spacing =90;
for (i=0; i<numimages; i++) {
loader._x = 250;
loader._y = 220;
title_txt._x = 250;
title_txt._y = 420;
logos._x = 25;
trace (logos._x)
logos._y = 25;
picHolder = this.firstChild.childNodes[i];
this.logoHolder = _root.logos.createEmptyMovieClip("logo"+i, i);
this.logoHolder._x = i*logospacing;
this.logoHolder.logo = picHolder.attributes.logo;
this.logoHolder.campain = picHolder.attributes.campain;
this.logoLoader = this.logoHolder.createEmptyMovieClip("logo_image"+ i, i);
var twlm:Tween = new Tween(sep1, "_y", Regular.easeOut, 0, 92, 1, true);
var twlm:Tween = new Tween(logomask, "_alpha", Regular.easeInOut, 100, 0, 1, true);
var twlh:Tween = new Tween(logos, "_y", Regular.easeOut, -75,25, 1, true);
this.logoLoader.loadMovie(picHolder.attributes.log o);

My question is how do I position the created logoHolder with all the logos that are going to be dynamically loaded by the XML to be centered on the stage via _x.

I know that the positioning of the logoHolder can be positioned by setting the logos._x to a value and it will put it on the stage along the x axis.

What I would really like is for the logos to either be centered on the stage or have them spread out accross the stage evenly but staying within the boundaries of the stage.

If this is confusing I am sorry. But you can check out what I have done so far by going to HERE and what i mean by the logos being spaced. The logos I want spaced properly are the Puma logos.

Thnks in advance for your help.

View Replies !    View Related
Positioning Images In A Textfield
When you place an <img> tag in a textfield in mx2004, how do you make a <br>. Cause it doesn't place my text underneath the image... Also when you want place two images, 1 underneath the other, it places the second image on top of the other instead of under it.

View Replies !    View Related
Please Help Positioning Images Automatically - CS3
I'm having a problem with the following code. It places clips from the library into a movie clip (called container) and names them thumb1_mc, thumb2_mc etc. They are placed in a row and work fine when they are all the same width. But I have images of different widths and I have no idea how to alter the width line of code to get it working fine:


//places images on stage and positions them in a row in the centre

var imagesNumber:Number = 10;
for (i=1; i<=imagesNumber; i++) {
container.attachMovie("thumb"+i,"thumb"+i+"_mc",i) ;
myThumb_mc = container["thumb"+i+"_mc"];
myThumb_mc._x = (i)*myThumb_mc._width;
myThumb_mc._y = (Stage.height-myThumb_mc._height)/2
}

Please help, I'm getting desperate!!
Thanks in advance!

View Replies !    View Related
Positioning Images On Stage
Can any one help me! i thought this would be straight forward but it seems to of lost me now. Basically i am loading some data dynamically and want to position it like so (x = data)

x x x
x x x
x x x

etc...

but when i run the following code it does the following (again x = data)

x x xx x x
etc...

if (this.ref["bclip_"+i]._x<200) {
this.ref["bclip_"+i]._x = this.ref["bclip_"+(i-1)]._x+this.ref["bclip_"+(i-1)]._width+offset+13;
if (this.ref["bclip_"+i]._x>200) {
this.ref["bclip_"+i]._y = this.ref["bclip_"+(i-3)]._y+this.ref["bclip_"+(i-3)]._height+offset;
this.ref["bclip_"+i]._x = this.ref["bclip_"+(i-1)]._x+this.ref["bclip_"+(i-1)]._width+offset+13;
}

i thought i would just need to reset the x value so it goes back the original x position but if i do that it goes crazy.

Hopefully this makes sense if anyone could help... I would really like to learn why this is doing this and how i can fix it (or what i am doing wrong).

Thank you

View Replies !    View Related
Positioning Swf Files In Movie
hi again
my question is:

lets imagine I am making a movie which has 3 buttons which load 3 external swf files

the buttons are located in the center of the movie....

button 1 should load a swf file at the top of the original movie (north)

button 2 sould load the file to the botthm (south)

and button 3 loads it in the center

how can i achieve this?

is there some way to define co-ordinates at which the swf file will be placed when called by pressing the button?

Any help will be appretiated
thanks in advance

View Replies !    View Related
Positioning Externally Linked Images
Hello,
I got some code eariler for importing jps, but my roblem is now positioning them where I want the to be, I tried a bit of code that I thought of but it didn't work (below)

One more thing, whe I link these external images, how can I test them without having to export ? For example, this positioning, if i do i figure it out, there will e alot of back and forth to make sure it is in the right spot.



Code:
_root.createEmptyMovieClip("logo", 5);
_root.logo.loadMovie("daddy.jpg");
_root.logo._xscale = 50;
_root.logo._yscale = 50;
_root.logo._xposition = 300;
_root.logo._yposition = 100;

View Replies !    View Related
Positioning Images At Random Locations
hi all,

i've been working for the past two days on this project and i'm completely confused what is wrong. what i want to do is to have a set of pictures (drwan from an xml file) to be posted at random loactions around the content area. i'm using attachMovie() method to attach a template form and then assign picture that is to be displayed and the text.

first problem, going through the for loop to post each picture, it waits until everything is done, then puts everything at once. I would want it to post pictures as it goes along. and if i increase the number of pictures to 30 (the maximum) it complains that the loop is somehow infinite and goes nuts flashing all the clips.

second problem, i want to have a mouse over effect that enlarges the picture by a small amount and shows text. i tried masking the text and unmasking it, but when i mask, when I assign a .text value, it wouldn't show it.

third problem, i can't for the life of me get the pictures to show up. I tried a loader component, no luck. i tried loadMovie(), no luck. i'm stuck!

i've attached a zip with all the files.

any pointers would be appriciated

stillife

View Replies !    View Related
Trouble With Positioning Of Images In Gallery
I decided I should probably post this in the Newbie forum rather than the ActionScript forum, since I am a noob to Flash and this is more of a general Flash question than an ActionScript one.

I'm trying to create a Flash gallery of image files I will later embed within another Flash file to create a portfolio of some of my art and design work. The gallery I'm working with is a modified version of the one found at kirupa.com at http://www.kirupa.com/developer/mx2004/thumbnails2.htm .

For reference, here is the .fla file I'm working with right now (I'm using Flash 8, btw):
http://www.johnmilesart.com/Sketches/Sketches.fla
Here's a version saved for MX 2004:
http://www.johnmilesart.com/Sketches/SketchesMX2004.fla

Here is the associated .xml file:
http://www.johnmilesart.com/Sketches/images.xml

And here is the compiled .swf file:
http://www.johnmilesart.com/Sketches/Sketches.swf

The images themselves are located under the directory http://www.johnmilesart.com/Sketches/SketchesImages/ . They are gloveandhat.jpg , ladyinhatandglasses.jpg , and newbalance.jpg .

As you will see once you take a look at the .swf, I'm having some trouble getting the images to display zoomed and positioned how I want them. I have a box 500 px in width and 400 px in height set up to display them, and each image has been created at exactly these dimensions to fit perfectly. However, for some reason the images are displaying zoomed in and positioned off-center. I'm sure there's a relatively easy solution to this problem, but being new to Flash, it's evading me right now. I'd appreciate it greatly if someone could help me out a bit with this. Also, as you'll probably notice, I decided to remove the thumbnail navigation aspect, leaving just the next and previous buttons to navigate. If someone could help me remove the leftover thumbnail code to save space, that would be great.

Thanks again!

View Replies !    View Related
Automatically Resizing And Positioning Images
I have a dynamic website that I have been working on for about 6 months now. I have several sections that incorporate dynamically loaded images. I have no problem loading the images, but I am trying to get them to load in the same place as the holder object that I am loading them into but they always load to the corner and not the middle. I also need to auto-resize the images and wasn't sure how to do that.

my script goes something like this...

// loadPics
loadPics= function(){
this.holder.createEmptyMovieClip("imageHolder", 1);
this.holder.imageHolder.loadMovie(urlSource); //urlSource is from LoadVars object
this.holder.imageHolder._width= 100;
this.holder.imageHolder._height= 100;
this.holder.imageHolder._x= 0;
this.holder.imageHolder._y= 0;
};

I think that I need to make an onLoad function for the image that sets the size and position of the image so it runs those methods only AFTER the image has loaded. The other thing though, is I am not sure how to setup the registration point for the image to load in the center of the 'holder' movie clip. Help would be greatly appreciated.

View Replies !    View Related
[F8] Positioning Dynamically Loaded Images
hey!
i'm loading some images into the site i'm building dynamically and want them to come onto the screen bang in the middle. i'm loading them into an empty movieclip, called empty that's on the root timeline. here's my not-working script:


Code:
tempWedge.onRelease = function(){
launchImage();
loadMovie("illustration/"+_root.whichImage+".jpg", empty);
posEmpty();
trace(empty.width);
}
function launchImage(){
Tweener.addTween(overlay,{_alpha:80, time:0.4, transition:"easeInOutSine"});
Tweener.addTween(btmNav.bubble,{_alpha:0, time:0.4, transition:"easeInOutSine"});
}
function posEmpty(){
empty._x = (Stage.width/2) - empty.width;
empty._y = (Stage.height/2) - empty.height;
}


my trace of empty.width comes back as undefined. can anyone spot what i'm doing wrong here?
thanks guys!
emma.

View Replies !    View Related
Positioning Images In Movie Clip From Xml
Hi,
I am loading images from an xml file into an empty movie clip. Is there any code either for the xml or for the flash movie clip to specify each position for each image?
Thanks

View Replies !    View Related
Whats Wrong With This Xy Positioning Code?
When a movie clip hits frame 8 it automaticaly does the action below. I want it to load MEETOVER to level 2 then move it to a specific area on MEET. However the guest clip will not move to the specific coordinates. It goes up and over to the place it was created. I do not have time to redo it so that it automatically lines up. Any thoughts...

loadMovieNum("meetover.swf", 2);
setProperty("_level2", _x, "250");
setProperty("_level2", _y, "400");
stop();

View Replies !    View Related
What's Wrong With This Piece Of Code (positioning)
I'm trying to position a movieclip on the center of the stage

Code:
MC.x = (stage.width/2)-(MC.width/2);
MC.y = (stage.height/2)-(MC.height/2);
When I do this, it doesn't even get close to the center of the stage :-(

View Replies !    View Related
Loading Jpeg Files And Positioning
In AS I am using the loadMovieNum("jpeg_FILE.jpg", 10); onto level 10. Would I be able to postion the x and y coordinates of the jpeg? By default it places the image in the top left corner (0,0).

I know there are other ways to acheive this by placing a blank movie clip on the timeline with a loadMovie("jpeg_FILE.jpg", "image_holder");, but I have a lot of images that will be replaced and change on the timeline so the first method would be more efficient if it can work. Also, I'm not sure if using the loadMovie method automatically unloads the previous movie from whatever level it might be placing it on, as the loadMovieNum does.

Thanks.

View Replies !    View Related
Dynamic Positioning Using External Files
Greetings,

I’m relatively new to action script so this may take a while. I am attempting to create a website which can be controlled via an external .txt file. I have all the Text, Images, and menu items being taken from a single .txt file and now I want to experiment with the dynamic positioning of say text boxes and loader components.

What I am aiming for is providing a set of CoOrds in a text file and having flash apply them to a text field or loader.

I know I am way out of my depth but if anyone could give me a few pointers or knows of an idiots tutorial, it would help me greatly.

Cheers,

Atomiser

View Replies !    View Related
Menu W/ Dynamic Images + Width & Positioning
For part of a site I'm working on, I'm creating dynamic submenus that are built from a loop into an empty movie clip, attaching set-up movie clips to display product names and load in external JPGs. I'd like to be able to center the entire menu horizontally but I realize that the widths of these movie clips cannot be determined until the JPGs are fully loaded in. My question is, how would I set up a function that could determine when all of these JPGs are loaded and then center their parent clip? And this function would have to apply to varying numbers of menu items and JPGs of varying widths -- can anyone help? Thanks...

View Replies !    View Related
Positioning Loaded Images In A Movie Clip
I have a movie clip (large) where I loaded an image into by using:

Code:
loadMovie(place+".jpg","large");
However the upper left corner of the image lines up with the center of the movie clip by default. I would like to have the center of the image line to the center of the clip. I am not sure what direction I should go in with the code or if I should rethink loading the image.

Any thoughts from anyone?

View Replies !    View Related
Positioning Images Loaded Through Html Formatted Xml
I have some questions, I have an xml file that's loaded into flash, with html formatting, like this:


Code:
<PAGE>
<ITEM>
<img src="img/logo.png"/><b>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi lacus felis, euismod at, pulvinar sit amet, dapibus eu, eros. Etiam tellus. Nam vestibulum porttitor urna. Phasellus aliquet pretium quam. Proin pharetra, wisi nec tristique accumsan, magna sapien pulvinar purus, vel hendrerit ipsum tellus at ante.</b>
</ITEM>
</PAGE>
this will give me a left aligned image with text wrapping around it, starting on the right side of the image, and when the image ends it continues under it, now to the question, is there an easy way to make the image aligned to the right with the text to the left and then continuing under it?

or do I have to come up with another solution for this?
and if so, do you have any tips on the most efficient way to do it?

View Replies !    View Related
Dynamic Positioning Of The Rollover Images In A Movie Clip
hi everybody...

i am facing a problem... i have a movie in which i have 50 thumbnails dynamically added to a mc and i have a scroller to scroll the mc which works fine.. on each thumb i have a rollover image (which is a bigger image of the thumb) which works fine but i want the rollover image to be shown within the area of mask area which is not happening now.. i am attaching herewith the fla and swf...
please help..

View Replies !    View Related
Problems With Positioning Dyn. Attached Buttons & Centering Loaded Images [renamed]
this is a piece of my script...
what it has to do is to generate "j" buttons (j being the number of registrations from my database) and arrange them in rows of 5 or 6...
unfortunately the buttons are generated but are not arranged properly. i have 9 registrations in the database so there are 9 buttons... the first 8 are next to each other and the last one is somewhere to the right...

further on, at the release of a button it should create the lwLogo movieclip and load there a certain pic (the path being taken from my database). then the lwLogo mc should be centered on the screen... as this doesn't happen in the _root the center of the screen would be -442 in this movie clip so normally to center the image i should place lwLogo at -442-(lwLogo._width/2) but this doesn't work. the photos are loaded but not in the center...

would anyone please take a look?
thanks in advance



Code:
serie=0;
serii=0;
for(j=workEntries-1;j>=0; j--){
var mc = copyButton.duplicateMovieClip("copy"+j,j+10);
mc._x = (j-serii)*20;
if (mc._x>=120) {serie=serie+35; serii=serii+5}
mc._y =(15 + serie);
mc.id = workSection.childNodes[j].childNodes[1];
mc.nr=j;
mc.onRelease = function(){
removeMovieClip(_root.lwLogo);
this.createEmptyMovieClip(lwLogo)
lwLogo._alpha=0;
lwLogo.loadMovie(unescape(workSection.childNodes[this.nr].childNodes[2].firstChild.nodeValue));
if (lwLogo.getBytesLoaded() == lwLogo.getBytesTotal()) {
lwLogo._x=-442-(lwLogo._width/2);
this.onEnterFrame = function() {if (lwLogo._alpha<=100) {
lwLogo._alpha += 10;

View Replies !    View Related
Problems With Positioning Dyn. Attached Buttons & Centering Loaded Images [renamed]
this is a piece of my script...
what it has to do is to generate "j" buttons (j being the number of registrations from my database) and arrange them in rows of 5 or 6...
unfortunately the buttons are generated but are not arranged properly. i have 9 registrations in the database so there are 9 buttons... the first 8 are next to each other and the last one is somewhere to the right...

further on, at the release of a button it should create the lwLogo movieclip and load there a certain pic (the path being taken from my database). then the lwLogo mc should be centered on the screen... as this doesn't happen in the _root the center of the screen would be -442 in this movie clip so normally to center the image i should place lwLogo at -442-(lwLogo._width/2) but this doesn't work. the photos are loaded but not in the center...

would anyone please take a look?
thanks in advance



Code:
serie=0;
serii=0;
for(j=workEntries-1;j>=0; j--){
var mc = copyButton.duplicateMovieClip("copy"+j,j+10);
mc._x = (j-serii)*20;
if (mc._x>=120) {serie=serie+35; serii=serii+5}
mc._y =(15 + serie);
mc.id = workSection.childNodes[j].childNodes[1];
mc.nr=j;
mc.onRelease = function(){
removeMovieClip(_root.lwLogo);
this.createEmptyMovieClip(lwLogo)
lwLogo._alpha=0;
lwLogo.loadMovie(unescape(workSection.childNodes[this.nr].childNodes[2].firstChild.nodeValue));
if (lwLogo.getBytesLoaded() == lwLogo.getBytesTotal()) {
lwLogo._x=-442-(lwLogo._width/2);
this.onEnterFrame = function() {if (lwLogo._alpha<=100) {
lwLogo._alpha += 10;

View Replies !    View Related
Images In Txt Files
How do you import images and position them into external txt files that are being imported into flash movies? I know this is possible but can't remember the script :-)

View Replies !    View Related
Trying To Skew Images With Code...
I'm trying to create a nav where I have a bunch of images that are at an angle....and one that is facing the viewer.

Sort of like the itunes store ....

http://cultofmac.com/wp-content/uploads/itunes.png

Is there a way to skew an image with code so that it will achieve this effect?

Thanks

View Replies !    View Related
Help With Scrolling Images Code
I need to have the image in my scroller to ease or slide back into position when I rollover a button. I am not sure if I need just need to set the scroller speed or not .This is my scroller code

ActionScript Code:
//setting the variables for the script;
_root.scrollerName = _root.scrollerClip;
// left edge of movie
_root.left = 0;
// right edge of movie
_root.right = 476;
// inner left edge
_root.innerLeft = 30;
// inner right edge
_root.innerRight = 446;
// top starting point
_root.top = 1;
// bottom starting point
_root.bottom = 312;
// control max  position left and right
// movie scrolls left
_root.minXposition = -936; // was -697
// movie scrolls right
_root.maxXposition = 936; // was 1170
// set idle speed
_root.idleScrollSpeed = 3;
_root.overScrollSpeed = 10;
// if the scroller has gone to the end, switch directions;
if (_root.scrollerName._x<_root.minXposition) {
    trace(_root.scrollerName._x);
    _root.scrollerDirection = "right";
} else if (_root.scrollerName._x>_root.maxXposition) {
    _root.scrollerDirection = "left";
    trace(_root.scrollerName._x);
}
if (_root._ymouse<_root.bottom && _root._ymouse>_root.top) {
    //checking to see if the mouse is in the left area, if so, continue;
    if (_root._xmouse>_root.left && _root._xmouse<_root.innerLeft) {
        if (_root.scrollerName._x>_root.maxXposition) {
            break;
        } else {
            _root.scrollerName._x = _root.scrollerName._x+_root.overScrollSpeed;
        }
    } else if (_root._xmouse>_root.innerRight && _root._xmouse<_root.right) {
        if (_root.scrollerName._x<_root.minXposition) {
            break;
        } else {
            _root.scrollerName._x = _root.scrollerName._x-_root.overScrollSpeed;
        }
    } else if (_root._xmouse<_root.left or _root._xmouse>_root.right) {
        if (_root.scrollerDirection == "right") {
            _root.scrollerName._x = _root.scrollerName._x+_root.idleScrollSpeed;
        } else if (_root.scrollerDirection == "left") {
            _root.scrollerName._x = _root.scrollerName._x-_root.idleScrollSpeed;
        }
    }
} else if (_root.scrollerDirection == "right") {
    _root.scrollerName._x = _root.scrollerName._x+_root.idleScrollSpeed;
} else if (_root.scrollerDirection == "left") {
    _root.scrollerName._x = _root.scrollerName._x-_root.idleScrollSpeed;
}


Right now I can set the x postion in the rollover but not sure how to set to ease back into positions

ActionScript Code:
on (rollOver) {
    _root.scrollerName._x = 0; //would like to slide back into position 
    _root.scrollerName.hlr_mc.gotoAndStop("on");   
    _root.scrollerDirection = 0;
}

View Replies !    View Related
Code Animation Using These 2 Images
If you closely look into this animation-glow_device4.fla you will find this is a simple flash tween animation.But please help me code this animation may be using tween class.

Details of this animation:
15 seconds after the page has fully loaded, the (>) button glows from

View Replies !    View Related
Trying To Skew Images With Code...
I'm trying to create a nav where I have a bunch of images that are at an angle....and one that is facing the viewer.

Sort of like the itunes store ....

http://cultofmac.com/wp-content/uploads/itunes.png

Is there a way to skew an image with code so that it will achieve this effect?

Thanks

View Replies !    View Related
Trying To Skew Images With Code...
I'm trying to create a nav where I have a bunch of images that are at an angle....and one that is facing the viewer.

Sort of like the itunes store ....

http://cultofmac.com/wp-content/uploads/itunes.png

Is there a way to skew an image with code so that it will achieve this effect?

Thanks

View Replies !    View Related
Reusing SWI Files For Different Images
I want to use SWISH2 to make slide shows of photographs I have recently taken and post this on the web. This part is fine I can do this and get great results.

So I have invested all the time in making my SWI file which refers to various jpg files I have stored on my computer which lets say are named image1.jpg, image2.jpg and so on.

Now what I want to know is, is there any way I can change the images on my computer (keeping the file names the same) so that that when I run my SWI file it picks up the changed images without me having to go into SWISH2 and spends lots of time re-importing the new images. At the moment if I alter the images the SWI file will still show the original images that I used in the first construction of the SWI file.

If I could get this to work all I would have to do to update my site with new images is save over top of my existing jpgs load the original swi file export to html or flash then upload the file to my website.

Is this possible?

Look forward to any help

Regards

Andrew

View Replies !    View Related
Swapping Images And Swf Files
Is there a java script that I can use that will allow me to do a simple rollover from a gif image to a swf file?

Thanks,
Matt

View Replies !    View Related
Position Images Using Txt Files
Can anyone remember how to position images in an exernal txt file that is being used in a flash movie

View Replies !    View Related
HELP IMPORTING .AVI FILES & GIF IMAGES
Hi

Im new to flash and i am trying import a .avi movie file into flash but the keyframes go crazy ie 2042 frames! which i gathered is from each movement of the movie.....how can i import this movie in without this happenin? and for it to wellll jsut do what i want it to!! btw im on a mac and using flash mx

also some images i import into flash are a really decent res..some i have saved for web as a gif file some are just imported in as jpegs...but they come out pixelated...anything im doing wrong? whats the maximum size my images should be for an effective flash presentation....

god help me im goin crazy

thanks for any replies in advance

View Replies !    View Related
Images From External .jpg Files.
I've got a question that could speed up the way my flash site is updated...is it possible to load external .jpg files in a template (eg. an empty movieclip) in flash? You know, I load various images saved as external swf in my sites but loading directly from .jpg or bitmap would be a huge time-saver for sites that require constant updating...

View Replies !    View Related
Loading Images Files
I have the following code


ActionScript Code:
var image1:URLRequest = new URLRequest("picture1.jpg");
var image2:URLRequest= new URLRequest("picture2.jpg");
var image3:URLRequest= new URLRequest("picture3.jpg");
var image4:URLRequest = new URLRequest("picture4.jpg");
var image5:URLRequest = new URLRequest("picture5.jpg");

var imageLoader:Loader = new Loader();
imageLoader.load(image1);
addChild(imageLoader);

Once the first image is loaded and displayed if they click the next button I want to show the next image e.g. picture2.jpg. I am not sure how to do this in AS3, I would have used eval in AS2 and a for loop.

Any suggestions

View Replies !    View Related
Combining .gif Images And .wav Files As A Swf
When I import the .gif image and the .wav file into the document, but when I add the sound file, and I preview it, the .wav doesn't loop; it just starts over and stops playing when it is over. How can I get the sound to loop over and over?

View Replies !    View Related
External Images And Txt Files
Hi again!

Here I have another question/problem that bothers me a lot:

Introduction:
I have a flash movie “A” that loads an external flash movie “B”.
In “B” I have a script that loads an image and a txt file from the same server.

Problem:
When “B” is loaded it takes some time to see that text or the image. And even in occasions they don’t load at all.

Code:
Text: this.loadVariables("toph.txt?Ran="+random(999), "top_texto");
Image: loadMovie("musica/d1.jpg", this.h1);

Solution?
Does some one know how to make the flash movie loads those external objects?


Thanks in advanced!

View Replies !    View Related
Security Of Code In .swf Files
I am creating password protected areas of my websites with actionscript. I realize that if someone were able to disassemble my .swf files they would be able to see my code and figure out how to get into the protected areas.

At one time I remember seeing a program that was supposed to extract actionscript from a .swf file. Have any of you successfully used this or a similar program?

Also, are there any other obvious security risks involved in protecting a section of a website with actionscript?

-Your Goddess
Mistress Evilena

View Replies !    View Related
Comparing Two Fla Files For Code Changes
Hi,
Anyone know how to compare two fla files to see what bits of code have been changed?
I always back up my flas files before the next days work (Sometimes 3 or 4 backups per day depending how much I get done) but there is a mistake in my latest code and I would like to quickly and efficiently track the pieces that could be causing it.

Thx
Shaf

View Replies !    View Related
How Do I Code So Pdf Files Can Be Downloaded?
I am working on a website where I want to be able to have downloadable pdf forms--but trying to search for a tutorial on this has resulted in little help.

Could anyone help point me in the right direction?

Thanks so so much!

View Replies !    View Related
Correct Code For Swf Files From Xml
I have a Fla and xml template that I am working from. The code from the xml is as follows:

<?xml version="1.0" encoding="iso-8859-1"?>
<images >
<img image="photo_tb/sp56.png" title="SP56" url="http://www.blabla bla.html"window ="_blank"/>

What I want to do is have the image open a separate .swf file that will be part of a CDROM either in the same folder or one next to it.

Can anyone help with the right source code to open the swf?

Thanks!!! The Dali Lama will bless you for this, we are good friends!

View Replies !    View Related
Help With Code To Open Pdf Files
Hi guys,

Anyone has a code to open a pdf file? Basically I have buttons that should open pdf files on specific page numbers. I heard that there are 2 ways, one is to open it in a browser, and the other with acrobat itself less the browser - please provide both options.

Also, if there is a scenario like ButtonA pressed opens pdf1 on page 5, then ButtonB pressed and opens pdf1 on page 6 - would 2 pdfs be opened or just the same pdf (provided it is still open) and referenced on a different page?

Thanks a heap!

View Replies !    View Related
A Lot Of Code And Included Files
I have a movieclip named ready, that onRelease I want some files to be included.
If the included files have a lot of code it doesn´t work, the button becomes inactive.
if the first included file has a lot of code and the counter=2 it doesn´t work. I assumed that the included files could have a lot of code because only one option is possible at time. I mean if counter=2, the option counter=1 is of no interest and it shouldn´t matter how much code counter1.as has.

Code:
ready.onRelease = function(){
if (counter==1 ){
#include "counter1.as"
}else if (counter==2 ){
#include "counter2.as"
}
}
First I tried to have all code in one frame without any included files but when that didn´t work I tried with the included files, now when that doesn´t work either, what to do if you have much code???
I have worked with this for a week now.

View Replies !    View Related
Preloading Images Code Question
I found the following code here on the forum and have some questions.


Code:
var files=["images/1.jpg","images/2.jpg","images/3.jpg","images/4.jpg","images/5.jpg"];
var preload=function(){
if(this._width)this.removeMovieClip();
}
for(var each in files){
var temp=this.createEmptyMovieClip(each,each);
trace("each = " + each);
temp.createEmptyMovieClip("tempImage_mc"+each,each).loadMovie(files[each]);
this.createEmptyMovieClip("image_mc" +each, each).loadMovie(files[files.push(files.shift())-1]);

// check clips & depth < -----------------------------------------
for (var i in this) {
if (typeof (this[i]) == "movieclip") {
trace("movie clip '"+this[i]._name+"' is at depth "+this[i].getDepth());
}
}

temp.onEnterFrame=preload;

}
1. How can I see how much (what percentage) of these files are loaded?
2. If I used this script to load images I plan on using later in my timeline how would I keep them hidden until they are needed?
3. Lets say I want to load 50% of the images and then allow the user to start playing the animation. While the animation loads the remaining 50% could load. How could this script be modified to allow that?

Thanks!

View Replies !    View Related
How Can I Lower The Images Quality By Code?
Hi,
Firstly, I got to admit that I don’t know much about Flash programming.
I have a flash object on my site that shows images as a slideshow.
The problem is that it is very slow! How can I lower the image quality?
thanks

View Replies !    View Related
Load External Images Into Swf Files?
I'm wondering if it is possible to have images externally load into a swf just as you can have a *.txt document. Without buying additional software just flash mx?

Thanx for any feedback.

View Replies !    View Related
Adding Images Or Extras To .fla Files
I have been experimenting with flash MX and I have a nice start on a good flash intro. I see some of the effects and text effects on this site. The question I have is how do you load and change the .fla files and implement them into the movie. I know that layers is a key role but after attempting to try it I think that the file I imported into the library is being buried behind another layer. Can someone shed some light on the situation for me???

View Replies !    View Related
[F8] Delete Images And Other Files On My Server
Hallo all your Experts

I have made a upload system for my gallery (made it from a tutorial).

And it works good.

My problem is that I can only upload images, and not delete the images already uploaded.

I would like to know if any of you not of a tutorial or an open source where you will be able to delete already uploaded images, and files on your server.
I use flash with PHP and MYSQL.

I know of a tutorial some where. Where I could upload a PHP script onto my server and I could then tell me what was on my server and I was able to delete, and ever see the images
in a viewer, so that it was the right image that I deleted, bu I can not find that tutorial anywhere.

Maybe some of you have seen it.

Please help.
Thanks

View Replies !    View Related
Preloading Text Files With Images
Hi,

I have buttons and every button is loading different text file into textBox.
In these text files there are:
(*) some text,
(*) <img src="...">,
(*) <a href="asfunction:...">, etc.


Code:
loadText = new LoadVars();
loadText.load("text01.txt");
loadText.onLoad = function(success) {
if (success) {
textBox.html = true;
textBox.htmlText = this.myText;
trace(this.getBytesTotal());



"this.getBytesTotal()" returns only the size of a loaded text file,
but I need the size of loaded text file and size of all images.
Links to images are in text files.

Bandwidth profiler doing this very nice, so I hope it could be done in ac.
Do I need some NetStream.bytesLoaded and bytesTotal?

How to calculate the final size of a textBox after loading text and images.

//thx

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved