ActionScript 2.0 :: Validate The Site With A .swf File?
Apr 26, 2010I know it's possible with checking a variable from the site. But to find an another way to validate the Site with a .swf file.
View 1 RepliesI know it's possible with checking a variable from the site. But to find an another way to validate the Site with a .swf file.
View 1 RepliesI am sending out a standalone player that uses an xml driven image gallery. I need to prevent changes to the xml file to stop images being added to the gallery. I can can password protect the xml file to prevent changes, but I also wondered if there was a way to validate the authenticity of the xml file from within Flash to prevent the entire file being replaced?
View 3 Replies<note>
<to name=hello>ahmad</to>
<from>jhon
[code].....
<note>
<to>ahmad</to>
<from>jhon
[code]....
<note>
<to>ahmad</to>
<from>jhon
<body>hello how are you!!!</body>
</note>
Above is my xml file which have no ending tag of from tag. Which id an error. I want an actionscript code to check if there is a broken tag then fix it automatically. And my code displays the correct xml.
I am opening xml in air application . i need to validate opening xml(Xml need to have specific node), for this some of them telling there is XSD validation on vb and .net , but i need to know, likewise any validation tool is available in Air ?
View 1 RepliesA client of mine have requested a flash logo on their homepage. I have designed one and added the code as I think it should look. But is is not appearing.[URL]
View 1 RepliesI'm trying to embed a .flv file in my site. I encoded it from a PAL .avi using FLME CS4 at the preset values for 'FLV - web small', although I've tried a ton of different sizes, framerates, bitrates, and keyframe distances.However I do it, the video plays nice and smooth in any offline player (WMP, Adobe Media Player, VLC, RealPlayer). Then I embed it into the site with Dreamweaver and preview it in IE8, Firefox and Chrome.
Firefox and Chrome play it beautifully, and IE8 is jittery, jerky and stuttery. It's not horrendous, but it looks like it's running at 12-18 fps instead of 25, and it's noticeable, and it doesn't look natural. Once it's embedded in the HTML it plays the same whether I'm previewing it through Dreamweaver with the .flv on my PC, or I'm getting it off the internet (look for yourself at my 'test' video at [URL] make it play as smoothly in IE8 as it does in the other browsers?
I created a swf that I have on my website. The swf loads xml data. it works fine when I test it locally. But when I upload it to the server, I get a IOErrorEvent().[code]How can I figure out what is causing this error? Driving me crazy...been up from 9am - 5am trying to create this header for the site and now I'm stuck on an XML load error...
Correcting the comment tags fixed my xml loading problem.I then was faced with the images within the xml file not displaying on the screen. When I went to www.mysite/media/myFlash.swf, the images loaded perfectly; however, when i went to www.mysite.com where the 'myflash.swf' was in a the images threw another error.I corrected this issue by changing the file path in the xml...instead of acquainted.jpg I changed it to media/ specials/ acquainted.jpg.
Basically I created a flash site and uploaded it onto the server provider the client chose using cute ftp. That's all fine but now they want to add a link enabling the viewer to download a PDF straight to their desktop. As I can't upload a PDF file to the Flash library, was wondering if anyone had any tips on creating this function?
View 2 RepliesIs it possible to link to a spacific "page" within a flash site much like you can do with a html web site? I want to be able to link to a spacific swf page within my site without going through the entire site to get to the "page" how do I do this using actionscript 2.0
View 2 RepliesI'm trying to embed a swf file on a site. Here a link to the file on a page that works. Example Problem is, I need to place it on a different site (we have two servers) and it's not working once I link to the file on the other server. Below is the code. I've highlighted the part that I changed.
[Code]...
I recently add two flash (.swf) file in to my web-site of selling ink for cartridges, But it seems they are not well embed in the posistion of the web-site front page.
View 8 RepliesI have a site designed in dreamweaver. I inserted an swf file into the dreamweaver site to do the following :The swf allows people donate money through paypal and then return to the main site. I need a step somewhere so that I can disable buttons after the paypal process has occurred. Kglad has suggested that I direct to a new swf file when coming back from paypal. This makes sense, however, do I disable the donate button on the new swf file and if so, how will the actionscript recognise the button instances ?
View 3 RepliesI have a swf file in a php site. It is taking data from php-mysql with connecting to a php file in the database - in the hosting server. So if some user reaches my sfw file and use it in their own sites - how can I prevent them to use my php file and database. Which security step is related with such a problem....
View 5 RepliesIt's seems a stupid question But i am newbie in flash, and just trying figure out how to add some ready done flash element into my flash siteI use Flash CS4, and I have some page located in a Movie ClipI've tried to add by copy movie clip, but it doesn't creates layersI want to add it fully, when page will loaded it's should be works like stand alone
View 1 RepliesI have a project that returns a serial #. I simply need to validate that the serial number has an _ "underscore".
Can anyone provide a sample if statement that will return a bollean if the string has an _ .
I'm looking to validate and email address and I found how to check for a single dot with email_txt.text.indexOf('.') < 0 but I want to also want to check to see if the user may have entered twoI tried: email_txt.text.indexOf('.') < 0 || email_txt.text.indexOf('.') >2 but that makes it puke all of the time.I also tried: email_txt.text.indexOf('.') < 0 && >2 and that one threw all kinds of errors.
View 3 RepliesHow can I validate if atleast one item has been selected from a list, such that the selectedIndices is set to NULL at the init() of application?
View 1 RepliesRecently i made a site with football betting predictions. I then contacted some bookmakers and got the affiliate links . My problem is that my page doesn't validate with the affiliate code in it. Is there any way to "hide" the code so it can pass the validate? Here are 2 samples of the affiliate codes
[Code]....
About the errors well ... there are 2 many. so i will just give you the link of the site (it's still not ready specially the layout so dont't comment anything else :p)
[URL]
I'm trying to come up with the optimal solution for validating IP addresses in Adobe Flex. My current solution is to use a regexp validator and look for dotted quad numbers, see code below. For some reason this will also allow an address like "1.2.3.4.5".
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Script>
[Code] .....
I am having problem making my email form validate emails...
ActionScript Code:
System.useCodePage = true;
var emailData:URLVariables = new URLVariables();
var request:URLRequest;
var loader:URLLoader = new URLLoader();
function sendMail(e:MouseEvent){
[Code] .....
I'm trying to create a function in FMX that validates a field for numbers and letters only, i.e. no special characters. I know how to check for number strings and so on but trying to check for letters in a string?
I used to have a PHP function that did this for my password field (below) and I would like to do something similar in Flash[code]....
I need to create a Flash quiz which validates combo box selections using a 'check answer' button and 'reset' button.On selecting the 'check answer' button an image of a 'tick' or 'cross' needs to be shown at the end of the combo box.
View 1 RepliesI want to load some text data from a third party web site (I guess I need to use URLLoader) but everything I'm reading says the Flash player security will prevent this because it's coming from a different domain.isn't there any way around this? How else could a Flash RSS reader work - you can't possibly get all web site sources to include a cross-domain policy file. I would have to believe there must be some way to load text from an arbitrary URL.
I am an Actionscript newbie - is this is possible,
used external XML files with text for my sites but now i have a special request that i can't make with the code i used till now.i want to have an external xml textfile with ALL the text form my site in it spearated with different tags. exaple:
<?xml version="1.0" encoding="utf-8"?><text> <home> <headline>This is headline</headline> <body>this is the body of the text for the HOME page</body> <footer>this is footer</footer> </home>
[code]......
Another question, how or what do I do to enable a user to download a PDF file?
View 3 RepliesI have a fla file which is loading external swf files from my local folders.I inserted some of the swf files to a web site and tried to load them from the site, not from my local folder...So it gave me a security error like below:
*** Gvenlik Sanal Alan °hlali ***security domain-area violation
http://www.celiktek.com.tr/KIRIL.swf' SecurityDomain esi -- security domain element, 'file:///C|/Users/Acer/AppData/Local/Temp/Untitled%2D1.swf' uyumsuz bağlamına erieye
[code].....
I can use @font-face but it does not work in all browsers.Are there any way to use custom font file in my site ?
View 1 RepliesI have made revisions to my SWF file and only part of the SWF loads. I have included the path for the .FLA
[URL]
I have checked and rechecked the AC_RunActiveContent.js (attempted to update and that failed)
I get this error when I attempt to Run command to update the AC_RunActiveContent.js "At line 5 of file "AC_RunActiveContent.js": ReferenceError: navigator is not defined".