Load External Data In Accrodian Component
Hello. Can anybody please tell me how to load external data - be it external text files, images, swf or xml menus - inside movie clips only when an accordian menu is clicked. Setting up the accrodian menu is not a problem. Problem is the AS for loading external and only start loading when a menu is clicked. Can anybody help?
Or alternatively is there an advanced accordian component thats does exactly the above I can purchase. I've had no luck. Thanks.
Ultrashock Forums > Flash > Flash Newbie
Posted on: 2006-03-29
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Mx.data.components - Unable To Declare Data Component Types In External Class Files
Hi all,
FlashMX 2004, v7.2:
I am trying to declare instances of data-components (DataSet and DataHolder) in external classfiles, but Flash can't find the sourcefiles for any of the data component classes in the classpath.
According to the help-files, the classname for the DataHolder component is:
Code:
mx.data.components.DataHolder
Similarly, the classname for the ComboBox component is:
mx.controls.ComboBox
Code:
mx.data.components.DataHolder
In the following, the ComboBox gets declared, and the DataHolder generates a "Class can't be loaded" error:
Code:
class my_class extends MovieClip {
var my_cbox:mx.controls.ComboBox;
var my_data:mx.data.components.DataHolder;
function my_class() {
// constructor function
}
}
Sure, it fails because there is no "components" folder in the mx.data folder (at least on my system), and I have been unable to find any DataHolder.as file anywhere either, even though the documentation gives examples that reference the mx.data.components-folder for various data components. I even tried re-installing to make sure I had not accidentally deleted any classfiles, but still no luck.
Am I missing something really obvious here? Does anyone know how to successfully import, declare or otherwise make use of data-components in external class files? Any help greatly appreciated.
How To Load Data Dynamically Using Xml On Tree Component In Flashmx 2004
HAI FRIENDS
i wanna know how to load data dynamically using XML in flash TREE UI COMPONENT. I WANNA load text and image files dynamically on the same scene when the user pressees the node. IS IT POSSIBLE?? IF SO PLS RESPOND TO THIS IMMEDIATELY
THANKS FOR UR REPLY.
PLS GIVE THE CODE ACTION SCRIPT PART AND XML FILE TOO.
How To Load Data Dynamically Using Xml On Tree Component In Flash Mx 2004
HAI FRIENDS
i wanna know how to load data dynamically using XML in flash TREE UI COMPONENT. I WANNA load text and image files dynamically on the same scene when the user pressees the node. IS IT POSSIBLE?? IF SO PLS RESPOND TO THIS IMMEDIATELY
THANKS FOR UR REPLY.
PLS GIVE THE CODE ACTION SCRIPT PART AND XML FILE TOO.
Load Bar For External Data
Hi
I have an object that I'm loading into a web page, and I'm using a small Flash movie to fill the time/space until it's fully loaded. When the object is fully loaded I switch div layers and hide the Flash movie. I was wondering if it's possible to pick up the percentage of the file that's loaded and display it in Flash. For example, if I'm, loading a 2Mb image, is there any way I can have Flash snoop on the load progress and display it?
I mean, is there a way to use getBytesLoaded() on a file being loaded into the same HTML as the Flash movie, but that's completely unrelated to the Flash movie?
Thanks
Mark
Trying To Load External Data
ive read the tutorials and searched the forums but i still need some help. im trying to read data from a text file here (http://www.ndbc.noaa.gov/data/realtime2/41035.spec) what i cant figure out is how to call each value to its own dynamic text field.
YYYY MM DD hh mm H0 SwH SwP WWH WWP SwD WWD STEEPNESS AVP MWD
2006 12 10 00 00 0.3 0.3 6.2 0.1 3.2 ESE SE N/A 6.1 110
2006 12 09 23 00 0.3 0.3 9.1 0.1 3.6 SE SE N/A 6.2 134
2006 12 09 22 00 0.3 0.3 9.1 0.1 3.6 SE ESE N/A 6.2 125
2006 12 09 21 00 0.3 0.3 7.1 0.1 3.4 ESE ESE N/A 5.9 119
I Want To Load External XML Data Please Help
Hi.
The XML data I want to show in my flash movie is located on a remote server. I've bulit a Flash movie that work's perfectly fine when runned locally on my own PC (running Windows XP), with the data recieved from a remote server.
This is how I currently load data into my Flash movie:
headlineXML = new XML();
headlineXML.onLoad = myLoad;
headlineXML.load("https://www.remotesite.com/Wrapper/eWrap.aspx?xformat=xml&xrows=50");
function myLoad(ok) {
if (ok == true) {PublishXML(this.firstChild);}
When I upload the movie to my website it doesn't load the XML data anymore. I've read that Flash Remote will solve my issue, but. Thing is... I do not have controll over the server where the data is stored, and I do not have controll over the webserver where I'll publish the Flash movie.
Can I build a "robust" Flash move which manage to load XML data regardless of the environment it is published in? Or do the web server where the Flash file is published need to run some sort of server-side RPC service?
Please helpe me on an approach on this.
Kind regrads
-klokhammer
Load Some External Data
I want to create a presentation where the administrator can upload for hot news.
This hot news will contain: image, short description, and long description. And at 1 page will show 5 hot news. Then they can click on next page to view more.
This script looks like program news using PHP or, etc. But, if i want to create it using flash, can i do it? how?
So, at the page will show the image and short description. If we click on it, then it will show up the long description.
And can we provide administrator area, where the admin can update or delete the news?
Trying To Load External Data
ive read the tutorials and searched the forums but i still need some help. im trying to read data from a text file here (http://www.ndbc.noaa.gov/data/realtime2/41035.spec) what i cant figure out is how to call each value to its own dynamic text field.
YYYY MM DD hh mm H0 SwH SwP WWH WWP SwD WWD STEEPNESS AVP MWD
2006 12 10 00 00 0.3 0.3 6.2 0.1 3.2 ESE SE N/A 6.1 110
2006 12 09 23 00 0.3 0.3 9.1 0.1 3.6 SE SE N/A 6.2 134
2006 12 09 22 00 0.3 0.3 9.1 0.1 3.6 SE ESE N/A 6.2 125
2006 12 09 21 00 0.3 0.3 7.1 0.1 3.4 ESE ESE N/A 5.9 119
Trying To Load External Data
ive read the tutorials and searched the forums but i still need some help. im trying to read data from a text file here (http://www.ndbc.noaa.gov/data/realtime2/41035.spec) what i cant figure out is how to call each value to its own dynamic text field.
YYYY MM DD hh mm H0 SwH SwP WWH WWP SwD WWD STEEPNESS AVP MWD
2006 12 10 00 00 0.3 0.3 6.2 0.1 3.2 ESE SE N/A 6.1 110
2006 12 09 23 00 0.3 0.3 9.1 0.1 3.6 SE SE N/A 6.2 134
2006 12 09 22 00 0.3 0.3 9.1 0.1 3.6 SE ESE N/A 6.2 125
2006 12 09 21 00 0.3 0.3 7.1 0.1 3.4 ESE ESE N/A 5.9 119
i want to read the latest SwH and SwP and SwD readings into a flash movie.
how do i call those into the field?
Trying To Load External Data
ive read the tutorials and searched the forums but i still need some help. im trying to read data from a text file here ((URL address blocked: See forum rules)) what i cant figure out is how to call each value to its own dynamic text field.
YYYY MM DD hh mm H0 SwH SwP WWH WWP SwD WWD STEEPNESS AVP MWD
2006 12 10 00 00 0.3 0.3 6.2 0.1 3.2 ESE SE N/A 6.1 110
2006 12 09 23 00 0.3 0.3 9.1 0.1 3.6 SE SE N/A 6.2 134
2006 12 09 22 00 0.3 0.3 9.1 0.1 3.6 SE ESE N/A 6.2 125
2006 12 09 21 00 0.3 0.3 7.1 0.1 3.4 ESE ESE N/A 5.9 119
[MX04] Load Data From An External Jsp
[MX04] external xml wont load
If I have the xml load directly from the flash (ie, I have it go directly to the site, instead of through 'proxy.php'), it will load the data from the xml, but when I have it go through a php script, nothing shows up, the text field is completely blank, it doesnt even say "Couldn't Load".
here is my flash file script:
Code:
Code:
xmlGetBtn.onRelease = function(){
var xmlProxy:XML = new XML();
xmlProxy.ignoreWhite = true;
xmlProxy.onLoad = function(bSuccess:Boolean):Void {
if(bSuccess) {
xmlDataBox.text = this;
}
else {
xmlDataBox = "Couldn't Load";
}
};
xmlProxy.load("Proxy.php")
}
and the php script looks like:
PHP Code:
PHP Code:
<?php
$dataURL = "http://www.w3schools.com/xml/simple.xml";
echo readfile($dataURL);
?>
I have tried every tutorial and script I could find, but nothing seems to work.
Also, is it possible to load external data into flash from a .jsp?
Thanks alot if anyone can help me try to solve this problem.
How Do I Load And Save External Txt Data ?
Im trying to make a simple flash program which I enter a persons name into a text box and then click 'GO', this then displays there name along with their details (which are taken from a txt file).
I can then edit their details and then save them, updating the external txt file.
But how do I make this ??
Thanks for any help.
Load Data From External File
Hi, i found this tutorial
http://www.kirupa.com/developer/mx/externaldata.htm
it works fine, but i want the file data.txt, to be in a different domain than the swf. When i write loadText.load("http://www.mydomain.com/data.txt"); the swf doesn't work. How can i solve this problem?
Thanx
Cannot Load Symbols From External Data
Hi
I have a php that was spitting out :
PHP Code:
&sure1=99% Sure&sure2=75% Sure&
the % sign doesnt load in flash or anyother symbol (like ~ or ^ )
the text box has embeded fonts (which has % sign included in it)
Thanks
Load Data From External File
Hi, i found this tutorial
http://www.kirupa.com/developer/mx/externaldata.htm
it works fine, but i want the file data.txt, to be in a different domain than the swf. When i write loadText.load("http://www.mydomain.com/data.txt"); the swf doesn't work. How can i solve this problem?
Thanx
External Data File Load Order
I'm attempting to use the Simple Dynamic Graph project (http://www.flashkit.com/movies/Scrip...7156/index.php) and am running into problems when I attempt to load data from an external text file.
The data does load, but according to the debugger, only after everything else has happened in the script (which means not much happens).
It works fine with internal, canned data.
I've tried a few things to make it load the external file first before moving on to processing the data (while loops, etc) but none of that seems to work (though I did manage to fill my pagefile at one point).
Would anyone have any ideas on this? Thanks!
Here's the relevant stuff:
data.txt
Val=0;4;8;12;16;20;24;5;7;9;3;15;22;23;16;15;32;36 ;35;21;0;25;13;8
Flash script:
//Load external text file
loadVariablesNum("data.txt",0);
//Create an array from the string of values
myArray = Val.split(';');
//Determine how many values there are
totVals = myArray.length;
//Set the first horizontal value equal to the x pos of the post
hor = 40;
Mov = _root.Dot;
Space = 428/totVals;
//Set the y pos of the original instance
setProperty("Mov", _y, 200 - (myArray[0]*5));
for (n=1; n <totVals; n++) {
//Dots and positioning
hor = hor + Space
depth = 200 - (myArray[n]*5);
duplicateMovieClip("Mov", "Mov" add n, n);
setProperty("Mov" add n, _y, depth);
setProperty("Mov" add n , _x, hor);
//get coordinates for the lines that are drawn dynamically
if(n==1){
x1 = getProperty(_root.Dot,_x);
x2 = hor;
y1 = 200 - (myArray[0]*5);
y2 = depth;
}else{
x1 = getProperty(eval("_root.Mov" add (n-1)),_x);
x2 = hor;
y1 = getProperty(eval("_root.Mov" add (n-1)),_y)
y2 = depth;
}
//Lines: dynamically draw lines in an empty movie called "Line"
with(_root.Line){
lineStyle (1, 0x0000ff, 100);
moveTo (x1, y1);
lineTo (x2, y2);
}
}
stop();
Combo Box Load External Data Problem?
I am trying to load external text into my combo box for it to populate.
I have got it to load most of it put there is one part of the code that isn't working and I know I am realloy close.
Code:
stop();
var listVars:LoadVars = new LoadVars();
listVars.load("externalInfo.txt"); // in this file you tell it the image count
////////////////////////////////////
// set a function for names
// to happen when
// text file is loaded
////////////////////////////////////
listVars.onLoad = function(success:Boolean):Void {
var productArray:Array = new Array();
for (i = 1; i < 50; i++) {
if (listVars.product[i] == null) {
aNumber = ("item"+[i])
my_cb.addItem({data:listVars.aNumber, label:listVars.aNumber});
trace(aNumber);
}
}
}
// Add event listener and event handler function.
var cbListener:Object = new Object();
cbListener.change = function(evt_obj:Object):Void {
var currentlySelected:Object = evt_obj.target.selectedItem;
};
my_cb.addEventListener("change", cbListener);
It is giving me a undefined error. The problem comes down to this line of code:
Code:
my_cb.addItem({data:listVars.aNumber, label:listVars.aNumber});
I can put just data:aNumber and it show me item1, item2, etc.
but it doesn't show me the loaded external information then.
In my external txt file is this:
Code:
&item1=John&
&item2=Josh&
&item3=Bill&
&item4=Fred&
Load External Data In Time To Be Used As A Variable?
Hi there. Please bare with me as I am quite new to flash and actionscript.
I have single frame animation that contains several animated movie clips. I am basically creating a counter that stops each mc at a specific frame. I need to read in the value from an external file. This is my code. The problem is that I get the following message. I believe it is because the mc timelines kick off before it has a chance to read the file in. This causes the whole thing to fail and the counter just loops the animation. Any suggestions? I'm scratching my head here and this is the one thing stopping me from finishing this particular animation.
Error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at counter_fla::MainTimeline/frame1()
984651345
Code:
Code:
/ add frame listener to stage
stage.addEventListener(Event.ENTER_FRAME,stopPlay);
// set frame number on which each digit number stops
var stopOnZero:Number=0;
var stopOnOne:Number=12;
var stopOnTwo:Number=23;
var stopOnThree:Number=34;
var stopOnFour:Number=45;
var stopOnFive:Number=56;
var stopOnSix:Number=67;
var stopOnSeven:Number=78;
var stopOnEight:Number=89;
var stopOnNine:Number=100;
var stopString:String/*="987654321"*/;
var textLoader:URLLoader = new URLLoader();
var textReq:URLRequest = new URLRequest("stopat.txt");
function textLoaded(event:Event):void{
trace(textLoader.data);
stopString=textLoader.data;
}
textLoader.load(textReq);
textLoader.addEventListener(Event.COMPLETE, textLoaded);
// define the final stop number - value set in stopString should be 9 digits
var stopValues:Array= stopString.split("");
/*
Set the stop value for each digit, starting at the end of the array.
Remember that the array is zero based as in java
*/
var singleStop:Number=getStopFrame(Number(stopValues[8]));
var tenStop:Number=getStopFrame(Number(stopValues[7]));
var hundredStop:Number=getStopFrame(Number(stopValues[6]));
var thousandStop:Number=getStopFrame(Number(stopValues[5]));
var tenThousandStop:Number=getStopFrame(Number(stopValues[4]));
var hundredThousandStop:Number=getStopFrame(Number(stopValues[3]));
var millionStop:Number=getStopFrame(Number(stopValues[2]));
var tenMillionStop:Number=getStopFrame(Number(stopValues[1]));
var hundredMillionStop:Number=getStopFrame(Number(stopValues[0]));
// passes in a digit number and returns the frame number on which to stop
function getStopFrame(argValue:Number):Number{
switch(argValue){
case 0: return stopOnZero;
break;
case 1: return stopOnOne;
break;
case 2: return stopOnTwo;
break;
case 3: return stopOnThree;
break;
case 4: return stopOnFour;
break;
case 5: return stopOnFive;
break;
case 6: return stopOnSix;
break;
case 7: return stopOnSeven;
break;
case 8: return stopOnEight;
break;
case 9: return stopOnNine;
break;
default: trace("error - defaulted getStopFrame value to zero");
return stopOnZero;
break;
} // end switch
} // end function
// check to see if it is time to stop the digit from scrolling
function stopPlay(Event):void{
// single digit
if (singleStop == stopOnZero){
single_mc.gotoAndStop(0);
}else if(single_mc.currentFrame == singleStop){
single_mc.stop();
}
// ten digit
if (tenStop == stopOnZero){
ten_mc.gotoAndStop(0);
}else if(ten_mc.currentFrame == tenStop){
ten_mc.stop();
}
// hundred digit
if (hundredStop == stopOnZero){
hundred_mc.gotoAndStop(0);
}else if(hundred_mc.currentFrame == hundredStop){
hundred_mc.stop();
}
// thousand digit
if (thousandStop == stopOnZero){
thousand_mc.gotoAndStop(0);
}else if(thousand_mc.currentFrame == thousandStop){
thousand_mc.stop();
}
// ten thousand digit
if (tenThousandStop == stopOnZero){
tenThousand_mc.gotoAndStop(0);
}else if(tenThousand_mc.currentFrame == tenThousandStop){
tenThousand_mc.stop();
}
// hundred thousand digit
if (hundredThousandStop == stopOnZero){
hundredThousand_mc.gotoAndStop(0);
}else if(hundredThousand_mc.currentFrame == hundredThousandStop){
hundredThousand_mc.stop();
}
// million digit
if (millionStop == stopOnZero){
million_mc.gotoAndStop(0);
}else if(million_mc.currentFrame == millionStop){
million_mc.stop();
}
// ten million digit
if (tenMillionStop == stopOnZero){
tenMillion_mc.gotoAndStop(0);
}else if(tenMillion_mc.currentFrame == tenMillionStop){
tenMillion_mc.stop();
}
// hundred million digit
if (hundredMillionStop == stopOnZero){
hundredMillion_mc.gotoAndStop(0);
}else if(hundredMillion_mc.currentFrame == hundredMillionStop){
hundredMillion_mc.stop();
}
} // end stopPlay function
Load External Data Before The Movie Kicks Off?
Hi there. Please bare with me as I am quite new to flash and actionscript.
I have single frame animation that contains several movie clips. I am basically creating a counter that stops each mc at a specific frame. I need to read in the value from an external file. This is my code. The problem is that I get the following message. I believe it is because the mc timelines kick off before it has a chance to read the file in. This causes the whole thing to fail and the counter just loops the animation. Any suggestions?
Error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at counter_fla::MainTimeline/frame1()
984651345
Code:
ActionScript Code:
// add frame listener to stage
stage.addEventListener(Event.ENTER_FRAME,stopPlay);
// set frame number on which each digit number stops
var stopOnZero:Number=0;
var stopOnOne:Number=12;
var stopOnTwo:Number=23;
var stopOnThree:Number=34;
var stopOnFour:Number=45;
var stopOnFive:Number=56;
var stopOnSix:Number=67;
var stopOnSeven:Number=78;
var stopOnEight:Number=89;
var stopOnNine:Number=100;
var stopString:String/*="987654321"*/;
var textLoader:URLLoader = new URLLoader();
var textReq:URLRequest = new URLRequest("stopat.txt");
function textLoaded(event:Event):void{
trace(textLoader.data);
stopString=textLoader.data;
}
textLoader.load(textReq);
textLoader.addEventListener(Event.COMPLETE, textLoaded);
// define the final stop number - value set in stopString should be 9 digits
var stopValues:Array= stopString.split("");
/*
Set the stop value for each digit, starting at the end of the array.
Remember that the array is zero based as in java
*/
var singleStop:Number=getStopFrame(Number(stopValues[8]));
var tenStop:Number=getStopFrame(Number(stopValues[7]));
var hundredStop:Number=getStopFrame(Number(stopValues[6]));
var thousandStop:Number=getStopFrame(Number(stopValues[5]));
var tenThousandStop:Number=getStopFrame(Number(stopValues[4]));
var hundredThousandStop:Number=getStopFrame(Number(stopValues[3]));
var millionStop:Number=getStopFrame(Number(stopValues[2]));
var tenMillionStop:Number=getStopFrame(Number(stopValues[1]));
var hundredMillionStop:Number=getStopFrame(Number(stopValues[0]));
// passes in a digit number and returns the frame number on which to stop
function getStopFrame(argValue:Number):Number{
switch(argValue){
case 0: return stopOnZero;
break;
case 1: return stopOnOne;
break;
case 2: return stopOnTwo;
break;
case 3: return stopOnThree;
break;
case 4: return stopOnFour;
break;
case 5: return stopOnFive;
break;
case 6: return stopOnSix;
break;
case 7: return stopOnSeven;
break;
case 8: return stopOnEight;
break;
case 9: return stopOnNine;
break;
default: trace("error - defaulted getStopFrame value to zero");
return stopOnZero;
break;
} // end switch
} // end function
// check to see if it is time to stop the digit from scrolling
function stopPlay(Event):void{
// single digit
if (singleStop == stopOnZero){
single_mc.gotoAndStop(0);
}else if(single_mc.currentFrame == singleStop){
single_mc.stop();
}
// ten digit
if (tenStop == stopOnZero){
ten_mc.gotoAndStop(0);
}else if(ten_mc.currentFrame == tenStop){
ten_mc.stop();
}
// hundred digit
if (hundredStop == stopOnZero){
hundred_mc.gotoAndStop(0);
}else if(hundred_mc.currentFrame == hundredStop){
hundred_mc.stop();
}
// thousand digit
if (thousandStop == stopOnZero){
thousand_mc.gotoAndStop(0);
}else if(thousand_mc.currentFrame == thousandStop){
thousand_mc.stop();
}
// ten thousand digit
if (tenThousandStop == stopOnZero){
tenThousand_mc.gotoAndStop(0);
}else if(tenThousand_mc.currentFrame == tenThousandStop){
tenThousand_mc.stop();
}
// hundred thousand digit
if (hundredThousandStop == stopOnZero){
hundredThousand_mc.gotoAndStop(0);
}else if(hundredThousand_mc.currentFrame == hundredThousandStop){
hundredThousand_mc.stop();
}
// million digit
if (millionStop == stopOnZero){
million_mc.gotoAndStop(0);
}else if(million_mc.currentFrame == millionStop){
million_mc.stop();
}
// ten million digit
if (tenMillionStop == stopOnZero){
tenMillion_mc.gotoAndStop(0);
}else if(tenMillion_mc.currentFrame == tenMillionStop){
tenMillion_mc.stop();
}
// hundred million digit
if (hundredMillionStop == stopOnZero){
hundredMillion_mc.gotoAndStop(0);
}else if(hundredMillion_mc.currentFrame == hundredMillionStop){
hundredMillion_mc.stop();
}
} // end stopPlay function
External Data Import - Optimization And Load Time?
Hey all. Ok, here's the deal.... right now I'm importing about 3K of name/value pair formatted data, and the file is gonna get bigger. The only problem is that Flash practically lobotomizes itself and the system (650 AMD, 320 MB RAM, Cable connection) while trying to load it.
I know that if I can load the data via XML, it *might* go faster, but is there a way to get the data imported smoothly without the horrible bog time?
Also, the Flash docs declare that you import data through URL Encoded streams, but how much encoding?
For instance, if I'm pulling in a URL as a value (say, "http://www.nebulus.org"), then the minimum encoding required to keep Flash happy is: http%3A//www.nebulus.org.
BUT, if I'm passing the value through from an ASP script and I use the Server.URLEncode function, the URL comes out like: http%3A%2F%2Fnebulus%2Eorg - completely screwing Flash and leaving it in a puddle of it's own drool.
So basically, the question(s) is: how can you import data cleanly, and how much encoding do you have to do? Also, will an XML import be better?
Thanks!
Using Flash Studio Pro To Load External Text Data
Hi there
I've been asked to build a screensaver [using flash mx] that will sit on every computer within a company and that has to have a dynamic text field in it that pulls text in from a text file and can be updated by one member of staff at any point in time.
As all the computers are on an internal network I presume that this text file could site on a central server and still communicate the info to all the screensavers.
I've made screensaver using flash before - exported them as exe files and run them through 'screen time for flash' to produce a scr file, but never gone beyond that.
I've been advised that 'flash studio pro' is the programme to get in order to do something dynamic like this i.e. loading data from external files, and so far I've been impressed with what I've read. As I've never done anything this complex, that extends a screensaver beyond the simple scr file, I am looking for advice and answers to my problem task.
Can anyone explain to me if this is possible and how I would go about it and also highlight the complexity or even simplicity of doing something like this - or point me in the directions of a specific tutorial or source file that will enlighten me a little?
Many thanks
e
Load Component In External Swf
Hello,
I have modified the skin of a button, but I want to separate the .fla
into two files: main.swf and component.swf
Where component.swf contain the components with the modified skins, and
main.swf is the main movie wich load the components from component.swf,
what I am trying to do here is that the graphic designer only modifies
component.fla/swf, so main.swf remains "as is".
Is this possible? how?
regards.
Hugo.
Load External Swf With The Flvplayback Component
Wow, 5 hours and I am no where.
Can't get Flash 8 to load my external swf with the flbplayback component. The video SWF works fine by itself but nothing shows up when I view my Main SWF except for the text....no flv movien no SteelExternalAll.swf.
Here's the code;
on(release) {
loadMovie("gallery/video/trueshotvideo.swf", 2);
}
Xml Gallery Component Does Not Load In External Swf
Hi there,
I am working on a website which will have a gallery in it.
The gallery is an external swf with xml data in it.
The problem however is that it will only show its pictures and not its text as soon its external. On its own it's working fine.
Can anyone help me??????
Greetz,
Trademark
Using Preloader UI Component To Load External Jpegs?
Hi all
I have the UI Components 2 set and (like lots of people) am confused about how to modify the actionscript to get them to do what I want. And I HAVE looked at the Reference in Flash, and the actionscript dictionary, etc, as people suggest, but I'm not exactly au fait with actionscript.
What I have at the moment are thumbnails that, once clicked on, do a loadvariablesnum of jpgs into an empty movie clip. I know I could put each jpg into it's own swf and put a preloader in each movie and load THOSE in, but that seems a bit extreme. How do I configure the preloader UI component to show percentage loaded of the jpgs?
Sorry, I know this sort of thing is probably being asked a lot, but I've done searches on here, and in google, and been to the Macromedia site, all to no avail. I wish they'd write some docs for us newbies
Fletch
Carousel IV - Load External SWF Into Loader Component
Hi There.
I'm a Flash newbie and have only just managed to replicate the flash carousel tutorials (Thanks Lee they're great!)
What I have been attempting to do (with my limited understanding) is to replace the dynamic text field with a loader component (instance name of myLoader) and have it load external swf files that are listed on the XML file in the "content" node...so in effect you load flash web pages instead of just text when an icon is clicked.
I have attempted this with no success as I'm not sure of the correct attribute to add or the correct way to call this from the released function (ie do I set a contentPath or make it a loadClip)
I'm loving Flash but must admit that I am finding it quite a struggle to learn so any help with this would be much appreciated...
Using The Loader Component To Load External Images
Ok...I've been pulling my hair out for the last couple of days trying to get this working.
I simply want to use the Loader component to load random images from a directory for display. I would also like to be able to manipulate the loader in order to either make it fade in/out when a new image is loaded or rotate or something.
I can get the images to load, but I cannot do anything to the loader...is there a way around this?
Load A Movie Clip From An External.swf Into A Scroll Pane Component
Hi Guys
Is it possible to load a movie clip from an external.swf into a scroll pane component.
Therefore 2 different swf movies. 1 for the scroll pane and 1 for the content.
I am aware that I have to give the content of the scroll pane an identifier such as ‘scrollpanecontent’ or whatever, however how will I target the scroll pane when the content is in an external .swf (if this is possible)
Thanks for any help that can be provided
How To Load Variables From External File And Insert Into TextInput Component
This is for mx 2004. I'm not very familiar with actionscripting - I've been searching for this solution for 2 days now and can't seem to be able to find any tips on this... I figure it's pretty simple though!
All I need to know is the code to load variables from an external txt file at the beginning of flash movie...At various keyframes in the scene the movie shows different forms for user to fill in into the TextInput components. As soon as these forms are shown, the TextInput components are pre-filled with default text (the variable values that were loaded, for example "Enter your title here"). I know how to do this in earlier versions easily with the Var variable but now I'm stuck. I've been trying to do something but I keep getting "undefined" in the TextInput.
Hopefully someone can help!
How To Load Variables From External File And Insert Into TextInput Component
This is for flash mx 2004 and should be compatible with AS 1.0, not 2.0 unless necessary. I'm not very familiar with actionscripting - I've been searching for this solution for 2 days now and can't seem to be able to find any tips on this...
All I need to know is the code to load string variables from an external txt file at the beginning of flash movie...At various keyframes in the scene the movie shows different forms for user to fill in. As soon as these forms are shown, the TextInput components are pre-filled with default text (the variables that were loaded, for example "Enter your title here"). I know how to do this in earlier versions easily with the Var variable but now I'm stuck.
Hopefully someone can help!
How To Use Data Component To Bind Data From Sql
i'm having problem.is there any one can guide me and show me step by step to bind data from sql using data component such as data set and xml connector.I relly don't have idea how to done that.tq?
Converting Internal Array Data Into External XML Data [renamed]
I have this code inside my flash to name my navigation menu. Now I want to put this outside flash and load it via XML. How do save my different arrays into a variable for later use in my code?
In my nav fla (what i want to load from XML):
Code:
// MAIN MENU ARRAY
var mm_array:Array = ["MAIN1", "MAIN2", "MAIN3", "MAIN4"];
// SUB MENU ARRAY
var sm1_array:Array = ["sub1", "sub2"];
var sm2_array:Array = ["sub1", "sub2", "sub3"];
var sm3_array:Array = ["sub1", "sub2", "sub3"];
var sm4_array:Array = ["sub1", "sub2", "sub3", "sub4"];
var submenu_array:Array = [];
XML loading code
Code:
// LOAD MY XML
var myXML:XML = new XML();
myXML.ignoreWhite = true;
myXML.onLoad = function (success:Boolean):Void {
if (success) {
// what goes here to define: mm_array, sm1_array, sm2_array etc
myXML.load("myXML.xml")
XML file something like this:
PHP Code:
<navigation>
<menu>
<mm_array>main1</mm_array>
<sm_array>sub1</sm_array>
<sm_array>sub2</sm_array>
</menu>
<menu>
<mm_array>main2</mm_array>
<sm_array>sub1</sm_array>
<sm_array>sub2</sm_array>
<sm_array>sub2</sm_array>
</menu>
</navigation>
Scroll Bar Works For External Data But Not Internal Data
Howdy,
I have a dynamic text box named 'outputbox'. This is set for multiline. I have an associated scroll bar.
I make a lot of these kind of calls:
PHP Code:
history.onPress = function() {
outputbox._visible = true;
loader = new LoadVars();
loader.load("history.txt");
loader.onLoad = function() {
outputbox.text = this.history;
};
This works great, the scrollbar becomes active when the text goes beyond the outputboxes boarders.
In addition, this 'outputbox' also has a variable (Var) associated with it named 'myTally'. At some particular frames I am generating content for this variable thusly:
PHP Code:
for (receipt = 0; receipt<23; receipt++) {
description = _root["config"+receipt][1];
price = _root["config"+receipt][2];
if (description != 0) {
mytally = (mytally+"
" +description+" "+ price); }
}
Indeed, the outputbox certainly gets populated but the scrollbar does not work. When I select-and-drag the text it definitely goes beyond the boarders of the outputbox. If I change the font size of this outputbox (8pt to 16pt) then the scrollbar *does* work.
Why does the scrollbar react to an external file and not my dynamically generated variable? Is something not scoped or in focus? I really have no idea. Anyhow, any suggestions of where to look for resolution would be greatly appreciated.
Thanks,
Cheez
Getting Data From A Component
This has got to be really simple, but thus far I just can't figure it out. The situation is I have an Listbox component that becomes populated with items (in the Label) and prices (in the Data). All I want is to have a sum of all the Data values in the listbox in a dynamic text field underneath.
So using this code:
Code:
for (i=0;i<=_root.listNeeds.length;i++) {
if (_root.listNeeds.getItemAt(i).data != undefined) {
sumNeeds += _root.listNeeds.getItemAt(i).data;
}
}
successfully seems to get the number set in the 'data' array in the listbox object (according to a trace). But when I try to add them together, it constantly claims "NaN." I've tried wrapping the above expression in a Number.(), to no avail.
Using Component Data
Hi,
MY PROBLEM:
I have two Combo Box (CB1, CB2) with diferent label and data values and a button two call a function that will multiplicate the data values in the two CB's and show the result in a dynamic text box (DB).
Do you know about any posted thread's, tutorials, examples, site's that can help me doing something like this?
DB_result = (CB1*CB2)
Using Component Data
Hi,
MY PROBLEM:
I have two Combo Box (CB1, CB2) with diferent label and data values and a button two call a function that will multiplicate the data values in the two CB's and show the result in a dynamic text box (DB).
Do you know about any posted thread's, tutorials, examples, site's that can help me doing something like this?
DB_result = (CB1*CB2)
Using Component Data
Hi,
MY PROBLEM:
I have two Combo Box (CB1, CB2) with diferent label and data values and a button two call a function that will multiplicate the data values in the two CB's and show the result in a dynamic text box (DB).
Do you know about any posted thread's, tutorials, examples, site's that can help me doing something like this?
DB_result = (CB1*CB2)
Data Gri Component Help Needed
i am trying to use the datagrid component
and to add to it my own methods
but when i try to acees some of the object that when using trace
i get for example :
_level0.grid.container.row0_mc.fCell1.labelField
but when i try to acees that path with my methods in side the data grid component it isnt working
why?
can any 1 help me?
thanks in advance
peleg
Getting Data Out Of A Combo Box Component
i thought it would be quite easy but i cant figure it out and have been scratching my head for days
i have a combo box called "timezone" that is held within a movie clip called "timezoneapp". my combo box has 8 labels and data values of "option1 - option8".
at the moment i am using the code...
if (_root.timezoneapp.timezone.getSelectedIndex().dat a=="option3") {
_root.feedback4 = "Correct";
_root.score++; }
else { _root.feedback4 = "Correct TimeZone not selected"; }
but this does nothing if i select the correct option (option3).
Is there a better way, ie to select the data number of the row (which would be "2" as it starts from 0-7) ?
pls help...
thanks
Data Grid Component
Howdy,
I know somewhat as to what this does. I know that it shows data listed in a array on this component. And that it has the built-in ability to scroll if the content is too big to show all at once. But how exactly do program i nthe data? Mainly I'm using this as a way to show feed back with certain messages and hopefully a icon by the message depending on the message. Any ideas or comments would be greatly appericated
[F8] Binding Xml Data To A Component
I have successfully bound xml content to a component - a loader.
I have a loader that loads a .jpg dependant on the data in the xml feed which is in the form of filename.jpg
Is there a way to convert this so when the filename.jpg data is fed, the loader will load a different image like filename.swf instead of the default .jpg image?
There are about several different variables in the xml filename.jpg that can appear and I would like to condense them down to actually show about 10 different .swf movies instead dozens of different .jpgs.
Thanks in advance
Grabbing Data From A Component
Hello, I have a form with components. The info from the form is sent to a PHP script and processed. Everything works except I can not grab the data from the components. The only thing I need to know, which I've spent hours trying to figure out, is how to grab the info from the components and send them to the PHP processing script. My code works for all form fields except the components.
Here's my code:
Code:
stop();
var LV_out:LoadVars = new LoadVars();
var LV_in:LoadVars = new LoadVars();
LV_in.onLoad = function(success) {
if (success) {
gotoAndPlay("Display");
} else {
trace ("Error loading data into flash");
gotoAndPlay("Error");
}
}
//----------
submit_mc.onRelease = function() {
var custname:String = t1.text;
LV_out.billing = Fbilling.selectedItem.data;
LV_out.apptype = Fapptype.ComboBox.selectedItem.data;
LV_out.loantype = Floantype.selectedItem.data;
LV_out.purpose = Fpurpose.selectedItem.data;
etc . . .
LV_out.sendAndLoad("register4.php", LV_in, "POST");
gotoAndStop("Loading");
mySO.data.voted = "yes";
mySO.flush();
};
I also tried:
Code:
Fapptype_a= Fapptype.getSelectedItem().data;
But when I try to send the variable Fapptype_a to the php script, there is no data.
Can anyone help?
thanks
Component Data Sharing
Hi,
I don't know if the title I have given to this message is proper or not..anyway..I'll describe my prolem. Right now I am building a flash site as my project work. The site is on a multiplex theatre and I have built a form for it's online ticket booking page. There are 4 combo box fields for selecting movie, ticket type, date and time. What I want is when user select a movie in the 'movie' combo box, based on the selection, the 'time' combo box's labels will be changed accordingly, as different movie has different timings.
Can it be done? Can anyone please help me with the actionscript code that needed to achieve this?? Thanks in advance...
|