Synchronizing Mouse Events on 2 flash files
Hi, I am developing an application that shares images and swf
files. There is a master and slave swf. The way we have it in mind
is to have a flash wrapper that contains the swf file or image that
wants to be shared on both master and slave. Now for instance, if I
click on an item in swf object inside the wrapper of the master
which starts some kind of animation, i would like to pass the x and
y co-ordinates that was clicked in the master down to the slave and
trigger the click event at the same position on the slave on the
swf object.
I don't think that this is much of an issue to get the x and
y co-ordinates. My question is, is it possible to trigger the click
even inside the slave wrapper on the swf object, which will cause
the same animation to start playing ?
Reason being we have tons of swf content written in both
Action Script 2 and 3 and need to make this as generic as possible
without having to rewrite the swf's. Just want to include them in
the wrapper.
Hi, I am developing an application that shares images and swf
files. There is a master and slave swf. The way we have it in mind
is to have a flash wrapper that contains the swf file or image that
wants to be shared on both master and slave. Now for instance, if I
click on an item in swf object inside the wrapper of the master
which starts some kind of animation, i would like to pass the x and
y co-ordinates that was clicked in the master down to the slave and
trigger the click event at the same position on the slave on the
swf object.
I don't think that this is much of an issue to get the x and
y co-ordinates. My question is, is it possible to trigger the click
even inside the slave wrapper on the swf object, which will cause
the same animation to start playing ?
Reason being we have tons of swf content written in both
Action Script 2 and 3 and need to make this as generic as possible
without having to rewrite the swf's. Just want to include them in
the wrapper.
Similar Messages
-
Please check http://www.syus.com for an example. There is a Flash movie underneath the main navigation. The main navigation has a jQuery mouse event, and when you mouse over a button in the main navigation, the Flash movie re-starts. I can confirm that this happens not only on Flash swf files, but on standard <object> YouTube embeds.
Ok, I promise this is my last post without your help. I did some more troubleshooting and it only seems to happen when jQuery appends elements to the body that were previously invisible. In other words, I can simply change the css in jQuery from using element.css('display','inline'), but if I try to use something like slideDown or other jQuery tooltip functions that append and/or remove elements or style definitions it causes the "object restart" bug.
It is impossible for any developer to eliminate this bug without changing the actual source of jQuery, which I can't do. My only other option is not to use sophisticated show/hide jQuery elements like drop-down menus and tooltips on the same page as an embedded object, but I don't want to do this since Safari, Chrome and even IE (dear God) users won't have a problem with this. I think this is a major major bug that should be fixed in Firefox 4 as more and more sites will be looking to use the latest jQuery plugins. -
Somebody please help:
I've taught myself enough with Flash to customize a
fully-Flash template for my wife's website, and two of the buttons
didn't do what I wanted them to in Actionscript. They then began
giving me the message:
**Error** Symbol=sub_butt1, layer=Layer 4, frame=1:Line 1:
Mouse events are permitted only for button instances
on (rollOver) {
**Error** Symbol=sub_butt1, layer=Layer 4, frame=1:Line 4:
Mouse events are permitted only for button instances
on (releaseOutside, rollOut) {
Total ActionScript Errors: 2 Reported Errors: 2
Not only do I not know how to fix this, the same message
comes up for every single button in the entire fla I had saved,
plus earlier versions where I hadn't even messed with the buttons
yet.
Any suggestions?Hello Corbett,
The error is saying that you are trying to apply a button
action to something
other than a button. Often this happens when you select the
frame that the
button is on instead of the actual button, thus applying the
action to the
frame instead of the button.
Make sure you select the button on the stage and then apply
the actions there.
You'll probably have to remove the action from the frame
before it will work
(looks like it's on Layer 4 frame 1).
Good luck!
Jesse H.
Adobe Community Expert
My site:
http://www.jharding.com
Free Blog Radio:
http://www.tornadostream.com
> Somebody please help:
> I've taught myself enough with Flash to customize a
fully-Flash
> template for
> my wife's website, and two of the buttons didn't do what
I wanted them
> to in
> Actionscript. They then began giving me the message:
>
> **Error** Symbol=sub_butt1, layer=Layer 4, frame=1:Line
1: Mouse
> events are
> permitted only for button instances
> on (rollOver) {
> **Error** Symbol=sub_butt1, layer=Layer 4, frame=1:Line
4: Mouse
> events are
> permitted only for button instances
> on (releaseOutside, rollOut) {
> Total ActionScript Errors: 2 Reported Errors: 2
>
> Not only do I not know how to fix this, the same message
comes up for
> every
> single button in the entire fla I had saved, plus
earlier versions
> where I
> hadn't even messed with the buttons yet.
> Any suggestions? -
I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?
This is the error message(s) I am receiving: "TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/removeChild()
at index_fla::MainTimeline/Down3()"
import nl.demonsters.debugger.MonsterDebugger;
var d:MonsterDebugger=new MonsterDebugger(this);
stage.scaleMode=StageScaleMode.NO_SCALE;
stage.align=StageAlign.TOP_LEFT;
stage.addEventListener(Event.RESIZE, resizeHandler);
// loader is the loader for portfolio page swf
var loader:Loader;
var loader2:Loader;
var loader3:Loader;
var loader1:Loader;
// resize content
function resizeHandler(event:Event):void {
// resizes portfolio page to center
loader.x = (stage.stageWidth - loader.width) * .5;
loader.y = (stage.stageHeight - loader.height) * .5;
// resizes about page to center
loader3.x = (stage.stageWidth - 482) * .5 - 260;
loader3.y = (stage.stageHeight - 492) * .5 - 140;
/*loader2.x = (stage.stageWidth - 658.65) * .5;
loader2.y = (stage.stageHeight - 551.45) * .5;*/
addEventListener(Event.ENTER_FRAME, onEnterFrame,false, 0, true);
function onEnterFrame(ev:Event):void {
var requesterb:URLRequest=new URLRequest("carouselLoader.swf");
loader = null;
loader = new Loader();
loader.name ="carousel1"
//adds gallery.swf to stage at begining of movie
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader.load(requesterb);
} catch (error:SecurityError) {
trace(error);
addChild(loader);
loader.x = (stage.stageWidth - 739) * .5;
loader.y = (stage.stageHeight - 500) * .5;
// stop gallery.swf from duplication over and over again on enter frame
removeEventListener(Event.ENTER_FRAME, onEnterFrame);
//PORTFOLIO BUTTON
//adds eventlistner so that gallery.swf can be loaded
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
function Down(event:MouseEvent):void {
// re adds listener for contact.swf and about.swf
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
//unloads gallery.swf from enter frame if users presses portfolio button in nav
var requester:URLRequest=new URLRequest("carouselLoader.swf");
loader = null;
loader = new Loader();
loader.name ="carousel"
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader.load(requester);
} catch (error:SecurityError) {
trace(error);
addChild(loader);
loader.x = (stage.stageWidth - 739) * .5;
loader.y = (stage.stageHeight - 500) * .5;
removeChild( getChildByName("about") );
removeChild( getChildByName("carousel1") );
// remove eventlistner and prevents duplication of gallery.swf
MovieClip(root).nav.portfolio.removeEventListener(MouseEvent.MOUSE_DOWN, Down);
//INFORMATION BUTTON
//adds eventlistner so that info.swf can be loaded
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
function Down1(event:MouseEvent):void {
//this re-adds the EventListener for portfolio so that end user can view again if they wish.
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
var requester:URLRequest=new URLRequest("contactLoader.swf");
loader2 = null;
loader2 = new Loader();
loader2.name ="contact"
loader2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader2.load(requester);
} catch (error:SecurityError) {
trace(error);
addChild(loader2);
loader2.x = (stage.stageWidth - 658.65) * .5;
loader2.y = (stage.stageHeight - 551.45) * .5;
// remove eventlistner and prevents duplication of info.swf
MovieClip(root).nav.info.removeEventListener(MouseEvent.MOUSE_DOWN, Down1);
//ABOUT BUTTON
//adds eventlistner so that info.swf can be loaded
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
function Down3(event:MouseEvent):void {
//this re-adds the EventListener for portfolio so that end user can view again if they wish.
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
var requester:URLRequest=new URLRequest("aboutLoader.swf");
loader3 = null;
loader3 = new Loader();
loader3.name ="about"
loader3.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader3.load(requester);
} catch (error:SecurityError) {
trace(error);
addChild(loader3);
loader3.x = (stage.stageWidth - 482) * .5 - 260;
loader3.y = (stage.stageHeight - 492) * .5 - 140;
removeChild( getChildByName("carousel") );
removeChild( getChildByName("carousel1") );
// remove eventlistner and prevents duplication of info.swf
MovieClip(root).nav.about.removeEventListener(MouseEvent.MOUSE_DOWN, Down3);
stop();Andrei1,
Thank you for the helpful advice. I made the changes as you suggested but I am receiving a #1009 error message even though my site is working the way I wan it to work. I would still like to fix the errors so that my site runs and error free. This is the error I am receiving:
"TypeError: Error #1009: Cannot access a property or method of a null object reference."
I'm sure this is not the best method to unload loaders and I am guessing this is why I am receiving the following error message.
loader.unload();
loader2.unload();
loader3.unload();
I also tried creating a function to unload the loader but received the same error message and my portfolio swf was not showing at all.
function killLoad():void{
try { loader.close(); loader2.close; loader3.close;} catch (e:*) {}
loader.unload(); loader2.unload(); loader3.unload();
I have a question regarding suggestion you made to set Mouse Event to "null". What does this do setting the MouseEvent do exactly? Also, since I've set the MouseEvent to null do I also have to set the loader to null? e.g.
---- Here is my updated code ----
// variable for external loaders
var loader:Loader;
var loader1:Loader;
var loader2:Loader;
var loader3:Loader;
// makes borders resize with browser size
function resizeHandler(event:Event):void {
// resizes portfolio page to center
loader.x = (stage.stageWidth - loader.width) * .5;
loader.y = (stage.stageHeight - loader.height) * .5;
// resizes about page to center
loader3.x = (stage.stageWidth - 482) * .5 - 260;
loader3.y = (stage.stageHeight - 492) * .5 - 140;
//adds gallery.swf to stage at begining of moviie
Down();
//PORTFOLIO BUTTON
//adds eventlistner so that gallery.swf can be loaded
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
function Down(event:MouseEvent = null):void {
// re adds listener for contact.swf and about.swf
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
//unloads gallery.swf from enter frame if users presses portfolio button in nav
var requester:URLRequest=new URLRequest("carouselLoader.swf");
loader = new Loader();
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader.load(requester);
} catch (error:SecurityError) {
trace(error);
this.addChild(loader);
loader.x = (stage.stageWidth - 739) * .5;
loader.y = (stage.stageHeight - 500) * .5;
// sure this is not the best way to do this - but it is unload external swfs
loader.unload();
loader2.unload();
loader3.unload();
// remove eventlistner and prevents duplication of gallery.swf
MovieClip(root).nav.portfolio.removeEventListener(MouseEvent.MOUSE_DOWN, Down);
//INFORMATION BUTTON
//adds eventlistner so that info.swf can be loaded
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
function Down1(event:MouseEvent = null):void {
//this re-adds the EventListener for portfolio so that end user can view again if they wish.
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
var requester:URLRequest=new URLRequest("contactLoader.swf");
loader2 = null;
loader2 = new Loader();
loader2.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader2.load(requester);
} catch (error:SecurityError) {
trace(error);
addChild(loader2);
loader2.x = (stage.stageWidth - 658.65) * .5;
loader2.y = (stage.stageHeight - 551.45) * .5;
loader.unload();
loader2.unload();
loader3.unload();
// remove eventlistner and prevents duplication of info.swf
MovieClip(root).nav.info.removeEventListener(MouseEvent.MOUSE_DOWN, Down1);
//ABOUT BUTTON
//adds eventlistner so that info.swf can be loaded
MovieClip(root).nav.about.addEventListener(MouseEvent.MOUSE_DOWN, Down3, false, 0, true);
function Down3(event:MouseEvent = null):void {
//this re-adds the EventListener for portfolio so that end user can view again if they wish.
MovieClip(root).nav.portfolio.addEventListener(MouseEvent.MOUSE_DOWN, Down, false, 0, true);
MovieClip(root).nav.info.addEventListener(MouseEvent.MOUSE_DOWN, Down1, false, 0, true);
var requester:URLRequest=new URLRequest("aboutLoader.swf");
loader3 = null;
loader3 = new Loader();
loader3.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioError);
function ioError(event:IOErrorEvent):void {
trace(event);
try {
loader3.load(requester);
} catch (error:SecurityError) {
trace(error);
addChild(loader3);
loader3.x = (stage.stageWidth - 482) * .5 - 260;
loader3.y = (stage.stageHeight - 492) * .5 - 140;
loader.unload();
loader2.unload();
loader3.unload();
// remove eventlistner and prevents duplication of info.swf
MovieClip(root).nav.about.removeEventListener(MouseEvent.MOUSE_DOWN, Down3);
stop(); -
i'm trying to get the Flash ActiveX control to work in an
OpenGL app. so far i've managed to get the bitmap data and map it
to a texture succesfully. but i'm having problems getting the mouse
interaction to work.
i get an hWnd from IShockWaveFlash's IOleWindow. when i send
mouse messages to it, the mouse is interpreted correctly by
actionscript (for example, i have a custom mouse cursor tracking
_xmouse, _ymouse which works fine).
however, buttons do not behave correctly. rollover is
erratic, and only in rare circumstances can i get a button's
onPress handler to fire.
am i sending the mouse events in correctly? any ideas of any
other way to send them in?Thank you for you mail,
After I read this article
http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/610540bb3ea4ebdd862568960055e498?OpenDocument
I realized that ActiveX events are not supported on CVI 5.01 at all since
its introduced as a new feature of CVI 5.5
"Azucena" wrote:
>Daniel,>>Have you tried the function CA_RegisterEventCallback function?
(I am using>CVI 5.5)>>This function is used by the functions generated by
the Automation>Controller Instrument Driver Wizard.>It is not intended to
be used directly.>>It basically registers a callback for an ActiveX Automation
server object>event.>To register the callback, you must specify the CAObjHandle
of the server>object from which you want to receive events.>>W
ith CVI 5.5,
there is an example for IE with Active X under the>samples/activeX directory.>>Hope
this helps,>>Azucena>>"Daniel Bentolila" wrote in message>news:[email protected]..>>>>
Has anybody tried to capture an ActiveX component event in a CVI>application>>
?>>>> for example I've created a new instance of the Internet Explorer>application>>
from the CVI , using the ActiveX Automation controler I choosed the>Microsoft>>
internet controls then I selected IWebBrowser2 and the IWebBrowserEvents2>>
classes and generated the fp file for the CVI.>> Under the the IWebBrowserEvents2
I see there are events fucntion for>example>> OnQuit, and I wanted my CVI
app. to attach the quit event when the user>closes>> the IE window.>> Now
at this point I expected to find some mechanism that let me to install>>
some callback function where I can put my customised code to the quit>event,>>
somehow I have to tell the IE to call my function whenever the OnQuit>callback>>
fun
ction is attached and I don't know how to do this.>> -
Hi,
I had uploaded jpeg file onto the stage using
File->Import.
Now, how to access the mouse-events using AS3.0?
i.e., when we click with mouse on the stage
it should display the x and y co-ordinates of the point
being clicked.
These x and y coordinates must be displayed in text-boxes
provided down on the same stage.
Please reply meYou can do show/hide movieclip on mouseover. get your box
position and assign to the popup (tooltip movieclip).
see this...
not tested. but it should work.
import flash.events.MouseEvent;
function showClip(evt:MouseEvent) {
tooltips.x = evt.target.x + evt.target.width;;
tooltips.y = evt.target.y - evt.target.height;
tooltips.visible = true
function hideClip(evt:MouseEvent) {
tooltips.visible = false;
box.addEventListener(MouseEvent.MOUSE_OVER, showClip);
box.addEventListener(MouseEvent.MOUSE_OUT, hideClip);
I assume you'll create two movieclips named: box and tooltips -
Integrating Flash file in embedded visual C++
hi all...
i am trying to complie an .swf file to convert it into an
.exe file using Embedded Visual C++. i am almost through the entire
process but having a difficulty at the end.
My flash file created is flash 7 and works fine in the SWF
format when run in the Flash Player mode. As I click a link that
calls an external application, the application runs. But after I
have compile the swf file in embedded Visual C++ the generated EXE
does not seem to work. It does change the mouse pointer into the
"finger" which indicates that it does know that there is an
"OnRelease" event. But pressing the link does not do anything at
all.
Does anybody know why the link is not working and what have i
done wrong.Hi Jim7215
It seams to be a little bit strange.
As far as I know the evc file is a self extracting archiv.
Normaly it extracts it self anf installs evc. It might be
nessesary to have admin rights on the computer you
work with while installing the C compiler.
With kind regards
Martin Kunze
KDI Digital Instrumentation.com
e-mail: [email protected]
Tel: +49 (0)441 9490852 -
Flash File Gets a White Border on Page loaded and link changes to hyperlink
Hi,
Flash File Gets a White Border on Page loaded and the mouse
pointer changes to hyperlink Pls Help Its caused only in a System
which has Win XP or higher version U can view the Bug at "
www.prosystems.in"
Regards,
Francis> Also, I need to link the file a URL and putting <a
href> brackets around it is
> not working. Does the link to the page have to embedded
in the swf file?
wrapping an A HREF tag around a flash .swf object will not
work.
the link has to be "in" the swf, back when it was an FLA file
in flash.
Or- the .swf has to have actionscripting in it so that it
will take a url as
a parameter.
On the flash not showing--
Random observations from a quick look.
There is no \ backslash in a web path or url.
you can usually "get away with it" on a windows server, but
it's incorrect
and something to avoid.
<!-- Dependencies -->
<link type="text/css" rel="stylesheet"
href="build\fonts\fonts.css">
<!--<link type="text/css" rel="stylesheet"
href="build\reset\reset.css">-->
<script type="text/javascript"
src="build\yahoo\yahoo.js"></script>
<script type="text/javascript"
src="build\dom\dom.js"></script>
<script type="text/javascript"
src="build\event\event.js"></script>
<!-- Source file and calendar css -->
<script type="text/javascript"
src="build\calendar\calendar.js"></script>
<link rel="stylesheet" type="text/css"
href="build\calendar\assets\calendar.css" >
The javascript call to show the flash file contains an
absolute local path:
'file:///Macintosh HD/Users/user/Documents/ Work/Nimble Press
/Grant
Wrangler/Website/GW ADs/tiged
The noscript tag uses an absolute local path:
<param name="movie" value="file:///Macintosh
HD/Users/user/Documents/
Work/Nimble Press /Grant Wrangler/Website/GW
ADs/tiged.swf">
<param name="quality" value="high">
<embed src="file:///Macintosh HD/Users/user/Documents/
Work/Nimble Press /Grant Wrangler/Website/GW
ADs/tiged.swf" quality="high"
pluginspage="
http://www.adobe.com
it's also not a good idea to put things in a folder using a
blank space, and
whose name contains the word "ADs"
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/ -
How do I use text to open two different flash files?
Basically I want to use a flash file, which requires you to enter text and a button to click. If I typed in 'Movie 1' and clicked enter, it should take me to 'Animation 1.swf', if I typed in 'Animation 2' it should take me to 'Animation 2.swf'.
I don't have the time to relearn flash completely even though I want to, I haven't used flash in about 3 years and really struggling to remember anything, hate being a novice
Thank you so muchHi ,
As Ned suggested you could use something like this -
function startLoadingSwf()
var mLoader:Loader = new Loader();
var mRequest:URLRequest = new URLRequest(<name of the swf which you are picking up from the text field - text_field.txt>);
mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);
mLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgressHandler);
mLoader.load(mRequest);
function onCompleteHandler(loadEvent:Event)
addChild(loadEvent.currentTarget.content);
function onProgressHandler(mProgress:ProgressEvent)
var percent:Number = mProgress.bytesLoaded/mProgress.bytesTotal;
trace(percent);
startLoadingSwf();
Hope that helps!
Thanks and Regards,
Sudeshna Sarkar
Adobe Flash Professional Team -
Help required in embedding flash file object into Crystal Report file.
Hello,
I use the default version of Crystal Report (i.e.'Crystal Report Basic For Visual Studio 2008 - version 10.5' ) which is the part of 'Visual Studio 2008', to create and display the Report. Further, as a requirement, I have to show 'Event Video' into the Report. But, as this default version of Crystal Report does not support Flash File, I uninstalled it and downloaded and installed the 30 days trial version of the Crystal Report (i.e. Crystal Report 2008 - version 12.0).
Then, I created a new Crystal Report File using 'Crystal Report 2008 Designer', embedded the video as a Flash File(i.e. SWF file) into it. Now, when I add this newly created Crystal Report File into my sample application, which is created using VS 2008, it does not shows the embedded video.
So, can anybody please tell me, how can I embed the Flash File into Crystal Report, so that it will be visible in the sample application?
I would like to appreciate your help and support.
Thanks,
-Yogesh.Symptom :
When embedding a pdf document into a Crystal Report, only the one page shows.
Reproducing the Issue
Environment:
Crystal Reports OLE object
Cause
An OLE object only displays the first page.
Resolution
Embed multiple objects, one for each page
Or
Use a hyperlink to the object instead
Hope this helps!
Regards,
Vinay -
How do I find the AS that this links to in my flash file via "find"?
I have a flash file that I have on a web page. When I hover over the Join Us image, the mouse changes to a hand. I can click on the "button" but it doesn't take me anywhere. I'm trying to find out if there is a way to find the link in my Flash file via the "Find" function. What is causing the "hand" to appear, is there a goto or click actionscript that I can search? It's a pretty complex file which I didn't create, and I've had no luck finding this button layer, or AS.
I'm hoping to find where this AS is and link it to a page on my site. Thanks!Ned, you're back to save the day for me again. You helped me with the mask issue I had a few days ago and I'll have you know, the flash ad came out brilliantly. Everyone loved it.
So you were right, I did find the code AS3.
onClipEvent (load) {
this.hitArea = this.area;
on (rollOver) {
this.gotoAndPlay("s1");
on (releaseOutside, rollOut) {
this.gotoAndPlay("s2");
on (release) {
s1 and s2 are animations where the Join Us text rolls out and Rolls in as different colors.
I added the following to the code and it seems to work great.
onClipEvent (load) {
this.hitArea = this.area;
on (rollOver) {
this.gotoAndPlay("s1");
on (releaseOutside, rollOut) {
this.gotoAndPlay("s2");
on (release) {
getURL("http://mysite.html", "_self", "GET");
Thanks again for pointing me in the right direction. I think I may owe you a lunch or something after this is all said and done! -
Hello everyone,
I'm currently working on an standard as3 (1024x768) app that
is running inside a chromeless Air window to take advantage of the
transparency.
All my tests where done using windows XP professional and AIR
1.0 (the same problem existed in beta3).
The issue I'm having is related with Mouse Events. Somehow
the events take a lot of time to reach the swf file when the user
clicks inside the transparent window.
It's natural that the app runs slower inside a transparent
window (the framerate drops) but I wasn't expecting the clicks to
suffer from such delay (it takes sometimes 2-5sec).
The app is very CPU intensive and the transparencies make it
worse. Something inside the AIR framework is not dispatching the
events properly.
I say this because I tried using the virtualMouse class from
senocular together with a socket to simulate the mouse clicks and
that did the trick.
In conclusion:
Something in the AIR framework for windows XP is messing up
the dispatch of the Mouse events when the app is under heavy cpu
usage inside a chromeless window. I click on the window and it
takes 1-2sec to receive the click event.
However when I dispatch the MouseEvent.CLICK myself using
the virtual mouse class the application immediately receives the
event.
I know this is a strange bug and not many people will have
this problem, but I would like to know from someone with knowledge
of the runtime why this could be happening.
Thank you
Tiago BilouHello everyone,
I'm currently working on an standard as3 (1024x768) app that
is running inside a chromeless Air window to take advantage of the
transparency.
All my tests where done using windows XP professional and AIR
1.0 (the same problem existed in beta3).
The issue I'm having is related with Mouse Events. Somehow
the events take a lot of time to reach the swf file when the user
clicks inside the transparent window.
It's natural that the app runs slower inside a transparent
window (the framerate drops) but I wasn't expecting the clicks to
suffer from such delay (it takes sometimes 2-5sec).
The app is very CPU intensive and the transparencies make it
worse. Something inside the AIR framework is not dispatching the
events properly.
I say this because I tried using the virtualMouse class from
senocular together with a socket to simulate the mouse clicks and
that did the trick.
In conclusion:
Something in the AIR framework for windows XP is messing up
the dispatch of the Mouse events when the app is under heavy cpu
usage inside a chromeless window. I click on the window and it
takes 1-2sec to receive the click event.
However when I dispatch the MouseEvent.CLICK myself using
the virtual mouse class the application immediately receives the
event.
I know this is a strange bug and not many people will have
this problem, but I would like to know from someone with knowledge
of the runtime why this could be happening.
Thank you
Tiago Bilou -
How to load other obejects in flash file after intro using ActionScript 3.0
How to load other obejects in flash file after intro using ActionScript 3.0 or any other method all in same fla file. see blow intro screen shot ,this one playing repeatedly without loading other fla pages .only way to load other pages is click on Skip intro .see second screeshot below .i need that site to load after intro .
see codes already in
stop();
skipintro_b.addEventListener(MouseEvent.CLICK, skipintro_b_clicked);
function skipintro_b_clicked(e:MouseEvent):void{
gotoAndStop("whoweare");
There is another script there
/* Simple Timer
Displays a countdown timer in the Output panel until 30 seconds elapse.
This code is a good place to start for creating timers for your own purposes.
Instructions:
1. To change the number of seconds in the timer, change the value 30 in the first line below to the number of seconds you want.
var fl_TimerInstance:Timer = new Timer(1000, 30);
fl_TimerInstance.addEventListener(TimerEvent.TIMER, fl_TimerHandler);
fl_TimerInstance.start();
var fl_SecondsElapsed:Number = 1;
function fl_TimerHandler(event:TimerEvent):void
trace("Seconds elapsed: " + fl_SecondsElapsed);
fl_SecondsElapsed++;
i have no knowledge about these thing ,any help really appreciated .Ned Murphy Thank you very Much .It is working .Great advice
-
I FIND YOUR FLASH FORMAT EXTREMELY USER-UNFRIENDLY.
I spent two weeks to figure out how to save a complete .swf
file to my local drive.
Finding 48 files behind a main html doc hosting those .swf's
took 48 hours.
(Now I can't move my arm anymore due to RSI!)
No application to save a Flash file, seems to be able to do that
in 1,2,3 convenient steps.
I always get bits and pieces or individual graphics.
I NEVER GET THE ENTIRE MANUAL the way I can browse the Flash
file in my browser.
I am seriously thinking of never browsing a Flash file again
if there is no solution to download e.g. a manual of my digital
camera.
I have the right to browse such a file at my convenience either
on or offline! Online it's just impossible due to server
overload.
Now I only get the desadvantages of the format to deal with
(e.g. tons of spamming advertising) whereas I should be able to
enjoy the benefits. Eventhough I gave the manufacturer the right to
fill up 10 MB on my drive, I never got a file on my PC. And even
when I did, I wouldnt know where to find it...
I hope Adobe would listen to the user more often...
WHY DON'T YOU BUILD SOLUTIONS AS EASY AS A RIGHT MOUSE CLICK
ALLOWING FOR SAVING A FLASH FILE!
That can't be rocket science, is it?
Thank you for paying attention to your customers.You can add parameters to the flashvars property in the HTML wrapper:
http://livedocs.adobe.com/flex/3/html/help.html?content=passingarguments_3.html
http://livedocs.adobe.com/flex/3/html/help.html?content=wrapper_01.html
If this post answered your question or helped, please mark it as such. -
How can I add a pause after each photo to my flash file?
How can I add a break to my sequence of photos on a flash file.
I created a flash with different photos and I want each one to stay on the stay for about a minute before moving away.
How do I do this? Please help//Timers are measured in milliseconds
var minuteTimer:Timer = new Timer(60000);
minuteTimer.addEventListener(TimerEvent.TIMER, exchangePhoto);
function exchangePhoto(e:Event):void{
//put your code of exchanging your photo here
//you have to start the timer explicitly, when your app starts
minuteTimer.start();
Maybe you are looking for
-
Wty issue - Can't Posted due to error Action T043 Post version IV to FI
Hi Experts, I have one problem which is some of the wrty claims can't posted due to error message log not found (in memory ) and also Action T043 POst version IV to FI not carried out as there was an error in a previous version. For info, the earlie
-
Just want to make ffox default; ff help only discusses making Safari default browser. Your cookbook questions are not very applicable to this simple problem
-
Passing an option to java command (from JDev31).
Hi, I need to pass -Dorg.omg.CORBA.ORBInitialHost=buzz to java command. I think it should be added in jdeveloper.ini file but I dont know how. Your help would be highly appreciated, Reza null
-
Offline USB Capture Of Windows 8.1?
We just received new wireless Atom tablets (no Ethernet) running Windows 8.1 Update 1 Pro and we have only been deploying Windows 7 up until now. It may be possible to get USB Ethernet adapters that would allow network deployment, but we would rathe
-
Windows 10 for phones emulators on Windows 10 10041 - problem with network connection
Hi, I can't connect to Internet on Windows 10 mobile emulators on Windows 10041. I have tried to resolve problem. First I noticed, there was problem with displaying properties main network connection. I had reinstalled network driver. After that I re