Dynamicly Loaded Jpeg Size Limits?
In my movie I have a movieclip, that is masked, that holds externally loaded jpegs. Now the jpegs are 3200 px wide x 250 px tall. Everything works fine but the loaded jpg seems to get cut off at around pixel 2900 so the last 300 px of the images dosent show.
Couldn't find anything in the documentation regarding this.
I've tried several work arounds but to no avail.
I'm just currious if there is a limit to the height or lenght of dynamicly loaded content. if so I guess its back to the drawing board.
Thanks in advance.
-JW
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 04-08-2005, 02:55 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Dynamicly Loaded Jpeg Size Limits?
In my movie I have a movieclip, that is masked, that holds externally loaded jpegs. Now the jpegs are 3200 px wide x 250 px tall. Everything works fine but the loaded jpg seems to get cut off at around pixel 2900 so the last 300 px of the images dosent show.
Couldn't find anything in the documentation regarding this.
I've tried several work arounds but to no avail.
I'm just currious if there is a limit to the height or lenght of dynamicly loaded content. if so I guess its back to the drawing board.
Thanks in advance.
-JW
MovieClip Size Once Jpeg Loaded
Hi,
I am creating an empty movieclip and loading a jpeg into it. The mc does not seem to resize to account for the jpeg's size, also the parent mc (thisClip) which is also created dynamically (with attachmovie), is set at 500 - i have no idea why:
thisClip.createEmptyMovieClip("theJpeg", 2);
thisClip.theJpeg.loadMovie(url);
thisClip.theJpeg.onEnterFrame = function(){
if(this.getBytesLoaded() >= this.getBytesTotal())
{
delete this.onEnterFrame;
trace(this._width);
}
}
any ideas?
thanks in advance
ash
Needing Help Dynamicly Loading Jpeg File With Movieclip.loadmovie
Hi, I'm pretty new with flash and have been having a hard time with loading jpegs dynamicly. I need the .fla file size to be as small as possible (so imbeding them in the file is out.) I have managed to get them into a movieclip, but I have motion tweens and keyframes and the jpeg seems to only load into the keyframe in timeline where the script is, and dissappears at the next keyframe. I now have about 30 scripts loading images at every keyframe, which seems to work fine, except at some points, where the image dissappears off the screen for a fraction of a second, reveling the white background, and then re appears and continues playing. Any advice or help would be greatly appreciated.
Thanks.
Size Limits For Objects ?
is there a size limit for objects used in flash mx?
i have a background which scrolls to sections of a site when the user clicks a button -- effectively the background for each section.
its an mc that is 4000 x 200 pixels (5 sections for a movie thats 800 x200) and flash cant seem to recognize _x coordinates ranging to the extremes such as from -1200 to 1989 when i want to scroll it from one end to the other.
further, it wont even let me type in the coorinates in the info panel. it says "invalid size and position."
any help GREATLY appreciated. thanks.
yjk
ScrollPane Size Limits?
i am scrolling static text that is in a movie clip using the ScrollPane. It finds the movie and scrolls it but its cutting off the last bunch of lines. Is there a vertical limit to the area that the scrollPane can deal with? The section of text is fairly long.
Button Size Limits
i dont quite know how to put this...i'm wondering if there's a way to limit the size of the frame of a button, so anything outside that gets cut off. the menu i'm working on right now has a button that at the end of the animation, has a bit of an object that goes farther then i want it to, and cuts off a bit of the button below. any suggestions of solutions?
FLV Size Limits? (flash 8)
Using Flash 8
Has anyone ever imported a large QT .mov (10MB+) and had it work?
Is there a limit to the size of an imported video/FLV?
I've never had problems running flash video, until I got this .mov.
I figure its either the size, or one of .mov properties... but I've imported/exported it every which way I can think of.
Anyone have insight? Similar issues?
XML File Size Limits - Rule Of Thumb?
Hi Folks,
I'm doing some background work for a client who wants to load 50M worth of XML data into a Flash app and search, sort and filter it. I'm looking for some general advice as to the practical limits of how big an XML file one would want to read in, and whether or not Flash will be fast enough at handling that much data.
My thinking is for a file that large, it would be better to process SQL requests on the server side and return the filtered data to flash, rather than reading the whole thing in and having Flash do it.
I don't have details about the project, but just the general description that we were talking about large a XML file.
Does any body have any advice, evidence, or anecdotes that might give a general sense of where the practical limits of Flash are with respect to XML? I've searched the web but haven't come up with much...
Thanks,
Gordon
Canvas Size In Flash: Any Limits/workarounds?
hi,
im trying to make one of those "background sliding things", and it doesn't seem to work well: my background mc seems to be too big to be moved around the stage (stage size: 900w*500h, bgimages: 6 of them on a row, so 4500w*500h)
is there some limit to the "canvas size" flash can handle? And a possible workaround?
I'm trying to create a site that has six different backgrounds, one for each section, and the bg should "slide on" (or slide back) when dragging a slider or clicking a menu item.
any help appreciated!
twanne
JPEG Loading... How Do I Wait Until The Jpeg Has Loaded
Hi everyone!
this is the code that I currently use. I want to be able to wiat until the jpeg is loaded before going trought the loop again.....
any ideas? I have tried to use the getBytesLoaded and getBytesTotal but they always show up as 0. Very annoying.
Code:
var currentX = 0
for (k=0;k<galleryVar.items;k++){
_root.thumbslider.createEmptyMovieClip("thumb" + k,(50 + k));
eval("_root.thumbslider.thumb" + k)._x=currentX;
loadMovie(_root.categoryList+"/thumbnails/"+_root.imageArray[k]+".jpg",eval("_root.thumbslider.thumb" + k));
currentX = currentX + eval("_root.thumbslider.thumb" + k)._width;
trace("Pic" + k + " " + currentX);
}
the "currentX" (2nd line from the bottom) doesn't get a value because the jpeg doesn't get loaded quickly enough. How can I wait for the jpeg to load before going through the loop again.
I don't want to use frames becasue I am creating everything dynamically!
Am i making sense?
Hope someone can help me!
Thanks
A
Match Size Dynamicly With CreateTextField
how can i know the size in pixels of createTextField.text
in order to match a buttons size to it?
i am creating the button in a this.createEmptyMovieClip and using
attachMovie and i need the size of the button to be the same size as the text field
?
Can Anyone Help Me Let My Dynamicly Loaded Buttons Go Away
hi ppl.
i have a movie that loads a menu based upon a XML file.. Writers(as main menu) - Publications(as sub menu).. this movie is loaded into another so the havy actionscripting will not me loaded untill necessary .. when i unload the menu movie the buttons stay on the main clip... thats just what i don't need.....
Thanx
SetMask() With Dynamicly Loaded JPG
Hey I am loading a .jpg into an empty movie clip called "holder" and trying to set a movie clip as a mask called "mask". hummm
holder.setMask(mask)
loadMovie("myPhoto.JPG","holder")
Thanks
Using Dynamicly Loaded Font
I want to embed dynamic loaded font ...(to use it in a ScroolPane)
For that, I built:
- A simple movie called "test.fla" which loads and uses an embed font.
- .. And an other movie "testuser02.fla" which load "test.swf" ...
"test.swf" Loading works ... but "test.swf" text doesn t appear !
.. don t know why !!
WHY ?? WHY ???
Tell me how can i do ???
Trouble With Dynamicly Loaded MP3's
So im making a jukebox and have been following the tutorials on www.kennybellew.com and it has been great help but im still having trouble when I click on a different song i can't seem to get the others to stop playing. I just have buttons with the various song names, and they load on press.
help please
PEACE,
Drop
How Do U Resize A .swf That Is Loaded Dynamicly
I need to load a .swf file at runtime then resize it, but i can't figure out how to do it. He's what i'm doing now
holder.loadMovie("test.swf" )
holder is just a placer holder movie clip already on the stage. test.swf loads but It's much bigger than holder .swf and gets cut off.
Any thoughts?
thx
Dynamicly Loaded Text...
Ok...I'm loading text into a text field via and xml file. Sometimes the text is longer than the text field, so I have scroll buttons that appear in such cases.
However, sometimes when the text load, it is already partially scrolled....thus the user has to scroll up to the top to start reading from the beginning.
How can I make it so it always loads and displays from the top??
EDIT:
Nevermind. Easy fix. Duh!
ActionScript Code:
myText_txt.scrollV = 0;
Width Of A Dynamicly Loaded Jpg?
Hello,
sorry if this has been already asked and replied, i couldn't find the answers i'm looking for...
I'm loading a pic using a config file like:
ActionScript Code:
onClipEvent (load) { loadText = new LoadVars(); loadText.load("config.txt"); loadText.onLoad = function() { if (this.imageurl != 0) { _root.createEmptyMovieClip("img", 10); loadMovie(this.imageurl, _root.img); //trace(_root.img._width) } };}
Now i'd like to check the width and height of the loaded pic by checking the height and width of the holder MC but it always returns 0... Can someone help?
TiA
Dynamicly Loaded Transitions
Hello all, I'm trying to create a site that makes use of dynamically loaded movie clips. Loading and unloading the clips isnt a problem, however, I don't want them to just pop up and dissapear. Rather, I'm trying to get transitions like the ones seen at http://www.moe.org/index2.htm
So the clip thats currently there would slide out, be unloaded, the next clip would load, and slide in. Sliding in isn't a problem, but the clip will unload before the transition starts, I've even tried boolean variables within the clips, but to no avail.
Width Of A Dynamicly Loaded Jpg?
Hello,
sorry if this has been already asked and replied, i couldn't find the answers i'm looking for...
I'm loading a pic using a config file like:
ActionScript Code:
onClipEvent (load) { loadText = new LoadVars(); loadText.load("config.txt"); loadText.onLoad = function() { if (this.imageurl != 0) { _root.createEmptyMovieClip("img", 10); loadMovie(this.imageurl, _root.img); //trace(_root.img._width) } };}
Now i'd like to check the width and height of the loaded pic by checking the height and width of the holder MC but it always returns 0... Can someone help?
TiA
Pixelschift In Dynamicly Loaded Jpg?
Hello All!
here is the "going crazy story"
No preview so IMAGINE
I've made a menu that loads into level 2
this menu displays a list of 36 small litle thumbnails on the left side
witch contain a partial part of the jpeg image 15x15 pixels
now ...when you click om the thumbnail....on the right side it displays the jpg image on actual size...440x275 ..i'v set compression to none
so it displays it 100% to keep the best possible quality instead of the usual 80%.
when I publish my menu all pics load dynamicly and display just as wanted ...all looks very nice!
BUT/// here is the problem.......
when i start my "main clip "and when i press the button that calls the images menu
into level 2.........some of my jpg images are distorted sligthly...
it looks like e pixelshift/lines strokes!!!!!!!!!!!!!!!!!!!!!..........small in detail but very anoying!!
jpg are saved in the correct way....no interlacing or other "non flash acceptable" compression methods applied
Never seen this before!!!.......makes me go blurred out
Hope someone has a FIX to this
thanx in advance!!!
Best.
Arn
www.electronicnature.com
Dynamicly Loaded Buttons?
Oki i have an problem.
I have an xml file containing images!
Im going to load them into flash but for each image i need an button like: 1 ,2 ,3 ,4 etc. And for each button you click, the image will load..
Loading the image in to flash with static buttons is no problem. But how do i make them dynamicly generated from the xml file?
Please help me out!
/Pat
Dynamicly Loaded Pictures In FLASH
I am working curently on one project that should use databases with picturs and texts in in it. That should also be available to dynamicly load to flash 5 swf file. Is this possible to do with help of ASP. Should i use FLASH MX for that?? I would rather use flash 5 because of plugin spread.
Has anyone got any experience with this things??
Looping Dynamicly Loaded Audio
I cant get my background audio to loop when i load them in dynamicly. since dynamicly loaded audio starts playing right away using start() doesnt work for me, can anyone help please
Buffering Streaming Dynamicly Loaded Mp3's?
Is it possible to buffer a set amount of seconds on a dynamicly loaded mp3 set to stream. Im not really a code junkie but I tried some code but to no avail. I'd like to stream the tracks in the jukebox but they sound like crud on a 56k. Is it even possible?
Here's a link to the site im working on if anyone feels like checking it out.... www.inkdropdesign.com/btd
PEACE,
Drop
Coloring Dynamicly Loaded Text
Is there any way to change the color of certain text say green (just a few words) and have the rest of the text be black?
this is what I have so far:
Code:
//Create a new instance of the loadVars object and assign it to a variable
loadVarsText = new loadVars();
loadVarsText.load("test.txt");
//assign a function which fires when the data is loaded:
loadVarsText.onLoad = function (success){
if (success){
trace ("done loading");
//Now that we know the data is loaded,
//set the text content of the Text Field
//with the instance name "scroller" equal to the
//contents of the variable
scroller.text = this.var1
}else{
trace ("not loaded");
}
}
cheers,
Scrolling Dynamicly Loaded Images
hi there,
ok. I have a list, which is some txt and its corresponing image which in the end should both be loaded into flash externally.
Now I want to scroll the whole thing nicely.
I am managing to scroll the text fine with dynamic txt-box and an external .txt file...but I dont know how I can incorporate the image which should scroll alongside with it .
Any sugestions?
cheers,
sandra
Scrollbar For Dynamicly Loaded Movieclips ?
peepz,
i have created a script that dynamicly creates movieclips with text on it. but now i want to created a scrollbar that can scroll those MC's. I tried a few tutorials but i didn't get what i want..... I'm a noob if its about actionscript, so good comment is a pre
My script;
FRAME1:
Code:
stop ();
// init LoadVars Object
lv = new loadVars();
// define onLoad Callback
lv.onLoad = onLoadCallBack;
// send and load variables
lv.load("*********/test/index.php?" + new Date());
// onLoad Callback
function onLoadCallBack(succes)
{
// if succes
if(succes)
{
// trace variables
trace(this.title);
gotoAndPlay (2);
}
else
{
// loading failed
trace("Loading Error!!");
}
}
Frame 2:
Code:
stop();
titleArray = lv.title.split("|||");
urlArray = lv.url.split("|||");
myTitleArray = titleArray;
myUrlArray = urlArray
trace (myTitleArray);
trace (myUrlArray);
this.createEmptyMovieClip("e_mc", 1);
for (var i = 0; i < myTitleArray.length-1; i++) {
var temp_mc = e_mc.attachMovie("button", "b" + i, i);
temp_mc.i = i;
temp_mc._y = i * 28;
temp_mc.btn_txt.text = myTitleArray[i];
temp_mc.onRollOver = function()
{
this.mcRollOver.gotoAndPlay(2);
};
temp_mc.onRollOut = function()
{
this.mcRollOver.gotoAndPlay(1);
};
}
}
i don't want any scrollbar buttons i only want a slider (slider don't have to be scaled on size of movieclip)
please help me out with if possible an easy script?
thnx already peepz
Scrollbuttons For Dynamicly Loaded Movieclip
peepz,
i searched the whole forum mand tried many tutorials but i can't get it work...
i dont want to use the scrollpane....
i have two buttons (up and down) placed in a movieclip and they are viewable on the second keyframe (cause the are in a pulldown menu).
i also placed a mask in this movieclip named: "mcGetCategoriesContentMask", under this mask is an movieclip named: "mcGetCategories" wich dynamicly loads buttons so the lenght of this moveclip will vary...(the movie stops on the second keyframe)
so if someone can make easy to customize script so i can scroll my movieclip:"mcGetcategories" ot would be awesome
i now the trick (onClipEvent (enterFrame){
mcGetCategories._y += 5
}
but it have to work whitin my mask (the boundaries...)
so it stops when then mc is at his bottom in my mask.....
i really hope somebody an make this work
thnx for all your help
How To Preload Many Dynamicly Loaded Images
I need to print more pictures. Pictures are on my server. When visitor press button, this code load pictures to the print_MC :
PHP Code:
myBtn.onPress = function() {
var all_Pic = 20; // this is dynamic variable
posY = 5;
posX = 5;
for (var i = 0; i<all_Pic; i++) {
print_MC.attachMovie("imgHolderLib", "imgHolder"+i, i, {_x:posX, _y:posY});
loadMovie("www.domain.com/images/"+i+".jpg", "print_MC.imgHolder"+i);
posX += 250;
if (posX>=760) {
posY += 100;
posX = 5;
}
}
};
I need print this movie clip, but witout preloader it prints only pictures, that are loaded. So, how to preload all pictures ? Any solution ?
.
AttachMovie, Events Of Dynamicly Loaded MCs
Hi
I have a series of thumb nails loaded into a movie clip i'm attaching from the libary.
I can attach them and format them how i want but i cant seem to figure out how to make them a clickable button (use the onRelease event).
This is hard because there could be 200 buttons, is there a way to detect which thumb is clicked?
This is what i'm doing:
Code:
var i=0;
while (i<frameTotal)
{
//create a new thumb holder
_root.attachMovie("thumbMC", "thumHolder"+i,100 + i);
eval("thumHolder"+i)._x = xLocation;
eval("thumHolder"+i)._y = 480;
//eval("thumHolder"+i).onRelease = function(){trace('dfgdfg');}; this is what i came upwith but had no joy
xLocation = xLocation + 80;
myMCLThumbs.loadClip("portfolio/staircases/thumbnails/thumb" + i + ".jpg", eval("thumHolder"+i));
i++;
}
Any help here would be awsome. thats if it possible.
Cool
ANdrew
[CS3] Transitions For Dynamicly Loaded Pictures
hi all
i am trying to create a gallery that is all loaded from XML.
i have managed to do this and get it working now. well almost i just have to problems
how to scroll the thumbnails with previous/next buttons
also i wish for the images to have a disolve transition that i have created.
i can get this working on one single static images but for some reason this will not work on a dynamic image i have when the image thumbnail is click on for the current image to disolve into the next image.
be very greatfull for any help
i have uploaded FLA, XML and images to http://www.illit.net/test/Problem.zip
the code i am using for the transition is
Code:
import mx.transitions.*;
import mx.transitions.easing.*;
var dissolving = {
type: PixelDissolve,
direction: 1,
duration: 5,
xSections: 20,
ySections: 20,
easing: Regular.easeInOut,
numStrips: 20,
dimension: 1
};
TransitionManager.start(mainImage.image_mc, dissolving);
is this correct can any1 help
image_mc is where the pictures are loaded into from my XML this works fine they just do not use the transition.
thanks in Advance
Preloading For Dynamicly Loaded Images Through Php
Hello,
I have a swf file and I'm loading 5 images in it through a php file. I have 5 movie clips for each image. My problem is that I can't make them wait one after another when they load. I want to load the first, than, when it is loaded to load the second and like this for all 5 images. Can anyony help me?
Here is part of my code at the moment:
Code:
RM.onLoad = function (success) {
if (success) {
loadMovie("mysqldata.php?pg="+pg+"_01&res="+res, p3_1);
loadMovie("mysqldata.php?pg="+pg+"_02&res="+res, p3_2);
loadMovie("mysqldata.php?pg="+pg+"_03&res="+res, p3_3);
loadMovie("mysqldata.php?pg="+pg+"_04&res="+res, p3_4);
loadMovie("mysqldata.php?pg="+pg+"_04&res="+res, p3_5);
} else {
error.text = "Ther is an error while downloading images";
}
}
How To Preload Many Dynamicly Loaded Images
I need to print more pictures. Pictures are on my server. When visitor press button, this code load pictures to the print_MC :
PHP Code:
myBtn.onPress = function() {
var all_Pic = 20;
posY = 5;
posX = 5;
for (var i = 0; i<all_Pic; i++) {
print_MC.attachMovie("imgHolderLib", "imgHolder"+i, i, {_x:posX, _y:posY});
loadMovie("www.domain.com/images/"+i+".jpg", "print_MC.imgHolder"+i);
posX += 250;
if (posX>=760) {
posY += 100;
posX = 5;
}
}
};
I need print this movie clip, but witout preloader it prints only pictures, that are loaded. So, how to preload all pictures ? any solution ?
.
Tint Dynamicly Loaded Image
Hi
Creating tints for photos in Flash is easy - just select image -> propecties panel -> color -> Tinit
When I change color to ex. #FFDCFB and alpha to 50% photo looks ok.
I do not know how do do the same with dynaicly loaded content. I tried to use Offsets & Multiplers with no luck.
Scrollbar For Dynamicly Loaded Movieclips ?
peepz,
i have created a script that dynamicly creates movieclips with text on it. but now i want to created a scrollbar that can scroll those MC's. I tried a few tutorials but i didn't get what i want..... I'm a noob if its about actionscript, so good comment is a pre
My script;
FRAME1:
Code:
stop ();
// init LoadVars Object
lv = new loadVars();
// define onLoad Callback
lv.onLoad = onLoadCallBack;
// send and load variables
lv.load("*********/test/index.php?" + new Date());
// onLoad Callback
function onLoadCallBack(succes)
{
// if succes
if(succes)
{
// trace variables
trace(this.title);
gotoAndPlay (2);
}
else
{
// loading failed
trace("Loading Error!!");
}
}
Frame 2:
Code:
stop();
titleArray = lv.title.split("|||");
urlArray = lv.url.split("|||");
myTitleArray = titleArray;
myUrlArray = urlArray
trace (myTitleArray);
trace (myUrlArray);
this.createEmptyMovieClip("e_mc", 1);
for (var i = 0; i < myTitleArray.length-1; i++) {
var temp_mc = e_mc.attachMovie("button", "b" + i, i);
temp_mc.i = i;
temp_mc._y = i * 28;
temp_mc.btn_txt.text = myTitleArray[i];
temp_mc.onRollOver = function()
{
this.mcRollOver.gotoAndPlay(2);
};
temp_mc.onRollOut = function()
{
this.mcRollOver.gotoAndPlay(1);
};
}
}
i don't want any scrollbar buttons i only want a slider (slider don't have to be scaled on size of movieclip)
please help me out with if possible an easy script?
i tried this but it won't work properly
Code:
_root.scrollBar.onPress = function () {
startDrag(_root.scrollBar,false,340,68,340,159);
this.onEnterframe = function() {
blaat = (temp_mc._height * myTitleArray.length-1) / 91 //91 = the difference between 68 and 158 (drag position of scrollBar)
_root.mcbuttons._y = (_root.scrollBar._y - 56) * (-blaat) // bar starting y = 56
}
}
_root.scrollBar.onRelease = function() {
stopDrag();
delete this.onEnterFrame;
}
thnx already peepz
Scrollbuttons For Dynamicly Loaded Movieclip
peepz,
i searched the whole forum mand tried many tutorials but i can't get it work...
i dont want to use the scrollpane....
i have two buttons (up and down) placed in a movieclip and they are viewable on the second keyframe (cause the are in a pulldown menu).
i also placed a mask in this movieclip named: "mcGetCategoriesContentMask", under this mask is an movieclip named: "mcGetCategories" wich dynamicly loads buttons so the lenght of this moveclip will vary...(the movie stops on the second keyframe)
so if someone can make easy to customize script so i can scroll my movieclip:"mcGetcategories" ot would be awesome
i now the trick (onClipEvent (enterFrame){
mcGetCategories._y += 5
}
but it have to work whitin my mask (the boundaries...)
so it stops when then mc is at his bottom in my mask.....
i really hope somebody an make this work
thnx for all your help
Preloading Dynamicly Loaded Jpegs?
Hi I'm new to these boards.
I have been having real difficulty working out how to create a preloader for dynamicly loaded jpegs. I am fairly new to flash and this is probably a really obvious question, but is it possable to create a simple preloader for this situation. I have built a flash site that gets all the data from mysql via php, so I want to be able to code a preloader that can be used when ever a new piece of external content is loaded. All the tutorials I have found work for movieclips but they don't seem to work when loading jpegs. If any one knows a good tutorial, or explaination of preloading they could point me to I would very much appriciate it. If it would help if I posted up the code from my site, lemmie know.
Hope this isn't to silly a question!
max
Preloader For Dynamicly Loaded Content
Hi, I've just started to learn about how xml and flash can work together and how to load external files into a swf. Right now im somewhat stuck though. I need to load a jpg into the swf, show the load status and then load another jpg right away. Could someone help me out?
Centering Dynamicly Loaded Content
Well, I load content into my empty movieclip, but I need that movieclip as a center and not as a left top corner registration point.....
This really drives me insane, as I can't find a sollution anywhere, so maybe you can help me out with some divine magic!!
Tutorial Help - Dynamicly Loaded Movies
i read the tutoiral for dynamicly loading movies from remote locations, and i want to know alittle more.
What is a target? it has level and target and i think target could maybe put it where i want it in my site. and can i set the movie's size some how? and one more. can i make a random movie load? oh oh another. can i make the movie load automatically and not when i press the button?
THANK YOU!!!!!!1
Preloading Dynamicly Loaded Jpegs?
Hi I'm new to these boards.
I have been having real difficulty working out how to create a preloader for dynamicly loaded jpegs. I am fairly new to flash and this is probably a really obvious question, but is it possable to create a simple preloader for this situation. I have built a flash site that gets all the data from mysql via php, so I want to be able to code a preloader that can be used when ever a new piece of external content is loaded. All the tutorials I have found work for movieclips but they don't seem to work when loading jpegs. If any one knows a good tutorial, or explaination of preloading they could point me to I would very much appriciate it. If it would help if I posted up the code from my site, lemmie know.
Hope this isn't to silly a question!
max
Preloader For Dynamicly Loaded Swf Files
Hello,
I'm stucked with a problem and after reviewing dozens of examples I just can't make it work in my case;-(
I have a main swf file. Inside I have containerMC. In this containerMC I load different external swf files with:
ActionScript Code:
loadMovie("mydynamicfiles.swf", containerMC);
The load is through a button - when I click a button the needed swf file is loaded
So far nothing complex. I want now to toggle visibilty on and off of some other MC (let's call it toggleMC) depending either the external swf file is loaded into the containerMC or not. So I put in the actions of containerMC the following:
ActionScript Code:
onClipEvent (enterFrame) {
if (this.getBytesLoaded() == this.getBytesTotal()) {
loaded = true;
_root.toggleMC._visible = true;
} else {
_root.toggleMC._visible = false;
}
}
But it doesn't work, I guess I should "refresh" this onClipEvent because I'm still on the same frame and basicly after click on the button I load different swf files but I don't change the frame. Or maybe it's all wrong;-(
Help, please;-(
Scrollbuttons For Dynamicly Loaded Movieclip ?
peepz,
i searched the whole forum mand tried many tutorials but i can't get it work...
i dont want to use the scrollpane....
i have two buttons (up and down) placed in a movieclip and they are viewable on the second keyframe (cause the are in a pulldown menu).
i also placed a mask in this movieclip named: "mcGetCategoriesContentMask", under this mask is an movieclip named: "mcGetCategories" wich dynamicly loads buttons so the lenght of this moveclip will vary...(the movie stops on the second keyframe)
so if someone can make easy to customize script so i can scroll my movieclip:"mcGetcategories" ot would be awesome
i now the trick (onClipEvent (enterFrame){
mcGetCategories._y += 5
}
but it have to work whitin my mask (the boundaries...)
so it stops when then mc is at his bottom in my mask.....
i really hope somebody an make this work
thnx for all your help
Scaling Dynamicly Loaded Pictures?
howdy there
i try to scale dynamicly loaded pictures (all from one folder but different sizes) to the same scale but I have no clue how i could do that because the ._with and ._heigth dont really help on this because it indicated the size of the movieclip befor the pic was laoded....
well
maybe one of you have an idea?
Problems With ._height With Dynamicly Loaded Images
Hi guys/gals!
I am looking for a way to get the height of an image. Normally I would use this._height. But the problem is that I load my iamges from an xml file. this._height now gives Undefined so the rest of my actionscript is worthless.
Can anybody help me here? Looks easy...the height of an image...But i can't get it right
it's pretty urgent...needs to be fixed today!
THANX!
[F8] Passing Variables To Dynamicly Loaded Swf.(urgent)
Hi,
have a problem passing variables (from text file) to a dynamicly loaded swf.
what i do is.
preload the swf. using adListener (works) on "loadInit" (as flash help says) i invoke a text preloader (works also) ... but; however the textpreloader says that the text is loaded .. no text is shown in the textfield from the loaded swf.
Code:
this.m_menu_array[i].onRelease = function() {
var _myLV:LoadVars = new LoadVars();
var mclListener:Object = new Object();
_root.createEmptyMovieClip("progressBar_mc", _root.getNextHighestDepth);
_root.progressBar_mc.createEmptyMovieClip("bar_mc", _root.progressBar_mc.getNextHighestDepth);
_root.progressBar_mc.createEmptyMovieClip("stroke_mc", _root.Bar_mc.getNextHighestDepth);
//use drawing methods to create a progress bar
with (_root.progressBar_mc.stroke_mc) {
lineStyle(0, 0x000000);
moveTo(0, 0);
lineTo(100, 0);
lineTo(100, 10);
lineTo(0, 10);
lineTo(0, 0);
}
with (_root.progressBar_mc.bar_mc) {
beginFill(0xFF0000, 100);
moveTo(0, 0);
lineTo(100, 0);
lineTo(100, 10);
lineTo(0, 10);
lineTo(0, 0);
endFill();
_xscale = 0;
}
_root.progressBar_mc._x = 45;
_root.progressBar_mc._y = 435;
// load progress
mclListener.onLoadStart = function(SwfLoader_CLP:MovieClip) {
_root.progressBar_mc.bar_mc._xscale = 0;
};
mclListener.onLoadProgress = function(SwfLoader_CLP:MovieClip, bytesLoaded:Number, bytesTotal:Number) {
_root.progressBar_mc.bar_mc._xscale = Math.round(bytesLoaded/bytesTotal*100);
};
mclListener.onLoadComplete = function(SwfLoader_CLP:MovieClip) {
_root.progressBar_mc.removeMovieClip();
};
mclListener.onLoadInit = function(SwfLoader_CLP:MovieClip):Void {
// creating text preloader
var barWidth:Number = 75;
var barHeight:Number = 6;
_root.createEmptyMovieClip("pBar_mc", 9999);
var bar:MovieClip = _root.pBar_mc.createEmptyMovieClip("bar_mc", 10);
_root.bar.beginFill(0xFF0000, 100);
_root.bar.moveTo(0, 0);
_root.bar.lineTo(barWidth, 0);
_root.bar.lineTo(barWidth, barHeight);
_root.bar.lineTo(0, barHeight);
_root.bar.lineTo(0, 0);
_root.bar.endFill();
_root.bar._xscale = 0;
var stroke:MovieClip = _root.pBar_mc.createEmptyMovieClip("stroke_mc", 20);
_root.stroke.lineStyle(0, 0x000000);
_root.stroke.moveTo(0, 0);
_root.stroke.lineTo(barWidth, 0);
_root.stroke.lineTo(barWidth, barHeight);
_root.stroke.lineTo(0, barHeight);
_root.stroke.lineTo(0, 0);
_root.pBar_mc.createTextField("label_txt", 30, 0, barHeight, 100, 21);
_root.pBar_mc.label_txt.autoSize = "left";
_root.pBar_mc.label_txt.selectable = false;
_root.pBar_mc._x = 45;
_root.pBar_mc._y = 435;
_myLV.onData = onText;
function onText(src:String):Void {
if (src != undefined) {
_root.SwfLoader_CLP.Content_txt.htmlText = src;
} else {
_root.SwfLoader_CLP.Content_txt.htmlText = "No data loaded!";
}
};
_root.pBar_mc.onEnterFrame = function() {
var pctLoaded:Number = Math.floor(_myLV.getBytesLoaded() / _myLV.getBytesTotal() * 100);
if (!isNaN(pctLoaded)) {
_root.pBar_mc.bar_mc._xscale = pctLoaded;
_root.pBar_mc.label_txt.text = pctLoaded + "% loaded";
if (pctLoaded >= 100) {
_root.pBar_mc.onEnterFrame = undefined;
}
}
};
};
_myLV.load(this.data.Ctext);
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(mclListener);
mcLoader.loadClip(this.data.Clink, _root.SwfLoader_CLP);
};
please anyone ... im stuck on this issue for 2 weeks now and my deadline starts bugging me!!!!
How To Diaply Html In Dynamicly Loaded Text
Hi, I am having a bit of a problme with this one.
I am laoding text from a .txt file to my flash movie. The trouble is i want some of the text to display html behaviour like bold, popup windows and hyper links.
Can anyone help me with this one. Thanking you in advance.
Noel.
|