donderdag 4 februari 2010

buy cool t shirts

buy cool t shirts





elton_brazil


Member













Hello!






How can I open in another window a clicked page? Its possible open a popup "into" flash... I would like open in another window, "out" flash. Is it possible? How can Ido it?






Thanks








Posted 1 year ago
#
















bnnorman


Member













use getURL() to open a new window.






Look here:-


http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary377.html







and here:-







http://livedocs.adobe.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001730.html







You may have to compile the flash with "Access Network Only".








Posted 1 year ago
#
















breizalix


Member













Hi,



I'm trying to do the same think. And to open the popup I use that code :






In the html file( where is your pageflip) paste this javascript (in the HEAD):













and this code in the .fla :






import flash.external.ExternalInterface;






this.btZoom1.onPress = function() {



flash.external.ExternalInterface.call("winOpen","yourpopup.html",600,400);



}






but THE problem is to put it at the good place !!... and actualy I've no idea !






ladies clothing stores
Perharps bnnorman could you help me ?






In fact, when I "release" on a page of my book, I open the zoom of the page.



This zoom file is a .swf where I positioned zones which open the popup.








Posted 1 year ago
#
















bnnorman


Member













I would have thought you had it in the right place being in the button code but if it is in the zoomed page you might have problems with conflicts between what the mcZoom.as code is trying to do re closing/scrolling the popup. To work around that you'd have to temporarily disable some of the Zoom mc methods something (untested) like this:-






var X=Zoom.onRollover;






delete Zoom.onRollover; <- delete any interfering code






<...do something...>






Zoom.onRollover=X; <- restore the code








Posted 1 year ago
#
















breizalix


Member













Hi,



Sorry, I'm back after few days...



I'm still trying to open a new window with the popup (zoom).



The popup is a .swf who contains buttons (area) which open the new window (finaly with a simply getURL()...)



But I don't see where I can disable the Zoom mc methods, I supose it's on mcZoom.as... without success.



Any suggestions ?








Posted 1 year ago
#
















bnnorman


Member













If you don't want the code in mcZoom.as just remove the






#include "scripts/mcZoom.as"






from frame 1 of the mcZoom in the library.








Posted 1 year ago
#
















breizalix


Member





women underwear brands








I want the mcZoom.as, I need to zoom on my page.



I want to open an other window by "clicking" a button on this zoom... but there's a conflict with the closing/scrolling methods. Few weeks ago, you've tell me :



"To work around that you'd have to temporarily disable some of the Zoom mc methods something (untested) like this:-



var X=Zoom.onRollover;



delete Zoom.onRollover; <- delete any interfering code



<...do something...>



Zoom.onRollover=X; <- restore the code "






And I'm not able to try it, because I'm not able to find where to do it...








Posted 1 year ago
#
















bnnorman


Member













In mcZoom.as this code begins at line 344. It is the mouse onRelease event handler for the zoomed page. This has to be disabled/ignored whilst your popup is active.







Warning, the listing below may not be identical to your because it is a work in progress but the principle is the same.







/*






onRelease()






if dragging we just stop otherwise we use the mouseclick



to close the PopUp



*/






onRelease=function()



{



if ((Param.scrollMode=="DRAG") && dragging)



{



stopDrag();



dragging=false;



return;



}



_root.pageNav.HidePrintButton();



_root.DoTransition(_root.Zoom,Param.exit,Transition.OUT,UnloadPopUp);



if (Param.callback) Param.callback("EXIT");






}






function UnloadPopUp()



{



trace("mcZoom UnloadPopUp called for allTransitionsOutDone");



unloadMovie(PopUp);



removeMovieClip(PopUp);



};






I suggest you make the following changes shown in bold:-






/*






onRelease()






if dragging we just stop otherwise we use the mouseclick



to close the PopUp



mens dress suites
*/







var releaseEnabled=true;







onRelease=function()



{


if (!releaseEnabled) return;



if ((Param.scrollMode=="DRAG") && dragging)



{



stopDrag();



dragging=false;



return;



}



_root.pageNav.HidePrintButton();



_root.DoTransition(_root.Zoom,Param.exit,Transition.OUT,UnloadPopUp);



if (Param.callback) Param.callback("EXIT");






}






function UnloadPopUp()



{


releaseEnabled=true;



trace("mcZoom UnloadPopUp called for allTransitionsOutDone");



unloadMovie(PopUp);



removeMovieClip(PopUp);



};






Now, in your FLA you just do this in frame 1






