ActionScript 3.0 :: UILoader Won't Display Images From PHP/MYSQL Query?

Jul 24, 2009

I'm working on an online photo catalog, it works in straight PHP/HTML but the photos are too easy to grab (Facebook and myspace are loaded with my photos). I know anything on screen can be grabbed, I just want to make it a little harder.I've got a version of the ordering page with a SWF on it that will hopefully display the photos,but so far no luckHere's the PHP:

<?php
$page = $_GET['num'];
$el = urlencode($_GET["el"]);

[code].......

View 6 Replies


Similar Posts:


ActionScript 3.0 :: Display Results Of MySQL Query From AMFPHP By ArrayCollection?

Feb 18, 2011

i am using Flash CS4 (AS3) + AMFPHP + MySQL to do own flash frontend for Wordpress CMS.  Everything is going fine but i`ve got one problem. Problem with properly display of result of query in AS3 by using ArrayCollection.
 
When i check my service in "amfphp/browser/" in web browser i`ve got this (with all needed data):
 
...
(mx.collections::ArrayCollection)#0
filterFunction = (null)
length = 2

[Code].....

I know that "result" is an ArrayCollection type but i don`t know how to get rows and columns from this. I know that my data is there but i have no idea how to get it.
 
how to get to Arrays and simple data variables which are in ArrayCollection.
 
P.S. I tried also change query type in service.PHP for mysql_fetch_query but in that case i`ve got only one row (not all data).

View 3 Replies

Load And Display Images Provided As A Query?

Sep 14, 2009

I am trying to write a small flash app which will load and display images provided as a query. My flash app works fine when I provide the image path directly in the browser address bar, but it is not working when I do the same using html.Here is the direct link to the flash appThe Html code is attached with the post.I know my app is getting invoked and it appears to work fine when I hardcode the image url into the flash app. But the query method just does not seem to be working!!This is hosted on a linux site supporting php.

View 1 Replies

Php :: MySQL Query Not Working

May 27, 2009

[code]I am not sure whether i am going correct, i am always getting the return value no though i enter the correct username and password.

View 7 Replies

ActionScript 2.0 :: MySQL Query - PHP Array Over To Flash

Oct 30, 2009

I want to pass through an array from php (which queries a MySQL database) to flash.

[Code]....

Can I not use any form of array in php when I sendandload to it from Flash? If so I'm going to be typing a lot of code in the next few days.

View 1 Replies

ActionScript 3.0 :: URLVariables MySQL Query Coming Up Empty

Mar 16, 2011

I'm using a Flash file to make a comments section for my website but every time I hit the button my query only outputs blank fields to MySQL throguh the PHP file.I'm wondering if it's my actionscript or PHP file... and I feel it may be my actionscript because all the rest of the SWL query I put in through PHP functions work.can anybody tell me what's wrong with the way I'm posting variables to my PHP/MySQL?[code]

View 2 Replies

Php :: Create A Query From Flash Builder To MySQL With SelectedItems?

Nov 22, 2010

I am trying to create a query from Flash Builder to PHP/mySQL with selectedItems. I have a simple SELECT query set up to populate a datagrid of items I would like to select for main query (two records looks something like this "19 10","20 10"). This is where I get stuck. I don't know if I need to break down the selectedItems in Flash Builder for formatting in SQL or if I can do it in PHP.

I would assume that it should be done in Flash Builder and I would then send the partial SQL statement to PHP. As of right now, Flash Builder is holding the selected values as CustomObjects and I unsure of how to retrieve what is in the objects for formatting.

var arr:Array = dataGrid.SelectedItems

This yields an array of CustomObjets and I lost from there.I will need the resulting SQL statement would need to look something like this.

SELECT *
FROM Stats
WHERE neu IN ('19 10','20 10');

View 1 Replies

Professional :: Passing The Result Of A Mysql Query To The Flash Banner?

Apr 15, 2010

i wish to do something similar to what is shown on the top banner of this website [URL] like passing the result of a mysql query to the flash banner.

