W3C Markup Validation Service Web Site Shows Lots Of Errors For .swf Object
Hello;
I'm using the method to insert a .swf file into an Html document as described in the "Frequently Asked 'Flash' Questions" tutorial in this forum: http://www.sitepoint.com/forums/showthread.php?t=210919
The flash object works fine in my browser.
When I try to validate the Html using the W3C Markup validation service it says that there are no attributes for SRC, QUALITY, PLUGINSPAGE, TYPE, WIDTH, HEIGHT, and MENU. It also says that the element EMBED is undefined.
Since it shows so many errors it looks like the W3C Markup Validation Service might not configured to work to .swf objects.
You can copy and paste the code below and you can see what I'm talking about. Here's the link to the W3C Markup Validation Service page: http://validator.w3.org/
PHP Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Shockwave Flash Movie</title> </head> <body bgcolor="#AAAAAA"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="300" height="250"> <param name="movie" value="300 x 250.swf" /> <param name="quality" value="autohigh"> <param name="menu" value="false" /> <embed src="300 x 250.swf" quality="autohigh" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="300" height="250" menu="false"></embed> </object> </body> </html>
I think that using the flash object will be ok but for my peace of mind can somebody tell me is it safe or wise to use the .swf object when the W3C web site shows so many errors?
Thanks.
SitePoint > Design Your Site > Flash and Actionscript
Posted on: Apr 29, 2007, 15:16
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
W3C Validation Errors
Hello all,
When I check a page with the W3C validation service, it gave a list of errors confined to a table in which I embedded a .swf.
For instance: "Error: there is no attribute "HEIGHT" for this element (in this HTML version)."
And the same message for "SRC", and "PLUGINSPAGE", and a handful of others. All else in the page (HTML, CSS, Javascript) was okay. So, do I ignore the so-called errors? I know those tags have to be there so the browsers will play the movie...
TIA,
BT
---estudioworks, if you reply I promise not to gush
[Edited by BrainTea on 02-28-2002 at 09:34 AM]
Actionscript Text Validation Errors
I have a form with 2 textfields...when a user enters the wrong info, I have to have that textfield turn red, from green....
The first field can have any input as long as it's filled in...
The 2nd field requires "CM"
The following script is not working...
This may have to do with inheritance issues...and if you could explain that as well, fantastic.......!
if(line_Input2 != "CM"){
if(line_Input1 == undefined){
line_Input1.backgroundColor = 0x00ff00;
line_Input2.backgroundColor = 0xff0000;
}
else {
line_Input2.backgroundColor = 0xff0000;
}
} else if(line_Input2 == "CM"){
if(line_Input1 == undefined){
_line_Input1.backgroundColor = 0x00ff00;
}
else {
gotoAndStop ("right1");
}
}
}
can someone help me with this...????
thanks...D...
[CS3] VALIDATION OF FLASH ON WEBSITE - W3C Errors Everythere HELP
Hey Everyone,
I am trying to get my site to now have so many darn errors. My issue is I am using CSS drop downs on the site. Therefore I must have the wmode on my flash document be transparent and it is now.
My problem is that when I validate my xhtml I have like 50 errors from the code that was produced by Flash when I had it export out the HTML. Can anyone tell me how I can get those errors to go away without messing up my movie?
see:
http://www.designingdigitally.com/index_test.php
Any ideas how to get this code right? Any good examples / tutorials on what I need?
Thanks!
Web Service Param Is An Object Inside And Array Which Is An Object
Howdy. This is my first time on this forum, and I hope I get more help here than some of the other forums. I'll try to explain my dillema as simply as possible.
I have a webservice. I am calling a method 'InsertSlide'. That method requires and object as the paramater.
the object shcema looks like this:
Object
-SlideID (integer)
-Name (integer)
-SlideTypeID (integer)
-Hits (integer)
-LocationID (integer)
-SwfFileName (integer)
-SlideDataCollection (Array)
- -N (Object)
- - -Label
- - -Value
I hope that makes sense, all I'm trying to get at, is there is an object with an array as a property, that array is populated with an object and it has properties.
I recieve that same ojbect from the webservice fine, but when I send that object like that to the Webservice it does not fully populate my databases, unfortunatly I did not write the webservice.
Is it possible that the problem is the webservice? or flash?
Thanks for any help!
- Kiwi
Lots Of Web Site Help
I am a total noob to Flash, not because ive only just got it but because i've never got to grips with what im trying to do.
I've read and completed loads of tutorials but im sure loads of you know that none of them ever say exactly what it is you're looking for. The questions ive been trying to answer for the last few months are as follows (hope you're sitting comfortably!)
a) When setting up a web site, how do i do it? Is each page a different movie or a different frame or what? If each page is a singe frame then how do i span animation out within the one frame? How exactly are they structured?
b) Obviously i can only link the site up once i figure out how its structured, but this is something i also need help with
c) Preloaders (those dreaded things...). Can i only do a preloader AFTER i've made the entire site? Although im not entirely sure how to make one, i have read tutes so just knowing this would help.
I'm not gonna be surprised if after that you all detest me cos its quite alot im asking, but i really would appreciate any help in any aspect of web design.
Thanks in advance, regards,
Joe
Blog Style Site.. Xml Or Mysql.. Lots Of Content.
so im working on this project.. it is a web site with quite a bit of content.. it is almost like a blog as far as content goes.. it is gonna all be done in flash.. what is my best option for storing and retrieving the info.. mysql or xml..
i personally was thinking for a lot of content xml would be slow.. especially if i had to search through more than 20 xml files.. wouldnt that get slower than just running a phptomysql script to get the content.???
but on the other hand i heard that running php to mysql scripts through flash isnt the most reliable...
or what about flash remoting???
someone school me.. thankx
Blog Style Site.. Xml Or Mysql.. Lots Of Content.
so im working on this project.. it is a web site with quite a bit of content.. it is almost like a blog as far as content goes.. it is gonna all be done in flash.. what is my best option for storing and retrieving the info.. mysql or xml..
i personally was thinking for a lot of content xml would be slow.. especially if i had to search through more than 20 xml files.. wouldnt that get slower than just running a phptomysql script to get the content.???
but on the other hand i heard that running php to mysql scripts through flash isnt the most reliable...
or what about flash remoting???
someone school me.. thankx
Batch Process For Changing Lots Of Links In Lots Of Movies
Hi,
Have a prob that I have something like 80 flash movies, all the same size, format etc, but I need to remove a tracking tag from infront of all the links. To do this manually would take an eon, is there a batch process I can run to search for a specific string and remove it? If there is, it's a lifesaver.
Thanks,
Rhythm
Site Loading Before Preloader Even Shows..help
I have a flash site that opens in a new window, the site is 125 k. The problem I have is that it seems to be preloading before the first frame even shows, so I am left with a white scree for the seconds before the site loads... I have never experienced this before.
Any help would be appreciated
Here is the site http://www.raffa.co.uk
Thanks
Pete
White Box Shows Up Before Site Loads
hello,
I have built a site and it seems to be a re-occuring problem that when I go to a site that I've made you see a second or 2 of a white square where the flash file is within the html table. Is there a way around this to make this not happen?
here is the site-
www.bartendercalendar.com
thanks in advance for any help...
Browser Shows It's Still Loading My Site?
My site http://www.acottageflorist.net loads up pretty nice. The only thing I don't understand is that after the movie loads into the browser, it still shows in the browser that something is still being loaded.
Here's another site I've done with the same issue. This site is nothing more than two movie. The main swf and the loaded movie that plays the video http://www.imirocks.com/IMIRocksHome.html at the bottom of the browser it will say "1 item remaining"
How can I remedy this???
Thank is advance.
Flash Site Only Shows After A Refresh
Hello everyone,
my new site is at http://lapatisseriebelge.com.
My problem is that when the site loads for the 1rst time it only displays the background, i have to do a refresh (F5) in order to see the full site.
any suggestions would be deeply welcomed.
Errors On New Site
Hi,
I've created a site for a client, and he's come back sayinf that the have been complaints about loading errors... He's given me no more details.
I've tried in different brosers and all seems fine (on a mac).
Please could anyone take a look and see if any error messages appear.
No idea where to start...
http://www.millbayplymouth.com/
MovieClip Shows Up As [object StaticText]
Hi,
I have a simple piece of code that takes a MovieClip from the Library (exported as AS), positions it and puts it in the display list.
But whatever I do, it shows up as a StaticText object.
I used one of the example buttons from the Sample Libraries. It does contain text inside the MovieClip, but I even broke that apart to show up as vector graphics, and it still does the same thing.
I even created a new MovieClip and added one oval shape inside - it still shows up as Static Text as soon as I use addChild!
Here's the output I get:
[object myButton]
[object StaticText]
Any ideas?
Thanks!
Attach Code
package {
import flash.display.*;
import flash.events.*;
public class tutorial extends MovieClip {
public function tutorial() {
var Next:MovieClip = new myButton();
Next.x = 60;
Next.y = 490;
Next.visible = true;
addChild(Next);
trace(Next);
trace(getChildAt(0));
}
}
}
Dynamic Text Shows Locally But Not On Site?
I have a dynamic text box on the _root level of my movie that loads an external text file. When I test it in Flash (MX2004) locally the text shows up just fine. But when I upload it to the site it doesn't show at all. I'm exporting as Flash 6. I just want to display as html text and not embed font (if possible). Also, there are no masks on the _root level.
Here is the code to load the text:
loadText = new LoadVars();
loadText.load("/text/about.txt");
loadText.onLoad = function() {
textBox.html = true;
textBox.htmlText = this.infoText;
};
Any ideas are welcomed and appreciated.
edit: Yes, I made sure the text file is uploaded to the /text directory!!
Dynamic Text Shows Locally But Not On Site?
I have a dynamic text box on the _root level of my movie that loads an external text file. When I test it in Flash (MX2004) locally the text shows up just fine. But when I upload it to the site it doesn't show at all. I'm exporting as Flash 6. I just want to display as html text and not embed font (if possible). Also, there are no masks on the _root level.
Here is the code to load the text:
loadText = new LoadVars();
loadText.load("/text/about.txt");
loadText.onLoad = function() {
textBox.html = true;
textBox.htmlText = this.infoText;
};
Any ideas are welcomed and appreciated.
edit: Yes, I made sure the text file is uploaded to the /text directory!!
Flash Ecommerce Site With Visa And Mastercard Validation
I want to start an flash ecommerce website, where would I start to look? I have this luhn validation website which could validate master card, visa, etc but where does this infos going to be sent? like bank or something? I tried checking SSL too. Not sure which direction I should look for the moment. I want to build a flash website where it has the visa and mastercard validation and people would be able to buy it from there.
Any advices and suggestions would be very appreciated. Thank you!
Check Site For Errors Please
Ok i have never made a website so this is the first time. I have a huge intro movie on the main page. If you scroll down it says. Dial-up users click HERE to view my invention. Watch the intro and tell me how long it loads on your connection speed. and then go back and click HERE on the main page for dial up and tell me if there is any problems there. Thanks. Let me know if you see anything you like
XML Object Load() Errors
If onLoad returns false (as in this sort of thing):
ActionScript Code:
myXML.load("myxml.xml");
myXML.onload = function(success:Boolean) {
trace(success)
}
Is there any way to get Flash to tell you why?
I have an XML parser that works in the IDE and works when run on the webserver, but does not load the XML file when the .swf file is just dragged and dropped into the browser.
Curiously enough, another flash file that I have with exactly the same code works just fine.
Site That Shows How To Load Flash Into Frontpage With No Coding
In my quest to learn how to load my Flash files into Frontpage I got alot of instant help from you guys and I thank you. I just ran across a site that shows you how to do it by a controller in Frontpage, no coding needed. Happy to be able to give back to the community just in case someone else needs this.
http://www.flashbuttons.com/tutorial...age/index.html
Lots Of Masks Vs Lots Of Images-speed
i am building a sidescrolling advergame with a lot of images in the background that need to disappear to reveal other images. i am realizing that i am not performing at my max framerate. would my game go faster if i:
have one large underlying image and about 30 small images (each in its own movie clip) on top of it that dissapear to reveal the bottom image.
or
have two large images, and use multiple mask movie clips that hide the top image and gradually reveal the bottom image.
i am opperating at low quality
remember, this advergame scrolls and has a ton of extra stuff going on at the same time.
heres more detail if you want to know more about it:
in the game a player collects dance icons and when the player presses a key the character does a dance and images of a boring or drab background are converted into an exciting dance club background. the total background is about 2400 pixels wide, but things are set up so that only the stuff appearing in the background that is supposed to be onscreen is actually there.
thanks
jason oda
starvingeyes.com
Errors When Movie Is Viewed On A Web Site
I can't seem to work out what is causing this error
go here http://www.geocities.com/shads575/main1.html
in the bottom left corner of internet explorer it says done but with errors
Line :2
Char: 29
Code: 0
URL: http://www.geocities.com/shads575/main1.html
did i publish the movie wrong?
or is it something else with that web server because i have other pages that aren't in flash on that site and i get those kind of errors
thanks
Brazilian Bikini Site. Swf Loading Errors
I have images and thumbs that load for viewing in one swf file. I then have a basic index page with links that should load the desired .swf files into the swf_mc placeholder. When executed the swf loads, the animation plays but no images or thumbnails appear. I'm attempting to build a simple site for my friends bikini company. I've been trying to get this to work for almost two weeks. The code is listed below. Any help is extremely appreciated. If needed, I can email the swf files so that you can see exactly what's happening. Also, there are a some real good bikini pics on the gallery swf to enjoy.
Thank You,
Rob
This is the code for the swf that contains the image gallery. This is what is called to load into the main page. It contains a short intro animation then the thumbnails load::::::::::
stop();
_root.createEmptyMovieClip("imageFrame",10002);
imageFrame.thumbDepth = 1000;
imageFrame.xStart = 40;
imageFrame.yStart = 40;
imageFrame.xGutter = 8;
imageFrame.yGutter = 8;
imageFrame.imageWidth = 60;
imageFrame.imageHeight = 90;
imageFrame.imageData = new LoadVars();
imageFrame.imageDisplayDepth = 55555;
imageFrame.thumbRollOver = function() { this._alpha = 99; };
imageFrame.thumbRollOut = function() { this._alpha = 60; };
imageFrame.thumbSelected = function() {
showImage(this.imagePath);
}
imageLoadBar._visible = false;
function showImage(targetImage) {
imageLoadBar._visible = true;
imageLoadBar._yscale = 1;
imageFrame.imageDisplay._alpha = 0;
createEmptyMovieClip("looper",Depth++);
looper.onEnterFrame = function() {
if ( imageFrame.imageDisplay.getBytesLoaded() > 0 ) {
var percentLoaded = imageFrame.imageDisplay.getBytesLoaded()/imageFrame.imageDisplay.getBytesTotal();
imageLoadBar._yscale = 100*percentLoaded;
if ( imageFrame.imageDisplay.getBytesLoaded() == imageFrame.imageDisplay.getBytesTotal() ) {
imageLoadBar._yscale = 100;
imageFrame.onEnterFrame = function() {
this.imageDisplay._alpha += 6;
if ( this.imageDisplay._alpha >= 99) {
imageFrame.onEnterFrame = null;
}
};
this.removeMovieClip();
}
}
};
imageFrame.imageDisplay.loadMovie(targetImage);
}
imageFrame.createEmptyMovieClip("imageDisplay",ima geFrame.imageDisplayDepth);
imageFrame.imageDisplay._x = imageLoadBar._x = 400;
imageFrame.imageDisplay._y = imageLoadBar._y = 21;
imageFrame.imageData.onLoad = function() {
for ( var x = 1; x <= this["totalimages"];x++) {
var tempPath = String(this["image" + x]);
var thumbPath = "images/" + tempPath + "s.jpg";
var imagePath = "images/" + tempPath + "l.jpg";
var thumbFrame = imageFrame.createEmptyMovieClip("thumb" + x,imageFrame.thumbDepth++);
var thumbHolder = thumbFrame.createEmptyMovieClip("holder",imageFram e.thumbDepth++);
thumbFrame.holder.loadMovie(thumbPath);
thumbFrame._x = imageFrame.xStart + ((imageFrame.imageWidth + imageFrame.xGutter)*((x-1) % 2) );
thumbFrame._y = imageFrame.yStart + (Math.floor((x-1)/2) * (imageFrame.imageHeight + imageFrame.yGutter) );
thumbFrame.imagePath = imagePath;
thumbFrame.onRollOver = imageFrame.thumbRollOver;
thumbFrame.onRollOut = imageFrame.thumbRollOut;
thumbFrame.onRelease = imageFrame.thumbSelected;
thumbFrame._alpha = 80;
}
};
imageFrame.imageData.load("images/images.txt");
:::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::: ::
This is the "Gallery" button code that's on the main page. When it's released, the above page should load into the "swf_mc" located on the main page:::::::::::::::::::::::::::::::::
on (release) {
swf_mc.loadMovie("gallery_swf.swf");
}
:::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::: ::
IE7 Displays Image Errors After Adding Flash To Site
Hi everyone, im new to Flash and have a mager issue with my site. before I added Flash to my site everthing displayed fine, both in IE7 and FireFox, but ever since i placed a flash header on my index page all have gone tits up. the site will display fine in IE untill i allow the ActiveX dedection script for flash. Im using the script that flash auto produces. Like i said im new to flash and have no idea what the hell is going on, or how to fix it, so pleeeeese can you help
Are There Any Sites With Lots Of Flash Tuts On Building A Flash Site?
I'm basically looking to build a flash site. All the tut sites I've found have stuff for games, 3d, animation, and other things like that. I'm just looking to make a site. So does anyone know a good tut site for only flash sites, I know there are lots of parts to it but mostly I'm looking for only the things for flash sites. Thanks in advance.
Xml Markup Still Showing Up
i'm trying to load an xml file into my flash file but each time i load the xml into the flash, the xml markup is still there.
here is the fla and xml file
http://www.whathedale.com/kirupa/home.fla
http://www.whatthedale.com/kirupa/text/update.xml
thanks in advance.
dale tan.
Markup Tool
Hi
I am developing an application called markup. This allows a user to markup on pages/content he is viewing….my markup application has one tool bar and one markup area ….
What I want is to have different makrup areas for different pages in a presentation.
How I m doing this…
in a master file /base file I load this markup swf and the presentation swf….my markup is works fine if there is only one page in the presentation…but if there are more than one my markup objects are visible in the second page also…but I want separate markup regions for separate pages..
please help me..
thanks
shan
Xml Markup Still Showing Up
i'm trying to load an xml file into my flash file but each time i load the xml into the flash, the xml markup is still there.
here is the fla and xml file
http://www.whathedale.com/kirupa/home.fla
http://www.whatthedale.com/kirupa/text/update.xml
thanks in advance.
dale tan.
Namespaces In Xml For Html Markup
hi, we have an xml file we will be loading into a project. The xml will be littered with AS3 friendly styling (inline) but we were hoping to avoid the ugly CDATA--ie:
Code:
<![CDATA[<p>This is text</p>]]>
The approach we are hoping to accomplish would be declaring a namespace in the xml:
Code:
<pages>
<page>
<content xmlns:h="http://www.w3.org/1999/xhtml">
<text targetid="1">
<h:font color='#ffffff'>This text</h:font>will go into the box with id of 1.
</text>
<text targetid="2">
This text will go into the box with id of 2.
</text>
</content>
</page>
</pages>
i know there is a Namespace class, but i am not sure how to tie the two together....can someone give me a lead? I have read this , but it does not lead me to the connection with how this MAY work with html...if at all.
Using Web Standard Markup In Flash
Hello,
Simple question: I have numerous transitional xhtml pages marked up and ready to go. The code is basic but uses a few tags that are not recognized in Flash via HTML import- <h1>, <div> etc. Is there a best practice method for using this code without having to "dummy" down the code for use in Flash? Is there any advantage to importing the xhtml pages as XML and going that route or will I have the same problem?
Thanks,
Bob
XML Text Displaying Markup
We are encountering an intermittent issue where the markup and tags that we are reading in from an xml file are being displayed. This problem occurs randomly for some and not at all for others. Has anyone experience this issue and have any insight?
Flash Markup Language
hey,
anyone out there know's anything about flash markup language? Just saw it at work at http://www.sukima****a.com. Thanks.
Flash Inventing Nonexistent Markup <li>
Hi There--
Have put together a site where textfields are imported using the loadVars command.
Here it is:
http://grasshpr.home.mindspring.com/...ernate1_3.html
Here's the entire folder, which includes the textfiles and the fla:
http://grasshpr.home.mindspring.com/shinnAlternate1
The problem is that on some of the textfiles, Flash is adding markup where there isn't any, in the form of list dots. The kind you get when you put <li> in front of a line. (It probably won't do it for you. Flash just wants to drive me crazy. (It's succeeding.))
This only occurred in the last iteration of the design.
It's occurring on both of the computers I have access to, so it's something in the file.
Since this is the first time I've imported text, I'm utterly clueless as to what could be making this happen.
Has this happened to anyone else? If so, how did you solve it?
Any insight will be vastly appreciated.
Thanks for reading this,
Lee
Unwanted HTML Markup In Text Box Value
I've inherited a Flash MX 2004 document that has some text entry points that verify you've entered the right text before continuing or provide you a warning message and urge you to try hard. They're set up like so:
Code:
on (keypress "<Enter>")
{
if (titleInputText == "hoped-for text entry")
{
gotoAndPlay("someNamedTarget");
}
else
{
comment = "Hey--enter hoped-for text entry to continue!";
}
}
Some of them just weren't behaving at all correctly. With some handy-dandy trace() statements, I found that a few of them were returning values that included HTML formating of the text. Instead of getting
Code:
something entered
I was getting
Code:
<FONT = "Arial">something entered</FONT>
which is causing me all sorts of problems. How on earth can I turn off the HTML tags? Where did it come from?
(Why, yes, I do know just enough to get myself in trouble. Why do you ask?)
Any help would be greatly appreciated on this.
My Flash Variables Contain Html Markup?
am using actionscript below to post variables to cgi script:
stop();
avertissement = "";
t_name.text = "";
t_email.text = "";
t_phone.text = "";
t_comments.text = "";
recipient ="user@domain_name.com";
subject="Enquiry from website";
bt_submit.onRelease = function() {
if (t_name.text == "") {
avertissement += " name";
}
if (t_email.text == "") {
avertissement += " email adress";
}
if (t_comments.text == "") {
avertissement += " comments";
}
if (avertissement !== "") {
t_status.text = "Please fill in these fields : "+avertissement;
avertissement = "";
} else {
loadVariablesNum("cgi-bin/nms_formmail.pl", 1, "POST");
t_status.text = "";
nextFrame();
}
};
bt_clear.onRelease = function() {
avertissement = "";
t_name.text = "";
t_email.text = "";
t_phone.text = "";
t_comments.text = "";
t_status.text = "";
};
The flash variables are sent to the script which generates an email message but the variables seem to come with html markup. Here is what comes in the email:
Below is the result of your feedback form. It was submitted by (<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#666666" LETTERSPACING="0" KERNING="0">test@test.com</FONT></P></TEXTFORMAT>) on Thursday, May 10, 2007 at 17:31:17
---------------------------------------------------------------------------
comments: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#666666" LETTERSPACING="0" KERNING="0">test message</FONT></P></TEXTFORMAT>
phone: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#666666" LETTERSPACING="0" KERNING="0">000 555 3430343</FONT></P></TEXTFORMAT>
name: <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Arial" SIZE="14" COLOR="#666666" LETTERSPACING="0" KERNING="0">test name</FONT></P></TEXTFORMAT>
---------------------------------------------------------------------------
The same script works fine with html, have been searching everywhere trying to find a solution but everything I try either doesn't work or still sends variables with markup??
Any ideas??
Retaining Markup Tags In HtmlText Fields
Is it possible to wrap an XML object so that it's element tags are preserved (not parsed) if it populates a text field as htmlText? I'm trying to use XML in an htmlText field where other (non-XML) text is styled using CSS. I get the results I'm looking for (except for the CSS) when I populate the text field as plain text (not htmlText).
I tried wrapping the XML in a <![CDATA[]]> tag, but that too was parsed when used as htmlText.
Any ideas?
Lots And Lots Of Layers...too Many?
Here's a question that probably has a simple answer...
When I've viewed a few .FLA files that have been sent to me, or are used in tutorials, I look a the time line and there are very few layers although the movie may have quite a bit of effects. I always seem to have a lot of layers. Are there ways to combine layers once the work is completed on those layers? Is there something I'm overlooking or not aware of?
Thanks
Lots Of MCs, Lots Of Frustration
I'm writing a small simulation that's dealing with a large number of small MCs that are dynamically created.
I also need to run a hitTest that checks whether any clip is in contact with any other clip.
code: function Hitdetect() {
for(i=0; i<=100; i++) {
if(this.hitdetectMC.hitTest(_root["character"+i])) {
proximity ++;
}
}
}
proximity is a variable inside each instance of the character MC.
The problem I have is that I need to create another function, Spawn, that creates another instance of the original character MC. The problem is, I don't know the best way to assign a name and depth to the newly created MC considering that some of the MCs will be deleted based on their own code.
Can someone suggest a way of storing the identity of the created movie clips?
I considered using an array to store the IDs of the instances, but everytime a new clip is created, the array will end up getting bigger and bigger, and the scanning of that array will end up slowing the whole processing down.
Dreamwever Site With Flash, FLash No Longer Shows Up
hello everyone-
ive really searched for an answer to my issue, but i cant find out what is wrong. i do light work in Dreamweaver, last year i created a site for my aunts company in MX, Flash and Dreamwever, everything was working fine.
I upgraded to the new Dreamweaver and FLash 8. I just did a update in the wording on the index.html page, since then the flash logo that was on top, it just kind of fades in, it hasnt been working. like it doesnt even exist on the real web, but it shows up with i press F12 and go about it that way. im so confused.
does anyone have any ideas? the comptuer's all have the latest flash player and all that installed. im not a big flash or dreamwever person, so im really lost...
thanks,
-Josh`
Solution To Dealing With Loader Errors (not URLLoader Errors)
Related post:
http://board.flashkit.com/board/showthread.php?t=738745
The biggest issue I have been having was when there was no custom portal icon. There would be a URL error thrown. After many google searches, I always ended up with error catching that worked with URLLoader imports. They didn't work for me.
As it turns out Loader imports (like picture and such) have a different way of posting errors:
code:
var loader:Loader = new Loader();
configureListeners(loader.contentLoaderInfo);
private function configureListeners(dispatcher:IEventDispatcher):vo id {
dispatcher.addEventListener(Event.COMPLETE, completeHandler);
dispatcher.addEventListener(HTTPStatusEvent.HTTP_S TATUS, httpStatusHandler);
dispatcher.addEventListener(Event.INIT, initHandler);
dispatcher.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); // the one i needed
dispatcher.addEventListener(Event.OPEN, openHandler);
dispatcher.addEventListener(ProgressEvent.PROGRESS , progressHandler);
dispatcher.addEventListener(Event.UNLOAD, unLoadHandler);
}
And with this i fixed all bugs.
Thanks to every one that helped.
Object To Store Site Settings
I have developed a Flash site that loads variables from MySQL for Basic configuration, positioning and fonts. I am having issues though considering sometimes the variables don't load completely before the symbols load, so they do not format correctly. I have been trying to develop a system to assure the variables load correctly before the site loads. I currently have 3 frames, 1 for Information, 2 for Positioning and the last for Fonts. When the first page loads, it goes to the next, and then after that page loads, it goes to the next, and then after the last loads it goes to frame 5 where the site is.
I have been storing the loadInformation variables in Objects so I can access them throughout the movie. However, I am still having loading issues. What technique(s) can I use to assure a successful load?
Frame 1
// Site Type ("premium", "demo", "free", "resellers")
siteType = new Object();
siteType.special = "premium";
// LoadVars
sendInformation = new LoadVars();
loadInformation = new LoadVars();
sendInformation.page = "info";
ColorObject = new Object();
InformationObject = new Object();
mainAlpha = new Object();
sendInformation.sendAndLoad("PHP/Select.php", loadInformation);
loadInformation.onLoad = function(infoLoad) {
ColorObject.border_Color = loadInformation.border_Color;
ColorObject.background_Color = loadInformation.background_Color;
ColorObject.foreground_Color = loadInformation.foreground_Color;
mainAlpha.aa = loadInformation.transparency;
InformationObject.copyright = loadInformation.copyright;
InformationObject.newsTitle = loadInformation.newsTitle;
InformationObject.eventsTitle = loadInformation.eventsTitle;
InformationObject.galleryTitle = loadInformation.galleryTitle;
InformationObject.aboutTitle = loadInformation.aboutTitle;
InformationObject.storeTitle = loadInformation.storeTitle;
InformationObject.contactTitle = loadInformation.contactTitle;
InformationObject.mp3 = loadInformation.mp3;
InformationObject.logo = loadInformation.logoUrl;
InformationObject.backgroundImage = loadInformation.backgroundImage;
InformationObject.headerImage = loadInformation.headerImage;
InformationObject.contentImage = loadInformation.contentImage;
InformationObject.guestbookImage = loadInformation.guestbookImage;
InformationObject.mp3Image = loadInformation.mp3Image;
InformationObject.menuImage = loadInformation.menuImage;
InformationObject.outImage = loadInformation.outImage;
InformationObject.overImage = loadInformation.overImage;
InformationObject.backgroundEnable = loadInformation.backgroundEnable;
InformationObject.headerEnable = loadInformation.headerEnable;
InformationObject.contentEnable = loadInformation.contentEnable;
InformationObject.guestbookEnable = loadInformation.guestbookEnable;
InformationObject.mp3Enable = loadInformation.mp3Enable;
InformationObject.menuEnable = loadInformation.menuEnable;
InformationObject.outEnable = loadInformation.outEnable;
InformationObject.overEnable = loadInformation.overEnable;
if (loadInformation.skins == "false") {
siteType.skins = false;
} else {
siteType.skins = true;
}
globalStyleFormat.background = ColorObject.foreground_Color;
globalStyleFormat.selection = ColorObject.background_Color;
if(infoLoad){
statusText.text= "1. Settings loaded successfully.";
for(var Setting:String in InformationObject){
statusText.text+= "
"+Setting;
}
stop();
//gotoAndStop(2);
}else{
statusText.text= "1. Could not load settings. Check database connection.";
stop();
}
};
Frame 2
sendPositioning = new LoadVars();
loadPositioning = new LoadVars();
sendPositioning.page = "positioning";
PositioningObject = new Object();
sendPositioning.sendAndLoad("PHP/Select.php", loadPositioning);
loadPositioning.onLoad = function(positionLoad) {
preloadFunction(loadPositioning, "Element Positions");
PositioningObject.content_x = loadPositioning.content_x;
PositioningObject.content_y = loadPositioning.content_y;
PositioningObject.guestbook_x = loadPositioning.guestbook_x;
PositioningObject.guestbook_y = loadPositioning.guestbook_y;
PositioningObject.mp3_x = loadPositioning.mp3_x;
PositioningObject.mp3_y = loadPositioning.mp3_y;
PositioningObject.header_x = loadPositioning.header_x;
PositioningObject.header_y = loadPositioning.header_y;
PositioningObject.logo_x = loadPositioning.logo_x;
PositioningObject.logo_y = loadPositioning.logo_y;
PositioningObject.copyright_x = loadPositioning.copyright_x;
PositioningObject.copyright_y = loadPositioning.copyright_y;
PositioningObject.login_x = loadPositioning.login_x;
PositioningObject.login_y = loadPositioning.login_y;
PositioningObject.skinNavi_x = loadPositioning.skinNavi_x;
PositioningObject.skinNavi_y = loadPositioning.skinNavi_y;
PositioningObject.skinHeader_x = loadPositioning.skinHeader_x;
PositioningObject.skinHeader_y = loadPositioning.skinHeader_y;
if(positionLoad){
statusText.text+="
2. Elements positioning loaded successfully.";
gotoAndStop(3);
}else{
statusText.text+= "
2. Could not load element positioning. Check database connection.";
stop();
}
};
Frame 3
//LoadVars
sendFonts = new LoadVars();
loadFonts = new LoadVars();
sendFonts.page = "fonts";
var tfHeader = new TextFormat();
var tfHeading1 = new TextFormat();
var tfHeading2 = new TextFormat();
var tfBody1 = new TextFormat();
var tfBody2 = new TextFormat();
var tfOver = new TextFormat();
var tfOut = new TextFormat();
sendFonts.sendAndLoad("PHP/Select.php", loadFonts);
loadFonts.onLoad = function(fontsLoad) {
// Header
tfHeader.font = loadFonts.font_Type;
tfHeader.size = loadFonts.header_Size;
tfHeader.bold = loadFonts.header_Bold;
tfHeader.italic = loadFonts.header_Italic;
tfHeader.underline = loadFonts.header_Underline;
tfHeader.color = loadFonts.header_Color1;
tfHeader.align = "left";
// Heading1
tfHeading1.font = loadFonts.font_Type;
tfHeading1.size = loadFonts.heading_Size;
tfHeading1.bold = loadFonts.heading_Bold;
tfHeading1.italic = loadFonts.heading_Italic;
tfHeading1.underline = loadFonts.heading_Underline;
tfHeading1.color = loadFonts.heading_Color1;
tfHeading1.align = "left";
// Heading2
tfHeading2.font = loadFonts.font_Type;
tfHeading2.size = loadFonts.heading_Size;
tfHeading2.bold = loadFonts.heading_Bold;
tfHeading2.italic = loadFonts.heading_Italic;
tfHeading2.underline = loadFonts.heading_Underline;
tfHeading2.color = loadFonts.heading_Color2;
tfHeading2.align = "left";
// Body1
tfBody1.font = loadFonts.font_Type;
tfBody1.size = loadFonts.body_Size;
tfBody1.bold = loadFonts.body_Bold;
tfBody1.italic = loadFonts.body_Italic;
tfBody1.underline = loadFonts.body_Underline;
tfBody1.color = loadFonts.body_Color1;
tfBody1.align = "left";
// Body2
tfBody2.font = loadFonts.font_Type;
tfBody2.size = loadFonts.body_Size;
tfBody2.bold = loadFonts.body_Bold;
tfBody2.italic = loadFonts.body_Italic;
tfBody2.underline = loadFonts.body_Underline;
tfBody2.color = loadFonts.body_Color2;
tfBody2.align = "left";
// Over
tfOver.font = loadFonts.font_Type;
tfOver.size = loadFonts.button_Size;
tfOver.bold = loadFonts.button_Bold;
tfOver.italic = loadFonts.button_Italic;
tfOver.underline = true;
tfOver.color = loadFonts.button_Color1;
tfOver.align = "center";
// Out
tfOut.font = loadFonts.font_Type;
tfOut.size = loadFonts.button_Size;
tfOut.bold = loadFonts.button_Bold;
tfOut.italic = loadFonts.button_Italic;
tfOut.underline = true;
tfOut.color = loadFonts.button_Color2;
tfOut.align = "center";
// Components
globalStyleFormat.textFont = loadFonts.font_Type;
globalStyleFormat.textSize = loadFonts.body_Size;
_root.gotoAndStop(loadInformation.home);
if(fontsLoad){
statusText.text+="
3. Fonts loaded successfully.";
gotoAndStop(5);
}else{
statusText.text+= "
3. Could not load fonts. Check database connection.";
stop();
}
};
Loading Quicktime VR Object In To A Flash Site
Hi Everyone,
Once again I turn to the wonderful people on Flashkit to help....
I have attached a source file to look at..
I have a containerMC ("container") that I want to load a quicktime object into, is this possible? If so, what am I missing, or is there a better way to do so?
Thanks In Advance!!
Freshly
How To Place A Flash Object In A Html Site?
hi everyone!
i got a question: how can you place a flash object in a html site?
i thought it was done with <embed></embed> tags,
but it wasn't!
can someone help me out?
thnx
greats, michael
Creating A Link To Another Site In A Object Instead Of Text Field
Hi all, I havent been here in a while, Ive been lerning some php, anyways I want to create a link to another site. But the catch is that I dont want to do it in a text field but unstead on an object. So basically I want to click on a image and it take the user to a new site. Any thoughts?
Lots Of MC's
Is it possible to create lots of MovieClips?
For example, 100 -- each showing the same
fixed figure, but each in a different location.
I'd like to be able to access each one
and move it and change its alpha,
using a timer or an enter frame event.
Is it possible to have an array of Movie Clips?
A little sample code would be helpful.
Is it possible to create an object that contains
a Movie Clip?
I have programmed for 36 years, from Fortran
to C++. Just started learning Flash 5.
Thanks for the help,
Jeff Bangert
jeff@ukans.edu
I Need Lots Of Help..
I've been sitting down with the project of making a site for my band.. and i might say that it's quite nice but the problem is that I have good ideas, lots of small features that I want to add, but I can't fix it and my patience is starting to run out..
So now I'm praying to someone if I mail the file to a person with a big heart who can say to my buttons how they should work..?
the layout on the page is done but it needs the features..
please help me
Need Lots O Help
hi guys and girls!
not sure if you can help me here, not even sure if its possible but here goes...
im wanting flash to call variables from a txt file called data.txt
im wanting the txt file to be structured similar to somthing like this:
product1001>
col = blue
size = 20cm
weight = 20kg
name = pig
>
product1002>
col = green
size = 70cm
weight = 50kg
name = lion
>
etc
seeing as there are for instance 2 sets of the variable "weight", how can i get flash to look for only product1002's weight?
hope that makes sence
thanks
|