Flash :: Can Not See "Copy To HTML Canvas" Command
Apr 27, 2010Following this[url]...
why I can not see "Copy to HTML canvas� menu on Flash Professional CS5?Where can I find out "renderFXG.js" and there is any website used this?
Following this[url]...
why I can not see "Copy to HTML canvas� menu on Flash Professional CS5?Where can I find out "renderFXG.js" and there is any website used this?
I came across this simple flash site,[url]...
in the Profile (first button) you are able to copy and paste the text. I was wondering how this was done.[url]...
I'm trying to make a copy of an array filled with Canvas objects. I use this code:
arCopy = ObjectUtil.copy(myClass.myArray) as Array;
What I get is an array arCopy filled with Objects instead of Canvas. Each of these Objects has propersties suggesting that it was Canvas (like uid="Canvas333" or name="Canvas333"), but it's instance of Object class. I've been using ObjectUtil.copy() before but never seen such behaviour.
I've done a lot of Flash development and have been meaning to try out canvas for a while, but after browsing through some tutorials, I can't understand how this is supposed to replace Flash.
Note: I ask a lot of questions down here. I don't really expect them all to be answered. What I'm really looking for is some basic guidance about how I should be thinking while developing on <canvas>.
From the spec, it looks like <canvas> is really more analogous to the Graphics class in Flash, which one would use something like this:
class ColoredCircle extends Sprite {
private var _color:uint=0x0;
public function ColoredCircle(color:uint) {
[Code].....
Should I be treating <canvas> like a Sprite? Marking everything as position:relative should allow me to basically duplicate display list-type behavior (I don't believe that you can nest <canvas> elements, but you could probably do so by throwing in a bunch of <div>s). However, I use a lot of Sprites in my projects. That's going to be a metric crap-ton of tiny canvas elements. Also, how do you handle mouse events in <canvas>? Do they trigger if someone clicks on a transparent part of the canvas's box model (bad)? If I have a canvas with two circles in it and I need to know which one gets clicked on, do I have to do bounds-math with the mouse position?
A web channel streaming service streams to a certain IP range, it only checks the IP in example.com/cmd.php?id=xxx (channel number) and outputs an rtmpe stream URL, nothing else.How do I trick it to get my local URL instead of the one on their server? I have considered squid proxy, but is there some way to do it with a firefox plugin or greasemonkey script?
Edit:I will try to specify:It's a streaming service from an ISP and cable provider. They stream for free to people on their IP's. On their webtv page, which is called webtv.example.com, there is a flash player. If you are not on an IP from their ISP, you can't stream anything but the test channel.When you try to change channel via. javescript:videoplayer_changechannel(xxx) it makes this HTTP request:
[URL]
If you are on one of their IP's you will get an RTMP URL, like this:
[URL]
This is what the flash player requests, and if it get's this response it load the channel requested. There is no HTML on the php page, just the URL. Note that the rtmp URL is static.If you are not on one of their IP's it will return a random sentence (something stupid, the programmers having fun).I wan't to trick the flash player into getting the right value, even though it's not on one of the ISP's IP's.
how you throw out an html command from a swf? I need to call up a lightbox function.
View 4 RepliesI'm missing the command to get the object height from the html page. I just want to set the original height and width to a sprite background. The object in the html is set dynamically from the server.
Also when I resize from the authoring window the background doesn't change size where:
pageBkg_mc.height=stage.height;
pageBkg_mc.width=stage.width;
I looked in the properties panel and when I clicked on the instance of the movie clip the option to set the size was disabled. Not sure why. So I deleted the instance and put it in a new fla. The options were enabled. Then I went back to my old fla and dropped a new instance of the background there again. Added the same instance name and sizing was enabled again. Is there a reason why it became disabled?
I also updated this code and it works fine now.
Code:
package {
import flash.display.Sprite;
import flash.display.MovieClip;
import flash.display.StageAlign;
[Code]....
I have the following code in my flex project.
[Code]...
I want to dynamically add different items to thumbContent canvas and use scroller canvas to scroll. I see than the height of thumbContent bigger than 7977 it truncate from scrolling. So - I see the scroller canvas with empty space on top. Then I scroll to bottom - I see the content of thumbContent and at bottom scrolling I see empty space too.
I'm trying to skin a canvas with an image (which is essentially a custom border for the canvas). I've been trying the backgroundImage style as well as the borderSkin style. I can't get the image to scale to the full size of the canvas though. I was wondering what the best way to go about this is.[code]...
View 2 RepliesI have a .swf menu with 20 or so links. Each link opens up a new html page that in turn embeds the same swf menu. All I want is to simply have the html tell the swf to gotoAndStop a specific frame label that really just 'highlights' that particular button, so the user knows where they are. that's it... used to be able to do this with fsCommand, or so i thought.
View 9 RepliesWell i have an adobe air which runs vlc-player at background as service. i check that in Windows Task Manager , the service runs when air application launches.
here is the code
processArgs.push("--extraintf");
processArgs.push("rc"); //Remote control
processArgs.push("--rc-fake-tty"); //Use terminal as output
[code]......
I want to call 3 commands one by one , the relation between each commands are command should execute one by one in the previous command result. How to Queue Command's? What is the best practice to handle Queue command , my requirement is adding n number of commands and execute them.Main -> Execute c1c1 got the Result - Execute c2c2 got the Result - Execute c3
View 2 RepliesHow can I copy files with FLfile.copy method in CS4? I need any samples with all classes.
View 0 RepliesBasically I want to go to frame2 when the cursor leaves the canvas. The code below contains no errors when tested but it still does not work.
[Code]...
We know that the function gotoAndStop(frame2); works in multiple situations which means the first 3 line is fine. I don't know if the problem is the MOUSE_LEAVE event or this.stage which i suppose is the identifier for the canvas. I sure that there must be an alternative code for the identifier this.stage or the whole code. Any solution on how to fire the given function in the event when the cursor leaves the canvas?
i need to copy a "dynamic text" using copy button. how can i do it ?
View 5 RepliesI need to embed a flash application(that will access FB API from within) in Facebook Canvas page.If I use , some FB related details(like session key) will be automatically passed to the flash. But since, FBML is going to be deprecated, I want to use iFrame. Is there any way to pass those variable automatically or do I have to retrieve them in PHP and pass it to flash through loadvars?Also, if I have to do it manually, is there any documentation for the php sdk 2.1 ? (already searched about it a lot, and I think there is no doc nor tutorial for 2.1)
View 3 RepliesI'm new to Adobe Flash and especially new to Actionscript. Could somebody give an example and explain how to make and "Ignore *this* command if..." style command. Here's what I want to achieve:I have made a button (I may have done it in an odd way but it works) that moves when the mouse hovers over it and then moves back when the mouse moves away. I plan to put the finished product into Dreamweaver and have tried what I've done so far and it works. The problem is that if I move the mouse away before the first animation of the button has finished. It doesn't reach the *Mouse Out* command and then just sticks/stops in the bit where I have put a *stop* command.Basically, what I want is a way to ignore a command if something happens earlier on (such as the cursor being moved away).I've tried to explain the best I can without actually screenshotting it and copying commands.
View 6 RepliesIs there any way to erase a part of flash.display.Graphics canvas? Like
[cODE]....
This produces just a red square (the last 3 calls are noop), and what i need is a transparent square hole in it.
I'm creating a flash fun thing where you dress up a character by just dragging and dropping little images, everything is working fine.
I want to add an option to save the image you have created, I can do this but the problem is you have to set a movie clip to capture, the thing i want to capture is a few movie clips layered on top of each other(the finished character).[code]...
I was told that you can export Flash CS5 creations into html5 Canvas.
View 1 RepliesI have made a flash game for facebook. All happened right expect when I am saving score in my Db. I had sended vars from flash to php , which I think is not working://Here is how i am sending vars from flash
loadVariablesNum("highscore.php?uid="+iduser+"&usc="+score, 0);
I had check it on my localhost its working perfectly. But when I upload same on facebook it doesnot work out.I had used Php SDK 3 and havenot used fbml. embeded flash with Object and Embed tags
I'm trying to figure out how to resize a child canvas but I can't quite figure it out. I have a bunch of mini canvas' around a parent canvas like this:
<mx:Canvas width="10" height="10" backgroundColor="#040404" top="0" left="0" id="anchorTL" />
<mx:Canvas width="10" height="10" backgroundColor="#040404" right="0" top="0" id="anchorTR"
[code]......
I've got a flash animation of an extruding box drawn frame-by-frame for a "hand drawn" effect. The problem is that I now need to make twice as many frames to allow the box to extrude twice as far, and the canvas is too small to support this; the box would end up outside of bounds. I've tried resizing the canvas, but the extended space is at the opposite end of the canvas from where I need it. In photoshop you could chose where the added space "grew from" but I don't see that option here. Anyone knw a work around It'd be a pain in the tail to have to move very object in every frame for every layer.
View 0 RepliesI need to create an application where user can add multiple text boxes in the canvas and export it to image, user will also have the access to save it for future use they can edit it for which i need to store the canvas information to XML file.
View 3 RepliesThis page works when requested locally (a flash movie plays)[url]...
If I have set up the following facebook application settings[code]...
I am trying to embed a flash movie into a facebook (iframe) canvas. When i request the page locally to test the movie is embedded. When I view the same page via the facebook application url - the movie doesn't appear (but other page content does).
[Code]...
Are there any special tricks required to make a flash movie play in a facebook canvas application?
I am building a very basic report writer for an AIR application that I am developing. I am using the Flash PrintJob class to output the contents of my report (in which pages are stored as Canvas objects in a ViewStack object).The problem is, only the content that I see in the report preview screen gets printed.Is there a way that I can print what the Canvas object contains not just what is visible? Here is a code snippet that I am using:
protected function doPrintReport(event:Event):void
{
var pj:PrintJob = new PrintJob();
[code]......
im trying to create a online business card editor to learn flash again, one of the functionality im trying to achieve is being able to upload an image (jpg,png etc) and place said image onto a drawing canvas and then being able to scale the image and rotate the image and move the image around. can some one direct me to a decent tutorial for this kind of functionality.
View 1 RepliesI want to make a free game with flash. Several month ago, I created a free game with html5 canvas. But unfortunately, most of people who access the page of the game use old version IEs and they can not play the html5 canvas game. So I want make flash version of it.
Can I use Flash builder to create flash game? Or I have to buy Flash professional? Or are there other good softwares? I hope I could create flash games with Flash builder, because Flash pro is much more expensive than Flash builder. If I have to buy Flash pro, I'll buy it. But is it normal to pay more than 600 dollars for developing a free game? There are a lot of free flash games on the Internet. Did their developers pay 600 dollars to create their free games?
How I can detect a click on the border of a canvas, not its contents?.I am aware that I can validate ranges event.mouseX (Y),but my canvas has rounded corners and in some cases appears to be a circle,is there any way of knowing if the border of the canvas is under the pointer?I have:
Canvas.setStyle ("borderColor", 0xFF0000);
Canvas.setStyle ("borderStyle", "solid");
Canvas.setStyle ("BorderThickness", 10);