Non Progressive And Baseline Optimized Image Wont Show
a non-progressive and baseline optimized image wont show. Below is the code i have. Do i need to load the image or do something more besides what i have done?scroller_txt.text = myArray[1].firstChild.nodeValue;//trace(scroller_txt.text);for( m=0; m<100 ; m++){ trace("hi"); if(m%2 == 1) { trace(m);scroller_txt.htmlText+= " "+ "<img src="E:\Helena's Game 10-23-2006\flash\tigo.jpg">"+ myArray[m+2].firstChild.nodeValue; //trace(t); }}
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 11-29-2006, 06:35 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Variable Baseline
I would like to randomly apply a variable baseline to each character in a text field like can be done in Illustrator. Can I do this without making each character a textField?
Thanks
Text Cut Off Below Baseline
I am using a pixel font, and letters like g, p, etc. are getting partially cut off below the baseline, even when the text wraps to multiple lines.
Please help!
Thanks!
How To Calculate The Baseline Of Text?
I'm trying to calculate what the baseline of a textfield would be.
TextField.textHeight returns a value that is a few pixels below the actual bottom of the leters. If the font size is large, the distance between TextField.textHeight and the actual bottom of the letter is greater; if the text is smaller, the distance between TextField.textHeight and the actual bottom of the text is smaller. So there's a ratio of some sort that gets larger as the font size gets larger.
I need to get the _y value that is the real bottom of a letter so that I can line up a smaller textfield so both textfields rest on the same baseline. Anybody have any ideas?
To play around with this, I've posted some code below that creates a textfield with a big "H". I then draw a line at the _y value that TextField.textHeight gives me, and the line is a bit below the actual bottom of the "H". Then I create another textfield with a small "ello world" and try and get this text to line up with the bottom of the "H" according to the _y value of the "H" TextField.textHeight.
code:
// -----------------------------------------
// a larger textfield
// -----------------------------------------
_root.createTextField("test_txt", 0, 0, 0, 160, 160);
var testTF = new TextFormat();
testTF.size = 50;
_root.test_txt.text = "H";
_root.test_txt.setTextFormat(testTF);
var baseLine = _root.test_txt._y + _root.test_txt.textHeight;
with (_root) {
lineStyle(1, 0x000000, 100);
moveTo(0, baseLine); // draw a line at baseLine so I can see it visually
lineTo(300, baseLine);
}
// -----------------------------------------
// a smaller textfield
// -----------------------------------------
_root.createTextField("test1_txt", 1, 40, 30, 60, 20);
testTF.size = 15;
_root.test1_txt.text = "ello world";
_root.test1_txt.setTextFormat(testTF);
// move the textfield down to the baseline
_root.test1_txt._y = baseLine - _root.test1_txt.textHeight;
Why Does Slide Show Image Dispears After 3 Minutes (When Show Is Stopped)
I made a slide show with navigation buttons, but when the slide show is stopped for more then 3 minutes; the image just disappears. Here is the code I am using:
First Actionscript
Code:
loadMovie(""+photo1+"","mc1");
_root.mc1._xscale = 80;
_root.mc1._yscale = 70;
_root.mc1._alpha = 0;
Second Actionscript
Code:
var speed = 5
onEnterFrame = function() {
_root.mc1._alpha += speed
}
Then I tried this; the image did not disappear this way, but the transitional effect did not work.
First Actionscript
Code:
_root.loadMovie(""+photo1+"","mc1");
_root.mc1._xscale = 80;
_root.mc1._yscale = 70;
_root.mc1._alpha = 0;
Second Actionscript
Code:
var speed = 5
onEnterFrame = function() {
_root.mc1._alpha += speed
}
What do I need to do, too make sure image continues to display?
PS: I am sending query string from HTML to Flash to display variables (ie. movie.swf?photo1=mypic.JPG)
Blurry Image With Mask Of Clear Image That Is Supposed To Show When Mouse Rolls Over
Very first thing, after preloader, is a blurry image that is supposed to get clear when mouse goes over the image. Problem is, the image that is clear will not, when previewing the movie, move from the top left corner. It is supposed to be right on top of the other image, which is in the middle of the screen. when i go into the layer that the clear image is it is right over the blurry image. I don't understand why, and have tried many different ways to try and fix this. Please let me know if you can help. Thanks.
[F8] Progressive Bar For Progressive Download Video
I am very new to flash!!!
I want to create progressive download video. I know how to create the one , but I don't know how to put progressive bar ( show loading number before video playing) before progressive download video.
Please help me ASAP!! Because I need to create it for business. Thank you!
[F8] Progressive Bar For Progressive Download Video
I am very new to flash!!!
I want to create progressive download video. I know how to create the one , but I don't know how to put progressive bar ( show loading number before video playing) before progressive download video. I want to make it to determine internet connetion speed and load video.
Please help me ASAP!! Because I need to create it for business. Thank you!
Show Captured Image In MovieClip Without Saving Image First
Hello all,
How can I show an image that I have just captured with the webcam?
I am able to save that image using PHP but before I save it, I want to show a preview. How can I do this? Here is a snippet of the code that I think can be used to do this:
ActionScript Code:
foo = new BitmapData(640,480);
foo.draw(myvideoobject, scaleMatrix);
var myEncoder:JPEGEncoder = new JPEGEncoder(100);
myCapStream = myEncoder.encode(foo);/
How do I take the BitmapData or the JPEGEncoder and put it into a MovieClip or something so that I can just display it?
Thanks all for any help!
Slide Show Image Dispears 3 Minutes After Slide Show Is Stopped - Why?
I have created a slide show with a stop button. The buttons stops; but after about 3 minutes of being stopped, the image just disappears and all I see is the movie's background. Does anyone know why this is occuring? If so, is there a quick fix for this issue?
PS: I used one of the goToAndPlay Key Frame events built right into my software; I assume it was this (to make movie stop):
Code:
on(release) {
stop();
}
Optimized Swf
hi!
i am doing a lot of search on how to optimize a flash site, but i'm not having the right answers...
i am rebuilding a web site (all in flash) and there is a portfolio section devide in 7 different movies (they are between 300 k and 1.5 meg that is to big...)
before there was about 200 images in png format with transparency...so i decide to save all the images in the portfolio section in jpeg format (no transparency)
so they are less big (exemple 1 image was 200k and now is 16k)
before the movie swf was 1meg...and now.....1meg again!
i dont understand!
how can it be explain
any help will be appreciated
amelie
Can These Be Optimized More?
I would like to turn this code into something simpler.
I was thinking that I could use a function to do the work, not sure if that would make the process run smoother but figured it couldnt hurt.
Anyway If there is a way you think I can optimize this code in some way let me know.
I am looking to optimize performance wise.
Code:
cx = _parent.circle._x;
cy = _parent.circle._y;
R = _parent.circle._width / 2;
b1 = (Y - oldy1) / (X - oldx1);
bc = -1 * (1 / b1);
a1 = (Y - (X * b1));
ac = (cy - (cx * bc));
xi = (a1 - ac) / (bc - b1);
yi = (b1) * xi + a1;
cl = ((xi - cx) * (xi - cx)) + ((yi - cy) * (yi - cy));
cl1 = ((X - cx) * (X - cx)) + ((Y - cy) * (Y - cy));
cl2 = ((oldx1 - cx) * (oldx1 - cx)) + ((oldy1 - cy) * (oldy1 - cy));
cl = Math.sqrt(cl);
cl1 = Math.sqrt(cl1);
cl2 = Math.sqrt(cl2);
if (xi != undefined and X > xi and xi > oldx1 and cl < R or cl1 < R or cl2 < R) {
_parent.circle.gotoAndStop(2);
} else {
_parent.circle.gotoAndStop(1);
}
Jpg Optimized By Code
hi, i have a site with a load of images in swf's. i have optimized the images from the library, to around 90%.
now instead i would like to load external jpg's into flash, so not embed them in their own swf first
my question is, is it possible to have code optimize the jpg to 90% quality.
so basically code would load the jpg and render it at 90% quality.
any help would be wonderful,
thanks
mark
Help With Optimized AI : Pathfinding
I am building a TD style game :
bad guys come out froma "start" area and head for the "end area" and you place towers in there path to atack them and try to stop them.
problem is, i dont have a pathfinding code that is good enough as the tile based map is constantly changing as the player puts towers into the game area changing the tileset and thus needing new path computed. stacking this with the fact that there could potentialy be an incredable amount of "bad guys" trying to find there way to "the end" at higher waves.
UI Components Are Not Optimized Are They?
I've noticed that adding the standard UI components like checkboxes, radios etc. really bloat up the final .swf filesize. Branden Hall wrote something a while ago saying that although each component may be heavy filesize wise, most of them share resources. So if you add a checkbox, your swf goes up by ~6kb. But if you also add a combobox (or whatever) the final swf would only go up by little more (i.e. not 6kb more).
But I find that if Im trying to build a form using flash, I use a lot of the UI components together. Im looking at a project I'm working on that is mostly script. I have a few gifs for background, and a couple of embedded fonts. These put together with my scripts come to about 20Kb. Not bad I think. But put in a combobox, two groups of 4 radios and one group of 4 beckboxes and now i'm looking at 50 Kb. And thats compressed!!
Is anyone aware of more liteweight UI components out there? Or maybe some optimization techniques for script intensive projects?
Shaheeb R.
Optimized Movie?
I'm curious, if i remove any unecessary images from my flash library, will that make the exported flash movie run any more faster? I am also wondering if my movie will stream playing immediately, or will it wait until all the frame have been loaded? Its running at about 4 megs right now. Is that a good rate for something with audio? My dilema is that its my logo, and I don't want people waiting to see it.
please let me know thanks,
S a MMMM
Is This Preloader Optimized?
Hey out there;
I'm in the process of optimizing my movies. Someone pointed out that my preloader that someone made for me, might be preloading 'everything' before letting the viewer see anything. He recommneded that i put into the script 'if so many frames or bits or whatever is loaded, then start playing', thus cutting down on that dreaded wait period.
Okay, so i'm reading up on that.
What I'd like to ask you: would you look at the preloader code below and tell me if it is indeed insisting on loading everything before showing anything, before i go messing with this preloader?
If so, would you help make it better?
On the preloader's timeline are 3 frames with code.
frame 1 =
_parent.stop();
frame 2 =
kBytesLoaded = (_parent.getBytesLoaded()/1024)/3;
kBytesTotal = (_parent.getBytesTotal()/1024)/3;
kBytesRemaining = kBytesTotal - kBytesLoaded;
percentLoaded = 100 * kBytesLoaded / kBytesTotal;
percentRemaining = 100 - percentLoaded;
progress = Math.floor(kBytesLoaded) add " of "
add Math.floor(kBytesTotal) add " kBytes";
loadBar._xScale = percentLoaded;
kBytesSec = kBytesLoaded/(getTimer()/1000);
timeRemaining = kBytesRemaining / kBytesSec;
times = Math.floor(timeRemaining) add " seconds remaining";
frame 3 =
if(percentLoaded < 99){
gotoAndPlay(2);
}else{
_parent.play(5);
stop();
}
As you look at this, I'd like to ask you another question, anything else that you might change to make it better?
Thanks
Hoss
Optimized Code
Hey guys quick question how to optimized this code ?
Code:
function loadMenu(success) {
if (success) {
totalMenu = this.firstChild.childNodes.length;
//
menuTitles = new Array();
//
for (var i = 0; i<totalMenu; i++) {
path = this.firstChild.childNodes[i];
menuTitles[i] = path.childNodes[0].firstChild.toString();
}
menu_mc.dynamicMenu_mc.bt1_mc.text01.text = menuTitles[0];
menu_mc.dynamicMenu_mc.bt2_mc.text02.text = menuTitles[1];
menu_mc.dynamicMenu_mc.bt3_mc.text03.text = menuTitles[2];
menu_mc.dynamicMenu_mc.bt4_mc.text04.text = menuTitles[3];
menu_mc.dynamicMenu_mc.bt5_mc.text05.text = menuTitles[4];
menu_mc.dynamicMenu_mc.bt6_mc.text06.text = menuTitles[5];
menu_mc.dynamicMenu_mc.bt7_mc.text07.text = menuTitles[6];
menu_mc.dynamicMenu_mc.bt8_mc.text08.text = menuTitles[7];
menu_mc.dynamicMenu_mc.bt9_mc.text09.text = menuTitles[8];
menu_mc.dynamicMenu_mc.bt10_mc.text10.text = menuTitles[9];
menu_mc.dynamicMenu_mc.bt11_mc.text11.text = menuTitles[10];
menu_mc.dynamicMenu_mc.bt12_mc.text12.text = menuTitles[11];
menu_mc.dynamicMenu_mc.bt13_mc.text13.text = menuTitles[12];
menu_mc.dynamicMenu_mc.bt14_mc.text14.text = menuTitles[13];
menu_mc.dynamicMenu_mc.bt15_mc.text15.text = menuTitles[14];
menu_mc.dynamicMenu_mc.bt16_mc.text16.text = menuTitles[15];
//
} else {
trace("XML Load Failed");
}
}
xml = new XML();
xml.ignoreWhite = true;
xml.onLoad = loadMenu;
xml.load("menu.xml");
as you can see each one load a different text in each dynamic field.
Im sure there is something in front of my face but I just cant see it right now.
thx
Is Flash Optimized For 800x600?
I had problems with 1024x768 flash applications. When I run tests I found that fps drops when MC crosses 800x600 resolutions.
Specifics:
I made flash file with resolution 1024x768 and made an MC(movieclip) that increased it height and width and changed alpha. It hasn’t had any problems until the rectangle extended 800x600+.
SWF is made for 30 fps. With one movieclip it was 29-30 before 800x600 and 21 after. With 10 movieclips it was 28-30 before and 9-10 after.
I checked fps with the code:
Attach Code
Current = getTimer();
trace(1000/(Current-Last));
Last=Current;
Edited: 02/15/2007 at 02:07:43 PM by wonderwhy
Optimized Collision Detection
anybody have tips on getting the best performance for collision detection on irregular shapes? I was playing around with the idea of using nodes to detect hits, but wanted to know if there was a better way. this is for a 'game'
How To Optimized Flash For Firefox & MacIE?
My assignment been done with MX2004 (PC Version), but when it runs on Mac IE or Any firefox browser, flash movie doesn't load at all, but it works on PC IE. Any help would appreciate very much....
Want To Show Image In Graphic Image
I have a graphic image in scene 1, frame 1.
I have animation inside this graphic image.
i.e when I double click on the image there is animation.
When I publish the file only the anumation on scene 1 shows
How can i get Flash to show the animation that is inside the graphic image?
Ensuring My Flash Site Is Optimized For Search Engines...?
How do I ensure that I do all I can to make sure my Flash site is optimized for the web. My site consists of an .swf embedded in a single Html page (duh)
What things should I consider?
Are there special ways that I should be doing things differently with this in mind (like the use of various text fields in my movie)?
I honestly have no idea where to start. At the moment I've just added some relevant key words/meta tags to the Html page.
Many thanks in advance of your responses.
Ccesca
Best (optimized) Ways To Present Text+images In Flash
I'm wondering how to present in a good way in Flash the information contained in each option of the menu. So, each section will be a mix of text+pictures, only text, or a picture gallery.
I want it to be as dynamic as possible (no loadMovie with pre-made movies for each option or so), everything will be read from a database or xml, so I'd like to create it with Actionscript as much as possible.
So, how could I dynamically create one section with for instance a title with its background and its own font, an image, and the text of the content flowing around it with another font and size?
I thought on creating an empty movieclip and populate it with two textfields (placed on their corresponding locations) and the image, but how do I flow the text around it? Is CSS the only way?
Show Image From Variable
Hi ...
This is my situation :
I have a variable called _root.location. The value is a number. I have another MC which contain a few image and separated in a different frame, I set it by set1, set2, set3.
Everytime _root.location show 1, I want the MC will show image at set1, if _root.location show 2, MC will show image at set2, so with set 3.
_root.location calculated by a button that everytime I click it add or decrease the number.
What I face now is : It only stuck at set 1 and only show image 1 even the _root.location show 2 or 3.
Any suggestion guys ??
thanks in advance
Hairos
http://www.kairos.f2s.com
Why My Top Image In The Doesn't Show
Another "no show" problem...Please refere to my page at: http://www.geocities.com/ilieva_vict...sancolors.html
I have a .swf movie embeded under the top image in my nissancolors.html file but the top image is not showing and gets automaticaly converted into a link...I didn't do any coding for link though...Why is this happening? Here is the page source:
<HTML>
<HEAD>
<TITLE>Nissan Colors</TITLE></HEAD>
<BODY bgcolor="#000000" link="yellow" vlink="red">
<CENTER>
<p><br><br>
<font size=4 color="yellow"><b>Nissan Colors</b></font></p><p><br></p>
<table width="640" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="TOPNAV.gif" width="642" height="97" align="top" border="0" vspace="0" hspace="0"></td>
</tr>
</table>
<table width="640" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="640" height="197" vspace="0" hspace="0" border="0" align="top">
<param name=movie value="NissanColors.swf">
<param name=quality value=high>
<embed src="NissanColors.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="640" height="197" vspace="0" hspace="0" border="0" align="top">
</embed>
</object></td>
</tr>
</table>
</body>
</html>
Show Image If No Flash
Can you have flash autocheck for installed flash player and show image if client dosnt have?
Xml Image Gallery Show
Im doing a gallery in flash that is driven by xml.
Ive worked out how to create a basic one where all the images are the same size but....
I want the images talk to the flash on whether they are portrait or landscape then the flash movies change and re-shape!
Does anyone know for to achieve this. Or know where I can find a tutorial???
Thank-you for any help.
Image Slide Show...please Help
I am going crazy trying to find a simple image slide show...here is what i need it to do...
clicking on either a right or left arrow will cause a row of thumbnails to scroll. Then if you click on one of the thumbnails, a larger version will open.
But I want thumbnails to continue to scroll as long as the mouse button is held down. I don't the viewer to have to click a million times to make it scroll all the way to one side.
please help...last part of project, and just want to get it done!
thanks in advance...
Image Slide Show
This may be easy to do, but can someone give me some ideas on how to implement this image like slide show here -
http://www.destinationkohler.com/kws/kws.html
Click on Kohlers Waters Spa. It is a pop up window.
XML Image Slide Show: Almost There, But...
I have a gallery that loads images via XML, I am trying to finish this project up for a client, but I am having a couple of problems:
- I can't get the place-holder clip that loads the images to do a motion tween with the image loaded into it.
- when a button on the left is pressed, I want the hand in the .swf slide back in with the old image, and slide back out with the new one.
I am using MX 2004 currently, I've included the files.
Here's the code:
Code:
///// Load XML//////
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
}
firstImage();
makeMenu();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
p = 0;
////// Preload Images //////
this.onEnterFrame = function() {
filesize = viewer.picture.getBytesTotal();
loaded = viewer.picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (viewer.picture._alpha<100) {
viewer.picture._alpha += 10;
}
}
};
///// Build side Menu //////
function makeMenu() {
for (p = 0; p <total; p++) {
trace("description= "+description[p]);
trace("image = "+image[p]);
holder.attachMovie("item-name", "menu-item"+[p], 100+p);
//["menu-item"][p]_x = 400;
holder["menu-item" + p]._y = holder._y * (p+1);
holder["menu-item"+ p].menutxt.text = description[p];
holder["menu-item"+ p].id = image[p];
holder["menu-item" + p].onRelease = function(){
if (this.onRelease && viewer._currentframe == 11){
viewer.play();
switchOut(this.id);
}
}
}
};
//// This is where the problem, is: How can I make it slide in with the old image, and out with the new? ///////
function switchOut(img) {
viewer.picture.id = img;
viewer.picture.onEnterFrame = function() {
trace ("My ID is "+this.id)
this.loadMovie(this.id);
_parent.gotoAndPlay(2);
//delete this.onEnterFrame
}
}
///// Loads first image/////
function firstImage() {
if (loaded == filesize) {
viewer.picture._alpha = 0;
viewer.picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
}
}
How Do I Get An Image To Put In My Flash Show
I'm new to Flash so be gentle.
I am wanting to create a banner with a few cars moving across the screen and fading. My question is where and how do I create the cars? If I have actualy photographs of cars can I just cut them out in Photoshop? But then it would probably not look too good. I know it sounds like a crazy question but when I have tried it in the past the image doesn't look very good and it looked like a it was from a picture not kind cartooish like I would like.
Hope this makes sense.
Thank you for any help.
Senna
Can't Get A Large Image To Show Up
I have this all fixed except for one large photo that wont' show up. The p2-pic10 (Kettle and eggs) large photo doesn't show up. All of the other ones do. Can someone help me with this simple problem?
I've reattached the fla. Someone else from another forum was able to open it up, so don't know what's wrong there. Yes, it's a little over 9 mgs, but when published the .swf is just over a meg.
Below is a
*screenshot
Can't Get A Large Image To Show Up
I have this all fixed except for one large photo that wont' show up. The p2-pic10 (Kettle and eggs) large photo doesn't show up. All of the other ones do. Can someone help me with this simple problem?
I've reattached the fla. Someone else from another forum was able to open it up, so don't know what's wrong there. Yes, it's a little over 9 mgs, but when published the .swf is just over a meg.
http://inhistruthprophet.0catch.com/main5.zip
Fancy New Image Show
Ive noticed a lot more sites using this...
when you click on a thumbnail (or link), the screen fades to almost black and the image appears in the centre of the page.
a very "web 2.0y" look but could someone shed light on this technique?
How To Get Rollover To Show Image?
This is probably a simple solution, but I'm new to ActionScript. I'm using Flash CS3 and AS3. I'm making a US map that when you rollover each state it changes color and the name of the state shows in a bar at the top. I've got the color change part working, but can't figure out how to do the name.
I'm assuming I would make the name and then convert it to a movie clip, but how to call it on rollover and make it go away on rollout escapes me. I've searched these boards and the web to no avail. I've found lots of info on doing this with AS2, but not AS3.
Can you offer me any help?
Thanks!
Darrin
Show Preloading For An Image
Actually I am making an image gallery using xml .I had done all the work,but there is a problem,image takes time to load when i test my file on server ,I had seen some image gallery that shows image preloading can anybody help me
on this issue
Thanks in advance
Image Slide Show
I'm a beginner with using flash but i have started to learn how to use easy action scripts in flash cs3 which uses 3.0. I took a tutorial that didn't completely show me how to make a slideshow with buttons. I wanted to create my own instead of using someone else's template with xml calling the images. The point was to learn how to build one of my own like this "at top of page"
http://www.backroads.com/trips/BPDI/...nt-biking-tour
Can someone send or show me how to build one of these step by step. I get stuck in the coding part because I'm not sure where and how to continue the slide show and make the buttons work. Help.
S
Image Slide Show
Hi all,
I'm sure this has been asked before, but I carn't find it anywhere. I'm looking for a tutorial on producing an images slide show
something like this
I just need to load thumbnails and then auto show them with fade in and out.
Image Slide Show With PHP
Hi,
I need to create a slide show where the images fade in and fade out over the next image coming from database using PHP. Can anybody help me?
Thanks!
Image Slide Show
Hi all,
I'm sure this has been asked before, but I carn't find it anywhere. I'm looking for a tutorial on producing an images slide show
something like this
I just need to load thumbnails and then auto show them with fade in and out.
Help Creating Image Show
Hi, I'm new here and would like to say hello to everyone.
There is a site I have seen that has a very nice effect I would like to be able to do on my site, but my flash skills are somewhat limited. I will post the site and hope someone can guide me. Thanks.
http://www.ohmyflash.com/
This link and then click on components and then photo gallery. Click on preview swf on the first [top] one. Hope someone can explain how to do this for me or refer me to a good book that I can buy that will help.
Can't Get A Large Image To Show Up
I have this all fixed except for one large photo that wont' show up. The p2-pic10 (Kettle and eggs) large photo doesn't show up. All of the other ones do. Can someone help me with this simple problem?
I've reattached the fla. Someone else from another forum was able to open it up, so don't know what's wrong there. Yes, it's a little over 9 mgs, but when published the .swf is just over a meg.
thanks,
Tseyigai
http://inhistruthprophet.0catch.com/main5.zip
Image Show Room
Hello guys.. My english is not so good so i'll try to make you understand my view.
I have this site, and I'm trying to do it as beauty as possible. But I don't know what to do refering to this:
My site need a scene in what we will show to the users our edited photos. I need a menu thar preferencely spins and when MouseOver, the image increase the Scale and go to 100%. And only back when Mouseclick and not when Mouse Over Outside. Thanks.
Chiclops
Load 100% And Then Show Image
Hi
I got script from the forum to preload jpgs from a targeted folder.
works great.
so it works like - when i click the button for next image it then remove the loaded image and start preloading the the next image so while its preloading there is nothing on the screen just the preloader.
and when the preloading is done then it shows the next image.
looks o.k. on high speed internet but not for dial up.
here what i want to do
i am trying to tweak the script that when i click the button it start preloading the next image without removing the loaded image and when preloading is 100% then it switch the image.
but not succesful
here is the script
ActionScript Code:
stop();
var totalPics = 5;
var index = 1;
var imagePath = "frImg/image_";
_root.createEmptyMovieClip ("holder", getNextHighestDepth());
function loadImage() {
var loaded
var total
var total_progress
status_txt.text = "loading image " + index + " of " + totalPics;
var tempLoader = createEmptyMovieClip("l", getNextHighestDepth());
tempLoader.onEnterFrame = function() {
loaded = _root.holder.getBytesLoaded();
total = _root.holder.getBytesTotal();
total_progress = Math.round(loaded / total * 100);
total_progress_txt.text = total_progress + "%";
_root.holder._x = (500)-(_root.holder._width/2);
_root.holder._y = (310)-(_root.holder._height/2);
if (total_progress == 100) {
total_progress_txt.text = "";
status_txt.text = "displaying image " + index + " of " + totalPics;
this.removeMovieClip();}};
_root.holder.loadMovie(imagePath + index.toString() + ".jpg");
}
_root.but2.onRelease = function() {
if (++index > totalPics) {
index = 1;}
loadImage();
};
_root.but1.onRelease = function() {
if (--index < 1) {
index = totalPics;}
loadImage();
};
loadImage();
please give some suggestion
thanks
Slide Show And Last Image
Hi, I hope you can help me with this.
I made a Slide Show. It uses an external text file that has the names of the pictures.
I don't have syntax errors, the text file is well loaded, I split the variables so I can have an array of images.
Let's say I have 5 images, (0-4). In the text file I also have a variable for number of images, int his case 4. If I run the program I can only see image[4], if I change the number to 3, I can only see image[3].
I mean, I can only see the last picture even when all of them are loaded. The code is:
on (press) {
imagen = imag.split(",");
nu = number.split(",");
posicx = 140;
posicy = 90;
i = 0;
num = nu[0];
_root.createEmptyMovieClip("Cargado", 0);
ponimagen(imagen, i, posicx, posicy);
function ponimagen(imaken, s, posx, posy) {
if (s<=num)
{
loadMovie("Images/"+imaken[s], _root.Cargado);
Cargado._x = posx;
Cargado._y = posy;
for(d=0; d<=30000;d++){}
s++;
f=s;
poiscx= posx;
ponimagen(imagen, f, posicx);
}
else stop();
}
}
Please, remember that I can load the pictures, if I change num I can see each one. I think the problem is in the function.
Thank you.
Actionscript For An Image Slide Show
I have a button that when pushed, goes to a frame with a movie clip on that frame called slide show. In this MC, is another MC called slides in which I have 24 images. I'd like the person who will be using this application to have the option of either automating the slide show, or clicking forward and back buttons to get to each image. Can some one tell me what would be the best way to go about doing this? On the auto-play option, I would like each image to rotate every 2-3 seconds(depending on which i like best when is see it). Is there a script that can automatically advance to each frame assuming there is an image on every frame of the MC? Also what is the code for forward and back buttons. Your help is greatly appreciated....btw this will be published as an .EXE file....it's a presentation i'm working on that is due EXTREMELY SOON!
Steaming Image Slide Show
hi
I'm trying to develop a way of loading a first image on the initial
load of the swf and then stream the rest of the images in once the swf is loaded kind of like the header image here any ideas?
|