User Profile Form
hi, i am facing a weird problem with my first attempt at flex, php and mysql. please pardon me if this is not the correct place to post my question.
i had a form created using flex and json, with php as the backend. below are segments of my codes..
ActionScript Code:
//get the raw JSON data and cast to String
var rawData:String = String(event.result);
var user = JSON.decode(rawData);
first_name.text = user.first_name;
last_name.text = user.last_name;
email.text = user.email;
if (user.gender == "male") {
male.selected = true;
} else {
female.selected = true;
}
var bday:Date = new Date(user.birthday);
day.selectedIndex = bday.getDate() - 1;
month.selectedIndex = bday.getMonth();
year.selectedIndex = year_array.indexOf(bday.getFullYear().toString());
........
PHP Code:
echo json_encode($_SESSION['user']);
when i first load the page, everything is being populated correctly on the flex frontend. however, when i refresh the page using f5, the birthday fields are incorrect. in the sense that it becomes 1 jan 1970.
i tried to print out the value of user.birthday and it is indeed 1 jan 1970. but i am not sure why it has become this value..
ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 05-26-2008, 03:04 AM
View Complete Forum Thread with Replies
Sponsored Links:
Points Into User Profile
Hallo all!
I create a slots game with FlashMX 2004. On this game i have a Button named payout!
And now, i dont know the script for payout points into user profile.
Well, when i klick on the button, i want that the winning points will be written into the user profile.
my homepage is on MySQL database.
What schould i do? and witch code schould i paste in?
Please help me!
Maby you write the action script that i can copy-paste it!
Thx for all guys and ladys!
Constantin
Thx for help :-)
View Replies !
View Related
Website User Profile Using Flash And PHP
hey guys,
i was thinking about this a while back and its just recently come up again in a conversation,
would it be possible to make a flash based user profile for a website using a php script that would allow a user to log in and change their details (name, email, description, avatar etc..) and have it save to the server so everytime the swf loads it shows the updated profile.
i have made a beta of this but i need help with the php script as im not the best at php, so all mine does is reset whenever you reload the swf. i suppose this would work on the same basis as a flash game scoreboard.
any help would be greatly appreciated.
Many thanks,
Var.
*edit* sorry bout the double post but after i wrote this i realised i posted in the wrong board, but if anyone in here knows how then all help will be appreciated.
View Replies !
View Related
User Profile Image Upload
Hey guys,
I need some help testing part of my site. I've built a Flash desktop interface where people can go and take part in an online community.
Each user can manage their profile (username,email,website url, etc.). Most importantly, each user can upload an image of themselves to the site so others can see what they look like. I've only been able to test the image uploader on a mac, so it would be great if I could get some PC users to try it out.
1. Goto the site
2. Click "my settings" from the navigation panel
3. When you are prompted for a username click register.
4. A window containing a form will open, fill out the required fields Ñ you can make up a fake email address if you want.
5. Click save.
6. Click browse and select a 75x75 pixel jpeg from your computer. you can use the image that appears at the bottom of this post
7. Does the image show up over the gray silhouette? If it does, click upload,
otherwise there is a problem with my code.
8. Once you've clicked upload, wait about 5 seconds then close the "my settings" window and reopen it. Does your uploaded image show up in the silhouette?
Please let me know if it worked for you and let me know what browser and platform you are using.
Thanks so much!!!
you can use this image if you want:
http://www.herraincoskipp.com/test.jpg
View Replies !
View Related
Creating User Generated Profile Pages
hi everyone - i think this is probably a complicated process, but I'm hoping someone can point me in the right direction with a few techniques/processes that I can go and research...
I need to create a site where users can upload a photo of themselves and also fill out a survey/form. From this information a number of pages are created where other users can browse through and read information about their colleagues...
is this possible? is it ridiculously complicated? should I be using a different technology like PHP?
thanks in advance!
View Replies !
View Related
Profile Form Standards
Does someone know of a single 'recognized' resource for field lengths?
I am writing my profile forms for my application in actionscript, and I want to restrict the character lengths for:
firstName
lastName
email etc.
I am also looking for acceptable characters for email addies.
Pedal
View Replies !
View Related
Help With User Form
I am creating a simple feedback form with one input text box. I am using the following line of code with in the submit button actions:
loadVariablesNum ("http://www.myurl.com/cgi-bin/formmail/formmail.pl", 0, "GET")
The problem is I'm receiving an email with too much information. I have two text fields within this movie clip. One is a bit of dynamic text for users to scroll through and read (var text1). The second is the input text for the form (var text2). But when I get the email back from the form submission I'm getting both text fields (i only want text2!). Is there a way to specify which text fields get sent to the cgi script?
-a
View Replies !
View Related
Verifying The User Inputs A @ On An Form
Hey there I have this code on a button:
on (release){
if (name eq "" or email eq ""){
gotoAndPlay("error");
}
else{
loadVariablesNum("email3.php", 0, "POST");
gotoAndPlay("thankYou");
}
}
is there a way to verify that the user includes the @ character when writing the email.
Thanks for any help you may provide.
View Replies !
View Related
NEEDED: F2s User Who Has A Working Input Form
Hello, I need some help from someone who specifically uses freedom2surf web server for their homepage because I have tried to get my mailing script to work, and it is working on other people's servers, except my own. It would be so great if someone who has done this on f2s could walk me through the process. Thanks so much,
Katie
View Replies !
View Related
Sending Form Confirmation By Email To User
I am using Flash MX
I made a simple form for an assignment.... although we are not required to email a confirmation to the user, I would like to know if it is possible to do, and if so, what can I add to my script to do this...
This is my very first attempt at actionScripting....
here is my action level script for my form... everything is working... just want that little extra to it... and want to know how to do it for future use....
I do not know how to program for perl, asp, php or CF... so if someone can help me, I would greatly appreciate it...
I really just want a simple email that confirms receipt of form info.
Thankyou for you help
Peachy
View Replies !
View Related
User Registration Form Creation Problem
hi all,
I have to create a user registration form with username and password.
and login screen when user login i have to check his password , if correct acceptconnection is called else reject connection is called.
My problem is how to store username and password on server side and
how to check pwd on server side.
i have stored user details in a shared object as follows:
Code:
playersInfo_so.data[pname_txt.text] = new Object();
playersInfo_so.data[pname_txt.text].pwd = pwd_txt.text;
playersInfo_so.data[pname_txt.text].firstName = fName_txt.text;
How to check pwd value on server side.
on server side function i tried in this way it is not working:
playersInfo_so.data[pname_txt.text].pwd ==pword
,since on serverside we have to read and write data to shared object using setproperty and getproperty.
please tell me whether my approach is right or wrong,
give me some suggestions in solving this.
thanks in advance
regards
advika
View Replies !
View Related
Contact Form With User Id Instead Of Email Address?
Hello again,
I'm trying to build a contact form and instead of entering email address, i want the user to enter its user id and I will include the @domain.com on actionscript on the form and on its php.
Something like this:
User id:"________" (enter by user) @ domain.com (@domain.com will be already on the form)
so all the user has to do is enter its user id.
this user id will pick up the rest which will be the @domain.com and that would be an email send.
Has anyone done that before?... any help please!
ActionScript Code:
on (release) { if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) { EmailStatus = "Please enter a valid COMPANY E-mail address"; } else if (!ToComments.length) { EmailStatus = "Please enter your message"; } else { loadVariablesNum ("MailPHP.php", "0", "Post"); gotoAndPlay(10); }}
and this is what i have on my php file
PHP Code:
<?$ToEmail = "email@domain.com";$ToSubject = "Training Orientation Feedback";$EmailBody = "Sent By: $FirstName
Senders Email: $Email
Message Sent:
$ToComments
";mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, "From: ".$FirstName." <".$Email.">");?>
my input text variable is called Email
thanks for the help.
View Replies !
View Related
URGENT: CGI User Input Email Form
Hi there,
I have exhausted so many options to try and get a generice form to email working in Flash 5 and can't seem to do it. I have created all of my Input Text fields and given them variables and have put the following code on the submit button... but it still doesn't work... in fact none of the several ones I found on the web worked either. Please help quick!
Submit button code:
on (release) {
loadVariablesNum ("http://cgi.domainname.co.nz/cgi-bin/email.cgi", 0, "POST");
subject = "Enquiry from Website";
recipient = "email@mydomain.com";
gotoAndPlay ("thankyou");
}
Thanks in advance
View Replies !
View Related
User Input Form - Problem With Drop Down List
I have a simple form which includes a drop down list.
After selecting from this, I want to use the selection to send them to the appropriate frame in the movie.
I also want the text input to spawn to a dynamic field (this is working).
When the button is clicked, the information from the drop-down list does not show in the dynamic field, but the text from the text input does.
What am I doing wrong.
Code:
confirm_btn.onRelease = function(){
people_txt.text = people_grp.text;
}
confirm_btn.onRelease = function(){
age_txt.text = Number(age_inp.text);
people_grp is the drop down list
age_inp is the text field
I have tried to attached the file, but it is too big (580KB), so if you need to see it, please tell me and I will send to you via email.
Any help would be greatly appreciated
View Replies !
View Related
[F8] Problems Reading Text Present In Form Before User Type Anything
To be honest I am tempted to post this in the newbie section ><
I have a multiline text field saying "Enter your question here" and I have made doubly sure that there are no linebreaks or extra spaces.
However my code if(question_txt.text eq "Enter your question here"){} does not work and when I trace it there is a linebreak after the text for some reason.
If I change the form to be single line, it all works fine !?!
ehmmm... help
View Replies !
View Related
Trying To Build A Dynamic Form. Input Sections Duplicated By User Defined Number.
Hi
I'm about to start a project, but I'm having a hard time wrapping my head around how to code it.
Lets see if I can describe what I want to do.
I'm building a form composed of two groups.
Group one:
8 text input fields.
Group two: 7 Text fields plus 3 Radio buttons.
I need the user to enter a number between 1 - ∞.
This number needs to dynamically define how many unique instances of Group two are available to fill out and submit with the rest of the form.
(Form results need to be sent, via PHP, to my email address)
Group two is a group of text fields that are defined as the same, but the user will need to input unique information into each one.
For example, Group two has a group of questions similar (but not very close) to this:
List the People in your town
"Group two" 01
Gender:
Name:
Age:
Street Number:
Hair color:
Since I cannot determine beforehand the number of "Group two" instances the user needs to fill out I need them to choose the number above (8th text field of Group one) and have X amount of Group two to be available to fill out. Probably the best way for the user to move between Group two - 09, 11, 12 etc.. is via next and previous buttons.
But despite my need for this, I can't seem to code it.
I'd appreciate any hints and suggestions, and I'd love it if someone would point me towards some sort of working example (you don't have to build one, I know your busy. Its just worth asking you never know until you try)
Not only am I stuck on how to code it via Actionscript 2 I'm even more uncertain as to how the PHP script is supposed to recieve an unknown, unplannable amount of text fields/information. The way I setup my PHP scripts to sent Email from Flash is to manually input the varable names and titles inside the php file. But how do I get it to do that dynamically as well?
Something tells me I still didn't clarify this well enough (or this post is too big to most people to bother reading through) so I'll way a few days or a week for replies, if I don't get anything, I'll try again but with a visual (static/movie) example of what I'm trying to build.
Thank you for taking the time to read this.
It's quite likely you have more pressing things to do, the fact that you read this suggests you intended to help. And thats appreciated.
Even if you were as stumped as I am
View Replies !
View Related
Profile Changes
Can anybody tell me how to change my display so my name does not show? I want to change it to something else. The edit profile will not let me change this feature. Thanks for your help.
View Replies !
View Related
How To Profile FMS
There are so many settings in the config files, many of which do not tell you why you would change them (asside from a simple "changing this changes X") or what their min/max values are. It would be awesome if there was a way to see how many threads of each type are in use and what their affect is on the system as a whole. Also, it would be nice to see the allocation of memory inside each core process (flv cache, js engine, etc). Any ideas?
View Replies !
View Related
Banwidth Profile
I have a pretty big fla file and the first 2 frames have no objects placed in them, and in the 3rd i have 2 100k movies.
now why does my bandwidth profiler say that frame one contains the the 300k and frame 3 has hardly any at all.
the reason i am trying to find out is because I have my preloader working in a previous scene that wont even display until 3 quarters of the 1st frame has been loaded.
Its doing my head in, any ideas??
View Replies !
View Related
Profile Pictures?
I've noticed on most of the more experienced Flashers post's, they have cartoon pictures underneath the "author" section. Where do they get those? do they create their own, or do they just get them for somewhere? I've noticed quite a few common pics, ie.. pickachu, scooby doo, etc
View Replies !
View Related
Bandwidth Profile
I am approaching the completion of a new site
I have been spending a bit of time trying to cut its .swf size
Whilst doing so I have noticed that in the bandwidth profiler my opening frame (main timeline) is 32K (not bytes, K!)
but all it contains is a basic preloader action and two dynamic textfields.
In an experiment I have even moved the frames (leaving a TOTALLY BLANK 1st frame) but it's still 32K
Whats the deal with this? For the record its published in flash6
Cheers JB
View Replies !
View Related
Add Link In Your AIM Profile
I want to inclued a link on my site (www.brynnecalleran.com) that users can click to add the site to their AIM profile. I've been seeing this pop up on a number of sites, but I have no idea what the script would look like...thoughts?
Brandon
View Replies !
View Related
Jpg Color Profile
hi, i am importing jpgs as sRGB into flash from a mac.
the sRGB profile is supposed to mean the jpgs will look the same in flash as they do in photoshop, but i find they are unsaturated.
i saw a photoshop tutorial that shows the sRGB jpgs unchanged when imported from a pc. so is this a platform/gamut issue?
to compensate i typically zap up the saturation in photoshop before import, but there must be a better way to do this?
mc
View Replies !
View Related
Myspace Profile
Hello, I recently asked about loading an mp3 player xml playlist from the html parameter "flashvars", now that i have my mp3 player working perfect on myspace i figured maybe i can use the same parameters for a myspace layout. I have an RSS Reader Designed to read the blogs and used a component loader to load the jpg shown own the myspace. My question is whats wrong. the mp3 player works great but my rss loader and photo component loader is having problems. Heres the codes I have.
--------------------------------HTML code------------------------------
<param name="flashvars" value="xmlpath=http://www.mysite.net/myspaceplaylist.xml&rsspath=http://blog.myspace.com/blog/rss.cfm?friendID=4010127&csspath=http://www.mysite.net/mo_rss.css&photopath=http://a580.ac-images.myspacecdn.com/01316/97/56/1316296579_s.jpg" />
</object>
______________________________________
--------------------------------Photo Loader (loader component) ****first frame of (_root.mysarea) ***** ------------------------------
trace (_root.photopath);
this.myspacepcarea.picloader.loaders.loaderw.loadMovie(photopath);
I-------------+------------------I----------+-----------+-----I
loaders destination
------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------RSS Loader ****first frame of (_root.blog.rssbloger) ***** ------------------------------
The RSS Loader has 2 files referenced to the HTML file. variable names csspath and rsspath. CSSpath is reference to the css layout of the rss loader.
trace (_root.rsspath);
trace (_root.csspath);
var rss_css:TextField.StyleSheet = new TextField.StyleSheet();
rss_css.onLoad = function(success:Boolean) {
if (success) {
trace("css loaded...");
function not_set_yet() {
loadDATA();
}
}
};
rss_css.load(_root.csspath);
// ************************************************
//Load XML data
// ************************************************
btnLoad.onRelease = function() {
loadDATA();
};
function loadDATA() {
var rss_xml:XML = new XML();
rss_xml.ignoreWhite = true;
rss_xml.onLoad = function(success:Boolean) {
if (success) {
processData(rss_xml);
} else {
trace("unable to load/parse cnet.xml");
}
};
rss_xml.load(_root.rsspath);
}
// ***********************************************
// Process Data
// ***********************************************
channel_title = "";
channel_desc = "";
channel_copyright = "";
channel_link = "";
channel_lang = "";
function processData(rm) {
var rss = rm.firstChild.firstChild;
item_txt.text = "";
item_txt.html = true;
item_txt.styleSheet = rss_css;
for (i=0; i<rss.childNodes.length; i++) {
//trace(rss.childNodes[i].nodeName);
if (rss.childNodes[i].nodeName == "title") {
channel_title = rss.childNodes[i].firstChild.nodeValue;
} else if (rss.childNodes[i].nodeName == "description") {
channel_description = rss.childNodes[i].firstChild.nodeValue;
} else if (rss.childNodes[i].nodeName == "copyright") {
channel_copyright = rss.childNodes[i].firstChild.nodeValue;
} else if (rss.childNodes[i].nodeName == "link") {
channel_link = rss.childNodes[i].firstChild.nodeValue;
} else if (rss.childNodes[i].nodeName == "language") {
channel_lang = rss.childNodes[i].firstChild.nodeValue;
} else if (rss.childNodes[i].nodeName == "image") {
var sTitle;
var sLink;
// link
var sURL;
// logo url
txtLogo.html = true;
txtLogo.htmlText = "";
for (j=0; j<rss.childNodes[i].childNodes.length; j++) {
if (rss.childNodes[i].childNodes[j].nodeName == "title") {
sTitle = rss.childNodes[i].childNodes[j].firstChild.nodeValue;
} else if (rss.childNodes[i].childNodes[j].nodeName == "link") {
sLink = rss.childNodes[i].childNodes[j].firstChild.nodeValue;
} else if (rss.childNodes[i].childNodes[j].nodeName == "url") {
sURL = rss.childNodes[i].childNodes[j].firstChild.nodeValue;
}
}
} else if (rss.childNodes[i].nodeName == "item") {
var itemTitle;
var itemDesc;
var itemLink;
for (j=0; j<rss.childNodes[i].childNodes.length; j++) {
if (rss.childNodes[i].childNodes[j].nodeName == "title") {
itemTitle = rss.childNodes[i].childNodes[j].firstChild.nodeValue;
} else if (rss.childNodes[i].childNodes[j].nodeName == "description") {
itemDesc = rss.childNodes[i].childNodes[j].firstChild.nodeValue;
} else if (rss.childNodes[i].childNodes[j].nodeName == "link") {
itemLink = rss.childNodes[i].childNodes[j].firstChild.nodeValue;
}
}
item_txt.htmlText += "<a href=""+itemLink+""><span class="headline">"+itemTitle+"</span></a><br><span class="thread">"+itemDesc+"</span><br>";
}
}
}
loadDATA();
__________________________________________________ ________________________
View Replies !
View Related
Myspace Profile
Hello, I recently asked about loading an mp3 player xml playlist from the html parameter "flashvars", now that i have my mp3 player working perfect on myspace i figured maybe i can use the same parameters for a myspace layout. I have an RSS Reader Designed to read the blogs and used a component loader to load the jpg shown own the myspace. My question is whats wrong. the mp3 player works great but my rss loader and photo component loader is having problems. Heres the codes I have.
--------------------------------HTML code------------------------------
<param name="flashvars" value="xmlpath=http://www.mysite.net/myspaceplaylist.xml&rsspath=http://blog.myspace.com/blog/rss.cfm?friendID=4010127&csspath=http://www.mysite.net/mo_rss.css&photopath=http://a580.ac-images.myspacecdn.com/01316/97/56/photo.jpg" />
</object>
----------Photo Loader (loader component) ****first frame of (_root.mysarea) ***** -------
this.myspacepcarea.picloader.loaders.loaderw.loadMovie(photopath);
I-------------+------------------I----------+-----------+-----I
loaders destination
--------------------------------RSS Loader ****first frame of (_root.blog.rssbloger) ***** ----------
The RSS Loader has 2 files referenced to the HTML file. variable names csspath and rsspath. CSSpath is reference to the css layout of the rss loader.
trace (_root.rsspath);
trace (_root.csspath);
var rss_css:TextField.StyleSheet = new TextField.StyleSheet();
rss_css.onLoad = function(success:Boolean) {
if (success) {
trace("css loaded...");
function not_set_yet() {
loadDATA();
}
}
};
rss_css.load(_root.csspath);
// ************************************************
//Load XML data
// ************************************************
btnLoad.onRelease = function() {
loadDATA();
};
function loadDATA() {
var rss_xml:XML = new XML();
rss_xml.ignoreWhite = true;
rss_xml.onLoad = function(success:Boolean) {
if (success) {
processData(rss_xml);
} else {
trace("unable to load/parse cnet.xml");
}
};
rss_xml.load(_root.rsspath);
}
// ***********************************************
// Process Data
// ***********************************************
channel_title = "";
channel_desc = "";
channel_copyright = "";
channel_link = "";
channel_lang = "";
function processData(rm) {
var rss = rm.firstChild.firstChild;
item_txt.text = "";
item_txt.html = true;
item_txt.styleSheet = rss_css;
for (i=0; i<rss.childNodes.length; i++) {
//trace(rss.childNodes[i].nodeName);
if (rss.childNodes[i].nodeName == "title") {
channel_title = rss.childNodes[i].firstChild.nodeValue;
} else if (rss.childNodes[i].nodeName == "description") {
channel_description = rss.childNodes[i].firstChild.nodeValue;
} else if (rss.childNodes[i].nodeName == "copyright") {
channel_copyright = rss.childNodes[i].firstChild.nodeValue;
} else if (rss.childNodes[i].nodeName == "link") {
channel_link = rss.childNodes[i].firstChild.nodeValue;
} else if (rss.childNodes[i].nodeName == "language") {
channel_lang = rss.childNodes[i].firstChild.nodeValue;
} else if (rss.childNodes[i].nodeName == "image") {
var sTitle;
var sLink;
// link
var sURL;
// logo url
txtLogo.html = true;
txtLogo.htmlText = "";
for (j=0; j<rss.childNodes[i].childNodes.length; j++) {
if (rss.childNodes[i].childNodes[j].nodeName == "title") {
sTitle = rss.childNodes[i].childNodes[j].firstChild.nodeValue;
} else if (rss.childNodes[i].childNodes[j].nodeName == "link") {
sLink = rss.childNodes[i].childNodes[j].firstChild.nodeValue;
} else if (rss.childNodes[i].childNodes[j].nodeName == "url") {
sURL = rss.childNodes[i].childNodes[j].firstChild.nodeValue;
}
}
} else if (rss.childNodes[i].nodeName == "item") {
var itemTitle;
var itemDesc;
var itemLink;
for (j=0; j<rss.childNodes[i].childNodes.length; j++) {
if (rss.childNodes[i].childNodes[j].nodeName == "title") {
itemTitle = rss.childNodes[i].childNodes[j].firstChild.nodeValue;
} else if (rss.childNodes[i].childNodes[j].nodeName == "description") {
itemDesc = rss.childNodes[i].childNodes[j].firstChild.nodeValue;
} else if (rss.childNodes[i].childNodes[j].nodeName == "link") {
itemLink = rss.childNodes[i].childNodes[j].firstChild.nodeValue;
}
}
item_txt.htmlText += "<a href=""+itemLink+""><span class="headline">"+itemTitle+"</span></a><br><span class="thread">"+itemDesc+"</span><br>";
}
}
}
loadDATA();
__________________________________________________ ________________________
View Replies !
View Related
ICC Color Profile
Hi,
I need to have the icc color profile based color values to be applied on a movie clip.
I've used a color picker component and it returns the RGB colors. How can we change it to the ICC color profile?
Thanks in advance..
View Replies !
View Related
Myspace Profile
Hello, I recently asked about loading an mp3 player xml playlist from the html parameter "flashvars", now that i have my mp3 player working perfect on myspace i figured maybe i can use the same parameters for a myspace layout. I have an RSS Reader Designed to read the blogs and used a component loader to load the jpg shown own the myspace. My question is whats wrong. the mp3 player works great but my rss loader and photo component loader is having problems. Heres the codes I have.
--------------------------------HTML code------------------------------
<param name="flashvars" value="xmlpath=http://www.mysite.net/myspaceplaylist.xml&rsspath=http://blog.myspace.com/blog/rss.cfm?friendID=4010127&csspath=http://www.mysite.net/mo_rss.css&photopath=http://a580.ac-images.myspacecdn.com/01316/97/56/photo.jpg" />
</object>
----------Photo Loader (loader component) ****first frame of (_root.mysarea) ***** -------
this.myspacepcarea.picloader.loaders.loaderw.loadMovie(photopath);
I-------------+------------------I----------+-----------+-----I
loaders destination
--------------------------------RSS Loader ****first frame of (_root.blog.rssbloger) ***** ----------
The RSS Loader has 2 files referenced to the HTML file. variable names csspath and rsspath. CSSpath is reference to the css layout of the rss loader.
trace (_root.rsspath);
trace (_root.csspath);
var rss_css:TextField.StyleSheet = new TextField.StyleSheet();
rss_css.onLoad = function(success:Boolean) {
if (success) {
trace("css loaded...");
function not_set_yet() {
loadDATA();
}
}
};
rss_css.load(_root.csspath);
// ************************************************
//Load XML data
// ************************************************
btnLoad.onRelease = function() {
loadDATA();
};
function loadDATA() {
var rss_xml:XML = new XML();
rss_xml.ignoreWhite = true;
rss_xml.onLoad = function(success:Boolean) {
if (success) {
processData(rss_xml);
} else {
trace("unable to load/parse cnet.xml");
}
};
rss_xml.load(_root.rsspath);
}
// ***********************************************
// Process Data
// ***********************************************
channel_title = "";
channel_desc = "";
channel_copyright = "";
channel_link = "";
channel_lang = "";
function processData(rm) {
var rss = rm.firstChild.firstChild;
item_txt.text = "";
item_txt.html = true;
item_txt.styleSheet = rss_css;
for (i=0; i<rss.childNodes.length; i++) {
//trace(rss.childNodes.nodeName);
if (rss.childNodes.nodeName == "title") {
channel_title = rss.childNodes.firstChild.nodeValue;
} else if (rss.childNodes.nodeName == "description") {
channel_description = rss.childNodes.firstChild.nodeValue;
} else if (rss.childNodes.nodeName == "copyright") {
channel_copyright = rss.childNodes.firstChild.nodeValue;
} else if (rss.childNodes.nodeName == "link") {
channel_link = rss.childNodes.firstChild.nodeValue;
} else if (rss.childNodes.nodeName == "language") {
channel_lang = rss.childNodes.firstChild.nodeValue;
} else if (rss.childNodes.nodeName == "image") {
var sTitle;
var sLink;
// link
var sURL;
// logo url
txtLogo.html = true;
txtLogo.htmlText = "";
for (j=0; j<rss.childNodes.childNodes.length; j++) {
if (rss.childNodes.childNodes[j].nodeName == "title") {
sTitle = rss.childNodes.childNodes[j].firstChild.nodeValue;
} else if (rss.childNodes.childNodes[j].nodeName == "link") {
sLink = rss.childNodes.childNodes[j].firstChild.nodeValue;
} else if (rss.childNodes.childNodes[j].nodeName == "url") {
sURL = rss.childNodes.childNodes[j].firstChild.nodeValue;
}
}
} else if (rss.childNodes.nodeName == "item") {
var itemTitle;
var itemDesc;
var itemLink;
for (j=0; j<rss.childNodes.childNodes.length; j++) {
if (rss.childNodes.childNodes[j].nodeName == "title") {
itemTitle = rss.childNodes.childNodes[j].firstChild.nodeValue;
} else if (rss.childNodes.childNodes[j].nodeName == "description") {
itemDesc = rss.childNodes.childNodes[j].firstChild.nodeValue;
} else if (rss.childNodes.childNodes[j].nodeName == "link") {
itemLink = rss.childNodes.childNodes[j].firstChild.nodeValue;
}
}
item_txt.htmlText += "<a href=""+itemLink+""><span class="headline">"+itemTitle+"</span></a><br><span class="thread">"+itemDesc+"</span><br>";
}
}
}
loadDATA();
__________________________________________________________________________
View Replies !
View Related
Profile Image Uploader
Hey guys, I've designed a user image uploader for my site and it works pretty well on my mac. However, I haven't had the opportunity to test it on a PC. It might be too much to ask, but could some of you PC users give it a try for me? All you need is a 75x75 jpeg.
Here is the link:
http://www.herraincoskipp.com/homebase
Thanks in advance.
If you can't figure it out don't worry about it.
View Replies !
View Related
How Do You Profile Actionscript 3 Code?
I've been looking for profiling tools for AS3, but aside from the memory bandwidth profiler that comes with CS3 there don't seem to be any. When I was writing AS2 I always used ASProf, which was powerful enough, but I can't find an AS3 version. What do you all use for code profiling?
View Replies !
View Related
SwfObject 2.1 Publish Profile
I'm trying to set up a custom Publish Profile in flash CS3 so flash automatically publishes the .swf, the .html, the swfobject file, etc. Is this possible? has anyone done this? I've seen this extension: http://flog.fluid.com/2006/05/05/swf...ublish-profile
but it is an out of date version. Your help is appreciated. Thanks!
View Replies !
View Related
Profile Image Uploader
Hey guys, I've designed a user image uploader for my site and it works pretty well on my mac. However, I haven't had the opportunity to test it on a PC. It might be too much to ask, but could some of you PC users give it a try for me? All you need is a 75x75 jpeg.
Here is the link:
http://www.herraincoskipp.com/homebase
Thanks in advance.
If you can't figure it out don't worry about it.
View Replies !
View Related
Myspace Profile Layout
Hello, I recently asked about loading an mp3 player xml playlist from the html parameter "flashvars", now that i have my mp3 player working perfect on myspace i figured maybe i can use the same parameters for a myspace layout. I have an RSS Reader Designed to read the blogs and used a component loader to load the jpg shown own the myspace. My question is whats wrong. the mp3 player works great but my rss loader and photo component loader is having problems. Heres the codes I have.
--------------------------------HTML code----------------------------
<param name="flashvars" value="xmlpath=http://www.mysite.net/myspaceplaylist.xml&rsspath=http://blog.myspace.com/blog/rss.cfm?friendID=4010127&csspath=http://www.mysite.net/mo_rss.css&photopath=http://a580.ac-images.myspacecdn.com/01316/97/56/photo.jpg" />
</object>
----------Photo Loader (loader component) ****first frame of (_root.mysarea) ***** -------
this.myspacepcarea.picloader.loaders.loaderw.loadMovie(photopath);
I-------------+------------------I----------+-----------+-----I
loaders destination
--------------------------------RSS Loader ****first frame of (_root.blog.rssbloger) ***** ----------
The RSS Loader has 2 files referenced to the HTML file. variable names csspath and rsspath. CSSpath is reference to the css layout of the rss loader.
trace (_root.rsspath);
trace (_root.csspath);
var rss_css:TextField.StyleSheet = new TextField.StyleSheet();
rss_css.onLoad = function(success:Boolean) {
if (success) {
trace("css loaded...");
function not_set_yet() {
loadDATA();
}
}
};
rss_css.load(_root.csspath);
// ************************************************
//Load XML data
// ************************************************
btnLoad.onRelease = function() {
loadDATA();
};
function loadDATA() {
var rss_xml:XML = new XML();
rss_xml.ignoreWhite = true;
rss_xml.onLoad = function(success:Boolean) {
if (success) {
processData(rss_xml);
} else {
trace("unable to load/parse cnet.xml");
}
};
rss_xml.load(_root.rsspath);
}
// ***********************************************
// Process Data
// ***********************************************
channel_title = "";
channel_desc = "";
channel_copyright = "";
channel_link = "";
channel_lang = "";
function processData(rm) {
var rss = rm.firstChild.firstChild;
item_txt.text = "";
item_txt.html = true;
item_txt.styleSheet = rss_css;
for (i=0; i<rss.childNodes.length; i++) {
//trace(rss.childNodes.nodeName);
if (rss.childNodes.nodeName == "title") {
channel_title = rss.childNodes.firstChild.nodeValue;
} else if (rss.childNodes.nodeName == "description") {
channel_description = rss.childNodes.firstChild.nodeValue;
} else if (rss.childNodes.nodeName == "copyright") {
channel_copyright = rss.childNodes.firstChild.nodeValue;
} else if (rss.childNodes.nodeName == "link") {
channel_link = rss.childNodes.firstChild.nodeValue;
} else if (rss.childNodes.nodeName == "language") {
channel_lang = rss.childNodes.firstChild.nodeValue;
} else if (rss.childNodes.nodeName == "image") {
var sTitle;
var sLink;
// link
var sURL;
// logo url
txtLogo.html = true;
txtLogo.htmlText = "";
for (j=0; j<rss.childNodes.childNodes.length; j++) {
if (rss.childNodes.childNodes[j].nodeName == "title") {
sTitle = rss.childNodes.childNodes[j].firstChild.nodeValue;
} else if (rss.childNodes.childNodes[j].nodeName == "link") {
sLink = rss.childNodes.childNodes[j].firstChild.nodeValue;
} else if (rss.childNodes.childNodes[j].nodeName == "url") {
sURL = rss.childNodes.childNodes[j].firstChild.nodeValue;
}
}
} else if (rss.childNodes.nodeName == "item") {
var itemTitle;
var itemDesc;
var itemLink;
for (j=0; j<rss.childNodes.childNodes.length; j++) {
if (rss.childNodes.childNodes[j].nodeName == "title") {
itemTitle = rss.childNodes.childNodes[j].firstChild.nodeValue;
} else if (rss.childNodes.childNodes[j].nodeName == "description") {
itemDesc = rss.childNodes.childNodes[j].firstChild.nodeValue;
} else if (rss.childNodes.childNodes[j].nodeName == "link") {
itemLink = rss.childNodes.childNodes[j].firstChild.nodeValue;
}
}
item_txt.htmlText += "<a href=""+itemLink+""><span class="headline">"+itemTitle+"</span></a><br><span class="thread">"+itemDesc+"</span><br>";
}
}
}
loadDATA();
__________________________________________________________________________
Edited: 05/11/2007 at 09:02:15 PM by samuels2921
View Replies !
View Related
Flash Works In One Profile But Not Another
I'm about at the end of my rope. I am running XP SP-2 & IE7 with security patches up to date. I have two profiles (both administrator level). In one profile, Flash 9 is installed and working fine. In the other profile, any flash web-page keeps telling me I need to install Flash. I download & install and it says successful and shows the flash movie on the Adobe page, but any pages that require flash continue to tell me to download and install. I've uninstalled/reinstalled from both profiles with the same result. Finally I created a new user/profile from scratch and it does not work either (keeps asking me to download and install). I cannot seem to find a solution to this anywhere - please help!!!
View Replies !
View Related
Quiz Profile Generation
Hi all,
I am new to Flash and I am having a hell of a time trying to build a special type of multiple choice quiz. The idea is to direct the user to one of 4 different scenarios based on their answers so there are no right or wrong answers. To do this, I believe I need to define my own variables and create an actionscript that tracks the user's scores for each of the 4 alternative paths. Can someone please enlighten me on how to do this?
Attached is my current source file for everyone's reference.
Thanks,
Karuna62
View Replies !
View Related
Profile Space Exceeded On Win2kPro By FMX
Hi
When I install Flash MX, ~13MB of data is copied into my user profile. As the limit on our Campus system is 10MB, I have to delete the data before I can reboot. Flash then re-writes the data next time it is started.
Can anybody please offer a solution or workaround to this?
Thanks in Advance
Tony.
View Replies !
View Related
Flash Has Colour Profile Controls?
hi there,
I am doing this site for a photographer, where he sent me all his fotos already nicely comressed etc exactly like he wants them; but then when I import them into flash they come out at the other end just this little bit with less contrast and duller.It looks like the embedded colour profile of the jpg has been disrespected or changed.
Does flash change the colour profile of an imported jpg and if so where do I control that?
thanks a million in advance,
sandra
View Replies !
View Related
[F8] Horizontal Scrolling Image Profile
HI all,
I am new to flash and this is my first post here. Now I am trying to developing Horizontal scrolling image profile with roll over pause and open new window option by clicking the image with the dynamically loaded images from xml for each profile. I didnt get any thing. If u know can u help me in doing this by guiding me how to do this?
Thanks in advance. Take care. bye
Giri.
View Replies !
View Related
[F8] Getting Profile Fields From Vbulletins System
hello eveyone
ok here what we are trying to do.
i have a site, it has a vbulletin forum on it. i re-did my users profile system where it looks almost exactly like myspace. im on the point where i need to do a music player, right now i have a inline media player doing the job, but i want to use flash, its more universal.
so i have my flash mp3 player and its its actions script file(.as) and i want to replace the source link of the mp3 file with the code $userinfo[field39]
in the player's fla, i can't just put a LoadVar in the actions script, cuz this is how the profile field is shown.
there is a pho file called member.php, that has info in it like
Code:
// ##### PRE-CACHE TEMPLATES AND DATA
// get special phrase groups
$phrasegroups = array(
'user',
'messaging',
'cprofilefield',
);
// get special data templates from the datastore
$specialtemplates = array(
'smiliecache',
'bbcodecache'
);
// pre-cache templates used by all actions
$globaltemplates = array(
'MEMBERINFO',
'memberinfo_customfields',
'memberinfo_membergroupbit',
'userfield_checkbox_option',
'userfield_select_option',
'userinfraction_infobit'
);
// pre-cache templates used by specific actions
$actiontemplates = array();
// ##### REQUIRE BACK-END
require_once('./global.php');
require_once(DIR . '/includes/class_postbit.php');
require_once(DIR . '/includes/functions_user.php');
// ##### START MAIN SCRIPT
if (!($permissions['forumpermissions'] & $vbulleti................
$phrasegroups = array(
'user',
'cprofilefield',
that gets the profile fields setup, then it pre-caches the MEMBERINFO template. and in the memberinfo template i have the html code that contains the profile dissplay, and everytime i want to display the info for field 39 then in the html code i put $userinfo[field39] and it displays the users info they have set.
now i have a field where they put the full link to a mp3 file and, in the memberinfo the inline media plaer i put for the soruce $userinfo{field39] and it plays their song
now i how would i do this but with flash?
View Replies !
View Related
Horizontal Scrolling Image Profile
HI all,
I am new to flash and this is my first post here. Now I am trying to developing Horizontal scrolling image profile with roll over pause and open new window option by clicking the image with the dynamically loaded images from xml for each profile. I didnt get any thing. If u know can u help me in doing this by guiding me how to do this?
Thanks in advance. Take care. bye
Giri.
View Replies !
View Related
Does Flash 8 Support Icc Profile SRGB?
hello,
the lost color problem... is there an solution yet?
the image in the URL below has an color profile embeded.
http://www.muffincreative.com/icc/icc.html
this is the same image within flash.
http://www.muffincreative.com/icc/Untitled-1.html
in safari that support icc you can se a clear difference between the pictures on the different urls. note the red color...
(I dont know if PC browser support icc?)
yes i know that you can do the psd darker before you export the jpg to compensate for this but my deer photograph customers likes icc...
View Replies !
View Related
Selecting An Avatar To Load With Profile
Hi everyone, im currently having problems setting up a registration page. The user will be allowed select an avatar to go with their profile (quite similar to this site!) However i do not know how to save the selected avatar to my database using .asp.
Anyone with any tips will be gratefully appreciated
View Replies !
View Related
|