View 1 Replies

ActionScript 3.0 :: Populating A Datagrid With Some JSON Data That Came From A Mysql Query?

Mar 5, 2012

I'm populating a datagrid with some JSON data that came from a mysql query.I was wondering if it's possible to tell a piece of JSON data to go to a column other than the name it has?My JSON data comes in with abbreviated names...

[{"gID":"Rock","vID":"Darby's Pub","gRec":"Yes"}]

and I load it into my dataGrid's data provider...

myDG.dataProvider = new DataProvider(myJSON);

Currently, my columns have to be named...

gID, vID, and gRec

for the above data to be populated.Is it possible to have more meaningful column names, while keeping the abbrieviated form in the JSON data? eg...

GIG STYLE, VENUE, CAN BE RECORDED

or do I have no choice but to make the full names a part of the JSON like...

[{"GIG STYLE":"Rock","VENUE":"Darby's Pub","CAN BE RECORDED":"Yes"}]

View 5 Replies

ActionScript 2.0 :: Pass Variables To Php Then The Php Runs A Query From The Mysql Database

Jul 28, 2011

I want to pass variables to php, then the php runs a query from the mysql database, and then sends back the new variable... I looked for tutorial, but nothin' seemed to work.

[Code]....

View 2 Replies

ActionScript 2.0 :: Display Data From MySQL And Display In A Dropdown Box,text-field?

Oct 21, 2009

