ActionScript 2.0 :: Build A System Where Users (restricted To A Very Few Admins) Can Publish News Articles?
Feb 18, 2012
I'm trying to build a system where users (restricted to a very few admins) can publish news articles. The form is simple enough: an input field for "Headline" (single line) an input field for "article" (multiple line) and a file reference field to include a picture.
The idea is that you can EITHER write a headline and some text and then publish | OR | write a headline, some text then choose a picture and publish.No check boxes - no "would you like to include a picture" - just an idiot proof system where you can wither publish text - or text and a picture on the click of ONE button.
The picture is placed (via php) into the file system on the server, the text for headline and article are pumped into an SQL database (via php). I know php well and can do that bit with no probs but I'm having trouble with the function to pump the vars to the php if the user HASN'T chosen to include a picture.
1) has anyone done this before and if so do you have a "boilerplate" fla / php I could copy and paste into my project ?
2) can anyone see any problems in the code (posted below) which would explain why the upload of pictures always works but the sql insert never works ? On the stage are two input fields and two buttons (obvious names in the code are 'head_txt' and 'art_txt' )
CODE:
import flash.net.FileReference;
var progressBar:MovieClip;
var reference:FileReference = new FileReference();
[code]....
View 3 Replies
Similar Posts:
Mar 1, 2004
I'm trying to make a news system, loaded from XML ... headers dyn created, onreleases ... so far..sorting the xml data (on DATE; xx/xx/xx) and storing it into an array for further violence I just found out something about this:
[AS]
var myArray:Array = new Array();
myArray.push({day: "18", month: "02", year:"04"});
trace(myArray);
[/AS]
View 6 Replies
Mar 1, 2004
I'm wondering if someone could help me with giving me the right direction, I should look for. I'm trying to make a news system, loaded from XML ... headers dyn created, onreleases Now I was wondering if someone could help me with sorting the xml data (on DATE; xx/xx/xx) and storing it into an array for further violence
[Code]...
View 6 Replies
Oct 12, 2009
I need to protect my FMS, so that only me (my Username, or IP if its not possible) can start a live stream. I have been reading the pdf on plugin for developers, and i read that the authorization plugin can do this, but it is C++ and i dont know nothing about that, i can understand a little bit, but i do not know how to make the dll i want. Is there another way to do this, the server requests a user and password when i want to stream.
View 10 Replies
Dec 27, 2010
My client wants to distribute a video to some people, specifically car dealers, but he doesn't want the video to end up on Youtube or something like that. Therefore he wants the recipients of the video to be able to see it only once. My idea to implement this is:Generate a unique key per viewerSend each viewer a link to a page with a Flash based video player, with their key in the URLHave Flash get the video from the server. On the server the key is checked and the file sent (using php's readfile or something equivalent).Then the key is invalidated.I was thinking this wouldn't take more than a day to build.I know that if you want somebody to be able to play something, you implicitly give them the power to record it as well, but the client just wants me to make it as hard as possible.
View 2 Replies
Oct 7, 2005
is it possible to allow the user to select from drop down menu there own fonts installed on there systems?
View 1 Replies
Apr 8, 2011
I've developed a CMS system that allows users to change the textual content and save the changes back to an XML doc.All works fine in English but the writing to the XML Keeps falling over when it reaches a foreign character.. Even when wrapped with the CDDATA tag.The application needs to support users translating the content into different languages.
I'm using zinc to write out the XML string.During runtime all changes are stored back directly to the XML object ( the same one that is loaded at the start and is used to populated the CMS) then I use XML.toString() to create a string variable to pass to zinc to save out the file..
View 2 Replies
Aug 31, 2006
how one might change a site element based on the users computer time? What we are trying to do is change the color of the sky and shade of the buildings in a cityscape scene on a cartoonish style site. If it is 9:00 PM on the site visitor's end, they will see a nighttime colored scene. If it's 7:00 AM, it would be sunrise-ish.
View 3 Replies
Nov 9, 2008
I would like to build a small application in AS3 so that my users can record their voice with microphone.I know there is a Microphone class but I don't know if AS3 allows to record the voice into a file that will be stored on the server.Is that possible to do so only with AS3?
View 2 Replies
Sep 16, 2009
Does anyone know if adobe flash player cache data is available to other users on a system? For example: A user logs onto Windows XP, then uses my adobe flex application... and in the process of doing so downloads the signed flex lib... He then decides to mow the lawn and log off. At about 3pm the same day, his Mum can't hear the TV over the sound of the mower, so she decides to log in using a different XP user account. She proceeds to use the very same flex application. Does she also need to download the flex lib again, or would the data already be cached in the flash player?
View 2 Replies
Feb 17, 2011
I am planning to build a giant management system in Flex 4.0, and I just wanted to know what are some pros and cons of using 4.0 (or 4.2) over 3.5? Lighter components? Faster pipelines? What are some things I can look forward to when using Flex 4.0?
View 2 Replies
Mar 24, 2011
I'm developing an application for the Blackberry Playbook using Flash Burrito 4.5 and Flex. I'd like to create a file browser to allow users to load images from the local system into the application. I followed this example [URL] When I click on the Load Image button in the simulator however, the file browser pops up but tells me that "no file was found with the specified filter", even though I don't specify any filter or even if I specify a . filter.
View 2 Replies
Dec 20, 2010
In this cookbook someone advocates to build own Observer Design Pattern: [URL]
Is it really faster as for performance ?
View 2 Replies
May 12, 2010
I am trying to build a site that would give users the ability to upload a picture to a picture frame on my site. I would like AS3 to dynamically re-size, and upload the file from an upload bar under the frame.
View 1 Replies
Jun 8, 2010
So we want to seacrch for file like exampl*.ex*mple. We want to search in all users files and folders.
I know it will take long, but steel using ONLY AS3MXML, no native commands, no external programms - only AS3MXML libs and classes, we can skeep all folders with sise <= 200kb
So How to search for a file on users file system? (in Air application, NOT NATIVE)
View 1 Replies
May 17, 2010
I am working on the news ticker module (AS2) where I have to fetch news from xml and populate that news headings into four text fields and these 4 headings will stay for a while and fade until last record. this process will continue.
View 0 Replies
Mar 24, 2007
Making an XML news reader based off of senocular Squirrel XML news.
I'm using Fuse and wanted to target the dynamic text and or background portions of the headline section.
However, this movie clip is attached to the menu_mc so I'm stumped as to what I should exactly target for the fuse sequence (or any mx.transition/zigo engine based code-tweening process for that matter).
I've attached the files in a .zip for people to look at (and possibly conquer my problem!
View 3 Replies
Aug 4, 2011
I'm building a Facebook multiplayer game where the client side is in FLEX and the server side is in Java and I wanted to know if there is a guide on how to build the server clients managing system. When I say server clients managing system, I mean a server which many clients will connect to and will be able to choose between tables to join and play or to create their own table, same way as in texas holdem poker.
View 1 Replies
Aug 6, 2010
I'm building my first Flash application. It's a stand alone barcode scanner - the scanner is built-in to the monitor. Basically it has a welcome screen with a video, and at any time you can either scan a product to get product info, or touch the screen for more options (more info, more videos, etc.), respectively.I'm looking for articles, tutorials, etc. that can give me best practices and tips for efficiently designing and organizing it. For example, what's the best way to switch between screens, keep track of which screen is showing, etc.
I've looked all over the web and can't find an article or tutorial on this, and while my app is working, the code is looking pretty spaghetti-ish and I really would like to learn the best way to plan and organize a project like this.
View 1 Replies
Jul 17, 2009
I wanted to add a second news box under the first one and have it pull the first two news items in the xml file and have it displayed on the movie. Currently it is putting the first news item in both news boxes.ction script so that the second box is actually the second "<news> tag". From the tutorial I removed the <info> <author> and <comment> tags.
View 0 Replies
Feb 18, 2009
I would like to ask if there are any articles that explains the overhead added to a flash program when using the Math functions in AS2.0?
View 0 Replies
Feb 16, 2011
Is it possible to make desktop Air application by using HTML/JavaScript and Flash?Actually I want to make an Air app (which is for desktop) by using flash and want to use HTML , javascript and CSS as well.Is it possible ?
View 1 Replies
Jul 2, 2011
I'm trying to start this live broadcasting show throw the free application called "Adobe Flash Media Encoder 3.2", but to start this I would need a serve to start everything. So I decided to experiment with your wonderful "Flash Media Serve 4 :Dev version," before I buy the full version for massive scale of use( to stream live camera.) , but I ran into a problem when I'm in the log in screen console. I can asure you that I typed everything correct from the installation sequence and Im also fallowing this tutorial [URL] when I ran into the login screen this is what I find : an error message saying "Log in attempt has failed.
Please verify your log in information and try again." So that's what I technically do and I get the same message every single time I try. Since I know my password and my username really good , I know im not wrong. But my attempt with server address simes to be the problem. So you guy can know what I'm typing on that text box I type "localhost" without the "".
View 7 Replies
Jun 29, 2009
I have a movieclip (view_mc), I want to scale it in a restricted area.
I have made an IF statement,
when its width and height are less than the width and height of the restricted area, then do scale.
but when it reaches the width and height of the restricted area I can't scale it down.
Here is the code:
view_mc.addEventListener(Event.ENTER_FRAME, on_enter_scale);
function on_enter_scale(e:Event):void
{
[Code]....
View 7 Replies
Jul 7, 2009
I have 2 moveclip called view_mc and restricted and button called btn_scale.
When the user click and drag btn_scale, it resizes the view_mc where the width and height of view_mc dosen't exceed the width and height/2 of restricted area.
I made that. But when view_mc reaches the width and height/2 of restricted area, I can't resize view_mc to be samller. (The btn_scale looks like it's disables and can't use it)
I think some logic is missing. I highlighted the code that is missing some logic.
var clickedX:Number;
var clickedY:Number;
var newScale:Number;
[Code]...
View 1 Replies
Mar 22, 2012
This is specific url blocking.
function pageDomainCheckInit(event:Event):void {
var url:String=stage.loaderInfo.url;
var urlBeginninng:Number=url.indexOf(://)+3;
var urlTermination:Number=url.indexOf(/,urlBeginninng);
var pageDomain:String=url.substring(urlBeginninng,urlTermination);
[Code] .....
View 9 Replies
Jan 26, 2010
I want to be able to pause and resume downloads in my flex application, but I get a RTE when trying to set the Range header.
Error #2096: The HTTP request header Range cannot be set via ActionScript.
I imagine there isn't going to be a work around client side, but expect there is a way you can get a server to change the name for the range header to something else...
View 3 Replies
Nov 14, 2008
I've written a function that restricts user input to just numbers (0-9,.) and stores the input in the associative array, userInput[]. It works but seems inefficient looping through the entire input text string to scrub out invalid characters. Anyone have suggestions for a more efficient approach? Note that a working solution must correctly process mouse or cursor key movements/edits within the input box.
Also, you can see I'm using the KeyboardEvent.KEY_UP event to trigger the processing. The docs seem to indicate TextEvent.TEXT_INPUT is really the proper event for this purpose. I started with TextEvent.TEXT_INPUT but found the event is triggered before the last key pressed is actually added to the instance. The result is that the function was always one characterbehind. Is there an easy way to get the current text in the input box, including the last key pressed, when processing TextEvent.TEXT_INPUT?
View 5 Replies
Mar 29, 2011
Looking for any help you might be able to give me with this one. Recently upgraded from Flash CS3 to Flash CS5 Pro. When I publish a movie produced exclusively with CS5, the resulting SWF will work everywhere but inside my company's highly restricted/locked down network. When I attempt to load the SWF in a browser from within the network, all I get is what appears to be the standard Flash preloader - the 5 little dots that crawl across the middle of the screen.
I've confirmed there's no IE version error, the machines have the newest version of Flash Player; the only difference is the network. What could be preventing the SWF from reaching the browser? Is there any esoteric publishing setting I can use in CS5 pro that I should try?
View 3 Replies
Oct 13, 2011
I have a restricted editable textfield in flash like this:
oField.restrict = "0-9";
To capture changes I attach this listener:
oField.onChanged = function(){
trace(1);
};
Is there a listener to capture the event when a restricted character is entered (e.g. the event when the key "a" is pressed - the field does not change, so onChanged does not fire).
View 1 Replies