MovieClip To Call For HTML File?
Nov 18, 2010I have a m.c. calling for a swf file as such:
Actionscript Code:
mcl.loadClip("splash.swf", emptyMC1);
How do I get it to call for a html file instead??
I have a m.c. calling for a swf file as such:
Actionscript Code:
mcl.loadClip("splash.swf", emptyMC1);
How do I get it to call for a html file instead??
I have a html form of google docs. I collect information using it and google docs is great for me. Gives me excel output and this is what I need..
By the way, I need to use that form on my swf file in a movieclip. is it possible or not?
I want to use AS3 call EXE file under HTML,because there was a demo.swf file,but now it has been converted demo.exe,so I wan to play this demo.exe,I use following code to run demo.exe,my class extends Sprite,
fscommand("fullscreen","true");fscommand("allowscale","false");fscommand("showmenu","true");fscommand("exec","demo.exe");
When I run above code,I can't see any information,where is wrong?
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]....
above.the .swf is already embedded in html page. and i have couple of buttons from .swf file and how do i call call the html page with the button inside .swf file
View 7 Repliesi want to call a javascript function from within an embeded swf file in a html page and i'm using the ExternalInterface class. i know this function must be defined in a <script> tag in the html page. however, i want to have all my javascript code in an external file, but it doesn't work. my trial file just can't find the function, although i have my external js file linked in the header.
View 3 RepliesI have want to tell a movie instance to play from a class:
`package com
{
import flash.display.MovieClip;
public class Global extends MovieClip
[code]....
pic1m is the class, but I get 1120 undefined property error.If I just put pic1m.play(); in my main timeline action layer it works fine, but I need the function playMask to be global in AS3...
I am in the middle of trying to create an swf that allows the user to upload an image into the flash file and manipulate it in several ways using actionscript 3 and flash cs4. (ideally if possible keeping the flash player needed at 9 or lower).I have solved most of the photo editing side, but am having trouble uploading any photo into the flash file. I have looked into the 'getfile reference' class and also the 'oncompletedata' but havent got it working. Can anyone help? I need the user to click on the upload button on frame one which will upload the file to the server and display it on frame 2 in the empty_mc (instance of myObject) Currently i have a random jpeg image in its place.
Originally i intended to use an html form and php upload script to do all the uploading then send the url link into flash but again cannot come up with a way for this.This successfully uploads my image onto the server in the 'images' folder but how do i get this into my swf?
I have a movie clip with an actions layer. Can I call a function from an actionscript file from the actions panel?
View 2 RepliesI am using the flash which has welcome animation. inside the flash i have external links to html files. But when i want come back to home page(which is flash) from html page, I need my flash to start from home page not from introduction animation.So how can I link to the particular layer/clip without repeating introduction animation?
View 1 RepliesI was reading about Flex- JavaScript communication via ExternalInterface.But I had a doubt, it said that the javascript code should be written in the HTML file of the application ? Now which is this HTML file ? Is it the index.template.html file per project or the HTML file created per MXML application ?
View 3 RepliesI am having a nightmare using CSS to style HTML within a dynamic textfield in my flash doc. From what i now understand after much trial and error and reading online, CSS doesn't even work properly in flash even for the tags that it does understand (which are few and far between anyway). For some reason my layout is getting completely screwed up in certain scenarios (predominantly when there are images present too) when i hover over links (which are styled in an external CSS file). If i remove the external CSS styling (which only contains the following simple code):
a:link {text-decoration: none;}
a:active {text-decoration: none;}
a:visited {text-decoration: none;}[code]....
Then everything works fine (but no links are underlined as standard or on hover). Does anyone know of any way to style the links without using an external CSS file (all i want to do is have no underline as standard and then underline them on hover). As this is from user input into a text editor I cannot place these links manually on the page in flash as they could be anywhere, I need a way of parsing the HTML and then displaying it accordingly.
how do you call an onClipEvent(enterframe) of a movieclip to happen when that movieclip is pressed?
[Code]...
when i type this in i get an error because on events cannot be nested within other on events. how can you get around this?
If I have a piece of a function that is telling Flash to:
// show a hover color
var col = new Color(this.background);
col.setRGB(0xf4faff);
How do I tell Flash to call a MovieClip as opposed to setRGB for the background MovieClip?
I have load child swf in parent swf, from child swf i am trying to run my parent swffunction I am trying this code
MovieClip(parent).testfun()
but this code is giving error.
TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Loader@2b1aa061
[code].....
I have a movieclip on the stage(lets call that selection movieclip) that once a button is clicked is going to open another movieclip(call this slideshow) I am trying to remove the selection movieclip when you launch the slideshow movieclip.
Error:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display:isplayObjectContainer/removeChild()
at mc_work/clickHandler3()
[Code]...
how to cal movieclip from stage to the movielcip which present in another movieclip
View 4 RepliesI was wondering if anyone has came up with a way to float html elements, with some content, over .swf without triggering any flash events.
In my case the problem is I have flash map, and drop down menu on top of it.
I simplified this into the following example:
[URL]
If you mouseover any elements in gray box, you will see that stuff behind it, in a flash file, triggers hover effects.
new using flash, is it possible to load an html or htm file in a flash movie clip?
View 1 Repliesim developing a web page flash-based and i want to call a gallery from a shadowbox. This is what i want:i want to click in a button and then open a shadowbox with my photo gallery. How can i do this? which is the code that i have to use in the button?
View 1 RepliesI have load html text from an xml file, like below [code]...
in above code I want call a flash funtion when roll over on "on roll over in this text" text.
lets say that I call my flash that way
Code:
[...]/myFlashWithTwoArgumentsThatIWantToUse.swf?argOne=34&argTwo=someString
I've been trying to figure out how to retrieve them from the flash (in a class).
What am I missing here because my video doesn't have any controls? Is there a special parameter I need or do I need to encode the SWF file in a special way? I just used a MPEG to SWF converter provided by Blaze Media Pro.
View 2 RepliesI want to make div into my intex.htm file (already built site) to place in a .swf file that will cover the whole screen, and a few seconds later the animated page will disapear and the htm page will appear. I don't want to make different htm file, neither put a button on flash(ie on click...). I just want after a few seconds and after the flash has ended, the flash will go away and the page will appear.
View 1 RepliesI want to set link of another html page on flash file.
View 1 RepliesI try to perform calling of a javascript function from actionscript 3.0 thru ExternalInterface.call().I've seen a lot of online examples where the method works perfectly. But all downloaded copies of the examples don't work. Flash player can't call javasript due to the swf-html container security problems. I've already tried to set allowScriptAccess value from "sameDomain" to "always". It hasn't solved the problem.PS: browsers: firefox 3.6, IE 7.0s; flash player: v10.0
View 1 RepliesI am trying to call a Jscript function from a flash object. I want the function to be called when the animation ends.
Here is the embed code
<h1 align="center">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="360" HEIGHT="250" id="Yourfilename" ALIGN="center">
[code].....
here is the action code I add to the last frame of the flash object
URLLoader("javascript:mainFunction();");
The object loads but the function is not called. I can call the function other ways such as using an "onclick = mainFunction()" event on a button for example.
I want to swap images throught javascript. It's working.but my problem is I want to call that function from flash on press for my button this is the code I have used in html[code]....
View 1 RepliesI'm basically trying to re-create a HTML link in flash that will allow me to log in to my forums. Here's the HTML version:
[code].....
I am trying to place a flash file on an image at a specific location. how can i do this?
i tried something like this
<img src="images/logo.jpg"/> <object classid="homelogo"><embed src="images/logo.swf"></embed><object>
bit it did not work. how can i overlap a flash file on top on an image at a specific location?