I am a complete rookie in ActionScript2.0/Flash.I just started learning regarding a project. My problem is I want to display data from MySQL in a DropDown Menu in Flash. the SendAndRecieve functionality only aids us to receive any responses,right?(Please correct me If I am Wrong.

View 2 Replies

Getting Uiloader Blurry Images

Mar 16, 2011

JPG images saved in Photoshop in highest quality gets blurry when loading them dynamically through uiloader in Flash. Why, how can I maintain highest quality?

View 1 Replies

IDE :: UIloader Can't Find Images

Nov 27, 2009

I am building a site in Flash cs4 and I'm a the part where i want to add my photos so I have inserted a UIloader to load my images and I have set the UIloader to pull from the images folder and it just keeps giving me an error message cant find images which I cant understand why cause the Fla file is in the same folder as the images,here's the part I really cant understand if I rename the images without numbers then it finds a couple of them???? I have always done it this way in the older versions and I know it works in the new version I have spent hours trying to find out why and have asked many people and they cant tell me why.

View 1 Replies

ActionScript 3.0 :: Link URL's To Images In Uiloader?

Oct 28, 2010

I've got a flash page where a uiloader uses 10 different images.  Wondering if I can assign a url to each image so that when they load, the viewer could click to follow the link.

View 1 Replies

ActionScript 3.0 :: Centering Images In A UILoader?

Oct 8, 2009

I am using ActionScript 3 in Flash to load images into a UILoader. There is a bay of thumbnail images, which are all movie clips. When one of these movie clips is clicked, AS3 calls a larger image to display in the UILoader. All of these images are narrower than the UILoader, some very much so, and they all have different widths for the most part.I would very much like for these images to be centered within the UILoader and (obviously) am unsure of how to go about doing it. If it would be possible for them to be both horizontally and vertically centered, that would be ideal, as they are also of varying heights.

View 3 Replies

ActionScript 3.0 :: Swapping Images In Uiloader Using Code?

Jun 17, 2010

I'm working in flash Cs4 and I just learned cash and I'm wondering if there's a way to use the Uiloader to load multiple images and have them change every couple of secondes like msn or actionvillage. This is my code so far:

next_btn.addEventListener(MouseEvent.CLICK, nextImage);
var imageNumber:Number = 1
function checkNumber():void

[code]....

I have buttons below my uiloader that changes the images when you click on the manually but when you don't click on the arrows I would like the images to change automatically.

View 3 Replies

ActionScript 3.0 :: (CS5) UIloader Won't Pull Up My Images In Dreamweaver?

Oct 8, 2010

I am creating a very simple gallery in Flash CS5 (I'm not sure which AS, possibly 3.0? how do I check this?) and everything works great in Flash when I test the movie. The gallery has six thumbnails that when clicked bring up a larger image above. However, when I import this into Dreamweaver, the thumbnails appear and have the invisible buttons but the larger image does not come up when the thumbnails are clicked on.

As I mentioned before, I have a very brief knowledge of Flash. I was wondering if this is a naming error on my part? Or if it possibly had to do with the trace statement (I'm not exactly sure of the purpose of these besides showing up in the output panel--). I have a feeling that the tutorial I was watching to create this did not provide all of the information needed, but then again, how would I know?

I've included my AS, but I wasn't sure how to attach my .fla file--I saw other people including links, but wasn't sure how that was done.

Actionscript Code:
/* Click to Load/Unload SWF or Image from a URL.Clicking on the symbol instance loads and displays the specified SWF or image URL. Clicking on the symbol instance a second time unloads the SWF or image.Instructions:1. Replace[code].....

View 1 Replies

Actionscript 3.0 :: Change Where UIloader Displays Images?

Jan 17, 2009

Whenever I load images into a UIloader they display from the upper left hand corner. Is it possible to make is so they display from the upper right hand corner?

View 2 Replies

PHP :: Display Query Results Back To Flash Via AS3

Apr 23, 2010

I've made a query in PHP, and I'm trying to send the results back into Flash via AS3, but it's throwing up this error...

Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
at Error$/throwError()
at flash.net::URLVariables/decode()
at flash.net::URLVariables()
at flash.net::URLLoader/onComplete()

Here is the relevant part of the PHP and AS3 code, including the query. The Flash variable rssAdd is passed over to the PHP which is using it in the PHP query accordingly.
$url = $_POST['rssAdd'];
$query= SELECT title
FROM Feed
WHERE category = (SELECT category
FROM Feed
WHERE url =$url) AND url!=$url;
$result = mysql_query($query);
echo $query;

Here is the AS3 code I've done so far.
function recommendation(){
var request:URLRequest = new URLRequest("url");
request.method = URLRequestMethod.POST
var recVars:URLVariables = new URLVariables();
[Code] .....

View 2 Replies

ActionScript 3.0 :: Dynamically Loading Images Via UILoader Component

Apr 20, 2009

I am trying to dynamically load images through the UI Loader component. Attached are the errors I get, and although I think that the coding is close to correct, when I publish, it just flashes up then restarts the movie...
Attachments: Picture 1.png (84.0 K)

View 1 Replies

ActionScript 3.0 :: Resize External Images Loaded Into UiLoader?

Aug 18, 2011

Please help I've been researching this topic for like 2 days straight and it is driving me insane because I can't seem to find a specific answer for what I'm trying to achieve and I know it can be done because I've seen end results on the web. Here is what I'm doing:

1. I created a simple museum gallery with 3 portraits hanging on the wall
2. Inside the museum portraits I created 3 different uiLoaders with a black background
3. I gave all 3 uiLoaders their own unique movieClip names
3. Inside each uiLoader will be a loaded external image via a URL
4. I DO NOT want to resize the uiLoaders - I want to scale the external images proportionately to fit inside the entire contents of the uiLoaders and still remain centered

URL...As you can see currently the 3 random external images are loaded perfectly inside the uiLoaders but you see black background and I want the photos to fit the entire contents of the uiLoaders yet still remain proportionate.[code]

View 6 Replies

ActionScript 3.0 :: UIloader With Autoresize Is Pixelating Loaded Images On Different Resolutions?

Jul 1, 2010

My publish settings are Flash Player 9 with Bottom up Load order, and the Size of the stage has been set to 900x561.The HTML is published to load the SWF file as 100%x100% Additionally I added the following to the HTML Headers to disable scrollbars:

<STYLE TYPE="text/css">
<!--
body {overflow:hidden}
-->
</STYLE>

I writing the movie with AS3, and I am building a 4 image, gallery.I have 4 Adobe UIloader components that are side by side and have arrows that allow you to browse the images back and forth. The UIloader is configured to auto-resize the images that it loads.The UI Loader Size Is:

W: 175.0
H: 264.0

I am using an XML file to hold image info and I use an URLLoader to import the data into an array which is then feed to the UIloader to load via URLRequest().

Here is my AS:

// Stop the timeline
stop();
// Import functions

[code]....

I first created an image that is the exact dimensions of the URLLoader and it looks OK but somewhat pixelated 1024x768 but on larger resolutions the images are very pixelated. So I created a picture that was 1024 x 1542 and again this looks OK on larger resolutions but is horrible on smaller resolutions.

View 1 Replies

ActionScript 3.0 :: Apply Drop Shadow To UILoader Images In Flash?

Jun 2, 2011

I am trying to make a xml based portfolio in Flash CS5.  I want to use a UILoader to load external images, but I want the images to have a drop shadow when displayed.  I tried saving the image with a drop shadow in Photoshop with a .png format.  When it was uploaded the image didn't show the drop shadow and had jaggy edges.  Normally I use a filter in Flash but the option isn't available for the UILoader object. if there is a way my images can be displayed with a drop shadow, otherwise I will do without.

View 1 Replies

ActionScript 3.0 :: Load Images In UILoader That Have Arabic Files Names

Jul 24, 2009

I have a UI loader that loads images (arabic file names) from folder based on some user input. The images loads fine when i'm opening the SWF file, but when it's on an HTML page, the files' names are encoded some how and then not loaded. When I write the full path of an image in the browser's address bar, the image opens fine. Is there away I can keep the file names in arabic, and make them load when the swf object in an HTML page?

View 5 Replies

Professional :: Why Flash Don't Display Data Query Send From Php File

Mar 24, 2011

Why flash don't display my data query send from a php file that use the $_GET to retrive the information and run a query to display the result back to flash.but when I change the $_GET variable in the php file for a static value let's say (2), flash display the data that was requested in the php query..with $_GET I get in flash undefined with "2".I get in flash the data requested...

View 12 Replies

Flex :: Display Result Of Query To Custom Cell Of DataGrid?

Dec 14, 2011

I followed this guide to display data from mysql database:But what to do if i have datagrid like this:

<mx:DataGrid id="dataGrid" width="100%" height="100%" creationComplete="dataGrid_creationCompleteHandler(event)" >
<mx:columns>

[code].....

View 1 Replies

ActionScript 2.0 :: SWF To Load The Query String And Display It In A Custom Font?

Aug 25, 2006

Similar to PHP and GD Library I want the SWF to load the query string and display it in a custom font.for example

header.swf?word=NEWS

And it would display NEWS in my certain font that is embedded in the clip How do i load a query string?

View 1 Replies

ActionScript 3.0 :: Display Last Log Date From Mysql?

Aug 7, 2009

Anyone has experience to display the last log date from the mysql database to the flash?

i did it with the username - that was displaying but not the last_log_date anyone can profide suggestion or an easier method/solution? sample script would be coolz.

[Code]...

i read the data in actionscript with username_name and then display the data into the textfield. this worked for the username only  but not for the last log date..

View 1 Replies

Php :: Calling A Page With MySQL Query From Javascript Function Then Returning Results To Another Javascript Function

Jul 8, 2010

I am refactoring some code. I have a PHP page that contains a MySQL query and stores the result in a PHP variable $my_result. This result is then echoed to a Flash SWF during embedding with SWFObject. I now want to call this PHP page that makes the query from a javascript function like so - one change I have made to the PHP is that instead of storing the result in a variable $my_result I am echoing the result. Javascript function to call the PHP page and make the database query

[Code]....

View 2 Replies

ActionScript 2.0 :: Display Mysql Table In Flash?

Apr 15, 2009

how would i display mysql table in flash?

View 11 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved