[flexcoders] Re: Flex and Adsense
yes you were right about flash wmode = transparent sorry, I was faster then brain so I though about other thing nevermind good example of divs over flash can be found here http://particletree.com/features/using-flash-as-an-animation-underlayer/ greetz Alex --- In flexcoders@yahoogroups.com, Paul deCoursey <[EMAIL PROTECTED]> wrote: > > It has been my experience that the Flash does have to be set to > transparent when a div is over it. Maybe that has changed in Flash 9. > > alex steel wrote: > > html div is over flash, so flash doesn't have to be transparent > > > > that's it > > I will post example asap :) > > > > all the best > > Alex > > --- In flexcoders@yahoogroups.com, "Benoit Hediard" wrote: > > > >> It's possible to put some html div layer on top of a flash/flex app. > >> > >> But, in order to that, you must use wmode as opaque or transparent. > >> > >> And if you do that: you'll face the famous Firefox bug where most > >> > > keyboard > > > >> inputs for special characters is screwed up. > >> > >> Pretty annoying > >> > >> > >> > >> > > > > > > >
[flexcoders] Re: Flex and Adsense
html div is over flash, so flash doesn't have to be transparent that's it I will post example asap :) all the best Alex --- In flexcoders@yahoogroups.com, "Benoit Hediard" <[EMAIL PROTECTED]> wrote: > > It's possible to put some html div layer on top of a flash/flex app. > > But, in order to that, you must use wmode as opaque or transparent. > > And if you do that: you'll face the famous Firefox bug where most keyboard > inputs for special characters is screwed up. > > Pretty annoying > > >
[flexcoders] Re: Flex and Adsense
if you want I can make example of html over flex, with alternative content but I'm sure almost everyone here can do that thnx Alex --- In flexcoders@yahoogroups.com, "Judith Dinowitz" <[EMAIL PROTECTED]> wrote: > > Actually, Michael says that Adsense is a piece of JavaScript that remotely > pulls in content. Straightforward, but the content being pulled in, which is > essentially HTML, needs to be placed on the page in context. So if the page > is a Flex application, then the Flex application has to accept that content > and display it. > > Michael says that he's sure Flex can accept content from JavaScript and > display it, but it runs into the problem that Adsense will deliver the > content based on the contextual content of the page. Google has seen the > page and knows what's on it. So therefore, Google has to see something on > the page that says, "Hey, let's put a proper ad in." Google can't read Flash > content... That's where your problem comes in. > > So how do you solve that problem? The solution is to have the Flex > application on a page that has content, or expose all the Flex content in > the application on the page for Google to see. > > Judith > > On 6/5/07, Judith Dinowitz <[EMAIL PROTECTED]> wrote: > > > > Actually, if someone has found a way to do so, I'd love to publish it as a > > short article on FA online. :) > > > > Judith Dinowitz > > Editor-in-Chief > > Fusion Authority > > http://www.fusionauthority.com/ > > > > On 6/5/07, Romain <[EMAIL PROTECTED]> wrote: > > > > > > Maybe some Adobe Flex/Apollo evangelist could take up the gauntlet ? > > > Any in the room ? > > > > > > --- In flexcoders@yahoogroups.com, "James" wrote: > > > > > > > > Well if it is true that their current TOS disallows flash site usage, > > > > then we need to start a petition or something. But first we need to > > > > get Google's official stance. Anyone up to writing them a friendly > > > > email? :) > > > > > > > > -James > > > > > > > > > > > > > > > > > > > -- > > > Flexcoders Mailing List > > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > > Search Archives: > > > http://www.mail-archive.com/flexcoders%40yahoogroups.com > > > Yahoo! Groups Links > > > > > > > > > > > > > > > > > > -- > > Judith Dinowitz > > Editor > > Fusion Authority > > The House of Fusion Technical Magazine > > http://www.fusionauthority.com > > > > > -- > Judith Dinowitz > Editor > Fusion Authority > The House of Fusion Technical Magazine > http://www.fusionauthority.com >
[flexcoders] Re: Flex and Adsense
you can always put div box over flash containing adsense html code look out for css z-index with flash use ...
Re: {Disarmed} [flexcoders] Flex SWF running slow
thank for looking It happens to me without any interaction I know for service browser and everything is ok, I still think it have problem with adding 300 ui elements with my flash experience I would break it in smaller chunks, for example 40 frames per second, break it in 8 per frame, it would slide through it how can I do such a thing in Flex ? if that isn't problem I would still have good ad to my Flex experience and future issues I didn't looked about how Flex execute larger chunks of code does it try to do it in one frame, or it's truly frame=free ?
[flexcoders] Flex SWF running slow
I have a little problem with Flex compiled file is running slow, freezing computer for about 2 sec basiclly I use amfphp2 to get information for dynamiclly creating Lists you can see it at http://www.pleasures.co.yu/_gvozden/RHS/RHS.html and code which is doing that is at http://www.pleasures.co.yu/_gvozden/RHS/RHS_code.txt as far as I see it there is nothing tricky there except if creating 300 UI items freeze it, and it is obviously being that I am new to Flex but expert for Flash I find this really weird and bad how can I resolve this issue (without making it static)? AMFPHP 2 browser returns query for about 2 sec, one's that clock is showing , then there is freeze :( thnx Alex
[flexcoders] Re: dynamically created access and event elements problem and
Little trickery and I resolved the problem anyway basically I used name to keep checkbox number at creation var k1 : uint = k*2; cbJ_L.name = k1.toString(); var k2 : uint = k*2+1; cbJ_R.name = k2.toString(); and in function called upon change event public function setCheckBox(event:Event):void { var currNumber:uint = Number(event.currentTarget.name); var otherNumber:uint; if (currNumber%2 == 1) { otherNumber = currNumber-1; } else { otherNumber = currNumber+1; } if (event.currentTarget.selected) { cbJ_arr[otherNumber].selected = false; } } I am good at making things work but I would like to do it right way ;) --- In flexcoders@yahoogroups.com, "alex steel" <[EMAIL PROTECTED]> wrote: > > Thanks again :) > I understand referencing by array, > but isn't it possible to reference by dynamiclly created name > like in flash you can use name to create movieclip > _root.createEmptyMovieClip("name", 1000) > > and then > name or _root["name"] can be use as reference > > > another question is > how I can pass variable via event > basiclly if I have array of elements then I would like to pass array > position of element in array so I can determine if it's left or right > checkbox so I can keep only one of two checkboxes selected > if I could add variables to elements that would be good > like I can do in flash with movieclips mc.number = i > or that need extending checkbox class ? > > > thanks in advance > > > > --- In flexcoders@yahoogroups.com, "Gordon Smith" wrote: > > > > Sorry... in the second example, > > > > var rb:RadioButton; > > > > should be > > > > var rb:RadioButton = new RadioButton(); > > > > - Gordon > > > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > > Behalf Of Gordon Smith > > Sent: Thursday, April 05, 2007 1:17 PM > > To: flexcoders@yahoogroups.com > > Subject: RE: [flexcoders] Re: dynamically created access and event > > elements problem and > > > > > > > > > can you help me on part "you should keep variable referencing to > > checkboxes" > > > > Define an instance variable in your app or component. When you > > dynamically create a CheckBox, store it in that variable: > > > > > > > > // Any other method in this class can access the radio buttons using > > these variables > > private var radioButton1:RadioButton; > > private var radioButton2::RadioButton; > > > > private function createRadioButtons():void > > { > > radioButton1 = new RadioButton(); > > // set properties, styles, and event handlers on radioButton1 > > > > radioButton2 = new RadioButton(); > > // set properties, styles, and event handlers on radioButton1 > > } > > > > > > > > If you don't know in advance how many checkboxes you''ll be creating, > > use an array: > > > > > > > > // Any other method in this class can access the radio buttons using > > this array. > > private var radioButtons:Array /* of RadioButton */ = []; > > > > private function createRadioButtons():void > > { > > for (var i:int = 0; i < ...; i++) > > { > > var rb:RadioButton; > > // set properties, styles, and event handlers on rb > > radioButtons.push(rb); > > } > > } > > > > > > > > - Gordon > > > > > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > > Behalf Of alex steel > > Sent: Thursday, April 05, 2007 5:19 AM > > To: flexcoders@yahoogroups.com > > Subject: [flexcoders] Re: dynamically created access and event elements > > problem and > > > > > > >
[flexcoders] Re: dynamically created access and event elements problem and
Thanks again :) I understand referencing by array, but isn't it possible to reference by dynamiclly created name like in flash you can use name to create movieclip _root.createEmptyMovieClip("name", 1000) and then name or _root["name"] can be use as reference another question is how I can pass variable via event basiclly if I have array of elements then I would like to pass array position of element in array so I can determine if it's left or right checkbox so I can keep only one of two checkboxes selected if I could add variables to elements that would be good like I can do in flash with movieclips mc.number = i or that need extending checkbox class ? thanks in advance --- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote: > > Sorry... in the second example, > > var rb:RadioButton; > > should be > > var rb:RadioButton = new RadioButton(); > > - Gordon > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Gordon Smith > Sent: Thursday, April 05, 2007 1:17 PM > To: flexcoders@yahoogroups.com > Subject: RE: [flexcoders] Re: dynamically created access and event > elements problem and > > > > > can you help me on part "you should keep variable referencing to > checkboxes" > > Define an instance variable in your app or component. When you > dynamically create a CheckBox, store it in that variable: > > > > // Any other method in this class can access the radio buttons using > these variables > private var radioButton1:RadioButton; > private var radioButton2::RadioButton; > > private function createRadioButtons():void > { > radioButton1 = new RadioButton(); > // set properties, styles, and event handlers on radioButton1 > > radioButton2 = new RadioButton(); > // set properties, styles, and event handlers on radioButton1 > } > > > > If you don't know in advance how many checkboxes you''ll be creating, > use an array: > > > > // Any other method in this class can access the radio buttons using > this array. > private var radioButtons:Array /* of RadioButton */ = []; > > private function createRadioButtons():void > { > for (var i:int = 0; i < ...; i++) > { > var rb:RadioButton; > // set properties, styles, and event handlers on rb > radioButtons.push(rb); > } > } > > > > - Gordon > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of alex steel > Sent: Thursday, April 05, 2007 5:19 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: dynamically created access and event elements > problem and > > >
[flexcoders] Re: dynamically created access and event elements problem and
Hi Alex, thanks for your time and help I manage to get Event working but I still have a problem with variables how should I get to them based on my code tabs is name of TabNavigator tab_page3 is name of tab / canvas and thats the place where checkboxes and text is created I've tried using getChildByName but with no luck so can you help me on part "you should keep variable referencing to checkboxes" thanks! --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote: > > You should keep variables referencing the checkboxes, call > addEventListener to listen to the "change" event and set the selected > property of the other checkbox > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of alex steel > Sent: Wednesday, April 04, 2007 11:33 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Re: dynamically created access and event elements > problem and > > > > can somebody help me please > this is second post with question and yet nobody answers and I am sure > this is pretty easy > I count on people here, but if you think I should try to find better > place for help please let me know > > Alex > ... > > This piece of code helps me create dynamically checkboxes in one of > > the Tabs in my TabNavigator > > > > my problem is how to access now to this elements so I can check their > > value and how to make event to make unselected some other checkbox on > > click > > checkboxes are grouped in Left and Right and only Left or Right can be > > selected, that's why I need an event > > basiclly with hand placed CheckBoxes click=3D"cb_r.selected=3Dfalse" > is > > enough but for dynamically created I need your help > > > > THANKS in ADVANCE ;) > > >
[flexcoders] Re: dynamically created access and event elements problem and
can somebody help me please this is second post with question and yet nobody answers and I am sure this is pretty easy I count on people here, but if you think I should try to find better place for help please let me know Alex ... > This piece of code helps me create dynamically checkboxes in one of > the Tabs in my TabNavigator > > my problem is how to access now to this elements so I can check their > value and how to make event to make unselected some other checkbox on > click > checkboxes are grouped in Left and Right and only Left or Right can be > selected, that's why I need an event > basiclly with hand placed CheckBoxes click=3D"cb_r.selected=3Dfalse" is > enough but for dynamically created I need your help > > THANKS in ADVANCE ;) >
[flexcoders] dynamically created access and event elements problem and
Message-ID: <[EMAIL PROTECTED]> User-Agent: eGroups-EW/0.82 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Yahoo Groups Message Poster X-Yahoo-Post-IP: 147.91.173.31 X-Yahoo-Newman-Property: groups-compose Sender: notify@yahoogroups.com X-Yahoo-GPoster: Di=zrAX9kPCKCLDF var partJ_title:Array =3D new Array(); var partJ_cb:Array =3D new Array(); partJ_title.push("None"); partJ_cb.push("chb_none"); partJ_title.push("Isolated/scattered"); partJ_cb.push("chb_isolated"); partJ_title.push("Regularly spaced/single"); partJ_cb.push("chb_single"); partJ_title.push("Occasional dumps"); partJ_cb.push("chb_dumps"); partJ_title.push("Semi-continuous"); partJ_cb.push("chb_semicontinuous"); partJ_title.push("Continuous"); partJ_cb.push("chb_continuous"); partJ_title.push("Shading of channel"); partJ_cb.push("chb_shading"); partJ_title.push("*Overhanging boughs"); partJ_cb.push("chb_boughs"); partJ_title.push("*Exposed bankside roots"); partJ_cb.push("chb_banksideRoots"); partJ_title.push("*Underwater tree roots"); partJ_cb.push("chb_underwaterRoots"); partJ_title.push("Fallen Trees"); partJ_cb.push("chb_fallenTrees"); partJ_title.push("Large woody debris"); partJ_cb.push("chb_woodyDebris"); for (var k:int =3D 0; k < 6; k++) { var chB_L:CheckBox =3D new CheckBox(); var chB_R:CheckBox =3D new CheckBox(); var txt_J:Text =3D new Text(); txt_J.id =3D partJ_title[k]; txt_J.text =3D partJ_title[k]; txt_J.x =3D 40; txt_J.y =3D 599+k*22; chB_L.x =3D 190; chB_R.x =3D 221; chB_R.y =3D chB_L.y =3D 599+k*22; //chB_L.addEventListener(MouseEvent.CLICK, setCheckBox); chB_L.id =3D partJ_title[k]+"_L"; chB_R.id =3D partJ_title[k]+"_R"; tab_page3.addChild(chB_L); tab_page3.addChild(chB_R); tab_page3.addChild(txt_J); } This piece of code helps me create dynamically checkboxes in one of the Tabs in my TabNavigator my problem is how to access now to this elements so I can check their value and how to make event to make unselected some other checkbox on click checkboxes are grouped in Left and Right and only Left or Right can be selected, that's why I need an event basiclly with hand placed CheckBoxes click=3D"cb_r.selected=3Dfalse" is enough but for dynamically created I need your help THANKS in ADVANCE ;)
[flexcoders] ComboBox padding
Hi to you all, I recently started developing in Flex, mostly because of Apollo and AS3 I am very good at Flash and AS2 anyway my problem is ComboBox padding text is very wide from sides by default which I really don't need in Flex Style explorer there is no example how to use padding for combobox I see it's there for Text in examples so please if you can give me an example on padding for ComboBox I admin I didn't try to use CSS at all I've asked here first