ActionScript 2.0 :: Any Way To Alter Path To Image In Meta Tag?
May 6, 2010
I'm trying to figure out a way to alter a path to an image that is in a meta tag. It's for a facebook share button, and I'd like the ability to change the thumbnail image that is sent to facebook depending on where the user is in my flash file. The link itself is sent from flash no problem but I'd like to update this meta tag
Code:
<link rel="image_src" href="[URL]" / >
First somehow (not sure if PHP is the answer or flashvars or what) and then send the link. I attempted to just add all the facebook meta data to a php file that had a redirect link to the facebook share but it didn't like that hack. So basically I need to alter the meta tag on the current page and send the link from flash.
I have a developed a browser-like Mac Desktop app which uses WebKit to render web content. My app links against the standard system WebKit framework (it does not bundle a private WebKit framework).
However, I would like to bundle a private Flash plugin in my app bundle. When my app runs, I would like WebKit to prefer the private Flash plugin in my bundle over any other Flash plugin on the system.
How can I alter WebKit's plugin search path such that my app will load my private Flash plugin bundled with my app?
So I've created a script where a mc is clicked on and the player can draw a path using the mouse. I'm trying to figure out how I can get the mc to follow the path drawn out by the player's mouse and when the player clicks again, it erases all of the path.my code is below
I am working on making a picture move along a path but for some reason I can't get it to work. I have followed the instructions in my text book but the image just goes down at an angle to the bottom right of the stage instead of following the path I created in the motion guide.
I am working on making a picture move along a path but for some reason I can't get it to work. I have followed the instructions in my text book but the image just goes down at an angle to the bottom right of the stage instead of following the path I created in the motion guide.
I am trying to import an image path from a xml file. I can trace out the correct file name but I can't seem to load the file into the holder.I get this error:
Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
I presume there's something else I need to add to the XML syntax.
Code:
// HOLDER: var LoaderImagesMC:MovieClip = new MovieClip(); // LOADER:
I'm creating a DVD with an image gallery, everything local. But the thing is my loaded images appears within flash, and not outside when I execute the swf. The path of the image is inside an array (from an xml file). If I write the path of my trace(array[x][x]), the image outside flash is shown. But when I write: loadMovie(array[x][x].toString()) or loadMovie(array[x][x]) It doesn't... I did a trace of array[x][x] and it shows me the exact path to the image.. Code: _root.obra_mc.containerImg_mc.loadMovie("images/Patrimonio/Ceramica/"+(obras[0][1]).toString());
I have done some coding in the past in .asp .aspx, but it is not my primary forte. I am working on a site that has a page for project photo galleries, and have been following a lot of the tutorials from this site. I have a directory structure as follows:
For testing purposes, in projects.fla, and resulting projects.swf, I have:
xmlData = new XML(); xmlData.ignoreWhite = true; xmlData.onLoad = loadXML;
[Code]....
how to code projects.fla with the correct path to the .xml file in the <root>projectsproject1 directory, and ideally, a way to make it dynamic so I can pass the path to the projects.swf file using a variable, and be able to direct the movie to use the intended xml file, thumbnails, and images based on the press of a button contained in a projects menu. Unless I have missed something, all of the tutorials I saw had the images and .xml file in the same directory as the .swf.
I want to read Meta tag information of a video file like Artist,Album,Year,etc.... I tryed "onMetaData" for a video file.But i didnt get information like rtist,Album,Year,etc... The video file can be mp4,avi,mpg,mov. I dont want them to play in swf... I just want to load the file and show the meta tag information as text. For audio files i can get id3 information after loading the song.But is there any other way to get them with out loading the sound? Each loading will take time to give the result.
I designed my friends site entirely in Flash, but now want to add things like meta tags. I've done extensive searching and found the best (or only) way to do this is to open my index.html page in dreamweaver or textedit and add them there. Sounds easy enough but when I open my html page to look at the code I get this error: // Provide alternate content for browsers that do not support scripting // or for those that have scripting disabled. Alternate HTML content should be placed here. This content requires the Adobe Flash Player. Get Flash. I have Flash Player installed.
The solution should be straight forward but I cannot find it, my problem it's that I'm reading a xml, and one of the properties inside the xml it's a Bitmap path(string), when I`m reading this xml I would like to convert this string to a Bitmap Obj so I can use through my MXMLs.
I bought a template, made some changes, published it and upload it on FTP. But each time I do a search, one one the search results is one of the orignal page names. Any tips on how to change it?
I want to create a server script that will reply with the meta of a specified stream. This is for a player I have that really needs meta, but I hate having to start playing the video to get it. Is this possible? What calls does the server need to do to fetch and transmit the meta?
I am writing a flex3 tool for our uber-geeks. The tool is for futzing around with sharing URLs to various various social sites.
private function submitRequest(evt:Event):void { var requestURL:URLRequest = new URLRequest(constructURL()); requestURL.method=URLRequestMethod.POST;
[Code].....
I can call an external javascript function that will do a post, but however the XmlHttpRequest infrastructure only want to setRequestHeader(key,value), and seems to need to be from a very specific list of strings. setRequestHeader("foo","bar") did not add a foo header in my outgoing request.
There does not seem to be a way to add the header meta tag. via javascript. Or at lease I am not finding it off of google.
I'd like to be able to resize the stage according to the size (and aspect ratio) of the video - to do this so far I've been trying by using an external function call to javascript:
As you can see it happens on meta load, and in order to do that I have to attach the net stream, start playing the video to load the meta data, and then pause it:
Code: ncConnection = new NetConnection(); ncConnection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler); ncConnection.connect(null);
[code].....
What's happening is the player loads up at it's original size, and then with a jolt is resized as required, but responsiveness and load time of the video is very bad and hangs the browser quite easily...
1) Is there some sort of threaded pre-load I can use so that the video doesn't load with such a jolt and the responsiveness of the player isn't compromised
2) is there a way of obtaining the meta data of the video without loading it fully?
i'm using a XML file fromwhich i load thumbnails and images into Photo Gallery.[code]The problem is all thumbnails acting as buttons even the empty thumb which hasn't image_path in XML?!
I want to get the meta from an FMS server and start buffering (really I just want the first frame). Is there any way to do this other than calling play() and waiting for meta to call pause?
I have a flash site which reads deep links from the URL, then using c# asp.net we read the url and write the appropriate meta tags for the page being requested. [code]...
I am communicating to an external server via a URLLoader and receiving the following warning: Warning: Domain domain name does not specify a meta-policy.Applying default meta-policy 'master-only'.This configuration is deprecated.
The provided link redirected me to another page, which didn't really explain how to remove this warning. It looks like it might involve modifying the crossdomain.xml file on the server, but I'm not sure exactly how. how to remove this warning?
I've been trying to embed some svg files into an AS3 project using the Embed meta tag. For example:
[Code]...
However when displaying these files as Sprites only some of the gradients are surviving the embeding process. From what I've found simple (2 step) horizontal gradients seem to stand the best chance of being preserved, but sometimes other kinds of gradients are as well. In one case simply rotating an object 90 degrees causes the gradient to vanish when displayed in flash. Does anyone know a rough set of rules to use when creating svg gradient fills so they are preserved when rendered in flash? BTW: I used Inkscape to create the images in question.
Update: Bizarrely the solution to this seems to be setting the opacity of any object in the svg file whose gradient isn't displayed properly to a value below 1. Don't ask me why this works but it does. It does however have the unwanted side effect of the objects edges not being rendered as smoothly.