|
hello
first of all thanks for your help
list of what i want to do
1-when some one open the main.swf and he can see in the left list of cameras and the detail of that camera he selcted in right
1-1-it must have a picture in above of the list
2-i did something like this , and now i dont know what i must to do with this part
becoz i can not tell the flash when some one clicked on the for example 400D show the detail in right
i can do something like this but its not what i want
i must do this becoz the company give me around 150 list of camera with detail but if we want to copy paste them in flash it takes to long and the size of file go up
in this way just we have 1 page in flash and its a lot easier to work with html and organize them in dreamweaver
>>>>>>>>>>>>>>>>>>>>>>>>
>>>>>>>can.fla
var curFrameNum:Number = 0;
function loadFrame() {
_level0.myLV.load("product/can"+curFrameNum+".txt");
_level0.myLVC.load("product/productList.txt");
}
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
cssStyles.load("styles/styles.css");
cssStyles.onLoad = function(success) {
if (success) {
loadedInfo.autoSize = "left";
loadedInfo.styleSheet = cssStyles;
listCan.autoSize = "left";
listCan.styleSheet = cssStyles;
loadFrame();
} else {
loadedInfo.text = "There has been an error loading the requested information. Please contact the Webmaster and report your error.";
}
};
stop();
>>>>>>>>>>>>>>>>>>>>>>>
>>>>main.fla
stop();
////////////////////////////////////////
var myMCL:MovieClipLoader = new MovieClipLoader();
var myLV:LoadVars = new LoadVars();
var myLVC:LoadVars = new LoadVars();
///////////////////////////////////////
myLV.onLoad = function (success) {
if (success) {
_level15.loadedInfo.htmlText = myLV.info;
} else {
_level15.loadedInfo.text = "There has been an error loading the requested information. Please contact the Webmaster and report your error.";
}
}
myLVC.onLoad = function (success) {
if (success) {
_level15.listCan.htmlText = myLVC.info1;
trace(myLVC.info1);
} else {
_level15.listCan.text = "There has been an error loading the requested information. Please contact the Webmaster and report your error.";
}
}
myMCL.loadClip("canon.swf",15);
productList.txt
can0.txt
thanks again
god bless you
Never Give Up For Any Thing
www.mtkarimi.com
www.bedirector.com
Respond to this post • Return to posts index
| |