Data Components Without FMX2004 Pro
Is it possible to use the data components without Flash MX2004 Professional edition?
FlashKit > Flash Help > Flash MX
Posted on: 05-24-2004, 04:20 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Extremely Long Data Transfer Time For Webservice To Return A Query To FMX2004?
Has anyone else had this problem?
I have a page with about 50 fields that need to get populated with data. I have a webservice that returns a recordset of about 200 records, with 50 fields each. However, for Flash to finish taking this data in and display the first record, for some reason it takes about 2 minutes. Does anyone know why this is?
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.
Anyone Know About Data Components?
hi im probably being thick but i can't get plain txt to save to my database with line breaks??
ok i have a txt box component(html = false) linked to the
dataset which is linked to the
web service and the resolver
all works fine can read and write data to the DB... but when i try to keep the text as plain txt and save it with line breaks it disregards them and any already in the txt, i can only get it to work with html tags... which it chooses on its own?!
I've been thinking that it maybe due to the string its converted into doesn't support /r enter symbol but it does on the way in??
I want to be able to format the txt using actionscript commands.
any help would be much apprieciated.
Data Components With XML
I have the following XML: shops.php (dynamic generated xml from mysql)
<shops>
<shop name="shop1">
<items>
<item name="item1"/>
<item name="item2"/>
</items>
</shop>
<shop name="shop2">
<items>
<item name="item1"/>
</items>
</shop>
</shops>
How can I create two datagrid, one respone to shop, and one response to item? and when I click on the cells in the "shop" datagrid, the item datagrid could change to correspone to shop?
I could really appreciate any help.
Thanks.
Edited: 02/22/2006 at 08:30:51 AM by simonkuong
Data-components Bug?
I think I just discovered a bug with the data-components (xmlconnector, dataset, datagrid), but Im hoping I just screwed up somewhere.
I have an INDEX.swf, which loads DATA_1.swf and DATA_2.swf, each at a press of a button, with the loadMovieNum() - function. They both end up in different levels.
The DATA_i.swf-files are both made using the Data Connection Wizard that you can get when upgrading to version 7.2, and loads an xml-file into a datagrid, using the components xmlconnector and dataset.
Well, turns out that the whole thing goes haywire when a specific sequence of buttonpresses occurs.
For instance, loading DATA_1.swf, and then DATA_2.swf into INDEX.swf will work fine.
But if I load, for instance, DATA_1.swf, then unloads it, and then tries to load DATA_2.swf, the thing goes crazy (iteration-problem - you know when it loops more than 250 times - according to the debugger, but I cant figure out what code its iterating trough).
Anybody still with me? Well, sure seems like a bug to me. Anybody prove me wrong (please ) ?
Data-components Bug?
I think I just discovered a bug with the data-components (xmlconnector, dataset, datagrid), but Im hoping I just screwed up somewhere.
I have an INDEX.swf, which loads DATA_1.swf and DATA_2.swf, each at a press of a button, with the loadMovieNum() - function. They both end up in different levels.
The DATA_i.swf-files are both made using the Data Connection Wizard that you can get when upgrading to version 7.2, and loads an xml-file into a datagrid, using the components xmlconnector and dataset.
Well, turns out that the whole thing goes haywire when a specific sequence of buttonpresses occurs.
For instance, loading DATA_1.swf, and then DATA_2.swf into INDEX.swf will work fine.
But if I load, for instance, DATA_1.swf, then unloads it, and then tries to load DATA_2.swf, the thing goes crazy (iteration-problem - you know when it loops more than 250 times - according to the debugger, but I cant figure out what code its iterating trough).
Anybody still with me? Well, sure seems like a bug to me. Anybody prove me wrong (please ) ?
Mx Components - Exporting Data
I have created a form in Flash using the components but i cant see a way of exporting that data to PHP for example.
For example if an Option was selected in a DROP DOWN BOX and the form was submitted into an email...how could i go about telling PHP where to get this info from?
thanks
External Data Into Components
I am mainly a designer and not too much of a backend guy. I have encountered some problems with something I am trying to build. Here is what I am trying to do:
I am trying to create an application built in flash that allows users to customize a pc and then submit that info to an email as a quote. Here's the thing, I know EXACTLY how I want it to work, I am just stuck on some points.
on the left side should be a blank area that is to load the images called from external folders. on the right would be checkboxes that allow get their info from external text or ophp files (whatever is easiest). When I check "monitor" for example, it has an assignedprice, a picture of a monitor pops up in the left and a subsection opens to select the specific type of monitor (example black, red, flat, old, new, whatever). These sub selections also need to call a specific image that has a cash value tied to it (so I select black monitor, and the monitor pic changes to the black one, and the price adjusts to add the extra from the black to the base of the monitor cost)
wow, thats alot of typing. here's some more:
that explains how each component should work, I need the app to have "monitor", "keyboard + mouse", "speakers", and "tower" and for each to have the same attributes as I discussed above. The images should appear in a manner like an actual desktop setup would (speakers to the left, monitor middle, keyboard mouse below and tower right). All the elements need to add together to get a total cost and then have a submit button to send an order description with all that info to my email addy. All the checkbox/sub menu items need to have the name/title as well as the value and pic load from external folders.
I have no clue how to create the checkboxes in this manner, and that is my main problem. can anyone direct me in how to do that?
Import Mx.data.components
I have an application that uses the string
"import mx.data.components.WebServiceConnector;
This is a frame action.
When I run it, however, I receive an output message stating there is a syntax error.
**Error** Scene=Scene 1, layer=square 1, frame=1:Line 5: Syntax error.
import mx.data.components.WebServiceConnector;
In all the literature, this is apparently the correct string to use.
any ideas? any help would be greatly appreciated! thx
Saving Data To Components Or Other.
data xml / or textfiels
saving.
someone with good tuturials..
Without:
Code:
"NetServices.as"
"NetDebug.as"
Any possibillity for that?
Greetz://
Saving Data To Components Or Other.
data xml / or textfiels
saving.
someone with good tuturials..
Without:
Code:
"NetServices.as"
"NetDebug.as"
Any possibillity for that?
Greetz://
Data Bindings Components
Can we use Data Bindings Components in flash player without internet explorer
how ýt can be..........
Loading External Data Into Components
how can i load data into a component (scroll pane)
i have the component that displays a movieclip from a library and then that movieclip has the code to load a swf.
But what happens is that the component doesn't display it and can't recognise the size properties of the external swf.
Is it impossible to load external data like that into a component.
Flash UI Components - Data Disappears
Guys help, got a deadline!
I made a simple flash form using UI components (list boxes, combos etc) I call the form.swf from the main file but all data inside the components is missing! Including my input texts! Both flas are published as MX (Player 6).
-->GOT IT! IT'S THE MASK, If you mask UI Components although they are visible, data disappears!
E-learning Project Using Data Components?
I need to pull this off:
A list of terms, with definitions, images, etc. The only thing I can think to do is create a master movie clip for how one row will look. Then, I could duplicate that clip for each term and populate it with the correct data inside a scrollpane component.
That would create serious issues if I want to be able to sort the list, view by lecture, and what not...
Is it possible to do this in a some sort of list component?
recommendations? alternative ways of viewing the problem? examples of something similiar?
XML And Components, Passing Data Doubts
HI!
My old library in as2, was structured like this:
Main class that loads:
- library.swf
- all xml files(language, data, and other)
All my components wait data from main class to start:
slideShow.data = imagesXml.firstChild;
menu.data = langXml.firstChild.firstChild; //this is the case tha i would ask on.
langXml is:
Code:
<?xml version="1.0" encoding="UTF-8" ?>
<lang>
<menu>
<item label="word1" id="word1" />
<item label="word2" id="word2" />
<item label="word3" id="word3" />
</menu>
<section1>
...
</section1>
<section2>
...
</section2>
<section3>
...
</section3>
</lang>
I was passing only menu node to menu component...
Now in as3 i'm very happy to use E4X standard, but all methods in my XML object returns me a XMLList object...
then... in my components can i use xml data or i need to structure them to use xmllist data? (some solution for create a XML from XMLList?)
Getting Data Components To Export On Frame 3
Finally went to ColdFusion and some data connectivity. Installed the Data Connection Wizard and DataGrid Column Editor and whatever else was there already for data/web services. I'm trying to get my standard preloader to work:
1) Import the Standard Components FLA from External library into my main file, making sure Export in first frame is off.
2) In Publish settings set all classes to be exported in frame 3.
3) Have a 3 frame preloader than jumps to Scene 3 (the main movie) when done.
4) Scene 2 stores all the crap so it's available (i.e., the big fat components in use in the movie).
But now that I've added all these data components, there doesn't seem to be a way to get them to export properly to frame 3, so I am stuck loading all my classes on frame 1, which makes preloading useless, because by the time it starts even registering, it's already done, i.e., no user feedback for a long time than bang, there you go...if you've not moved on thinking the site has crashed LOL.
Specifically, I need to get this thing to work with all the data classes happening in frame 3, by following my steps above as far as preloader and scenes and AS publish settings goes:
http://www.adobe.com/devnet/coldfusion/articles/guestbook_print.html
I'm lost, I don't see any way to add uncompiled clips or anything like that...you can't select off export in frame one with these data components...
Any suggestions?
Shawn
ActionScript To Bind XML Data To Components
How can I use ActionScript to bind XML data to a comboBox component instead of using the component inspector? (I have done the latter, successfully, but that doesn’t allow access to the code - .)
My ActionScript so far imports the data (the trace picks it up) – but the ‘cbType.dataProvider line’ doesn’t work. It works when I change the data provider to an array – so what am I doing wrong?
MY CODE:
import mx.data.components.XMLConnector;
var xcFestival:XMLConnector = new XMLConnector();
xcFestival.ignoreWhite = true;
xcFestival.direction = "receive";
xcFestival.URL = "festivalItems.xml";
xcFestival.trigger();
//POPULATE THE COMPONENTS WITH THE DATA
var festXMLlistener:Object = new Object();
festXMLlistener.result = function(evt:Object) {
trace(xcFestival.results);
cbType.dataProvider = xcFestival.results;
};
xcFestival.addEventListener("result",festXMLlistener);
How Do I Declare Components' Data As Variables?
ive read the components tut. and actually just tried to use it but its a little to different than what im trying to do. Actually all i need to know is how to declare uicomponents' data as variables that way i can recieve them in my email via php.
example:
www.caltrustmortgage.com/hope.swf
i need to make the radio buttons' and combo box's data sent to my email. I know how to do it with input text but not components.
How Do I Declare Components' Data As Variables?
ive read the components tut. and actually just tried to use it but its a little to different than what im trying to do. Actually all i need to know is how to declare uicomponents' data as variables that way i can recieve them in my email via php.
example:
www.caltrustmortgage.com/hope.swf
i need to make the radio buttons' and combo box's data sent to my email. I know how to do it with input text but not components.
Components W/external Txt File Data Source
Ok, i have a combo box that has a list of choices loaded into it from an .txt file. Included in the .txt file are paths to other .txt files that I want loaded in a dynamic text box depending on which choice the user selects from the combo box. Now I have my combobox populated with the selection titles but I can't figure out how to get the other .txt files to load from the paths into the dynamic text box. Check out my source file and let me know if anyone can help me. Thank you all.
Wraping Text In Lit Or Data Grid Components?
I am trying to dispay a list of data from an xml doc in a list component (or data grid either is fine) in 2004. My only problem is the data to be displayed is paragraphs, I really need the list to wrap the text. The way it stands now the paragraph just runs off the edge of the list. Anyone know how to wrap the text?
Thanks in advance
Validating Components And Sending Data To A Php File
I have created a form with input text fields, and components. The components I have used are a list box and a combo box. What I would like to do is validate my components, and then submit there variables to my php file. Also I would like to, make them prompt the user whether or not they have selected the state or country.
here is the fallowing code that calls up information for my lis box and combo box also the as files.
stop();
#include "form_validate2.as"
#include "contact2.as"
// set just in case
// The labels in the listbox
myLabels = new Array("USA", "Canada", "Bahrain", "Chile", "China", "France", "Malaysia", "Protugal", "Taiwan R.O.C.", "Venezuela", "Albania", "Algeria", "American Samba", "Antarctica", "Argentina", "Australia", "Austria", "Bahamas", "Bangladesh", "Barbados", "Belgium", "Belize", "Bermuda", "Bolivia", "Bosnia and Herzegovina", "Brazil", "Bulgaria", "Columbia", "Costa Rica", "Croatia", "Cuba", "Czech Republic", "Denmark", "Denmark", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Finland", "Germany", "Guam", "Hong Kong SAR", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Jordan", "Korea", "Kuwait", "Lebanan", "Lithuania", "Mexico", "Morocco", "Netherland", "Norway", "Peru", "Philippines", "Poland", "Puerto Rico", "Romania", "Russia", "Samoa", "Saudi Arabia", "South Africa", "Spain", "Sweden", "Switzerland", "Syria", "Turkey", "Ukraine", "United Arab Emirates", "United Kingdom", "United States", "Virgin Islands");
// Populate the listbox
for (i=0; i<myLabels.length; i++) {
country_str.addItem(myLabels[i]);
}
// Display function
function listDisplay(component){
list = component.getSelectedItem().label;
}
// You get the picture
country_str.setChangeHandler("listDisplay");
// The labels in the listbox
myLabels = new Array("Alabama", "Alaska", "Alberta", "American Samoa", "Arizona", "Arkansas", "British Columbia", "California", "Colorado", "Connecticut", "Delaware", "District of Columbia", "Fed. States of Micronesia", "Florida", "Georgia", "Guam", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine", "Marshall Islands", "Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire", "New Jersey", "New Mexico", "New York", "North Carolina", "Northern Mariana Islands", "Ohio", "Oklahoma", "Ontario", "Oregon", "Palau", "Pennsylvania", "Puerto Rico", "Quebec", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virgin Islands", "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming");
// Populate the listbox
for (i=0; i<myLabels.length; i++) {
state_str.addItem(myLabels[i]);
}
// function to display the selection
function comboDisplay (component) {
combo = component.getSelectedItem().label;
}
// We assign the function to the combobox
state_str.setChangeHandler ("comboDisplay");
"I have also attatched the as file for contact2.as, which is in the txt format and not the as format"
Thanks!
Abel Gudino
Importing The Mx.data.components.WebServiceConnector Class In Flash MX 2004 Pro
Hello.
I am trying to consume some WebServices, I went through a tutorial that seems to be good, the problem is that I cannot import the WebServiceConnector class...
PHP Code:
import mx.data.components.WebServiceConnector;
I am running the professional version which is supposed to include the components classes.
I know that I could place a copy of the WebServiceConnector component on the library but I would prefer not doing so.
What is the problem here?
Thanks guys.
"import Mx.data.components" Question
I have an application that uses the string
"import mx.data.components.WebServiceConnector;
This is a frame action.
When I run it, however, I receive an output message stating there is a syntax error.
**Error** Scene=Scene 1, layer=square 1, frame=1:Line 5: Syntax error.
import mx.data.components.WebServiceConnector;
In all the literature, this is apparently the correct string to use.
any ideas? any help would be greatly appreciated! thx
[FMX2004]Same Value Different Name
Hi,
I have three input text fields all with an inital value of 0. to store the text fields in an array and assign the value of 0 to each index with the code below, but, have hit a snag, please assist.
ActionScript Code:
//set initial values for quantity text fieldsfunction setVal() { var qty_ar = [qty1_txt.text, qty2_txt.text, qty3_txt.text]; for (name in qty_ar) { var qtyValue_txt = this[qty_ar[name]]; qtyValue_txt.text = 0; }}setVal();
Help (FMX2004)
Ok this is my first time designing a fairly extensive site (more than 3 .swfs). It's my own site for my portfolio. I have designed it so that it is many .swf files. For example, the home page is one, my portfolio is one and many of the dividing areas my design work are their own .swf. The home page has multiple scenes that are contact, home, resume, ect. I would like to have someone be able to go back to contact me after looking through my portfolio. For example while they are viewing one of my print pieces they can go to my contact information.
Here's my problem. I have no idea how. I have gotten it to load the movie containg the contact page, but it starts from the beginning and brings up the home page, not the contact page. I have tried naming the frame and using that, but it doesn't work
on(release) {
loadMovieNum("flash.swf", 0);
gotoAndPlay("contact");
}
I've also tried this, but it does the same thing except instead of going to it in the flash player it opens it up in the browser instead.
on(release) {
loadMovieNum("flash.swf", "contact");
}
Can someone please help me?
Thanks
(FMX2004)Why?Why?Why?
I'm teaching myself this so I'm just an actionscript baby. Would anyone mind taking a peek at this code and telling me why I just see this output? Thank you...thank you so much!
OUTPUT:
12:undefinedAM
It is now 12:undefinedAM onundefined,undefined undefined, undefined.
CODE:
function myTime(){
var currentTime;
if(my_date.getHours() > 12){
currentTime = my_date.getHours() - 12 + ":" + my_date.getMinutes() + "PM";
}else if((my_date.getHours() < 12) && (my_date.getHours() != 0)){
currentTime = my_date.getHours() + ":" + my_date.getMinutes() + "AM";
}else if(my_date.getHours() == 12){
currentTime = my_date.getHours() + ":" + my_date.getMinutes() + "PM";
}else{
currentTime = "12:" + my_date.getMinutes() + "AM";
}
return currentTime;
}
trace(myTime());
function weekday() {
myDay = Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
return myDay[my_date.getDay()];
}
function myMonth() {
var month = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
return month[my_date.getMonth()];
}
trace("It is now "+ myTime() + " on"+ weekday() + "," + myMonth() + " " + my_date.getDate() + ", " +my_date.getFullYear() + ".");
[FMX2004]Same Value Different Name
Hi,
I have three input text fields all with an inital value of 0. to store the text fields in an array and assign the value of 0 to each index with the code below, but, have hit a snag, please assist.
ActionScript Code:
//set initial values for quantity text fieldsfunction setVal() { var qty_ar = [qty1_txt.text, qty2_txt.text, qty3_txt.text]; for (name in qty_ar) { var qtyValue_txt = this[qty_ar[name]]; qtyValue_txt.text = 0; }}setVal();
Help (FMX2004)
Ok this is my first time designing a fairly extensive site (more than 3 .swfs). It's my own site for my portfolio. I have designed it so that it is many .swf files. For example, the home page is one, my portfolio is one and many of the dividing areas my design work are their own .swf. The home page has multiple scenes that are contact, home, resume, ect. I would like to have someone be able to go back to contact me after looking through my portfolio. For example while they are viewing one of my print pieces they can go to my contact information.
Here's my problem. I have no idea how. I have gotten it to load the movie containg the contact page, but it starts from the beginning and brings up the home page, not the contact page. I have tried naming the frame and using that, but it doesn't work
on(release) {
loadMovieNum("flash.swf", 0);
gotoAndPlay("contact");
}
I've also tried this, but it does the same thing except instead of going to it in the flash player it opens it up in the browser instead.
on(release) {
loadMovieNum("flash.swf", "contact");
}
Can someone please help me?
Thanks
FMX2004 WebServiceClasses
Hi,
I've managed to use the WebServiceConnector in order to consume Web Services, now am trying to do the same thing using the WebServiceClasses.
I've made the script below using script samples I've found in FMX2004 help files, the script does not work.
I was wondering if anyone here has any experience using the classes.
any help would be appreciated .
Thanks
Code:
import mx.services.WebService.*;
// specify the WSDL URL
var wsdlURI = "http://www.esynaps.com/WebServices/NFLNews.asmx?WSDL";
// creates a new web service object
NFLWebService = new WebService(wsdlURI);
// receives the WSDL document after loading
NFLWebService.onLoad = function(wsdlDocument) {
trace(wsdlDocument);
};
//creates a call back
callback1 = NFLWebService.NFLNews();
//receives the WS results
callback1.onResult = function(result) {
trace(result);
};
(if you'd like to test this script be sure to drag and drop the WebServiceClass into your library)
[FMX2004] Hide MC?
Hello,
I'm having hard times hiding dynamicly created MC..
ActionScript Code:
for (i = 0; i < mycounter; i++){_root.createEmptyMovieClip("photoholder", 3000+i);_root["photoholder"+i].loadMovie(photourl+i);_root["photoholder"+i]._visible = false;}
They load just fine but i can't hide em on the fly, why?
[FMX2004]Alot To Ask...
I am currently working on a website and we do have a forum: http://sfs3002.proboards7.com
but I want a custom made forum using flash. Could anyone give me their AIM address and help me?
[FMX2004] Help With XML Slideshow
Hi! I'm very newbie in Flash so I'm asking to have patience
I'm trying to make my own slideshow WITHOUT buttons and WITHOUT preloaders. The idea is to preload all images from outside then to convert them to MovieClips and then using transitions between them run the slideshow.
My question is: How to convert preloaded images to clips in order to avoid reloading images each time in every frame and make the slideshow without blinking? GIVE ME SOME ADVICE, PLEASE!!!
HERE you can download whole project without images (you can use yours instead to see how it work).
This is slightly modifyed code of THIS tutorial that I'm using in my project:
this.onLoad = function() {
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
}
backimage.loadMovie(image[0], 1);
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("config.xml");
};
p = 0;
this.onEnterFrame = function() {
picture._alpha -= 7;
if (picture._alpha<10) {
nextImage();
}
};
function nextImage() {
if (p<(total-1)) {
p++;
picture._alpha = 100;
//trace(image[p]);
picture.loadMovie(image[p], 1);
//loading background
if ((p+1)<total) {
backimage.loadMovie(image[p+1], 1);
} else {
backimage.loadMovie(image[p], 1);
}
} else {
p = 0;
}
}
function firstImage() {
picture.loadMovie(image[0], 1);
backimage.loadMovie(image[1], 1);
}
Any help would be greatly appreciated. Thank you!
[FMX2004] Need To Know How To Make This...
im trying to make something similar to the menu on ...
http://www.ephelduath.net/newsmain.htm
... but im unsure of its construction, could someone help me dupicate that, or point me in the direction of a tutorial
thanks
[FMX2004] Hide MC?
Hello,
I'm having hard times hiding dynamicly created MC..
ActionScript Code:
for (i = 0; i < mycounter; i++){_root.createEmptyMovieClip("photoholder", 3000+i);_root["photoholder"+i].loadMovie(photourl+i);_root["photoholder"+i]._visible = false;}
They load just fine but i can't hide em on the fly, why?
[FMX2004]Alot To Ask...
I am currently working on a website and we do have a forum: http://sfs3002.proboards7.com
but I want a custom made forum using flash. Could anyone give me their AIM address and help me?
[FMX2004] Help With XML Slideshow
Hi! I'm very newbie in Flash so I'm asking to have patience
I'm trying to make my own slideshow WITHOUT buttons and WITHOUT preloaders. The idea is to preload all images from outside then to convert them to MovieClips and then using transitions between them run the slideshow.
My question is: How to convert preloaded images to clips in order to avoid reloading images each time in every frame and make the slideshow without blinking? GIVE ME SOME ADVICE, PLEASE!!!
HERE you can download whole project without images (you can use yours instead to see how it work).
This is slightly modifyed code of THIS tutorial that I'm using in my project:
this.onLoad = function() {
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
}
backimage.loadMovie(image[0], 1);
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("config.xml");
};
p = 0;
this.onEnterFrame = function() {
picture._alpha -= 7;
if (picture._alpha<10) {
nextImage();
}
};
function nextImage() {
if (p<(total-1)) {
p++;
picture._alpha = 100;
//trace(image[p]);
picture.loadMovie(image[p], 1);
//loading background
if ((p+1)<total) {
backimage.loadMovie(image[p+1], 1);
} else {
backimage.loadMovie(image[p], 1);
}
} else {
p = 0;
}
}
function firstImage() {
picture.loadMovie(image[0], 1);
backimage.loadMovie(image[1], 1);
}
Any help would be greatly appreciated. Thank you!
[FMX2004] Need To Know How To Make This...
im trying to make something similar to the menu on ...
http://www.ephelduath.net/newsmain.htm
... but im unsure of its construction, could someone help me dupicate that, or point me in the direction of a tutorial
thanks
No AS Editor For FMX2004?
Is it just me or is there no Flash MX 2004 AS editor? I'm reading Jobe Makar/Derek Franklin's FMX2004:AS - Training from the Source book and they say that I should be able to goto FILE > NEW and select ACTIONSCRIPT FILE from the list.
All I have is : Flash Document
Is this a Flash MX 2004 Pro feature? If so, does anyone know of a tool that offers syntax check/hiliteing for external AS editing?
[FMX2004] Qusetions
1 - What is object and what used for ?
2- commonally i notice in date and time class
the time and date get thiers value from (computer) but can we get the time and date from specific (to get the rigth time and date) !
3- when somebody put onEnterFrame in first keyframe !! is that mean the action between {} will be run at everyframe in flash file ? or will be run at first frame and when play head pass it !! does n't have any action on the other frames?
FMX2004 Class Functions
Hi all,
I was trying out the 'ball' example at:
http://www.macromedia.com/devnet/mx/...lasses_v2.html
After looking over the code, I was wandering, every time you create a new instance of the 'ball' class, does each new instance have its own copy of the 'onEnterFrame' method or is it just one?
If I move the code in the 'onEnterFrame' function in the 'ball' class to a '_root' movie (the '_root' movie creates instances of 'ball') and in the 'ball' constructor I add this line of code:
onEnterFrame= _root.handleOnEnterFrame;
is there any difference?
Thanks!
Problem With ScrollPane In FMX2004
I've got a problem. I've put a ScrollPane into my project, and my SWF starts playing, when over 70% is loaded, so my pre-loader doesn't work properly (form 0%). What can I do with that??
[FMX2004] How To Break Out From OnEnterFrame
Hey all,
I have a bit of a problem, what I want to do is to use onEnterFrame to call a function that will scan for key presses. This works fine, but I want to use a key that will be pressed once to pick up something and again to drop it. However if I use onEnterFrame it will detect it for every single frame, which will make the person pick up and drop the object a load of times and become uncontrollable.
Is there any way to set it so that it stops polling a certain key after the first press for a second or two? Ive tried using setInterval but it didnt work. Any ideas on how to fix this?
Cheers!
[FMX2004] CSS, XML In LoadMovie Context
Hi,
I've been having major problems with the silliest thing, and have now developed a mental block on it, any help would be greatly appreciated.
The site (attached) has a main movie (acet_site.swf) which loads a number of container movies.... into one of these, is a movie with a textArea that loads a css stylesheet. It works with css formatting on its own, but when loaded into the container movie, it loses the css formatting, but not the xml content.
So, I think I'll be clever and create a _global.stylesheet variable in my main movie, but this doesn't work either.
Has anyone any ideas please??
Thanks,
Chris
PS::no attachment download from here www.bikkies.f2s.com/acet.zip
[FMX2004]initObject In DuplicateMovieClip?
How do you use that??? I'd like to duplicate a MC and give it dynamicly a position but i don't know how to tell that to flash...
I'm using that code :
ActionScript Code:
onClipEvent(load){ for(i=0; i = nb_titre; i++){ _root.bande.duplicateMovieClip("bande" + i, i, .......................)}}
thanks in advance
[fmx2004] Disabling Movieclips?
hey guys,
im aware of the movieclipinstancename.enable=false;
but i cant seem to get it to work.
I want it to work because i slide in a sound control panel over my content (also in a movieclip) but the mouse still reacts to mouse events of the content under the sound control panel. - eg i have a flash email form, and the icon changes to it...
Any suggestions?
Many many thanks,
JD
[FMX2004]duplicateMovieClip Success?
Hello,
Thanks for reading =)
I have that loop:
ActionScript Code:
for (i=1; i<this.nb; i++) {_root.bande.duplicateMovieClip("bande"+i, i, {_x:originex, _y:(originey+(bandeheight*i))});
How can i tell it that once a duplication is successfull, it creates a new sound object like:
ActionScript Code:
_root["mySound"+i] = new Sound();
???
TiA:)
[FMX2004] Help Sequential Anim AS
, i put [FMX2004] because i work in that version.
hi, i'm a newbie in AS.
I experiment with an effect: in a MC (rectangle_mc) i create an anim (rectangleAnim_mc), and using AS to place multiple rectangle_mc in stage forming a matrix 7x5 (total of 35 elements); ok, i try to play the rectangleAnim_mc in sequential, but i didn't achieve this. I try to insert a time delay, setInterval, but don't work.
The stage is 700x500. The sequential anim execute when release a button.
First frame in Actions layer:
ActionScript Code:
xpos = new Array(0,100,200,300,400,500,600);ypos = new Array(10,90,170,250,330);k = 0;function createRec () { for (i=0; i<=6; i++) { for (j=0; j<=4; j++) { _root.attachMovie("rectangle_mc", "rectangle_mc"+i+j, k); indRec = _root["rectangle_mc"+i+j]; indRec._x = xpos[i]; indRec._y = ypos[j]; k++; } }}createRec();function recAnim1 () { for (i=0; i<=6; i++) { for (j=0; j<=4; j++) { indRec = _root["rectangle_mc"+i+j]; _root.indRec.rectangleAnim_mc.gotoAndPlay("all");//-> in this line i try to insert a delay } }}
The button:
ActionScript Code:
on (release) { recAnim1();}
Please help. Excuse my english
|