_root.Zoom.releaseEnabled=false;






this should prevent the onRelease being handled by the Zoom code until you close your PopUp or call _root.Zoom.releaseEnabled=true;






CAVEAT: I haven't tried it. But you've just given me more work to do for the next release :-(








Posted 1 year ago
#
















breizalix


Member













It's seem to be the right way but I am blocked...



- I can desable closing the popup



- my buttons (btZoom) works when I test my fla but not if I recompile pageFlip






My code (mcZoom.as):



-------------------------



/*



onRelease()



if dragging we just stop otherwise we use the mouseclick



to close the PopUp



*/






var releaseEnabled=true;






onRelease=function()



{



if (!releaseEnabled) return;



if ((Param.scrollMode=="DRAG") && dragging)



{



stopDrag();



dragging=false;



return;



}






Exit=Param.exit;



if (Param.callback) Param.callback("EXIT");
wholesale leather suppliers






}






/*



unloadClip()



removes the PopUp()



*/






function UnloadClip()



{



releaseEnabled=true;



Exit="DONE";



unloadMovie(PopUp);



removeMovieClip(PopUp);



delete onEnterFrame;



}



----------------



and on my fla (zoom):



----------------



//stop();






_root.Zoom.releaseEnabled=false;






var container:MovieClip = createEmptyMovieClip("container", getNextHighestDepth());



var mcLoader:MovieClipLoader = new MovieClipLoader();



mcLoader.addListener(this);



mcLoader.loadClip("pages/zoom/page2.jpg", container);






_root.btZoom1.onRelease = function() {



_root.getURL("my link","_blank","POST");



/*_parent.Exit=_parent.Param.exit;



if (_parent.Param.callback) _parent.Param.callback("EXIT");*/



_root.Zoom.releaseEnabled=true;



}



_root.btZoom2.onRelease = function() {



_root.getURL("my link","_blank","POST");



_root.Zoom.releaseEnabled=true;



}








Posted 1 year ago
#
















bnnorman


Member













Your code looks ok.






I wonder if it's a security issue because I've encountered issues with getURL before - have you compiled Pageflip and your FLA with Local Play Back Security set to Access Network Only?








Posted 1 year ago
#
















breizalix


Member













Using V1.27 I've modified my page Zoom with that code :






---------



stop() ;



_root.Zoom.popUpDisable();






var container:MovieClip = createEmptyMovieClip("container", getNextHighestDepth());



var my_mcl:MovieClipLoader = new MovieClipLoader();



best hat store in
my_mcl.addListener(this);



my_mcl.loadClip("pages/zoom/1.jpg", container);






Total = _root.getBytesTotal() ;



Lu = _root.getBytesLoaded() ;



rapport = Math.round((Lu)/(Total)*100) ;






_root.btZoom1.onPress = function() {



getURL("myURL","_blank","POST");



_root.Zoom.PopupEnable();



}



----------



But I'm still looking for a solution to be able to call the getURL... this solution under my nose but I do not see it, it is rageant !








Posted 1 year ago
#
















bnnorman


Member













Are you sure about the bit in bold?







_root.btZoom1
.onPress = function() {



getURL("myURL","_blank","POST");



_root.Zoom.PopupEnable();



}






Where is your btZoom1?






For example, if it is on the pageNav movieclip it would be
_root.pageNav.btZoom1







But I would expect you to place the onPress function on your button itself not inside the page being loaded.






Put a trace("btZoom1 pressed"); inside your onPress function to check the event is being seen.








Posted 1 year ago
#
















breizalix


Member













"btZoom1" is on the file zoom.fla (witch is used to make the page zoom files).






In fact, its name should not be "btZoomX" but "btLinkX" because I used it (or I would like to used it !) to open a webpage...



I wonder whether I could not use the “hotspots” to do it ?... but can we define hotspots on the popup ?








Posted 1 year ago
#
















bnnorman


Member













There's another fine suggestion. Might be complicated because at the moment PopUps can be dragged around, clicking on them causes the exit transition to take place, so I'll have to clothing co dallas
give it some thought.






Did you do a trace to ensure your button code was being called?








Posted 1 year ago
#
















breizalix


Member













I've put a trace("btZoom1 pressed"); inside my onPress function, the code is called... when I test (only) my zoom page but not when I test the book. But I can see my button right before my image is not charged, in the popup !






I think that could come from this part of code : getNextHighestDepth() when I created the empty movie clip "container"... and the button is found behind ?!








Posted 1 year ago
#
















bnnorman


Member













Ok, I think you are right that the container movieclip is loaded higher than the button.






Try using swapDepths() between the mc loaded and the mc with the button on it.








Posted 1 year ago
#
















breizalix


Member













Hi bnnorman, thank's again to spend your time with me !!






But, I must be stupid (or blind man…), I do not understand or to put swapDepths() ?






... and (if I misuse...), in the xml, how can I deactivate the effect on "popupexit" ? I can do it for popupentrance > popupentrance="" but not for popupexit ?



... and (at least !) I've tried to modified mcZoom.as to reverse the direction of the slide but I can remake I've already done with V1.27(or before ?).








Posted 1 year ago
#
















bnnorman


Member













the Flash help tells you about swapDepths(). Basically,






mc1.swapDepths(mc2);






so if mc1 was above mc2 before then mc2 will be as you are shirts
be above mc1 after. So, create two movieclips - one for your button and one for whatever you want to load.






popupexit="" should work - the code is identical to popupentrance.In fact any gibberish should work popupexit="rubbish".






To disable the popup scrolling or sliding try using clickzoomscroll=""








Posted 1 year ago
#
















breizalix


Member













It's stange, popupexit="" don't work ?! (I've even tried "rubbish"... no more succes ;o)



so I've used a trick : popupexit="Fade" and it's almost the same effect.








Posted 1 year ago
#
















breizalix


Member













For the popup sliding, in fact, I don(t want to desable it : I would like the popup slide up when the mouse move down and slide down when the mouse move up...



I'va tried (on mcZoom.as):






onMouseMove=function()



{



//trace("mcZoom.as onMouseMove");



thisX = _root._xmouse*-1;



thisY = _root._ymouse*-1;



}








Posted 1 year ago
#
















bnnorman


Member













You need to modify the Slide function not the onMouseMove






Swap the + and - operators in the bold bits below - that should do what you want.






popup_Slide=function()



{






if (slideDisabled) return;






if ((PopUp._xlastX))



{



PopUp._x+=_root.SlideStep;



lastX++;



}



if ((PopUp._x>scrollboundary_l) && (thisX


{



PopUp._x-=_root.SlideStep;



lastX--;



}
us traveler luggage






if ((PopUp._ylastY))



{


PopUp._y+=_root.SlideStep;



lastY++;



}



if ((PopUp._y>scrollboundary_t) && (thisY


{


PopUp._y-=_root.SlideStep;



lastY--;



}



}








Posted 1 year ago
#
















breizalix


Member













Hi bnnorman,






I had put a little of dimensioned this project for others... I recover there today and I am still blocked !



I'm still don't see where to use "swapDepths()"... so I'm looking for an other way:






-> the pages loaded are .swf (they contents area with the code to open an other window)



-> in the xml file, for the pages : "hires_src="DISABLED"



-> on "page nav" in pageflip_BNN.fla > I added 2 buttons to zoom the pages (not tested yet)






It works but resource request too many to the system ! I've you an idea ?








Posted 11 months ago
#
















bnnorman


Member













So are you saying your book is using up a lot of resources?






Has this always been the case or did it happen after you made a change - if so what?






If you have a big book maybe you should look at the latest version BNN-V1.34 - it has enhancements for dynamic loading/unloading of pages and should keep resource usage down.








Posted 11 months ago
#
















breizalix


Member













I use the version BNN-V1.34 and less than 25 pages... i'll take look for dynamic loading/unloading of pages.








Posted 11 months ago
#
















rsuhel


Member

we hate












Hi bnnorman:






Thank you for your version PageFlip-BNN-V1.34. I'm not much expert on action script. But trying to use resources that you uploaded. During my work trying to solve/add some codes with yours to load Flash Paper pages into PopUp. It is working fine but can't control the size with the existing code. So, I tried the following codes...



--



import mx.utils.Delegate;



// setup a string to store the document path



var sFPDoc:String = "Distributing_Classes_in_SWC_Files.swf";



// setup a callback for the Button instance's click event



var onDocClick:Function = function(oEvent:Object):Void {



var oWindowInit:Object = {



title: "Document Viewer",



contentPath: sFPDoc,



closeButton: true



};



cwiDoc = mx.managers.PopUpManager.createPopUp



(this, mx.containers.Window, true, oWindowInit);



cwiDoc.addEventListener("complete", Delegate.create



(this, this.onWindowLoad));



cwiDoc.addEventListener("click", Delegate.create



(this, this.onWindowClick));



cwiDoc.setSize(500, 350);



};



// setup a function that is invoked when the Window



// instance has finished creating itself



var onWindowLoad:Function = function(oEvent:Object):Void {



onEnterFrame = function():Void {



var mcDoc:MovieClip = cwiDoc.content;



if(mcDoc.setSize != undefined){



mcDoc.setSize(cwiDoc.width - 5, cwiDoc.height - 34);



onEnterFrame = null;



}



};



};



// setup the callback for the Window instance's close button



var onWindowClick:Function = function(oEvent:Object):Void {



cwiDoc.deletePopUp();



};



// create a temporary reference frame to see



// the size of the FlashPaper doc






// Invoke the onDocClick() function when the View Doc button is clicked



cbt.addEventListener("click", Delegate.create(this, this.onDocClick));



---



here is the link that I used...


http://www.scribd.com/doc/2942002/Loading-FlashPaper-2-Documents-into-Your-Own-Flash-Movies



----



I need the following..



1. Load Flash Paper movie in any window size..



2. I need to use all options that a Flash Paper movie has.



3. I need to add drag window feature with the movie. and



4. Of course load hi_res swf pages dynamically..






would you please reply me to solve the above... I've tried to solve some feature like enabled the loaded PopUp page in your version but failed to do that. please help me...






--








Posted 9 months ago
#
















rsuhel


Member









dolce and gabbana official website




I have solved the PopUp screen control for Flash Paper load using...






popup_f1.as affected






--



var screenx=System.capabilities.screenResolutionX;



var screeny=System.capabilities.screenResolutionY;






var mcDoc:MovieClip = createEmptyMovieClip("mcDoc", 1);



// setup the callback for a MovieClipLoader instance



var onLoadInit:Function = function():Void {



onEnterFrame = function():Void {



if(mcDoc.setSize != undefined){



mcDoc.setSize(screenx, screeny);



onEnterFrame = null;



}



};



};






var mcl:MovieClipLoader=new MovieClipLoader();



mcl.addListener(this);



mcl.loadClip(Param.src, mcDoc);



--



I used the screen width for PopUp and used full screen and changed the following in mcZoom.ac



---



_root.PopUpParams.x=(800-System.capabilities.screenResolutionX)/2; // center on screen



_root.PopUpParams.y=(600-System.capabilities.screenResolutionY)/2; ;



--



i used fscommand in fullscreen while loading PopUp and return n exit...






But still I need your expert solution to the following..






I need the following..






1. I need to add drag window feature with the movie. and



2. Activate/enable the PopUp window in zoomed position so that can use features of Flash Paper








Posted 9 months ago
#
















bnnorman


Member













1 dragging is done quite easily using code similar to this.






mc.onPress=function()



{



startDrag(this);



}






mc.onRelease=function()



{



stopDrag();



}






2 No idea - sorry, I haven't messed with Flash Paper






But if you are saying you want to be able to click on Flash Paper controls and have them work then you need to be aware of which layer the Flash Paper is on - my experience is that clicks are not passed through layers but seem to stop on the upper layers if there is a handler for it. Sorry again.




saks off the avenue




Posted 9 months ago
#
















rsuhel


Member













bnnorman






ignore plash paper... but when i load any flash movie into Zoom via PopUp it show a hand cursor and disabled click options to the loaded hr movie.. Suppose, I need to enable so that I can use any button used on zoomed page...






I tried..






getNextHighestDepth()



getInstanceAtDepth()



swapDepths()






in mcZoom.ac... like this.createEmptyMovieClip("PopUp",PopUp.getInstanceAtDepth(-1));






but is not working.. still i can see hand cursor when zoomed page load...








Posted 9 months ago
#
















bnnorman


Member













Flash switches to the hand (finger pointing) cursor whenever there is a clickable object underneath it.






Ahem, however I quickly found this in the Flash 8 help :-






this.useHandCursor = false;






Stick it at the start of mcZoom.as and you'll only get the pointer cursor.






I'll put an option into the code to control it from V1.36 onwards.








Posted 9 months ago
#
















sevendayforum1


Member













is it possible if i use PHP on this one the moderator's been asking?







balance transfer credit cards









Posted 4 months ago
#














RSS feed for this topic











You must
log in
to post.
motor cycle clothes


See also for buy cool t shirts:
helmet up
own clothes
where to buy cool clothes
and grocery bags
graphic t shirt store

Geen opmerkingen:

Een reactie posten