Actionscript 3 :: Call The Flickr API With The Adobe Lib And Get A Response?
Feb 15, 2011
I've been able to figure out how to call the Flickr API with the Adobe Lib and get a response...I can get the description, id, etc. But now I'm trying to figure out how to load in the actual photo and add it to the stage.
function loadStartingPhoto():void
{
service.addEventListener(FlickrResultEvent.PHOTOS_GET_INFO, handlePhotoGetInfo);[code]....
I'm starting to think that in order to pull in the actual photo, I need to get it by way of a URLRequest. But that's not how any of the other tutorials are doing it... or maybe they are...
View 1 Replies
Similar Posts:
Feb 16, 2007
I'm trying to get a photogallery to get information directly from [URL] I've found a flash API wrapper that looks like it should work but my understanding of class constructs is too weak to get it going. [URL]
View 3 Replies
Mar 29, 2011
Im trying to make a HTTP Request in Adobe Flex (Actionscript) as follows:
var p:PersonSearchController = new PersonSearchController();
showAlertDialog();
p.search(sc);
alert.cancel();
navigator.pushView(views.PersonSearchResults, +p.getResp());
So basically, before the search we get a "Searching..." AlertDialog box, once the search is complete, the dialog box disappears and the results screen is pushed onto the screen...
Here is the search method:
function search{
var requestSender:URLLoader= new URLLoader();
dispatcher.addEventListener(Event.COMPLETE, completeHandler);
[Code].....
p.getResp() is nothing as the response hasn't came back yet. I want the program to basically block until the HTTPResponse is received so I can process the results. At the moment the Popup appear and disappears quickly, and in the background the search goes off and makes the request... I get the response but only after the results screen has been pushed out. How can I make the popup block until we have a HTTPresponse?
View 2 Replies
Mar 29, 2011
Im creating an application on Adobe Flex mobile (Blackberry playbook to be exact). Im designing an app that has a search function that makes a simple HTTP request to a server and waits for a response...
When the user clicks on search, how do I create an alert box that says "Searching..." and doesn't disappear until we get an HTTP response?
View 1 Replies
Mar 13, 2012
Below code is used to read a file in the disk and upload as 1MB chunks to a php server via adobe AIR application.It iterates the do/while loop till the end of the file and uploading part is handled by function getConnection. The servers returns an XML as the response.With the eventListnters currently it goes to fuction onRequestComplete when it recieves the response. Because of that issue current code exits the loop when it receives the response from the server.Is there any way that I can get the responce of the request send by the function getConnection when it calling inside function startUpload ? also hw can I define the request timeout for this single requests?
private function startUpload():void {
var localFilePath:String =localFilesToUpload[currentUploadedVideoIndex].file.nativePath;
var filePathArray = localFilePath.split("/");[code]......
View 1 Replies
Feb 6, 2010
I am trying to connect my flex app to a CFC I have which calls a method. It's to test a login control, and when i put the correct credentials in, it comes back with the error: "SOAP Response cannot be decoded. Raw response: ".
[Code]...
View 1 Replies
Oct 30, 2009
I have written a flash application and was unsuccessful in consuming the web service from Amazon. The error that I got was "SOAP Response Version Mismatch" while making a call to:
URL: http:url].....
However, we were able to call the following successfully.
View 1 Replies
Aug 8, 2011
I need to call a java class from my adobe air application . Is it possible.
View 1 Replies
Jun 24, 2011
I am developing an application for andriod and iphone in the Adobe Flash Builder,how can i make a button that when is pressed the phone(doesnt matter which phone) forwards the number to the phones dialer or makes it VOIP call
View 1 Replies
Mar 16, 2012
I have a project (adobe AIR 3.1 - NOT flex) that is running on my webserver where nodeJS is installed. I'm looking at the possibility to call NodeJS javascript files from the AIR app. Like the AIR app collects some information and calls socket.io in NodeJS to dispatch the info to html connected clients.
View 1 Replies
Jul 15, 2011
how to use the flickr api? all the documentation i've read on it assumes you know so much, but i need to start at square one! my goal is simply to load images from a flickr username at runtime. the swf into which the images will be loaded is itself loaded into another swf. i need to make photo galleries that load my clients' flickr images, so that the clients can update their galleries without anyone having to right new code. swf--> swf--> dynamically loaded images from flickr
View 0 Replies
Mar 6, 2009
I'm trying to get a simple photo list from flickr as XML. This works fine, but when I try to use the retrieved data as a local XML-Object it is telling me that the XML cannot be converted to XML. I am sure I am doing something really wrong here, but I don't know what it is. Do I have to convert the ldr.data somehow?[code]
View 1 Replies
Nov 22, 2011
I would like to learn Adobe Flex mobile development.I have created a new project called SampleProject, then I got SampleProject.mxml in default package and SampleProjectHomeView.mxml.[code]How can I call the add and sub methods from the class above in SampleProjectHomeView.mxml?
View 1 Replies
Oct 22, 2004
Ive been trying to get the xml/flash gallery tutorial to work using the rss from a Flickr image account instead of the format of xml file included in the tutorial download.Try as I might I cant understand how to call information from the specific nodes that contain the picture information.The Flickr XML source It has a lot of information at the beginning of the file to do with the Flickr account details, which i want to ignore. The <item> tag is the one im interested in.
Code:
xmlNode = this.firstChild;
I've tried using xml.nodeName, and looked right through all the xml part of the actionscript dictionary, but no luck.
View 2 Replies
Oct 22, 2004
Ive been trying to get the xml/flash gallery tutorial to work using the rss from a Flickr image account instead of the format of xml file included in the tutorial download.
Try as I might I cant understand how to call information from the specific nodes that contain the picture information.
The Flickr XML source
It has a lot of information at the beginning of the file to do with the Flickr account details, which i want to ignore. The <item> tag is the one im interested in.
My guess was that it had to do with changing
Code:
xmlNode = this.firstChild;
I've tried using xml.nodeName, and looked right through all the xml part of the actionscript dictionary, but no luck.
View 2 Replies
Sep 18, 2009
I am trying to take a Flickr collection (from the website) and integrate it into flash. I suspect something to do with the rss feed. My goal is to take the flash and put it into Screentime so that when the screensaver is running it will basically be an up-to-date slideshow of my flickr images.
View 7 Replies
Mar 28, 2005
I am trying to figure out how to parse a Flickr RSS feed to feed it into a swf to make a pretty flash interface for my photoblog. I am thinking it would be ideal if the image url was in its own element, and the description for the image was in a sibling element. However this is not the case. The problem I am running into is that the image for each post is in the same element as the description (in the content element). The image is simply wrapped by a normal html img tag. Does anyone know how I would pull the image url out of the description during parsing so that I could feed them into flash elements on the stage (one mc for image, another mc with a dynamic text box for the image description)?[code]
View 3 Replies
Dec 8, 2011
I wrote an app using adobe flash builder that makes an http data service call to a website.
When I build and launch the app it loads in my browser (the address in the broswer is C:Userspath omyapp.html) and works perfectly. However, when I upload the app to my website or even launch it from outside the project build directory, the HTTP service call fails with the popup
Security error accessing url
Destination: DefaultHTTP
Of course I googled this error and realized it may have something to do with a 'crossdomain.xml' in my web root directory. I tried this and it continued to fail.
Below was my crossite domain file
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="www.my_domain_for_http_service.com" />
</cross-domain-policy>
I'm using the free trial version of Adobe flash builder, but I do not see anything indicating that this has to do with the error.
Data from http service call is in xml format.
View 1 Replies
Aug 26, 2011
I'm trying to create a Flex app to get photos from flickr(using YQL) of "something" near a given ZIPCODE and ordered by interestigness.[url]...
View 1 Replies
Mar 9, 2012
I am fairly new to AS3 but I have been able to build a somewhat dinky app for iPhone and Andoid with Flash CS5.5, and I am wanting to add my Flickr feed to it. I tried going through Flickr's API but that didn't fully work.
View 1 Replies
Apr 19, 2009
Is it possible to load a Flickr slideshow into a Flash website?
I know you can load it into an HTML page, but I want to load it into my 100% Flash website. However, I can't get this to work. I picked apart the HTML embed code and pieced it back together as a URL that gets me exactly what I want, but Flash will not do anything with it.
Here is the code I am using:
Code: Select allvar loader:Loader = new Loader();
btn_mc.addEventListener(MouseEvent.CLICK, btnClick);
function btnClick(e:MouseEvent):void{
loader.load(new URLRequest(root.loaderInfo.parameters.flickrURL +
[Code].....
View 1 Replies
Mar 8, 2010
I'm currently using the Flickr Image Search API to load the first result of a string query as a background image for my site.Here's how it's looking so far: http:[url].....The thing with Flickr though is that if you want pictures at their original or large sizes every now and then you get an error message or image saying "Image Unavailable" due to Flickr permissions and user privacy restrictions. On the other hand medium sized or detail sized images tend to get very pixelated on large monitors. I'm pretty new at this Flickr API thing so I don't know if there's a way to filter the results to show only the first one that has actual original/large size available.
Question 1) Is there a way to filter/sort through Flickr API to load only the AVAILABLE/PERMITTED images at their original/largest size?Here's the code I have so far:
Code:
package
{
import flash.display.*;[code]...
2) Alternatively I was thinking that Google and Bing don't have permission/restriction issues(I think) so I was wondering if anyone knew how to set up a Google or Bing image search in Flash using AS3. The farthest I've got on this was finding this link: http:[url].... But I can't seem to get my head around how to actually build the whole search, query and load result.
View 3 Replies
Apr 10, 2010
I have been trying for a while to change this code from Flickr so it would auto start and loop.
Original code
<object width="150" height="150"> <param name="flashvars" value="offsite=true&lang=en-us&page_show_url=%2Fphotos%2F49111858%40N06%2Fsho w%2F&page_show_back_url=%2Fphotos%2F49111858%40N06%2F&user_id=49111858 @N06&jump_to=&autostart=true"></param> <param name="movie" value="http://www.flickr.com/apps/slideshow/show.swf?v=71649"></param> <param name="allowFullScreen" value="true"></param><embed type="application/x-shockwave-flash" src="http://www.flickr.com
[code]....
View 2 Replies
Jun 9, 2011
I built this nifty little weather/clock app as a way of learning to work with API's and incorporates both the yahoo weather api and the flickr api. Now that it is in functioning order, I decided I would port it over to a playbook app via a Flash Builder 4.4 ActionScript Mobile project. I was able to get it installed on the playbook simulator just fine however when the app launched it showed a blank stage. After several hours of research I determined it was a runtime error.After several more hours of research I found it was a security error when making a call out to the flickr api. The debugger reports the following error:
SecurityError: Error #3207: Application-sandbox content cannot access this feature.
at flash.system::Security$/allowDomain()
at global$init()[C:UserspoorpaddyAdobe Flash Builder 4.5ScriptsflickrGrabber.as:43]
[code].....
View 1 Replies
Jan 4, 2011
I succeed to get a snapshot from the webcam as a jpeg (via BitmapArray) and now I want to upload it directly to twitpic or flickr
View 1 Replies
Jun 28, 2011
i have some actionscript that makes a
ExternalInterface.call('someFunction');
call.is it possible to reference the html object that made the call to someFunction directly using the ExternalInterface.call call?
Assume that the object that makes the call also has some Callbacks (via ExternalInterface.addCallback) that are accessible via javascript.
Currently:
Actionscript source
ExternalInterface.call("someFunction");
ExternalInterface.addCallback("someCallback",someASfunction);
[code]....
View 1 Replies
Apr 17, 2010
I have code that was written in Actionscript 3.0 that sends a request for information to a php file which sends a XML response back.
Now I'm trying to adapt an old program using Actionscript 2.0 to send a similar request to the same php file and I'm unable to get access to the XML string :
I opened up the debugger and I see my XML data on the names column under the this pointer, in the locals tab. My data is there but is inaccessible to me. Something has definitely gone wrong
Here's the code to begin the request
Code:
{
reply_lv = new LoadVars();
send_lv = new LoadVars();
// load these vars
[Code].....
I tried to fill in IsLoggedInCallback with a bunch of code to extract the XML but it was all garbage and I felt it wouldn't be much help if I left that code there.
View 2 Replies
Feb 20, 2010
I have a flash image slider with a button below each image. When i press that button, the user is redirected to a new page where i add that image product to my cart.
The problem is that after doing the adding, i want to redirect the user back to the initial page.
[Code]...
View 1 Replies
Apr 28, 2010
I need to make any request to this url and get Http Rewspons header (like this one:HTTP/1.0 200 OKContent-type: video/x-flvCache-Control: no-cacheI do not need reponse body at all. After I get header need to emmidiatly close connection to that url (so stop to obtain data from it)
View 1 Replies
Jan 19, 2011
i have this response from a socket server:
[DataEvent type="data" bubbles=false
cancelable=false eventPhase=2
data="Segunda vez"]
How can i parse this info?, for example if i want the data value.
View 1 Replies