FlashMX2004 AS2.0
Last edited by iaustin : 2004-09-17 at 03:28.
Hello,
I'm using MX 2004
How would I troubleshoot to solve this problem?
if I hardcode the value vpage the code works(the movieloads). vpage = 3;
if I try to pass the value from a text field it doesn't? vpage = _root.ibkmk1.vpage;//a large amout of white space appear.
picked = (vtofile+vpage+".swf"); loadMovie(picked, "itarget");
Thank You
iaustin
Last edited
Ultrashock Forums > Flash > ActionScript
Posted on: 2004-09-16
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Help Please (FlashMX2004)
Can an instance name change by the way of a variable?
In the attached file, I am currently developling a hittest assessment.
I want to convert most of these boxes to componets so it is easier for people outside the department to use.
However, I am having trouble with the hittest zone.
I am using a componet for the hittest zone. It has an instance name of “dropzonetrue”.
Then, as of now, I have a variable set up temporarily in the first keyframe as
correct = “true”
dropzone = “dropzone” + correct
In the Test mc, I have code listed using the dropzone variable as the hittest criteria, rather than the instance name of the componet.
However, it is not working.
Is the instance name of the componet going to always override the variable name? If so, are there any easy work arounds?
Thanks alot.
Rip Off To Buy Flashmx2004 Pro?
i spent 50 bucks more to buy the pro version of flashmx2004...i dont see any difference between this and the normal one (trial). what IS the difference?
FlashMX2004 AE Or FR ?
Want to upgrade to MX2004. I see that there is option to get academic version or retail, what's the big difference, both say they are full working versions. I can go either way because I am student.
[flashmx2004] Is It Possible?
Hi, im here again bugging the experts... i just want to know if it is possible to make a preloader but theres a background image in the back of the preloader while its loads the next possible animation... if yes can you please share a link or samples maybe..
regards...
Rip Off To Buy Flashmx2004 Pro?
i spent 50 bucks more to buy the pro version of flashmx2004...i dont see any difference between this and the normal one (trial). what IS the difference?
FlashMX2004 AE Or FR ?
Want to upgrade to MX2004. I see that there is option to get academic version or retail, what's the big difference, both say they are full working versions. I can go either way because I am student.
FlashMX2004 And CSS
Hi there, thanks for tuning in.
I've got this problem that's been bugging me for some time now.
I have a dynamic textfield on my stage and added css to it using actionscript. No it all works properly when I just use one typeface in my stylesheet, but there seems to be no way to include a second one. To simplify my question, I want to create 3 different css classes (1 for bold, 1 normal and 1 italic text) to use in this single textfield, but when I create a new font symbol, and pick bold/italic to include, all my text goes bold/italic, with no apparent way to counter this. Ive tried creating different css classes using the same font using this code but it doesnt seem to work.
ActionScript Code:
// Create StyleSheet
var myCSS = new TextField.StyleSheet();
// Create styles
myCSS.setStyle (".normal", {fontFamily:"theFontSymbol", color:"#CC0000", fontSize:"11px", fontWeight:"normal", fontStyle:"normal"});
myCSS.setStyle (".bold", {fontFamily:"theFontSymbol", color:"#CC0000", fontSize:"11px", fontWeight:"bold", fontStyle:"normal"});
myCSS.setStyle (".italic", {fontFamily:"theFontSymbol", color:"#CC0000", fontSize:"11px", fontWeight:"normal", fontStyle:"italic"});
// Set the textfield to embed the typeface
theTextField.embedFonts = true;
// Assign StyleSheet to the Textfield
theTextField.styleSheet = myCSS;
// Assign the formatted text
theTextField.htmlText = "<span class="normal">this text should normal be but is bold/italic</span><br>";
theTextField.htmlText+= "<span class="bold">this text should be bold but is bold/italic</span><br>";
theTextField.htmlText+= "<span class="italic">this text should be italic but is bold/italic</span><br>";
If anyone could shed some light on this matter I would be eternally gratefull, thanks for reading.
FlashMX2004 + PHP + MySql
Hi,
This post is to inform you all about a site ssdesigninteractive
Here you will get excellent Database enabled Flash MX2004 components. What they have done is enabled the existing components available in MX2004 and connected them with PHP and MySql.
They give complete FLA, PHP codes, SQL statements, XML files and detailed PDF tutorial on how to enabled the existing components to populate them using PHP + Mysql.
You might like to take a look at this.
Some Questions About Flashmx2004
1) i never head it clear on my had what "level" is on flash and when do u use it.
2) whats the little cross on a MC and whats the little circle on a MC
(see pic)
Combobox In Flashmx2004
I am a beginner and have been having a lot of problems with the ComboBox component.
Info:
I have a ComboBox in frame 5. I use this with success:
# in _root
var textColors = [
{label:"Black", data:"000000"},
{label:"Grey", data:"eeeeee"} ];
# frame5
cboColors.setDataProvider(_root.textColors);
The ComboBox is now filled. But I have the following problems:
1. The combobox has no default value. The first value is empty and I have tried to set the value with no success.
2. When change the combo I get 2 "Black" whichever I use of Black or gray
3. I have not been able to read or use any function like getSelectedIndex etc.
4. I have tried to use the SetHandler function with no success. Instead I used on (change) with limited sucess.
Code:
trace("getitemat(0): " + this.getItemAt(0).label);
trace("getitemat(1): " + this.getItemAt(1).label);
trace("getValue): " + this.getValue());
trace("getValue): " + this.getValue());
trace("getSelectedIndex: " + this.getSelectedIndex());
trace("getSelectedItem: " + this.getSelectedItem().label);
Returns:
getitemat(0): Black
getitemat(1): Grey
getValue): undefined
getValue): undefined
getSelectedIndex: [type Function]
getSelectedItem: undefined
Any ideas?
thanks / Henrik
Flashmx - Flashmx2004
Strange question, but one that may prove useful to others as well (I hope).
We (as readers) are told of compression benefits of upgrading/purchasing FMX2004 and using the latest version of the player, but can anyone tell me from first-hand experience of any size benefits after producing a .swf for 2004, as compared to Flash MX? I realise it must depend greatly on content, but I am really just after an idea.
Does it make quite a bit of difference, and is the upgrade/purchase worth it due to this in comparison.
Just want to know if it's worth an upgrade from mx to mx2004?
would like some comments from people who have seen the differences of producing .swfs for both versions of the player.
In advance, many thanks!
tabrez...
FlashMX2004 Nav In DreamweaverMX2004
Hi,
Please please help me. I'm at the end of my rope! I made three dreamweaver htm documents. Each one has the same navigation bar created in FlashMX2004 and placed in a table cell. the buttons in the swf file will not load the other htm files when I test them. I have checked the spelling of each document over and over. The action script for one of the buttons is:
on (release) {
getURL(Muscle3.htm);
}
when I press the button in the testing enviroment this comes up in the address bar: C:aZiptempmuslcecarundefined and I get an error page. any help would save me from a long carrer working at Best Buy or Mcdonalds. Thanks
I have attached the flash file you can see the different things I tried on each of the three buttons. Pleas help me!!!!
Flashmx2004 Slideshow
someone please help me !!!!!!!!!!!!!!!!!!!!
i need instructions on using the slideshow template that cmes with the program .
i cannot figure it out and cannot find any instructions anywhere .
i would like a slideshow that would be full page size or close to it or something that when you clocked on the picture it would expand to see detail .
please any help would be great
thanks so much in advance
baltimore biker
Drawing API - FlashMX2004
Trying to draw a line using Drawing API, but I don't want the line to appear all at once. I want it to look like an animation. How can I do this? Timeline loop? onEnterFrame? Help!!!
Preloader (flashMX2004)
my preloader refuses to display percentages, I figure if its not, something is going wrong, but I just don't know what it is. now that I have it preloading for the right content the load bar decides to throw a fit.
I'm thinking my errors have something to do with my target paths, here's where everything is relative to the code.
content = movieclip holder and preloader movieclip
cover = content switcher movieclip
both content and cover are on the same frame in the main timeline.
please tell me if you spot any errors;
code: this._parent._parent.content.onEnterFrame = function() {
framesLoaded = (Math.ceil (( this._parent._parent.content.getBytesLoaded() / this._parent._parent.content.getBytesTotal()) * 100));
gotoAndStop (framesLoaded);
info_txt.text = framesLoaded + "% completed";
if (framesLoaded >= 90) {
this._parent.gotoAndPlay("open");
}
}
(the fla file could be located here
This. Not Working In FlashMX2004
I've got this script that works quite happily when you export as Flash6 but stops when exported as Flash7. I'm using the MC tween commands that are working elsewhere whichever version exported. Is it an actionscript 1/2 thing?
Code:
clip.onRollover = function() {
this.scaleTo(120, 0.8, "easeoutelastic");
};
Cheers,
Dave.
FlashMX2004 Keeps Crashing?
Hi guys,
I working on an animation where one MC is embedded inside another one. When I go to move the main MC on the main stage it crashes flash.
I have attached a screen shot of the error
anyone encounted this error before?
FlashMX2004 Keeps Crashing?
Hi guys,
I working on an animation where one MC is embedded inside another one. When I go to move the main MC on the main stage it crashes flash.
I have attached a screen shot of the error
anyone encounted this error before?
FlashMX2004 Book For Buy
Hi Friends,
I am A Beginer.I Want Learn More about FlashMx2004 And The Action Script In MX2004.If Anyone Can Have An Old FlashMX2004 Book Please Inform Me(Price,Address,Phone No.I have No Much more Noney.So If Anyone Please Inform Me.......
Email: rajeshb.84@gmail.com
[flashmx2004] Loadmovie?
Hi there!
Kinda new to flash and I'm trying to load a .swf when a button is clicked on. This is my actionscript:
Quote:
on (press) {
loadMovie (exper.swf);
}
It is in the same folder and I even loaded it into my library to try that.
I get this error when I test my movie, but I'm not sure what it means...:/
Quote:
**Error** Scene=Scene 1, layer=navi, frame=1:Line 2: Wrong number of parameters; loadMovie requires between 2 and 3.
loadMovie (exper.swf);
Total ActionScript Errors: 1 Reported Errors: 1
Any help would be appreciated
- Steph
[flashmx2004]Help Needed....
still need help doing this..
http://www.kirupa.com/forum/showthre...t=dynamic+link
i have an image in flash.. and i want to put a link on it externally. Dynamic link maybe.. Is it possible? XML or text or something that show what i need?
the purpose is the image will contain random links every week.. so instead modify the getURL inside flash.. we can modify the external file that contains the link... the external file or xml will contain just the LINK.. hmmm. i have 10 images inside the flash movie..each images contains different link...
Please needing help badly....Pleaseee.. im dying...
thanks in advance...
[flashmx2004]XML Thumbnail
i was working with the attach flash file, using the Kirupa's XML Gallery and Adding Thumbnail tutorial, i came up with this file..
i have worked it out and rename such variables and the gallery was just a thumbnail scrolling left to right when mouse over.. no big image at the top and no next and previous button. The xml loads fine but i cant make it work the image to load horizontally.. i followed all the Adding Thumbnail Tutorial, the boundaries left and right and all the thing.. but why the movie is not loading the xml and not putting horizontal instead it loops underneath the first image.. i got a headache debugging this... please help...
did i miss some code?? but i think not..i check all the lines i even add the Mouse Hover Caption Tutorial with this...
can anyone help??
FlashMX2004 Problem
Actually , it's not aproblem as much as it is lack of understanding ,
in one of the threads regarding letters following cursor there was this script :
Text = "Kirupa has the best site on the net!!!";
letters = Text.split("");
letterformat = new TextFormat();
letterformat.font = "Verdana";
letterformat.align = "center";
letterformat.size = "10";
spacing = 8;
speed = 3;
for (var LTR = 0; LTR<letters.length; LTR++) {
mc = _root.createEmptyMovieClip(LTR+"l", LTR);
mc.createTextField(letters[LTR]+"t", LTR, LTR*spacing, 10, 20, 20);
with (mc[letters[LTR]+"t"]) {
text = letters[LTR];
setTextFormat(letterformat);
selectable = false;
}
if (LTR) {
mc.prevClip = _root[(LTR-1)+"l"];
mc.onEnterFrame = function() {
this._x += (this.prevClip._x-this._x+5)/speed;
this._y += (this.prevClip._y-this._y)/speed;
};
} else {
mc.onEnterFrame = function() {
this._x += (_root._xmouse-this._x+10)/speed;
this._y += (_root._ymouse-this._y)/speed;
};
}
}
and my question is
what does if (LTR) means ?? ? doesn't "if" need acondition , or does it mean only the existence of (LTR) , one more thing , I noticed that if i'd delete the "_root" used in the last two lines the script would still work ..... so why did we use them in the first place ? ??
ComboBox - FlashMX2004
Hi,
First of all, I am new to Flash so please forgive the simple questions.
I am using Flash MX 2004.
What I am trying to do is create a jump menu using a combobox. The end result would be someone making a selection from the combobox then depending on their selection they would jump to the corresponding frame.
Any suggestions?
Kind Regards,
Shawn.
Mask In FlashMX2004
Can anyone point me to a good tutorial for a mask in FLASH? One where the mask acts like a xray machine revealing the bones of my character?
Thanks
MS Word To FlashMX2004
The copy-n-paste functionality on PC from Microsoft Word 2003 to Flash MX 2004 (pro) is simply amazing to me. You're able to paste an exact replica of an MS Word layout (including style, formatting, colors) onto your timeline in a grouped bunch of split up text boxes. (I'm starting to respect my clients who use Word for everything ) So far a great feature, especially if the client wants you to maintain his fabulous layout.
But here's a problem which takes up all my time: you can only paste 1 Word page, it won't paste anything beyond a page break if your document is several pages long. You could do some manual labor by copy-n-pasting every page individually, but the problem gets worse cause all the automatic numbered bullet/headlines gets reset after a page break. In other 'words' : if you try to copy-n-paste a 10 page document with a lot of automatic numbered headlines/bullets, you're doomed
Some logical solutions that didn't work:Deleting manual page breaks: Flash will still stop pasting after a normal page break
Making the papersize very long: will not work, cause Word cannot make pages longer then 55,87cm
Does anyone have an idea how to:
1. Convert the automatic numbering to fixed (not changable) numbering.
2. Export a fairly long Word document to an SWF file?
Flashmx2004 Textarea Component
Hi,
I am using the textarea component, where you put text into the box with myTextArea.text ="blah" this works fine but I want to put the contents of a text file into the textarea.
I have a text file with htmlTXT= blahhh which loads fine into a standard text box from the flash toolbar when i have defined a variable for it to contain with the same htmlTXT name.
So the question is how do I load this variable so I can put it inside the textarea component, I have tried but keep getting undefined in the text area.
liam (tearing my hair out)
FlashMX2004 Pro Actions Pallett
I have Flash MX 2004 installed and from all the demos I've seen there should be a beginners level and an advanced level option in the ACtions pallette to swith back and for.....I CAN"T FIND IT!!!!.....I have the trial version installed and even in the Flasm MX 2004 version I still can't find it!!!!.....help PLS.....did macromedia eliminate that option from Flash Ms 2004....all the other versions have it....so whats up????
Thanks for your help!!!!
Cant Work FlashMX2004 Behaviors
hi, with the "old" flashmx i could easily use the movieclip-control actionscript (wich i think is the easiest), now with flashmx2004 i use the behaviorpanel to make 3 frames loop. so on frame one i just use the play() as security just so im sure it wont stop, on frame three i use the behavior, Goto and Play frame or framelabel 1 to get the movie to play frame1 again and then it should play and go to 3 and go back, loop, over and over again, but on the 3:d frame something is wrong and it stops there and disables all buttons please help me, im not a "n00b" and i should be able to fix this but i dunno, i must be tired or something but i cant
Pictures In Listbox (FlashMX2004)
I have seen an example of inserting icons into a listbox in an earlier version of flash here:
http://www.macromedia.com/devnet/mx/...omponents.html
I am new to flash mx 2004 and would be glad to have an example for the new listbox component in Flash MX 2004.
Do you have any example?
thanks / Henrik
FlashMX2004- Why Is It Hanging When I Check For URL?
Hi!
I have no idea why my movie is hanging! Can anyone tell me why this isn´t working? I copied from the web a piece of code to check for the URL that the movie is running from. If it´s the right one, movie advances, if it´s not (it means movie was stolen and copied to another URL), so movie pulls up another URL or stops. It´s not working, when I run it, I get an error message: your script is causing Flash to become very slow, abort?
frame 1 action:
okToPlay = FALSE;
siteURL = "http://www.blabla1.com.br";
if (_url.substr(0,25) == siteURL) {
okToPlay = TRUE;
gotoAndPlay(30);
}
if (!okToPlay) {
getURL("http://www.blabla1.com.br/teste/stolen.html");
} else {
gotoAndPlay(30);
}
stop;
frames 2,3,4:
stop;
frame 30 action: (final frame of movie)
stop;
=============
Vera
Form In FlashMX2004 Problem
I got the tutorial and the attached files from Flashkit.com and modified them to use in my project. It works fine when the files are in the main timeline. I need to put the files inside a movieclip to be able to use. I do not know if this is possible. I would like if someone could check the enclosed files and please tell me what is wrong. script? timeline?
Thanks
Carlos
FlashMX2004 GetUrl() Issue
Hi everyone, im a new member here !(please excuse my english !i'm french)
So i will start my question:
I designed a flash site(with MX2004) and I have some button "linked" to some files i want people to be able to download, BUT it seem that when i publish (Shift+F12) the link is not what i wrote in flash :
on (release) {
getURL("..datadocsMotivations.doc");
}
everything seems good, but in the HTML page it is :
ataocsotivations.doc
Im asking
1-"Why are some letters missing !!!!" (always the first letters, and sometimes letters are moved around !)
2- Is there a compatibility issue with a new version of IE and flash ?
3- what could i do to make my links works !!
Thank you ,and i hope that you did understant what my problem is !!
See ya
Friag ( http://friag.tbg.free.fr )
PS : Check my webpage if you want, and test the about sections links in the swf movie (this is where it is buggy)
Cannot Load FlashMX.fla In FlashMX2004 ?
Is there a way to load my FlashMX.fla in FlashMX2004 (professional). Why is this not backwards compatible? First attempt at using FlashMX2004 and I am already a bit weary.
specs:
I have actionscript and MC's in my fla. Thats all. OS->WinXP. Hmmmm...can't think of anything else.
Thanks ahead.
Chris Reid
Calling Java From FlashMX2004
i am trying to use the browser shake java code i got from the tutorials in my own website.
tutorial:
http://www.flashkit.com/tutorials/Sp...en-7/index.php
ive followed the tutorial,
called the script by using
getURL ("javascript:shake_x(n)")
tested my movie and nothing happened.
ive tried defining the javascript in <head>, <body> and between <head> and <body>. none of them work.
my mozilla firefox JavaScript Console picks up an error saying "shake_x is not defined"
anyone know why?
Help With Script - FlashMX2004 And FlashPaper2
Hi,
I'm a dunce when it comes to scripting so this is probably fairly simple:
I'm using the following code to load and external FlashPaper2 swf into my movie
// function: loadFlashPaper
// ------------------------
// Parameters:
// path_s: path of SWF to load
// dest_mc: Movie clip to hold the imported SWF
// width_i: New size of the dest movie clip
// height_i: New size of the dest movie clip
// loaded_o: (optional) Object to be notified that loading is complete
function loadFlashPaper(path_s, dest_mc, width_i, height_i, loaded_o) {
var intervalID = 0;
var loadFunc = function(){
dest_mc._visible = false;
var fp = dest_mc.getIFlashPaper();
if (!fp) {
return;
} else if (fp.setSize(width_i, height_i) == false) {
return;
} else {
clearInterval(intervalID);
dest_mc._visible = true; // Now show the document
loaded_o.onLoaded(fp);
}
}
intervalID = setInterval(loadFunc, 1);
dest_mc.loadMovie(path_s);
}
// Function called once the FlashPaper SWF is embedded:
function onLoaded(fp) {
// We can now call the FlashPaper API functions.
// Remove the standard user interface features:
fp.showUIElement("PrevNext", true);
fp.showUIElement("Print", true);
fp.showUIElement("Find", false);
fp.showUIElement("Tool", true);
fp.showUIElement("Pop", false);
fp.showUIElement("Zoom", true);
fp.showUIElement("Page", true);
fp.showUIElement("Overflow", false);
fp.enableScrolling(true);
// Some additional API features (here commented out):
// Go to page:
// fp.setCurrentPage(8);
// Change the magnification to 50%:
// fp.setCurrentZoom(50);
}
// Now we're ready to start
// Create the destination movie clip to hold the SWF:
var theDocMC_mc = this.createEmptyMovieClip("theDocMC",1);
// Position it on the stage:
theDocMC_mc._x = 309.9;
theDocMC_mc._y = 0;
// Load the FlashPaper SWF into the clip,
// size it, and trigger the onLoaded() function:
loadFlashPaper("academy\princ_intro.swf", theDocMC_mc, 715, 669, this);
Now, I want to click a button, move onto a new frame which will load another Flashpaper2 swf into the same movie, replacing the one I've got there.
I've tried just replicating this code with the new swf name in but that doesn't work.
Could anyone help out please.
TIA.
[Flashmx2004] Xml Photo Album V3.1
I found this free photo album but i need to change a few things
here is how it looks
http://members.lycos.nl/thejojo15/Al...ldsofrock.html
It works with 1 flash file and 2 Xml files
First xml file:
here it defines al sorts of marges and positions of the photo's
Code:
//////////////////////////////////
/*
Code generated by Selcuk ARTUT
xml photo album v3.1
Free of use
Instructions:
Update your XML file,
and upload your corresponding images in the photos folder
please send comments : selcukhip@hotmail.com
*/
//////////////////////////////////////////////////////////////
// SETTING VARIABLES
currentpage = 1;
_global.whichalbum = 1;
bigframew = 600;
bigframeh = 450;
//////////////////////////////////
function scalerf(w,h)
{
diffw = (w-bigframew);
diffh = (h-bigframeh);
if(diffw<=0&&diffh<=0)
{
scaler = 1 * 100;
}
else if (diffw==Math.max(diffw,diffh)) //scale to height
{
scaler = (bigframew/w) * 100;
}
else if (diffh==Math.max(diffw,diffh)) //scale to width
{
scaler = (bigframeh/h) * 100;
}
return scaler;
}
//LOADCLIP ACTIVITIES
_root.createEmptyMovieClip("looploop",-1000);
var my_mcl = new MovieClipLoader();
myListener = new Object();
myListener.onLoadStart = function (target_mc)
{
var loadProgress = my_mcl.getProgress(target_mc);
}
myListener.onLoadProgress = function (target_mc, loadedBytes, totalBytes)
{
////////////////////////////////////////////////////////
// FOR PRELOADER PURPOSES
loaded = loadedBytes;
total = totalBytes;
percentage = Math.round(100*(loaded/total));
progressbar_mc.progresser_mc._xscale = percentage;
////////////////////////////////////////////////////////
}
myListener.onLoadComplete = function (target_mc)
{
var loadProgress = my_mcl.getProgress(target_mc);
imageframe_mc.hold._alpha=0;
velo = 0;
imageframe_mc.hold.onEnterFrame = function()
{
w = imageframe_mc.hold._width;
h = imageframe_mc.hold._height;
if(w!=0&&h!=0)
{
scaler = scalerf(w,h);
if(scaler!=100)
{
imageframe_mc.hold._xscale = scaler;
imageframe_mc.hold._yscale = scaler;
}
imageframe_mc.hold._x = (bigframew - (w*(scaler/100)))/2;
imageframe_mc.hold._y = (bigframeh - (h*(scaler/100)))/2;
if(imageframe_mc.hold._alpha<100)
{
accel = 1.5;
velo = velo + accel;
imageframe_mc.hold._alpha +=velo;
}
}
}
}
myListener.onLoadInit = function (target_mc)
{
//target_mc._width = 100;
//target_mc._width = 100;
}
myListener.onLoadError = function (target_mc, errorCode)
{
}
my_mcl.addListener(myListener);
///////////////////////////////////////////////////////////////
// XML PARSING
function imageListLoaded(whichalbum) {
//clear stage
for (var rr = 0; rr < noofrow * noofcolumn; rr++)
{
rr = rr + pageindex;
this["thumbframe"+rr].removeMovieClip();
this["thumbframein_mc"+rr].removeMovieClip();
rr = rr - pageindex;
}
//parameters
param = this.imageList_xml.firstChild.firstChild;
pc = int(param.attributes.noofcolumn);
pr = int(param.attributes.noofrow);
ptx = int(param.attributes.thumbxs);
pty = int(param.attributes.thumbys);
_global.ptw = int(param.attributes.thumbwidth);
_global.ptl = int(param.attributes.thumbheight);
//////////////////////////////////////////////////////////////
var albumCountXML = this.imageList_xml.firstChild.childNodes;
albumCount = albumCountXML.length - 1;
var mainNode = this.imageList_xml.firstChild.childNodes[whichalbum].firstChild;
var listBoxData = createResourceList (mainNode.childNodes,pc,pr,ptx,pty,ptw,ptl);
albumtextbox.text = "album"+whichalbum+">>>";
albumtextbox.background = true;
albumtextbox.backgroundColor = 000000;
for (t=1;t<=albumCount;t++)
{
this.attachMovie("albumnames_mc","albumnames_mc"+t,1000+t);
this["albumnames_mc"+t].albumnametxt.text = this.imageList_xml.firstChild.childNodes[t].attributes.albumname;
this["albumnames_mc"+t]._x = 900;
this["albumnames_mc"+t]._y = t * 450;
this["albumnames_mc"+t].sett = t;
this["albumnames_mc"+t].onRelease = function()
{
currentpage = 1;
filename.text = "";
for (var rr = 0; rr < noofrow * noofcolumn; rr++)
{
rr = rr + pageindex;
this["thumbframe"+rr].removeMovieClip();
this["thumbframein_mc"+rr].removeMovieClip();
rr = rr - pageindex;
}
imageListLoaded(this.sett)
_global.whichalbum = this.sett;
}
}
}
function createResourceList(resource_array,noofcolumn,noofrow,thumbxs,thumbys,thumbwidth,thumblength,bigimagewidth) {
_global.noofcolumn = noofcolumn;
_global.noofrow = noofrow;
var listData = new DataProviderClass ();
resourceCount = resource_array.length;
noofpage = Math.ceil(resourceCount/(noofcolumn*noofrow));
ofof.text = "page: "+currentpage+"/"+noofpage;
var resource, image, tmb;
images = new Array();
infotexts = new Array();
pageindex =((currentpage-1) * noofrow * noofcolumn);
for (var r = 0; r < noofrow; r++)
{
for (var c = 0; c < noofcolumn; c++) {
i = (r * noofcolumn) + c + pageindex;
if(i<resourceCount)
{
nodigits = new String(resourceCount);
resource = resource_array[i];
images[i] = resource.attributes.imagename;
infotexts[i] = resource.attributes.infotext;
loadme = "thumbs/"+images[i];
findme = images[i];
whichframe = "frame"+i;
this.attachMovie("thumbframe","thumbframe"+i,i+1);
this["thumbframe"+i]._x = (c * thumbwidth)+thumbxs;
this["thumbframe"+i]._y = (r * thumblength)+thumbys;
createEmptyMovieClip("thumbframein_mc"+i,(i+1)*1000);
onEnterFrame = function()
{
for (var tr = 0; tr < noofrow; tr++)
{
for (var tc = 0; tc < noofcolumn; tc++) {
ti = (tr * noofcolumn) + tc + pageindex;
if(ti<resourceCount)
{
tw = this["thumbframein_mc"+ti]._width;
th = this["thumbframein_mc"+ti]._height;
this["thumbframein_mc"+ti]._x = this["thumbframe"+ti]._x+(thumbwidth - tw)/2;
this["thumbframein_mc"+ti]._y = this["thumbframe"+ti]._y+(thumblength - th)/2;
}
}
}
}
this["thumbframein_mc"+i].loadMovie(loadme);
noofthumbs = (currentpage-1) * noofcolumn * noofrow;
nom = noofthumbs;
callbig(nom);
this.filename.text = " "+images[nom];
this["thumbframe"+i].onPress = function()
{
startsubstring = 10;
endsubstring = startsubstring + nodigits.length;
largeindex=this._name.substring(startsubstring,endsubstring);
callbig(largeindex);
}
}
}
}
}
function callbig(index)
{
filename.text = " "+images[index];
info.text = infotexts[index];
imageframe_mc.createEmptyMovieClip("hold",0);
my_mcl.loadClip("largeimages/"+images[index],this.imageframe_mc.hold);
imageframe_mc.onPress = function()
{getURL("pics/"+images[index],"_blank");}
}
imageList_xml = new XML ();
imageList_xml.ignoreWhite = true;
imageList_xml.onLoad = function (success) {
if (success) {
imageListLoaded(whichalbum);
}
};
//////////////////////////////////////////
//HERE IS WHERE YOU DECLARE YOUR XML FILE
imageList_xml.load ("albums.xml");
//////////////////////////////////////////
rightbt.onRelease=function()
{
if(currentpage != noofpage)
{
currentpage ++;
imageListLoaded(_global.whichalbum);
}
}
leftbt.onRelease=function()
{
if(currentpage > 1)
{
currentpage --;
imageListLoaded(_global.whichalbum);
}
}
stop();
VB.NET To FLASHMX2004 -- Slide Show
I'm trying to make a slide show using flashmx2004 and vb.net. On my VB form, it decides which image I want flash to display. For example. If I want to display "image2.jpg" to the flash movie. I pass the path to image2.jpg and the flash movie should display that image. Any help would greatly appreciated.
MameFreak
FlashMx2004 File In DirectorMx?
Is it possible to play FlashMx2004 file in DirectorMx?
Please guide?
Or any work around to display unicode characters in flashMX..
I have attached a XML file which I need to display in flashMx.
It does not work in FlashMx but in FlashMx2004 works properly.
Font I used is Arial unicode MS
Thanks!!
Have Problems With Sizing In FlashMX2004
I have a Flash intro page which has resolution of 700 x 400 resolution. This is fine on website. When the intro page has finished its bit this automatically opens another flash page with same resolution of 700 x 400. But I find this new flash page seems smaller...for example the second flash page is identical to the flash intro page and yet when this opens after the intro page, the text and graphics are resized smaller. How can this be as resolution is the same on both identical pages?????????
Preloader In FlashMX2004 Pro Presentations
Hi,
I am using one of the default MX2004 Pro Presentation/Slideshows.
I want to post my completed presentation online but it's final size requires a preloader.
I notice that I can't get some of my preloader code that I used for past Flash sites to work in this template.
Perhaps there is something about the action script in the first frame of this slideshow template that requires something special.
Anyone tried putting a preloader on a MX2004 slideshow template? Any ideas?
Kellys
Conversion From FlashMX2004 To DirectorMX2004
Ok. Let's say you do this HUGE project in flash for the web and it took you a very long time to get all the code right and all the graphics looking good and you release it and everyone loves it and then you're asked to put it in a kiosk, make everything about it better and add way more media to it.
Is there some way to just.. convert what you have in flash directly to Director? I'm not talking about just importing the .swf. I'm talking about actually turning each movie clip or graphic or symbol into its own cast member in Director, and having all of your actionscript lovingly converted to work, or maybe put somewhere within lingo so it would work just the same.
The reason is, the swf file is big and slow, we didn't mean to design it that way, but it is. When you shrink it down for the web it's just fine, but we need this thing to be full screen on a 1280x1024 screen. That makes it run slow, and when imported into Director it's even slower. But, if we could just put all that stuff in Director, since Director is supposed to be pretty beefy and able to handle all the stuff, it would run it all just fine, right?
Refer to this post http://www.kirupaforum.com/forums/sh...ad.php?t=62444 to see what I'm talking about and let me know. Thanks ahead of time to any reply.
What's Going On With Selection.setFocus(); In FlashMX2004 ?
In Flash MX it works just fine, I copy/paste code to MX2004 and it doesen't work ?
this.createTextField ("txtUpis_txt", 1, 0, 0, 300, 30);
txtUpis_txt.type = "input";
txtUpis_txt.tabEnabled = true;
txtUpis_txt.selectable = true;
txtUpis_txt.border = true;
Selection.setFocus ("txtUpis_txt");
Anyone know reason??
thanx
{FLASHMX2004] AS1.0 HELP Scrollpane Problems
I am working with this flash photo album that pulls thumbnail images through xml and then displays them in a simple duplicate movie clip. Here is the problem, I can set the number of thumbnails I want it to output but I need to contain the thumbnails within a specific space. To do this I thought I would use the scrollpane component but I cant get it to work. I am not very good with AS but I can fumble my way through. I cant seem to figure this one out though.
My movie clip is structured as such: nav.imgs.img ----- nav being the container for the thumbnails --- imgs being the thumbnail container and img is the holder for the empty mc. I removed the imgs movieclip from the stage and placed the scrollpane component with the scroll content being "imgs". Then set my linkage for the imgs mc in the library and set it to imgs. When I test, the "imgs" clip is in the scrollpane but it is not duplicating or retrieving the thumbnals. Ahh! I know this is a little long winded, but I was hoping someone could help. Here is the code. I am using Flash MX 2004 but this is all AS1.0 and I am using the Flash UI Component Set 2 ScrollPane. Any help would be awesome! Thanks!
Mike
-------------
I read somewhere that the scrollpane component is disabled at run time. Could this be the problem?
I tryed to refresh the ScrollPane with
_root.onEnterFrame=function()
{
this.nav.myScroller.refreshPane();
}
but still came up empty handed.
---------------
Code:
imageXML = new XML();
imageXML.onLoad = processImages;
status.text = fetchingXMLMessage;
imageXML.load(location_pre+"xml.aspx");
function processImages(){
var xval = 5;
var thumbs = _root.imageXML.firstChild.childNodes;
for(var i=0; i<20; i++){
duplicateMovieClip("nav.myScroller.imgs.img","img"+i,i);
var clip = eval("nav.myScroller.imgs.img"+i);
clip._x = xval;
clip.enabled = false;
clip.myLoader = new MovieClipLoader();
clip.myListener = new Object();
clip.myLoader.addListener(clip.myListener);
clip.myListener.onLoadComplete = function(target_mc){
target_mc._parent.loadingtxt._visible = 0;
target_mc._parent.enabled = true;
}
clip.myLoader.loadClip(location_pre+""+thumbs[i].attributes.thumb,clip.empty);
clip.mainimage = thumbs[i].attributes.path;
clip.onRollOver = clip.onDragOver = function(){
if(this != clicked){
this.imgover.gotoAndPlay("in");
}
}
clip.onRollOut = clip.onDragOut = function(){
if(this != clicked){
this.imgover.gotoAndPlay("out");
}
}
clip.onRelease = clip.onReleaseOutside = function(){
clicked.imgover.gotoAndPlay("out");
clicked.enabled = true;
clicked = this;
clicked.enabled = false;
this.block.setColor(visitedColor);
_root.temp = this;
status.text = fadingMessage;
_root.holder.onComplete = function(){
status.text = loadingMessage;
_root.imgLoader.loadClip(location_pre+""+_root.temp.mainimage,_root.holder.image);
}
_root.holder.fade(0,imgFade);
}
xval += (nav.myScroller.imgs.img._width + 2);
}
status.text = welcomeMessage;
nav.myScroller.imgs.img.killMovieClip();
}
|